Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public AuthController()
 {
     this.authApplication = new AuthApplication();
     this.userApplication = new UserApplication();
 }