Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c6db5c1

Browse files
author
James Harling
committed
Improve extension methods
1 parent e76b77a commit c6db5c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/Runpath.Extensions.Logging.AzureEventHubs/AzureEventHubsLoggerOptionsExtensions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.Azure.EventHubs;
1+
using System;
2+
using Microsoft.Azure.EventHubs;
23

34
namespace Runpath.Extensions.Logging.AzureEventHubs
45
{
@@ -20,7 +21,7 @@ public static bool TryGetConnectionString(this AzureEventHubsLoggerOptions optio
2021
connectionString = builder.ToString();
2122
return true;
2223
}
23-
catch
24+
catch(ArgumentException)
2425
{
2526
connectionString = null;
2627
return false;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /