C# Class Microsoft.Legal.MatterCenter.Web.Startup

Datei anzeigen Open project: Microsoft/mattercenter

Public Methods

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

Private Methods

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

Method Details

Configure() public method

This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public Configure ( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory ) : void
app IApplicationBuilder
env IHostingEnvironment
loggerFactory ILoggerFactory
return void

ConfigureServices() public method

This method gets called by the runtime. Use this method to add services to the container.
public ConfigureServices ( IServiceCollection services ) : void
services IServiceCollection
return void

Startup() public method

public Startup ( IHostingEnvironment env, ILoggerFactory logger ) : Microsoft.AspNetCore.Builder
env IHostingEnvironment
logger ILoggerFactory
return Microsoft.AspNetCore.Builder