コード例 #1
0
		private AutofacObjectFactory(
			AutofacObjectFactory parentFactory,
			IAspectComposer aspects,
			Action cleanup)
			: this(parentFactory.CurrentScope.BeginLifetimeScope(), aspects)
		{
			this.ParentFactory = parentFactory;
			this.Cleanup = cleanup;
		}
コード例 #2
0
 private DryIocObjectFactory(
     DryIocObjectFactory parentFactory,
     IAspectComposer aspects,
     Action cleanup)
     : this(parentFactory.CurrentScope, aspects)
 {
     this.ParentFactory = parentFactory;
     this.Cleanup = cleanup;
 }
コード例 #3
0
 private DryIocObjectFactory(
     DryIocObjectFactory parentFactory,
     IAspectComposer aspects,
     Action cleanup)
     : this(parentFactory.CurrentScope.OpenScopeWithoutContext(), aspects)
 {
     this.ParentFactory = parentFactory;
     this.Cleanup       = cleanup;
 }
コード例 #4
0
 private AutofacObjectFactory(
     AutofacObjectFactory parentFactory,
     IAspectComposer aspects,
     Action cleanup)
     : this(parentFactory.CurrentScope.BeginLifetimeScope(), aspects)
 {
     this.ParentFactory = parentFactory;
     this.Cleanup       = cleanup;
 }
コード例 #5
0
        public DryIocObjectFactory(
            Container lifetimeScope,
            IAspectComposer aspects)
        {
            Contract.Requires(lifetimeScope != null);
            Contract.Requires(aspects != null);

            CurrentScope = lifetimeScope;
            this.Aspects = aspects;
        }
コード例 #6
0
        public DryIocObjectFactory(
            IContainer lifetimeScope,
            IAspectComposer aspects)
        {
            Contract.Requires(lifetimeScope != null);
            Contract.Requires(aspects != null);

            CurrentScope = lifetimeScope;
            this.Aspects = aspects;
        }
コード例 #7
0
        public AutofacObjectFactory(
            ILifetimeScope lifetimeScope,
            IAspectComposer aspects)
        {
            Contract.Requires(lifetimeScope != null);
            Contract.Requires(aspects != null);

            CurrentScope = lifetimeScope;
            this.Aspects = aspects;
        }
コード例 #8
0
        public AutofacObjectFactory(
            ILifetimeScope lifetimeScope,
            IAspectComposer aspects)
        {
            Contract.Requires(lifetimeScope != null);
            Contract.Requires(aspects != null);

            CurrentScope = lifetimeScope;
            this.Aspects = aspects;
        }
コード例 #9
0
ファイル: IAspectComposer.cs プロジェクト: zhxjdwh/revenj
 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) }));
 }