Esempio n. 1
0
 public ObserverChildJob(IPSObservable <T> observable, string?command = null, string?name = null)
     : base(command, name)
 {
     _startObserver = () =>
     {
         _cancellation = observable.Subscribe(new PSActionObserver <T>(
                                                  onOutput: (s, o) => OnOutput(o),
                                                  onCompleted: (s) => OnCompleted(),
                                                  onFailed: (s, e) => OnFailed(e),
                                                  onDebug: (s, d) => OnDebug(d),
                                                  onWarning: (s, w) => OnWarning(w),
                                                  onVerbose: (s, v) => OnVerbose(v),
                                                  onError: (s, e) => OnError(e),
                                                  onInformation: (s, i) => OnInformation(i),
                                                  onProgress: (s, p) => OnProgress(p)
                                                  ));
     };
 }
Esempio n. 2
0
 public static IDisposable Subscribe <T>(this IPSObservable <T> observable)
 {
     throw new NotImplementedException();
 }