public async Task SendToCommit(Order order)
        {
            using (var producer = _pubSubProvider.GetPublishProvider(_kafkaSettings.Value.BrokerList,
                                                                     _kafkaSettings.Value.ProducerGroupId))
            {
                var deliveryReport = producer.ProduceAsync(_kafkaSettings.Value.OrderTopic, null, Serializer.Serialize(order).ToString(), _kafkaSettings.Value.Partition);
                deliveryReport.ContinueWith(task =>
                {
                    Console.WriteLine($"Partition: {task.Result.Partition}, Offset: {task.Result.Offset}");
                });

                producer.Flush(1000);
            }
        }
        private async Task PublishLog(LogItem logitem)
        {
            using (var producer = _pubSubProvider.GetPublishProvider(_kafkaSettings.Value.BrokerList,
                                                                     _kafkaSettings.Value.ProducerGroupId))
            {
                var deliveryReport = producer.ProduceAsync(_kafkaSettings.Value.LogTopic, null, Serializer.Serialize(logitem).ToString(), _kafkaSettings.Value.Partition);
                deliveryReport.ContinueWith(task =>
                {
                    Console.WriteLine($"Partition: {task.Result.Partition}, Offset: {task.Result.Offset}");
                });

                producer.Flush(1000);
            }
        }