Some cleanup items for the .NET Web Worker template:
- Remove the license headers from generated template files
- Remove or condense the heavy XML doc comments on WebWorkerClient
- The DisposeAsync method in WebWorkerClient catches a JSDisconnectedException with the comment "Circuit disconnected, worker is already gone", but circuits are specific to Blazor Server-
- Consider adding an initialization timeout for the worker in case the runtime fails to load silently.
- The parseIfJson logic in dotnet-web-worker-client.js seems potentially problematic if a worker method returns a string that happens to look like JSON. Consider either always deserializing or never parsing.
- Consider adding an InvokeVoidAsync method to WebWorkerClient
Some cleanup items for the .NET Web Worker template: