public PID GetActor(ISQSCommand command) { switch (command) { case WebhookCommand webhook: return(GetActor <Dispatcher>($"Dispatcher_{webhook.CommandId}")); default: throw new NotSupportedException($"{command.GetType()} is not supported"); } }
public object Map(ISQSCommand command) { switch (command) { case WebhookCommand webhook: return(new SendRequest(webhook)); default: throw new NotSupportedException($"{command.GetType()} is not supported"); } }