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

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