Skip to content

Commit 16550f6

Browse files
authored
Merge pull request #2 from Runpath/develop
1.0.1
2 parents aab5ddf + bafccde commit 16550f6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/Runpath.Extensions.Logging.AzureEventHubs/DefaultAzureEventHubsLoggerProcessor.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ private async Task TrySendAsync(EventDataBatch eventDataBatch)
9595

9696
public void Dispose()
9797
{
98-
this.channel.Writer.Complete();
98+
try
99+
{
100+
this.channel.Writer.Complete();
101+
}
102+
catch (ChannelClosedException)
103+
{
104+
// ignored
105+
}
99106

100107
this.optionsReloadToken?.Dispose();
101108
}

src/Runpath.Extensions.Logging.AzureEventHubs/Runpath.Extensions.Logging.AzureEventHubs.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Company>Runpath Digital</Company>
88
<Authors>Runpath Digital</Authors>
99
<Description>Azure Event Hubs logger provider implementation for Microsoft.Extensions.Logging.</Description>
10-
<Version>1.0.0</Version>
10+
<Version>1.0.1</Version>
1111
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1212
<PackageTags>logging azure event hubs</PackageTags>
1313
<PackageProjectUrl>https://github.com/Runpath/Runpath.Extensions.Logging.AzureEventHubs</PackageProjectUrl>

0 commit comments

Comments
 (0)