MCPcopy Create free account
hub / github.com/bbachi/react-dotnet-example / ConfigureServices

Method ConfigureServices

Startup.cs:21–31  ·  view source on GitHub ↗

This method gets called by the runtime. Use this method to add services to the container.

(IServiceCollection services)

Source from the content-addressed store, hash-verified

19
20 // This method gets called by the runtime. Use this method to add services to the container.
21 public void ConfigureServices(IServiceCollection services)
22 {
23
24 services.AddControllersWithViews();
25
26 // In production, the React files will be served from this directory
27 services.AddSpaStaticFiles(configuration =>
28 {
29 configuration.RootPath = "ClientApp/build";
30 });
31 }
32
33 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
34 public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected