Created
December 9, 2019 23:50
-
-
Save alefcarlos/a5b1f991de4f00eb77561df27f2b46bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Routing; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using PlusUltra.Grpc.WebServer.Hosting; | |
namespace GrpcSample | |
{ | |
public class Startup : GrpcServerStartup | |
{ | |
public Startup(IConfiguration configuration, IWebHostEnvironment environment) | |
: base(configuration, environment) | |
{ | |
} | |
public override void AfterConfigureApp(IApplicationBuilder app) | |
{ | |
} | |
public override void AfterConfigureServices(IServiceCollection services) | |
{ | |
} | |
public override void BeforeConfigureApp(IApplicationBuilder app) | |
{ | |
} | |
public override void ConfigureAfterRouting(IApplicationBuilder app) | |
{ | |
} | |
public override void MapEndpoints(IEndpointRouteBuilder endpoints) | |
{ | |
endpoints.MapGrpcService<GreeterService>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment