Families.Web 1.0.0.0
사진, 동영상, 글, 댓글과 반응을 가족끼리만 공유하는 비공개 앨범·타임라인 서비스입니다.
로딩중...
검색중...
일치하는것 없음
FamilyOptions.cs
이 파일의 문서화 페이지로 가기
1using System.IO;
2using Microsoft.Extensions.Configuration;
3
5
14public sealed class FamilyOptions
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 {
45 get
46 {
47 if (string.IsNullOrWhiteSpace(DataPath))
48 return Path.Combine(AppContext.BaseDirectory, "App_Data", "Family");
49
50 return Path.IsPathRooted(DataPath)
51 ? DataPath
52 : Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, DataPath));
53 }
54 }
55
80 public static FamilyOptions From(IConfiguration configuration)
81 {
82 var opts = new FamilyOptions();
83 configuration.GetSection("Family").Bind(opts);
84 return opts;
85 }
86}
static FamilyOptions From(IConfiguration configuration)