コード例 #1
0
        public Combined2(ISingleton2 first, ITransient2 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 Combined2(ISingleton2 first, ITransient2 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

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

            Instances++;
        }
コード例 #3
0
ファイル: Combined.cs プロジェクト: CodeDux/IocPerformance
        public Combined2(ISingleton2 first, ITransient2 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException(nameof(first));
            }

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

            System.Threading.Interlocked.Increment(ref counter);
        }
コード例 #4
0
 public ScopedCombined2(ITransient2 transient, ISingleton2 singleton)
 {
     Transient = transient ?? throw new ArgumentNullException(nameof(transient));
     Singleton = singleton ?? throw new ArgumentNullException(nameof(singleton));
 }