Skip to content

Instantly share code, notes, and snippets.

@kshitijcode
Created July 9, 2021 04:58
Show Gist options
  • Select an option

  • Save kshitijcode/4a17b3dcd8fbbebab35b2737a580e33a to your computer and use it in GitHub Desktop.

Select an option

Save kshitijcode/4a17b3dcd8fbbebab35b2737a580e33a to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers().AddDapr(builder => builder.UseHttpEndpoint(Configuration.GetValue<string>("DAPR_HTTP_ENDPOINT"))
.UseGrpcEndpoint(Configuration.GetValue<string>("DAPR_GRPC_ENDPOINT")));
services.AddControllers();
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "DaprAdventures.SaveStateService", Version = "v1" });
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment