Skip to content

Commit dd418d1

Browse files
authored
Merge pull request #325 from dwelch2344/swallow-ni-exception
Catch NotImplementedException #324
2 parents a07d924 + 4d9c6b8 commit dd418d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ public Task InitializeWebSocket()
408408
{
409409
_clientWebSocket.Options.ClientCertificates = ((HttpClientHandler)Options.HttpMessageHandler).ClientCertificates;
410410
}
411+
catch (NotImplementedException)
412+
{
413+
Debug.WriteLine("property 'ClientWebSocketOptions.ClientCertificates' not implemented by current platform");
414+
}
411415
catch (PlatformNotSupportedException)
412416
{
413417
Debug.WriteLine("property 'ClientWebSocketOptions.ClientCertificates' not supported by current platform");
@@ -417,6 +421,10 @@ public Task InitializeWebSocket()
417421
{
418422
_clientWebSocket.Options.UseDefaultCredentials = ((HttpClientHandler)Options.HttpMessageHandler).UseDefaultCredentials;
419423
}
424+
catch (NotImplementedException)
425+
{
426+
Debug.WriteLine("property 'ClientWebSocketOptions.UseDefaultCredentials' not implemented by current platform");
427+
}
420428
catch (PlatformNotSupportedException)
421429
{
422430
Debug.WriteLine("Property 'ClientWebSocketOptions.UseDefaultCredentials' not supported by current platform");

0 commit comments

Comments
 (0)