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