refactor: remove ConfigureWebApiExtensionsAtFirst extension
This commit is contained in:
@@ -11,28 +11,6 @@ namespace StaffDBServer.SharedExtensions
|
||||
{
|
||||
public static class ServiceExtensions
|
||||
{
|
||||
public static void ConfigureWebApiExtensionsAtFirst(this IServiceCollection services)
|
||||
{
|
||||
//services.AddCors();
|
||||
services.AddCustomCors("AllowAllOrigins");
|
||||
|
||||
services.Configure<IISOptions>(options =>
|
||||
{
|
||||
options.AuthenticationDisplayName = "Windows";
|
||||
options.ForwardClientCertificate = true;
|
||||
options.AutomaticAuthentication = true;
|
||||
});
|
||||
services.AddAuthentication(IISDefaults.AuthenticationScheme);
|
||||
|
||||
services.ConfigureJWT(Extends.JwtMiddlewareOptionsHelper.GetJwtMiddlewareOptions()); ;
|
||||
|
||||
services.ConfigureDAL(WebApiMiddlewareOptionsHelper.GetWebApiMiddlewareOptions());
|
||||
|
||||
services.AddSingleton<ILoggerManager, LoggerManager>();
|
||||
|
||||
services.ConfigureSwagger();
|
||||
}
|
||||
|
||||
public static void ConfigureWebApiExtensionsEnd(this IServiceCollection services)
|
||||
{
|
||||
services.AddMvc()
|
||||
|
||||
Reference in New Issue
Block a user