예제 #1
0
        public Startup(IConfiguration configuration, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment)
        {
            Environment.CurrentDirectory = hostingEnvironment.ContentRootPath;
            _hostingEnvironment          = hostingEnvironment;
            Configuration = configuration;

            //Init();
        }
예제 #2
0
 public ShopController(IStringLocalizer <ShopController> localizer,
                       IDistributedCache distributedCache, IMemoryCache memoryCache,
                       Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnvironment)
 {
     _localizer        = localizer;
     _distributedCache = distributedCache;
     _memoryCache      = memoryCache;
     he = hostingEnvironment;
 }