Files
GX.O3.WMS/APP.O3/Shared/Attribute/ServiceConfiguratorAttribute.cs

16 lines
509 B
C#
Executable File

using System;
namespace Opsoft.NetCore.O3App.Shared
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class ServiceConfiguratorAttribute : Attribute
{
public Type ServiceConfiguratorType { get; }
public ServiceConfiguratorAttribute(Type configuratorType)
{
ServiceConfiguratorType = Guard.ArgumentNotNullAndAssignableFrom(configuratorType, typeof(IServiceConfigurator), "configuratorType");
}
}
}