Class MicroserviceStartup
The class containing the startup methods for the application.
Inheritance
System.Object
MicroserviceStartup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Web
Assembly: cs.temp.dll.dll
Syntax
public static class MicroserviceStartup
Methods
Configure(IApplicationBuilder, IWebHostEnvironment, IConfiguration, String)
Use this method to configure the HTTP request pipeline.
Declaration
public static void Configure(IApplicationBuilder app, IWebHostEnvironment env, IConfiguration config, string apiName)
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | app | Provides the mechanisms to configure an application's request pipeline. |
IWebHostEnvironment | env | Provides information about the web hosting environment an application is running in. |
IConfiguration | config | |
System.String | apiName |
ConfigureServices(IServiceCollection, IConfiguration, String, Action)
Use this method to add services to the container.
Declaration
public static void ConfigureServices(IServiceCollection services, IConfiguration config, string apiName, Action setupBusinessServices)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
IConfiguration | config | |
System.String | apiName | |
Action | setupBusinessServices |