コード例 #1
0
        public Combined3(ISingleton3 first, ITransient3 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException(nameof(first));
            }

            if (second == null)
            {
                throw new ArgumentNullException(nameof(second));
            }

            System.Threading.Interlocked.Increment(ref counter);
        }
コード例 #2
0
        public Combined3(ISingleton3 first, ITransient3 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

            if (second == null)
            {
                throw new ArgumentNullException("second");
            }

            Instances++;
        }
コード例 #3
0
ファイル: Complex.cs プロジェクト: usausa/Smart-Net-Resolver
 public Complex(
     ISingleton1 singleton1,
     ISingleton2 singleton2,
     ISingleton3 singleton3,
     Combined1 combined1,
     Combined2 combined2,
     Combined3 combined3)
 {
     Singleton1 = singleton1;
     Singleton2 = singleton2;
     Singleton3 = singleton3;
     Combined1  = combined1;
     Combined2  = combined2;
     Combined3  = combined3;
 }
コード例 #4
0
ファイル: Combined.cs プロジェクト: xiaopohou/IocPerformance
        public Combined3(ISingleton3 first, ITransient3 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

            if (second == null)
            {
                throw new ArgumentNullException("second");
            }

            System.Threading.Interlocked.Increment(ref counter);
        }
コード例 #5
0
ファイル: Combined.cs プロジェクト: usausa/Smart-Net-Resolver
 public Combined3(ISingleton3 singleton)
 {
     Singleton = singleton;
 }
コード例 #6
0
 public ScopedCombined3(ITransient3 transient, ISingleton3 singleton)
 {
     Transient = transient ?? throw new ArgumentNullException(nameof(transient));
     Singleton = singleton ?? throw new ArgumentNullException(nameof(singleton));
 }