TResponse SendMessage <TRequest, TResponse>(TRequest request) where TRequest : JsonRpcRequest where TResponse : JsonRpcResponse { var task = messagingClient.SendMessageAsync <TRequest, TResponse>(request); return(task.GetAwaiter().GetResult()); }
public async Task <IActionResult> BasicMetadataUpdate([FromBody] BasicMetadata basicMetadata) { if (basicMetadata == null) { return(BadRequest()); } await _messagingClient.SendMessageAsync(basicMetadata); return(Ok()); }