/// <summary> /// Identifies a service provider /// </summary> public ServiceProviderAttribute(String name, bool required = false, ServiceInstantiationType type = ServiceInstantiationType.Singleton, Type configurationType = null) { this.Name = name; this.Type = type; this.Configuration = configurationType; this.Required = required; }
/// <summary> /// Create a new service attibute /// </summary> public ServiceAttribute(ServiceInstantiationType type) { this.Type = type; }
/// <summary> /// Creates a new API service provider /// </summary> public ApiServiceProviderAttribute(string name, Type behaviorType, bool required = false, ServiceInstantiationType type = ServiceInstantiationType.Singleton, Type configurationType = null) : base(name, required, type, configurationType) { this.BehaviorType = behaviorType; }