Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't crash on Blazor, where PooledConnectionLifetime can't be specified #189

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

nblumhardt
Copy link
Member

Fixes #184

See also dotnet/aspnetcore#18268

This will need verifying, as I haven't tested it with Blazor/WASM, but keen to unblock the OP.

@@ -38,6 +39,9 @@ public SeqIngestionApiClient(string serverUrl, string? apiKey, HttpMessageHandle
_apiKey = apiKey;
_httpClient = messageHandler != null
? new HttpClient(messageHandler)
: RuntimeInformation.IsOSPlatform(OSPlatform.Create("WEBASSEMBLY"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, is there no built-in constant for this?

@nblumhardt nblumhardt merged commit 3025dfc into datalust:dev Oct 10, 2022
@nblumhardt nblumhardt mentioned this pull request Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading to 5.2 from 5.1 breaks use in Blazor WebAssembly
2 participants