Class StartupExtensions
Inheritance
System.Object
StartupExtensions
Assembly: Downlink.Host.dll
Syntax
public static class StartupExtensions : object
Methods
|
Improve this Doc
View Source
Declaration
public static MvcOptions AddFormatterMappings(this MvcOptions opts)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Mvc.MvcOptions |
opts |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Mvc.MvcOptions |
|
|
Improve this Doc
View Source
AddMvcServices(IServiceCollection)
Declaration
public static IMvcCoreBuilder AddMvcServices(this IServiceCollection services)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.DependencyInjection.IServiceCollection |
services |
|
Returns
Type |
Description |
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder |
|
|
Improve this Doc
View Source
UseCorsPolicy(IApplicationBuilder)
Declaration
public static IApplicationBuilder UseCorsPolicy(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|