updating nugets

This commit is contained in:
José Henrique Ivanchechen 2024-09-16 17:32:53 -03:00
parent 7730b372fd
commit 20ce3320cd
2 changed files with 13 additions and 2 deletions

View File

@ -14,7 +14,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.15.2" />
<PackageReference Include="Discord.Net" Version="3.16.0" />
<PackageReference Include="Google.Protobuf" Version="3.25.1" />
<PackageReference Include="Grpc.AspNetCore" Version="2.59.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.59.0" />
@ -28,7 +28,7 @@
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="SpotifyAPI.Web" Version="7.1.1" />
<PackageReference Include="YoutubeExplode" Version="6.3.16" />
<PackageReference Include="YoutubeExplode" Version="6.4.0" />
</ItemGroup>
<ItemGroup>

View File

@ -6,8 +6,10 @@ using Kasbot.App.Services.Internal;
using Kasbot.Services;
using Kasbot.Services.Internal;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Serilog;
namespace Kasbot
@ -41,9 +43,18 @@ namespace Kasbot
{
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddGrpc();
builder.WebHost.ConfigureKestrel(options =>
{
options.Listen(System.Net.IPAddress.Any, 5001, listenOptions =>
{
listenOptions.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http1;
});
});
var app = builder.Build();
app.MapGrpcService<StatusService>();
app.Run(url: "https://localhost:7042");
}