Merged v4 and working on adding grpc api. INcomplete

This commit is contained in:
Kwoth
2024-04-16 13:26:44 +00:00
7 changed files with 107 additions and 35 deletions

View File

@@ -208,7 +208,6 @@ public sealed class Bot : IBot
if (baseType is null)
continue;
Log.Information(ft.Name);
var typeReader = (TypeReader)ActivatorUtilities.CreateInstance(Services, ft);
var typeArgs = baseType.GetGenericArguments();
_commandService.AddTypeReader(typeArgs[0], typeReader);

View File

@@ -17,6 +17,7 @@
<!-- Profile-guided optimization -->
<TieredPGO>true</TieredPGO>
</PropertyGroup>
<ItemGroup>
@@ -32,9 +33,10 @@
<PackageReference Include="Google.Apis.Urlshortener.v1" Version="1.41.1.138" />
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.62.1.3205" />
<PackageReference Include="Google.Apis.Customsearch.v1" Version="1.49.0.2084" />
<PackageReference Include="Google.Protobuf" Version="3.22.1" />
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.52.0" />
<PackageReference Include="Grpc.Tools" Version="2.53.0">
<PackageReference Include="Grpc.AspNetCore" Version="2.62.0" />
<PackageReference Include="Google.Protobuf" Version="3.26.1" />
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.62.0" />
<PackageReference Include="Grpc.Tools" Version="2.62.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>