Пример #1
0
 public GlobalSetting(string displayName, string name, string value, string group, string description, GlobalSettingScope scope)
     : this(name, value)
 {
     this.DisplayName = displayName;
     this.Group       = group;
     this.Description = description;
     this.Scope       = scope;
 }
Пример #2
0
 public async Task <string> GetValueAsync(string name, GlobalSettingScope scope = GlobalSettingScope.Application)
 {
     return(await Task.FromResult(GlobalSettings.FirstOrDefault(x => x.Name == name && x.Scope == scope)?.Value));
 }