Esempio n. 1
0
 public SimpleCombined1(ISingleton1 first, ITransient1 second)
 {
     if (first == null)
     {
         throw new ArgumentNullException(nameof(first));
     }
     if (second == null)
     {
         throw new ArgumentNullException(nameof(second));
     }
 }
Esempio n. 2
0
        public Combined1(ISingleton1 first, ITransient1 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

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

            System.Threading.Interlocked.Increment(ref counter);
        }
Esempio n. 3
0
        public Combined1(ISingleton1 first, ITransient1 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException(nameof(first));
            }

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

            System.Threading.Interlocked.Increment(ref counter);
        }
Esempio n. 4
0
        public Combined1(ISingleton1 first, ITransient1 second)
        {
            if (first == null)
            {
                throw new ArgumentNullException("first");
            }

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

            Instances++;
        }
Esempio n. 5
0
        public ScopedCombined1(ITransient1 transient, ISingleton1 singleton)
        {
            if (transient == null)
            {
                throw new ArgumentNullException(nameof(transient));
            }

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

            if (!(transient is ScopedTransient))
            {
                throw new ArgumentException("transient should be of type ScopedTransient");
            }

            System.Threading.Interlocked.Increment(ref counter);
        }
        public ScopedCombined1(ITransient1 transient, ISingleton1 singleton)
        {
            if (transient == null)
            {
                throw new ArgumentNullException(nameof(transient));
            }

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

            if (!(transient is ScopedTransient))
            {
                throw new ArgumentException("transient should be of type ScopedTransient");
            }

            System.Threading.Interlocked.Increment(ref counter);
        }
Esempio n. 7
0
        public ScopedCombined3(ITransient1 transient, ISingleton1 singleton)
        {
            if (transient == null)
            {
                throw new ArgumentNullException("transient");
            }

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

            if (!(transient is ScopedTransient))
            {
                throw new ArgumentException("transient should be of type ScopedTransient");
            }

            Instances++;
        }
Esempio n. 8
0
 public Combined12(ISingleton1 first, ITransient1 second)
 {
 }
Esempio n. 9
0
 public ScopedCombined1(ITransient1 transient, ISingleton1 singleton)
 {
     Transient = transient ?? throw new ArgumentNullException(nameof(transient));
     Singleton = singleton ?? throw new ArgumentNullException(nameof(singleton));
 }
        public void Transient()
        {
            ITransient1 value = _benchmark.Transient();

            Assert.IsType <Transient1>(value);
        }
Esempio n. 11
0
 public PluginWithDependencies(ITransient1 transient1)
 {
 }