Example #1
0
 public DockerEvents(IDockerClient docker)
 {
     _observers    = new ObservableHelper <DockerEvent>();
     _cancelSource = new CancellationTokenSource();
     Task.Run(() => docker.System.MonitorEventsAsync(
                  new ContainerEventsParameters(),
                  this,
                  _cancelSource.Token
                  ));
 }
Example #2
0
 public Unsubscriber(ObservableHelper <T> observers, IObserver <T> observer)
 {
     _observers = observers;
     _observer  = observer;
 }