Ensure AppInisight is configured and dependency tracking is enabled.
Construct a SubscriptionClient for a topic with sessions enabled.
Call RegisterSessionHandler on the client.
(When nothing is published on the topic): every 2 minutes (at least close to that) an "AcceptMessageSession" dependency with "Dependency call status" as False is logged in AppInsight.
Expected Behavior
When nothing is published there should not be anything logged in AppInsight. Or at least it should not log a failed dependency.
Versions
OS platform and version: Windows 10 Pro, 1803
.NET Version: .NET 4.6
NuGet package version or commit ID:
Comments:
Using RegisterMessageHandler instead of RegisterSessionHandler also causes a dependency "Receive" to be logged every 1 minute, but this has a status of True, which is much less noisy in AppInsight.
Added example to solution to reproduce (requires an Azure subscription with an AppInsights instrumentation key, a service bus topic and a subscription for that topic).
Actual Behavior
Expected Behavior
Versions
Comments: Using RegisterMessageHandler instead of RegisterSessionHandler also causes a dependency "Receive" to be logged every 1 minute, but this has a status of True, which is much less noisy in AppInsight.