public void Execute() { consumer.Consume("binary", message => { var fileName = message.Key; fileClient.Create(settings.Value.OutputDirectory, fileName, message.Payload); logger.LogInformation($"Binary file received and created: {fileName}"); }); }