示例#1
0
        public Startup(IHostingEnvironment hostingEnvironment)
        {
            Environment = hostingEnvironment;

            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile($"appsettings.{hostingEnvironment.EnvironmentName}.json", true, true);

            Configuration = builder.Build();

            authApplication = new AuthApplication(Configuration, Environment);
        }
示例#2
0
        public static AuthApplication ToEntity(this AuthApplicationMsg msg)
        {
            AuthApplication entity = null;

            if (msg != null)
            {
                entity = new AuthApplication()
                {
                    Id              = msg.Id,
                    Name            = msg.Name,
                    DefaultLanguage = msg.DefaultLanguage,
                };
            }

            return(entity);
        }
示例#3
0
 public AuthController()
 {
     this.authApplication = new AuthApplication();
     this.userApplication = new UserApplication();
 }