Adds a UserAgent
class to System.Net
that can be used with HttpClient
and ClientWebSocket
and whatever you want.
It can easily create a User-Agent from an assembly and includes the assembly version and repository URL among other things.
You can install it using the following .NET CLI command:
dotnet add package MikaelDui.Net.UserAgent --version *