// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; namespace Microsoft.MixedReality.Toolkit { /// /// Attach to a class implementing IMixedRealityServiceInspector to generate a facade inspector. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class MixedRealityServiceInspectorAttribute : Attribute { public MixedRealityServiceInspectorAttribute(Type serviceType) { if (!typeof(IMixedRealityService).IsAssignableFrom(serviceType)) throw new Exception("Can't use this attribute with type " + serviceType + " - service must implement " + typeof(IMixedRealityService) + " interface."); ServiceType = serviceType; } public Type ServiceType { get; private set; } } }