Exemple #1
0
        public Combined3(ISingleton3 first, ITransient3 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

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

            Instances++;
        }
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public ScopedCombined3(ITransient3 transient, ISingleton3 singleton)
 {
     Transient = transient ?? throw new ArgumentNullException(nameof(transient));
     Singleton = singleton ?? throw new ArgumentNullException(nameof(singleton));
 }