void IDisposable.Dispose()
        {
            Debug.Assert(EventsToPublish.Any(), $"There are undelivered events on {PublisherName}");

            httpClient?.Dispose();
            httpClientHandler?.Dispose();
        }
Beispiel #2
0
 void IDisposable.Dispose()
 {
     Debug.Assert(EventsToPublish.Any(), $"There are undelivered events on {PublisherName}");
     eventHubClient?.Close();
     eventHubClient = null;
 }