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

Blazor WebAssembly Support #286

Closed
niemyjski opened this issue Nov 28, 2022 · 1 comment
Closed

Blazor WebAssembly Support #286

niemyjski opened this issue Nov 28, 2022 · 1 comment
Assignees

Comments

@niemyjski
Copy link
Member

There are several issues when working with Blazor WebAssembly projects that need to be worked out.

Async Issues with GetAwaiter().GetResult()

https://github.com/exceptionless/Exceptionless.Net/blob/main/src/Exceptionless/Submission/DefaultSubmissionClient.cs#L43

at System.Threading.Monitor.ObjWait(Int32 millisecondsTimeout, Object obj)
at System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout)  
at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 
at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)  
at System.Threading.Tasks.Task.InternalWaitCore(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Exceptionless.Submission.DefaultSubmissionClient.PostEvents(IEnumerable`1 events, ExceptionlessConfiguration config, IJsonSerializer serializer)
 in D:\\Code\\Exceptionless.Net\\src\\Exceptionless\\Submission\\DefaultSubmissionClient.cs:line 43

HttpClientHandler UseDefaultCredentials Issue

We need to check the dotnet runtime issues for existing issues or report a new one as this is where the Blazor team handles these kinds of issues.

https://github.com/exceptionless/Exceptionless.Net/blob/main/src/Exceptionless/Submission/DefaultSubmissionClient.cs#L138

System.PlatformNotSupportedException exception 

at System.Net.Http.BrowserHttpHandler.set_Credentials(ICredentials value)
at System.Net.Http.HttpClientHandler.set_UseDefaultCredentials(Boolean value)
at Exceptionless.Submission.DefaultSubmissionClient.CreateHttpClient(ExceptionlessConfiguration config) in D:\\Code\\Exceptionless.Net\\src\\Exceptionless\\Submission\\DefaultSubmissionClient.cs:line 138
at Exceptionless.Submission.DefaultSubmissionClient.<>c__DisplayClass1_0.<.ctor>b__0() in D:\\Code\\Exceptionless.Net\\src\\Exceptionless\\Sub…tpClient, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue()
System.Lazy`1[[System.Net.Http.HttpClient, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value()
at Exceptionless.Submission.DefaultSubmissionClient.PostEvents(IEnumerable`1 events, ExceptionlessConfiguration config, IJsonSerializer serializer) in D:\\Code\\Exceptionless.Net\\src\\Exceptionless\\Submission\\DefaultSubmissionClient.cs:line 42
@niemyjski niemyjski self-assigned this Nov 28, 2022
niemyjski added a commit that referenced this issue Jan 24, 2023
* #286 - Added sample blazor web assembly app

* [Breaking] Made ISubmissionClient Async

* [Breaking] Removed ProcessQueue, Shutdown and other sync methods for async impl

Added extra error handling around unavoidable async void

Co-authored-by: Blake Niemyjski <[email protected]>
@niemyjski
Copy link
Member Author

Blazor is now supported with the 5.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant