private AutofacObjectFactory( AutofacObjectFactory parentFactory, IAspectComposer aspects, Action cleanup) : this(parentFactory.CurrentScope.BeginLifetimeScope(), aspects) { this.ParentFactory = parentFactory; this.Cleanup = cleanup; }
private DryIocObjectFactory( DryIocObjectFactory parentFactory, IAspectComposer aspects, Action cleanup) : this(parentFactory.CurrentScope, aspects) { this.ParentFactory = parentFactory; this.Cleanup = cleanup; }
private DryIocObjectFactory( DryIocObjectFactory parentFactory, IAspectComposer aspects, Action cleanup) : this(parentFactory.CurrentScope.OpenScopeWithoutContext(), aspects) { this.ParentFactory = parentFactory; this.Cleanup = cleanup; }
public DryIocObjectFactory( Container lifetimeScope, IAspectComposer aspects) { Contract.Requires(lifetimeScope != null); Contract.Requires(aspects != null); CurrentScope = lifetimeScope; this.Aspects = aspects; }
public DryIocObjectFactory( IContainer lifetimeScope, IAspectComposer aspects) { Contract.Requires(lifetimeScope != null); Contract.Requires(aspects != null); CurrentScope = lifetimeScope; this.Aspects = aspects; }
public AutofacObjectFactory( ILifetimeScope lifetimeScope, IAspectComposer aspects) { Contract.Requires(lifetimeScope != null); Contract.Requires(aspects != null); CurrentScope = lifetimeScope; this.Aspects = aspects; }
public static TIf Create <TImp, TIf>(this IAspectComposer composer) where TImp : class, TIf { return((TIf)composer.Create(typeof(TImp), null, new[] { typeof(TImp), typeof(TIf) })); }