コード例 #1
0
ファイル: ProcessPrelude.cs プロジェクト: jgglg/language-ext
 /// <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, () => { });
コード例 #2
0
ファイル: ProcessPrelude.cs プロジェクト: jgglg/language-ext
 /// <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);
コード例 #3
0
ファイル: ProcessPrelude.cs プロジェクト: jgglg/language-ext
 /// <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);