Example #1
0
        public TestController2(
            IRepositoryTransient1 transient1,
            IRepositoryTransient2 repositoryTransient2,
            IRepositoryTransient3 repositoryTransient3,
            IRepositoryTransient4 repositoryTransient4,
            IRepositoryTransient5 repositoryTransient5)
        {
            if (transient1 == null)
            {
                throw new ArgumentNullException(nameof(transient1));
            }

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

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

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

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

            Interlocked.Increment(ref counter);
        }
Example #2
0
 public TestController1(IRepositoryTransient1 transient1)
 {
 }