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