Exemple #1
0
        TResponse SendMessage <TRequest, TResponse>(TRequest request)
            where TRequest : JsonRpcRequest
            where TResponse : JsonRpcResponse
        {
            var task = messagingClient.SendMessageAsync <TRequest, TResponse>(request);

            return(task.GetAwaiter().GetResult());
        }
Exemple #2
0
        public async Task <IActionResult> BasicMetadataUpdate([FromBody] BasicMetadata basicMetadata)
        {
            if (basicMetadata == null)
            {
                return(BadRequest());
            }

            await _messagingClient.SendMessageAsync(basicMetadata);

            return(Ok());
        }