Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Updated AssemblyName and User-Agents.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaeldui committed Jan 15, 2022
1 parent 1c4c789 commit bbbc4f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ public class LeagueClientWampClient : WampSubscriberClient<LeagueClientWampMessa
static LeagueClientWampClient()
{
var wampClient = UserAgent.From(typeof(WampSubscriberClient).GetTypeInfo().Assembly);
wampClient.Name = "MikaelDui.Net.WebSockets.Wamp";
wampClient.DependentProduct = UserAgent.From(typeof(LeagueClientWampClient).GetTypeInfo().Assembly);
wampClient.DependentProduct.Name = "MikaelDui.RiotGames.Client";

var entryAssembly = Assembly.GetEntryAssembly();
if (entryAssembly != null)
wampClient.DependentProduct.DependentProduct = UserAgent.From(entryAssembly);
Expand Down
2 changes: 1 addition & 1 deletion RiotGames.Client/Http/RiotGamesHttpClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using RiotGames.LeagueOfLegends.LeagueClient;
using System.Dynamic;
using System.Net;
using System.Net.Http.Json;
using System.Reflection;

Expand All @@ -12,7 +13,6 @@ internal class RiotGamesHttpClient<TObjectBase> : IDisposable
static RiotGamesHttpClient()
{
var client = UserAgent.From(typeof(RiotGamesHttpClient<TObjectBase>).GetTypeInfo().Assembly);
client.Name = "MikaelDui.RiotGames.Client";

var entryAssembly = Assembly.GetEntryAssembly();
if (entryAssembly != null)
Expand Down
3 changes: 2 additions & 1 deletion RiotGames.Client/RiotGames.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<PackageTags>RiotGames; LeagueOfLegends; LegendsOfRuneterra; TeamfightTactics; Valorant; LoL; LoR; TFT; LCU; LeagueClient;</PackageTags>
<PackageLicenseExpression>Unlicense</PackageLicenseExpression>
<PackageIcon>RiotGames-256x256.png</PackageIcon>
<AssemblyName>MikaelDui.RiotGames.Client</AssemblyName>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -43,7 +44,7 @@
<PackageReference Include="Camille.Enums" Version="3.0.0-*" />
<PackageReference Include="MikaelDui.Client.Base" Version="*" />
<PackageReference Include="MikaelDui.Extensions" Version="*" />
<PackageReference Include="MikaelDui.Net.Http" Version="*" />
<PackageReference Include="MikaelDui.Net.UserAgent" Version="*" />
<PackageReference Include="MikaelDui.Net.WebSockets.Extensions" Version="*" />
<PackageReference Include="MikaelDui.Net.WebSockets.Wamp" Version="*" />
<PackageReference Include="MikaelDui.RiotGames.LeagueOfLegends.LeagueClient.LockFile" Version="*" />
Expand Down

0 comments on commit bbbc4f7

Please sign in to comment.