private DIContainerElement( Type type, IDIContainerElementLifecyle lifecycle, object instance, Func <object> create) { Type = type; _lifecycle = lifecycle; _instance = instance; _createInstance = create; }
public DIContainerElement( Type type, IDIContainerElementLifecyle lifecycle, Func <object> create) : this(type, lifecycle, null, create) { if (create == null) { throw new ArgumentNullException(nameof(create)); } }