/// <summary> /// Constructor. /// </summary> /// <param name="interfaceType"></param> /// <param name="name"></param> /// <param name="injections"></param> public Resolution( Type interfaceType, string name = null, Injections injections = null) { Argument.NotNull(nameof(interfaceType), interfaceType); InterfaceType = interfaceType; Name = new Optional <string>(name); Injections = new Optional <Injections>(injections); }
/// <summary> /// Constructor. /// </summary> /// <param name="interfaceType"></param> /// <param name="implementationType"></param> /// <param name="createOnResolve"></param> /// <param name="instance"></param> /// <param name="name"></param> /// <param name="injections"></param> public Registration( Type interfaceType, Type implementationType = null, bool createOnResolve = false, object instance = null, string name = null, Injections injections = null) { InterfaceType = interfaceType; ImplementationType = new Optional <Type>(implementationType); CreateOnResolve = createOnResolve; Instance = new Optional <object>(instance); Name = new Optional <string>(name); Injections = new Optional <Injections>(injections); }
/// <summary> /// Constructor. /// </summary> /// <param name="implementationType">Implementation type.</param> /// <param name="injections">Injections.</param> public DecoratorRegistration(Type implementationType = null, Injections injections = null) { ImplementationType = new Optional <Type>(implementationType); Injections = new Optional <Injections>(injections); }