public ImportDisposableService(IDisposableService disposableService) { }
public DependentClass(IDisposableService disposableService, IDisposable disposable) { _disposableService = disposableService; _disposable = disposable; }
public MyJob(IDisposableService disposableService, IDatabaseService databaseService) { this.disposableService = disposableService; this.databaseService = databaseService; }
public DisposableServiceDecorator(IDisposableService inner) { Inner = inner ?? throw new ArgumentNullException(nameof(inner)); }
public Service(IDisposableService disposableService) { Log.DebugFormat("{0} #{1} created", typeof(Service), ++_instanceCounter); }