Exemple #1
0
    public async Task <ActionResult <DeliveryResult> > ProduceAsync(Guid producerId, [Required] string token,
                                                                    [Required] string topic,
                                                                    [Range(0, int.MaxValue)] int?partition, [Required] PostMessageRequest request)
    {
        var result = await _service.ProduceAsync(producerId, token, topic, partition, request)
                     .ConfigureAwait(false);

        return(Ok(result));
    }