refacto name spaces
This commit is contained in:
parent
654065d7fe
commit
94eb8e2fff
108 changed files with 1839 additions and 282 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
|
@ -15,35 +14,41 @@ using isnd.Entities;
|
|||
using isnd.Authorization;
|
||||
using isnd.Data.Roles;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Unleash;
|
||||
using Microsoft.Extensions.Options;
|
||||
using isnd.Helpers;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using System.IO;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using isnd.Data.Catalog;
|
||||
using Newtonsoft.Json;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.OpenApi;
|
||||
|
||||
namespace isnd
|
||||
{
|
||||
|
||||
/**
|
||||
* Startup class for configuring services and the app's request pipeline.
|
||||
*/
|
||||
public class Startup
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor for the Startup class.
|
||||
* @param config The configuration object.
|
||||
*/
|
||||
public Startup(IConfiguration config)
|
||||
{
|
||||
Configuration = config;
|
||||
}
|
||||
|
||||
/**
|
||||
* The configuration object.
|
||||
*/
|
||||
public static IConfiguration Configuration { get; private set; }
|
||||
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
/**
|
||||
* This method gets called by the runtime. Use this method to add services to the container.
|
||||
* @param services The service collection.
|
||||
*/
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
var smtpSettingsconf = Configuration.GetSection("Smtp");
|
||||
|
|
@ -98,7 +103,7 @@ namespace isnd
|
|||
throw new System.Exception("No unleash client ApiUrl");
|
||||
if (config.Value.ClientApiKey == null)
|
||||
throw new System.Exception("No unleash client ClientApiKey");
|
||||
return s.GetRequiredService<Microsoft.AspNetCore.Hosting.IHostingEnvironment>().CreateUnleahClient(config.Value);
|
||||
return s.GetRequiredService<Microsoft.AspNetCore.Hosting.IWebHostEnvironment>().CreateUnleashClient(config.Value);
|
||||
});
|
||||
|
||||
|
||||
|
|
@ -141,7 +146,13 @@ namespace isnd
|
|||
});
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
/**
|
||||
* This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
* @param app The application builder.
|
||||
* @param env The web host environment.
|
||||
* @param dbContext The application database context.
|
||||
* @param isnSettingsOption The isnd settings options.
|
||||
*/
|
||||
public void Configure(IApplicationBuilder app,
|
||||
IWebHostEnvironment env,
|
||||
ApplicationDbContext dbContext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue