本文整理汇总了C#中IApplicationSettings类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationSettings类的具体用法?C# IApplicationSettings怎么用?C# IApplicationSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationSettings类属于命名空间,在下文中一共展示了IApplicationSettings类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShipTimeClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="ShipTimeClientRepository" /> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public ShipTimeClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.shipTimeClient = DIContainer.Instance.Resolve<IShipTimeClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ShipTimeServiceBaseAddress) });
}
}
示例2: Chat
public Chat(IApplicationSettings settings, IResourceProcessor resourceProcessor, IChatService service, IJabbrRepository repository)
{
_settings = settings;
_resourceProcessor = resourceProcessor;
_service = service;
_repository = repository;
}
示例3: LoginController
public LoginController(IPlatformProxy platformProxy,IPlatformRoutes platformRoutes,IApplicationSettings applicationSettings, IAppWallServices appWallServices)
{
_platformProxy = platformProxy;
_platformRoutes = platformRoutes;
_applicationSettings = applicationSettings;
_appWallServices = appWallServices;
}
示例4: DepartureExceptionClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="DepartureExceptionClientRepository"/> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public DepartureExceptionClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.departureExceptionClient = DIContainer.Instance.Resolve<IDepartureExceptionClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ReportingServiceBaseAddress) });
}
}
示例5: GuestClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="GuestClientRepository" /> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public GuestClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.guestReservationClient = DIContainer.Instance.Resolve<IGuestReservationClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.GuestServiceBaseAddress) });
}
}
示例6: CoreMiniSqlQueryConfiguration
/// <summary>Initializes a new instance of the <see cref="CoreMiniSqlQueryConfiguration"/> class.</summary>
/// <param name="settings">The settings.</param>
public CoreMiniSqlQueryConfiguration(IApplicationSettings settings)
{
_settings = settings;
_settingsWrapper = new CoreMiniSqlQuerySettingsWrapper(_settings);
_settingsWrapper.PropertyChanged += ProxyPropertyChanged;
_isDirty = false;
}
示例7: CBPSummaryReportClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="CBPSummaryReportClientRepository"/> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public CBPSummaryReportClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.cbpSummaryClient = DIContainer.Instance.Resolve<ICbpSummaryClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ReportingServiceBaseAddress) });
}
}
示例8: LandingController
public LandingController(IPlatformProxy platformProxy, IBoardsRepository boardsRepository, IPlatformSettings platformSettings, IApplicationSettings applicationSettings)
{
_platformProxy = platformProxy;
_boardsRepository = boardsRepository;
_platformSettings = platformSettings;
_applicationSettings = applicationSettings;
}
示例9: VisitorManifestClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="VisitorManifestClientRepository" /> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public VisitorManifestClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.visitorManifestClient = DIContainer.Instance.Resolve<IVisitorManifestClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.ReportingServiceBaseAddress) });
}
}
示例10: GetContentProviders
private static IList<IContentProvider> GetContentProviders(IApplicationSettings settings)
{
// Use MEF to locate the content providers in this assembly
var compositionContainer = new CompositionContainer(new AssemblyCatalog(typeof(ResourceProcessor).Assembly));
compositionContainer.ComposeExportedValue(settings);
return compositionContainer.GetExportedValues<IContentProvider>().ToList();
}
示例11: PlatformRoutes
public PlatformRoutes(IApplicationSettings applicationSettings,IPlatformSettings platformSettings)
{
//RewardsLogin = platformSettings.PlatformHomePage + String.Format("/secured/app/{0}/rewards-sign-up", applicationSettings.AppId);
Login = platformSettings.SywWebSiteUrl + String.Format("/secured/app/{0}/login", applicationSettings.AppId);
RegularCanvas = String.Format("/app/{0}/r/", applicationSettings.AppId);
LandingPage = String.Format("/app/{0}/l/", applicationSettings.AppId);
}
示例12: MembershipValidator
public MembershipValidator(IApplicationSettings applicationSettings, IEncryptor encryptor)
{
_applicationSettings = applicationSettings;
_encryptor = encryptor;
_passwordRegEx = _applicationSettings.PasswordStrengthRegularExpression;
_requiresUniqueEmail = _applicationSettings.RequiresUniqueEmail;
}
示例13: FormatEntry
public static string FormatEntry(ISerialization serialization, IApplicationSettings applicationSettings, object obj)
{
if (obj == null)
return null;
return serialization.ToJson(obj, new[] { "Password" }, applicationSettings.LogJsonFormatted);
}
示例14: AuthenticateUserClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticateUserClientRepository" /> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public AuthenticateUserClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.authenticateUserClient = DIContainer.Instance.Resolve<IAuthenticateUserClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.AuthenticationServiceBaseAddress) });
}
}
示例15: PersonStatusClientRepository
/// <summary>
/// Initializes a new instance of the <see cref="PersonStatusClientRepository" /> class.
/// </summary>
/// <param name="applicationSettings">The application settings.</param>
public PersonStatusClientRepository(IApplicationSettings applicationSettings)
{
if (applicationSettings != null)
{
this.personStatusClient = DIContainer.Instance.Resolve<IPersonStatusesClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonStatusServiceBaseAddress) });
}
}