diff --git a/AuroraCradle/Src/Services/Signal/SignalService.cs b/AuroraCradle/Src/Services/Signal/SignalService.cs index af4100a..3561c59 100644 --- a/AuroraCradle/Src/Services/Signal/SignalService.cs +++ b/AuroraCradle/Src/Services/Signal/SignalService.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Grpc.Core; using Microsoft.Extensions.Logging; using Aurora.Cursor; diff --git a/AuroraCradle/Src/Startup.cs b/AuroraCradle/Src/Startup.cs index 2ffb350..57b8520 100644 --- a/AuroraCradle/Src/Startup.cs +++ b/AuroraCradle/Src/Startup.cs @@ -18,6 +18,7 @@ namespace Aurora public void ConfigureServices(IServiceCollection services) { services.AddGrpc(); + services.AddGrpcReflection(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. @@ -26,6 +27,7 @@ namespace Aurora if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); + } app.UseRouting(); @@ -34,6 +36,10 @@ namespace Aurora { endpoints.MapGrpcService(); + if (env.IsDevelopment()) + { + endpoints.MapGrpcReflectionService(); + } endpoints.MapGet("/", async context => { await context.Response.WriteAsync("Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909"); diff --git a/AuroraCradle/aurora-cradle-sharp.csproj b/AuroraCradle/aurora-cradle-sharp.csproj index 2b41fe9..1e350d2 100644 --- a/AuroraCradle/aurora-cradle-sharp.csproj +++ b/AuroraCradle/aurora-cradle-sharp.csproj @@ -10,6 +10,7 @@ +