ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
로딩중...
검색중...
일치하는것 없음
ShopOptions.cs
이 파일의 문서화 페이지로 가기
1namespace ShopPlatform.Models;
2
11public sealed class ShopOptions
12{
21 public const string Section = "ShopPlatform";
22
31 public string DataPath { get; set; } = "App_Data/Shops";
32
41 public string SuperAdminPassword { get; set; } = string.Empty;
42
51 public string BaseUrl { get; set; } = "http://localhost:5200";
52
61 public string ResolvedDataPath =>
62 Path.IsPathRooted(DataPath)
63 ? DataPath
64 : Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, DataPath));
65
90 public static ShopOptions From(IConfiguration cfg)
91 {
92 var opt = new ShopOptions();
93 cfg.GetSection(Section).Bind(opt);
94 return opt;
95 }
96}
static ShopOptions From(IConfiguration cfg)