Example #1
0
        public async Task <ActionResult <MessagePacket> > Call([FromBody] MessagePacket messagePacket)
        {
            messagePacket
            .VerifyNotNull(nameof(messagePacket))
            .Verify();

            MessagePacket result = await _messageHost.Call(messagePacket);

            return(Ok(result));
        }
Example #2
0
        public async Task <ActionResult> Send([FromBody] MessagePacket messagePacket)
        {
            messagePacket
            .VerifyNotNull(nameof(messagePacket))
            .Verify();

            await _messageHost.Send(messagePacket);

            return(Ok());
        }