public void Response <TResponse>(Response <TResponse> response) { if (response.DestinationAddress == null) { Console.WriteLine("No destination"); return; } var urn = new ActorUrn(response.DestinationAddress); Guid key = urn.GetId(); _registry.Get(key, actor => actor.Send(response), () => { Console.WriteLine("Actor not found: " + response.DestinationAddress); }); }
public void Message <TBody>(Message <TBody> message) { if (message.DestinationAddress == null) { Console.WriteLine("No destination"); return; } var urn = new ActorUrn(message.DestinationAddress); Guid key = urn.GetId(); _registry.Get(key, actor => actor.Send(message), () => { Console.WriteLine("Actor not found: " + message.DestinationAddress); }); }