Skip to content

Instantly share code, notes, and snippets.

@alefcarlos
Created December 9, 2019 23:50
Show Gist options
  • Save alefcarlos/a5b1f991de4f00eb77561df27f2b46bb to your computer and use it in GitHub Desktop.
Save alefcarlos/a5b1f991de4f00eb77561df27f2b46bb to your computer and use it in GitHub Desktop.
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