Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new service attibute
 /// </summary>
 public ServiceAttribute(ServiceInstantiationType type)
 {
     this.Type = type;
 }
Esempio n. 3
0
 /// <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;
 }