Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
        public object Map(ISQSCommand command)
        {
            switch (command)
            {
            case WebhookCommand webhook:
                return(new SendRequest(webhook));

            default:
                throw new NotSupportedException($"{command.GetType()} is not supported");
            }
        }