예제 #1
0
 /// <summary>
 ///		Create an <see cref="IObserver{T}">observer</see> that can be used to send messages to the specified actor.
 /// </summary>
 /// <typeparam name="TMessage">
 ///		The base message type that the observer accepts.
 /// </typeparam>
 /// <param name="actorRef">
 ///		A reference to the actor that observed messages will be forwarded to.
 /// </param>
 /// <returns>
 ///		The new observer.
 /// </returns>
 public static IObserver <TMessage> ToObserver <TMessage>(this IActorRef actorRef)
 {
     return(actorRef.ToObserver <TMessage>(stopOnCompletion: false));
 }