本文整理汇总了C#中ISettingService.GetCurrentSetting方法的典型用法代码示例。如果您正苦于以下问题:C# ISettingService.GetCurrentSetting方法的具体用法?C# ISettingService.GetCurrentSetting怎么用?C# ISettingService.GetCurrentSetting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISettingService
的用法示例。
在下文中一共展示了ISettingService.GetCurrentSetting方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MandrillNotifierEmailer
public MandrillNotifierEmailer(IUrlConstructor urlConstructor, ISettingService settingService)
{
_setting= settingService.GetCurrentSetting();
_urlConstructor = urlConstructor;
if (_setting.UseMandrill)
{
_api = new MandrillApi(_setting.MandrillApiKey);
}
}
示例2: AppFlowMetadata
public AppFlowMetadata(ISettingService settingService)
{
_setting = settingService.GetCurrentSetting();
_flow = new GoogleAuthorizationCodeFlow(
new GoogleAuthorizationCodeFlow.Initializer
{
ClientSecrets =
new ClientSecrets
{
ClientId = _setting.GoogleClientId,
ClientSecret = _setting.GoogleClientSecret
},
Scopes = new[] { DriveService.Scope.Drive },
DataStore = MemoryDataStore.Instance
});
}
示例3: GoogleDriveFolderCreator
public GoogleDriveFolderCreator(ISettingService settingService)
{
_setting = settingService.GetCurrentSetting();
EnsureService();
}