ShopPlatform.Web
1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
ShopOptions.cs
이 파일의 문서화 페이지로 가기
1
namespace
ShopPlatform.Models
;
2
11
public
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
}
ShopPlatform.Models
Definition
CartItem.cs:1
ShopPlatform.Models.ShopOptions
Definition
ShopOptions.cs:12
ShopPlatform.Models.ShopOptions.BaseUrl
string BaseUrl
Definition
ShopOptions.cs:51
ShopPlatform.Models.ShopOptions.SuperAdminPassword
string SuperAdminPassword
Definition
ShopOptions.cs:41
ShopPlatform.Models.ShopOptions.ResolvedDataPath
string ResolvedDataPath
Definition
ShopOptions.cs:61
ShopPlatform.Models.ShopOptions.Section
const string Section
Definition
ShopOptions.cs:21
ShopPlatform.Models.ShopOptions.DataPath
string DataPath
Definition
ShopOptions.cs:31
ShopPlatform.Models.ShopOptions.From
static ShopOptions From(IConfiguration cfg)
Definition
ShopOptions.cs:90
Models
ShopOptions.cs
다음에 의해 생성됨 :
1.17.0