Exemplo n.º 1
0
        public Combined3(ISingleton3 first, ITransient3 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

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

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