/// <summary> /// Subscribe to the process's observable stream. /// NOTE: The process can publish any number of types, any published messages /// not of type T will be ignored. /// </summary> public static IDisposable subs <T>(ProcessId pid, Action <T> onNext, Action <Exception> onError) => ObservableRouter.Subscribe(pid, onNext, onError, () => { });
/// <summary> /// Subscribe to the process's observable stream. /// NOTE: The process can publish any number of types, any published messages /// not of type T will be ignored. /// </summary> public static IDisposable subs <T>(ProcessId pid, Action <T> onNext, Action onComplete) => ObservableRouter.Subscribe(pid, onNext, ex => { }, onComplete);
/// <summary> /// Subscribe to the process's observable stream. /// NOTE: The process can publish any number of types, any published messages /// not of type T will be ignored. /// </summary> public static IDisposable subs <T>(ProcessId pid, IObserver <T> observer) => ObservableRouter.Subscribe(pid, observer);