December 2019
Intermediate to advanced
598 pages
12h 21m
English
Services are configured using a method called ConfigureServices. It is this method we will use to register items such as the following:
Services are added by calling methods on the services parameter and, generally, start with Add. Notice the call to the AddSpaStaticFiles method in the following code snippet:
public void ConfigureServices(IServiceCollection services){0 services.AddControllersWithViews(); services.AddSpaStaticFiles(configuration => { configuration.RootPath = "ClientApp/build"; ...Read now
Unlock full access