Portfolio.Web 1.0.0.0
.NET, Blazor, WPF와 서비스 운영 경험을 프로젝트·이력·기술 스택 단위로 보여주는 개발자 포트폴리오입니다.
로딩중...
검색중...
일치하는것 없음
PortfolioOptions.cs
이 파일의 문서화 페이지로 가기
1using System.IO;
2using Microsoft.Extensions.Configuration;
3
5
14public class PortfolioOptions
15{
24 public string DataPath { get; set; } = "";
33 public string SuperAdminPassword { get; set; } = "v1.600000.1oy6GjdnZFCRZpxUY6R4tQ==.1r45CdqBw/2U22r0bF9KwzdIfyCVkkRt/VcoAg19LrQ=";
34
43 public string ResolvedDataPath =>
44 string.IsNullOrWhiteSpace(DataPath)
45 ? Path.Combine(AppContext.BaseDirectory, "App_Data", "Portfolio")
46 : DataPath;
47
72 public static PortfolioOptions From(IConfiguration cfg)
73 {
74 var o = new PortfolioOptions();
75 cfg.GetSection("Portfolio").Bind(o);
76 return o;
77 }
78}
static PortfolioOptions From(IConfiguration cfg)