MCPcopy Create free account
hub / github.com/OpenFunction/samples / Startup

Class Startup

functions/knative/hello-world-dotnet/Startup.cs:23–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace helloworld
22{
23 public class Startup
24 {
25 public void ConfigureServices(IServiceCollection services)
26 {
27 }
28
29 public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
30 {
31 app.UseRouting();
32
33 app.UseEndpoints(endpoints =>
34 {
35 endpoints.MapGet("/", async context =>
36 {
37 await context.Response.WriteAsync("hello, world");
38 });
39 });
40 }
41 }
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected