public static async Task SendMessageAsync <T>(T serviceBusMessage)
        {
            ServiceBusCredentials credentials = ServiceProviderBuilder.GetSettingValues();
            QueueClient           client      = new QueueClient(credentials.ConnectionString, credentials.QueueName);
            string  messageBody = JsonSerializer.Serialize(serviceBusMessage);
            Message message     = new Message(Encoding.UTF8.GetBytes(messageBody));

            await client.SendAsync(message);
        }
 public SettingValues(IOptions <ServiceBusCredentials> setting)
 {
     this.setting = setting.Value;
 }