In our application, we use MassTransit and Azure Service Bus. Configuration code looks like this:
x.UsingAzureServiceBus((context, cfg) =>
{
var connectionString = builder.Configuration.GetConnectionString("AzureServiceBusEndpoint")
?? throw new Bug("Service bus configuration is missing");
cfg.Host(
new UriBuilder("sb", new Uri(connectionString).Host).Uri,
configurator => configurator.TokenCredential = credential);
cfg.ConfigureEndpoints(context);
});
Functionally everything works fine, but in dependencies tracking I see regular HTTPS requests to the ASB host per each configured topic that last for 60 seconds and then repeated. I expected the application to communicate with ASB through the AMQP protocol and maintain a long-living TCP connection.
What am I missing here? Is it a configuration issue and I just missed some option to enable AMQP?