From 0945ccfd123e933ef5f734b1f33f9e8411a4bac5 Mon Sep 17 00:00:00 2001 From: Brandon Watson Date: Fri, 5 Mar 2021 20:45:26 -0500 Subject: [PATCH] Wip --- AuroraCradle/Src/Services/Signal/SignalService.cs | 5 ----- AuroraCradle/Src/Startup.cs | 6 ++++++ AuroraCradle/aurora-cradle-sharp.csproj | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) 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 @@ +