protected ContainerRegistrationAttribute(Type contractType, Type implementationType, TypeOfRegistrationScope scope) { ContractType = contractType; ImplementationType = implementationType; Scope = scope; }
public InternalRegistrationAttribute(Type contractType, Type implementationType, TypeOfRegistrationScope scope) : base(contractType, implementationType, scope) { (!ContractType.IsAssignableFrom(ImplementationType)) .AsGuard <ArgumentException>(ImplementationType.Name); (!typeof(ISupportServiceRegistration).IsAssignableFrom(ContractType)) .AsGuard <ArgumentException>(ContractType.Name); }
public ExternalRegistrationAttribute(Type contractType, Type implementationType, TypeOfRegistrationScope scope) : base(contractType, implementationType, scope) { }