Skip to content

Instantly share code, notes, and snippets.

@cheoalfredo
Created November 10, 2020 22:16
Show Gist options
  • Save cheoalfredo/c7c8875c918d36f52611bca828b0a830 to your computer and use it in GitHub Desktop.
Save cheoalfredo/c7c8875c918d36f52611bca828b0a830 to your computer and use it in GitHub Desktop.
Método Configure(IApplicationBiulder app, IWebHostEnvironment env)
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapGrpcService<OperacionService>();
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");
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment