Remove blank lines in Configure Services for Razor and Mvc

This commit is contained in:
Carlos Jiménez Aliaga 2019-06-27 02:17:56 +02:00
parent fd9ad7f8c5
commit 5954a2f98e
2 changed files with 2 additions and 4 deletions

View File

@ -52,7 +52,6 @@ namespace Company.WebApplication1
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
#if (IndividualLocalAuth)
services.AddDbContext<ApplicationDbContext>(options =>
#if (UseLocalDB)
@ -108,8 +107,8 @@ namespace Company.WebApplication1
services.AddAuthentication(AzureADB2CDefaults.AuthenticationScheme)
.AddAzureADB2C(options => Configuration.Bind("AzureAdB2C", options));
#endif
#if (OrganizationalAuth)
services.AddRazorPages().AddMvcOptions(options =>
{
var policy = new AuthorizationPolicyBuilder()

View File

@ -52,7 +52,6 @@ namespace Company.WebApplication1
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
#if (IndividualLocalAuth)
services.AddDbContext<ApplicationDbContext>(options =>
#if (UseLocalDB)
@ -108,8 +107,8 @@ namespace Company.WebApplication1
services.AddAuthentication(AzureADB2CDefaults.AuthenticationScheme)
.AddAzureADB2C(options => Configuration.Bind("AzureAdB2C", options));
#endif
#if (OrganizationalAuth)
services.AddControllersWithViews(options =>
{
var policy = new AuthorizationPolicyBuilder()