Method | Description | |
---|---|---|
Configure ( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory ) : void |
This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
|
ConfigureServices ( IServiceCollection services ) : void |
This method gets called by the runtime. Use this method to add services to the container.
|
|
Startup ( IHostingEnvironment env, ILoggerFactory logger ) : Microsoft.AspNetCore.Builder |
Method | Description | |
---|---|---|
CheckAuthorization ( IApplicationBuilder app ) : void |
check the current request and check whether the request is having the bearer token. If bearer token is present it will validate the same and if it is not present, the api will throw 401 unauthorized error
|
|
ConfigureMatterPackages ( IServiceCollection services ) : void | ||
ConfigureMvc ( IServiceCollection services, ILoggerFactory logger ) : void | ||
ConfigureSettings ( IServiceCollection services ) : void | ||
ConfigureSwagger ( IServiceCollection services ) : void | ||
CreateConfig ( IHostingEnvironment hostingEnvironment ) : void |
public Configure ( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory ) : void | ||
app | IApplicationBuilder | |
env | IHostingEnvironment | |
loggerFactory | ILoggerFactory | |
return | void |
public ConfigureServices ( IServiceCollection services ) : void | ||
services | IServiceCollection | |
return | void |
public Startup ( IHostingEnvironment env, ILoggerFactory logger ) : Microsoft.AspNetCore.Builder | ||
env | IHostingEnvironment | |
logger | ILoggerFactory | |
return | Microsoft.AspNetCore.Builder |