Exemple #1
0
 Func <RequestEnvelope, Task <ResponseEnvelope> > Receive(object message)
 {
     return(ActorPrototype.Of(Path.Type).IsReentrant(message)
                ? (Func <RequestEnvelope, Task <ResponseEnvelope> >)endpoint.ReceiveReentrant
                : endpoint.Receive);
 }
Exemple #2
0
        static Func <object, bool> DeclaredHandlerOnlyFilter(string actorCode)
        {
            var actor = ActorPrototype.Of(actorCode);

            return(x => actor.DeclaresHandlerFor(x.GetType()));
        }