public Complex1( IFirstService firstService, ISecondService secondService, IThirdService thirdService, ISubObjectOne subObjectOne, ISubObjectTwo subObjectTwo, ISubObjectThree subObjectThree) { if (firstService == null) { throw new ArgumentNullException("firstService"); } if (secondService == null) { throw new ArgumentNullException("secondService"); } if (thirdService == null) { throw new ArgumentNullException("thirdService"); } if (subObjectOne == null) { throw new ArgumentNullException("subObjectOne"); } if (subObjectTwo == null) { throw new ArgumentNullException("subObjectTwo"); } if (subObjectThree == null) { throw new ArgumentNullException("subObjectThree"); } System.Threading.Interlocked.Increment(ref counter); }
public Complex2( IFirstService firstService, ISecondService secondService, IThirdService thirdService, ISubObjectOne subObjectOne, ISubObjectTwo subObjectTwo, ISubObjectThree subObjectThree) { if (firstService == null) { throw new ArgumentNullException("firstService"); } if (secondService == null) { throw new ArgumentNullException("secondService"); } if (thirdService == null) { throw new ArgumentNullException("thirdService"); } if (subObjectOne == null) { throw new ArgumentNullException("subObjectOne"); } if (subObjectTwo == null) { throw new ArgumentNullException("subObjectTwo"); } if (subObjectThree == null) { throw new ArgumentNullException("subObjectThree"); } System.Threading.Interlocked.Increment(ref counter); }
public Complex( IFirstService firstService, ISecondService secondService, IThirdService thirdService, ISubObjectOne subObjectOne, ISubObjectTwo subObjectTwo, ISubObjectThree subObjectThree) { if (firstService == null) { throw new ArgumentNullException("firstService"); } if (secondService == null) { throw new ArgumentNullException("secondService"); } if (thirdService == null) { throw new ArgumentNullException("thirdService"); } if (subObjectOne == null) { throw new ArgumentNullException("subObjectOne"); } if (subObjectTwo == null) { throw new ArgumentNullException("subObjectTwo"); } if (subObjectThree == null) { throw new ArgumentNullException("subObjectThree"); } Instances++; }
public Complex2( IFirstService firstService, ISecondService secondService, IThirdService thirdService, ISubObjectOne subObjectOne, ISubObjectTwo subObjectTwo, ISubObjectThree subObjectThree) { if (firstService == null) { throw new ArgumentNullException("firstService"); } if (secondService == null) { throw new ArgumentNullException("secondService"); } if (thirdService == null) { throw new ArgumentNullException("thirdService"); } if (subObjectOne == null) { throw new ArgumentNullException("subObjectOne"); } if (subObjectTwo == null) { throw new ArgumentNullException("subObjectTwo"); } if (subObjectThree == null) { throw new ArgumentNullException("subObjectThree"); } Instances++; }
public Singleton1(ISubObjectOne one, ISubObjectTwo two) { calledConstructor = true; fromConstructor1 = one; fromConstructor2 = two; }
public Transient1(ISubObjectOne one, ISubObjectTwo two) { calledConstructor = true; fromConstructor1 = one; fromConstructor2 = two; }