public DummyService( ILogger <DummyService> logger, IOptions <DummyOptions> options, IUpdateableOptions <DummyOptions> updateableOptions, ILiveUpdateableOptions <DummyOptions> liveUpdateableOptions, ILiveOptions <DummyOptions> liveOptions) { this.logger = logger.ThrowIfNull(nameof(logger)); this.dummyOptions = options.ThrowIfNull(nameof(options)); this.updateableDummyOptions = updateableOptions.ThrowIfNull(nameof(updateableOptions)); this.liveOptions = liveOptions.ThrowIfNull(nameof(liveOptions)); this.liveUpdateableOptions = liveUpdateableOptions.ThrowIfNull(nameof(liveUpdateableOptions)); }
public ApplicationLauncher( ILiveOptions <ApplicationConfiguration> liveOptions, ICredentialManager credentialManager, IMutexHandler mutexHandler, ILogger <ApplicationLauncher> logger, IPrivilegeManager privilegeManager) { this.logger = logger.ThrowIfNull(nameof(logger)); this.mutexHandler = mutexHandler.ThrowIfNull(nameof(mutexHandler)); this.credentialManager = credentialManager.ThrowIfNull(nameof(credentialManager)); this.liveOptions = liveOptions.ThrowIfNull(nameof(liveOptions)); this.privilegeManager = privilegeManager.ThrowIfNull(nameof(privilegeManager)); }
public IconRetriever( ILogger <IconRetriever> logger, IHttpClient <IconRetriever> httpClient, ILiveOptions <ApplicationConfiguration> liveOptions) { this.logger = logger.ThrowIfNull(nameof(logger)); this.httpClient = httpClient.ThrowIfNull(nameof(httpClient)); this.liveOptions = liveOptions.ThrowIfNull(nameof(liveOptions)); this.httpClient.BaseAddress = new Uri(BaseUrl); if (Directory.Exists(IconsDirectoryName) is false) { Directory.CreateDirectory(IconsDirectoryName); } }
public ScreenChoiceView( IViewManager viewManager, IScreenManager screenManager, ILiveOptions <ApplicationConfiguration> liveOptions, IApplicationLauncher applicationLauncher) { this.viewManager = viewManager.ThrowIfNull(nameof(viewManager)); this.screenManager = screenManager.ThrowIfNull(nameof(screenManager)); this.liveOptions = liveOptions.ThrowIfNull(nameof(liveOptions)); this.applicationLauncher = applicationLauncher.ThrowIfNull(nameof(applicationLauncher)); this.InitializeComponent(); this.selectedId = this.liveOptions.Value.DesiredGuildwarsScreen; this.CanTest = applicationLauncher.IsGuildwarsRunning; this.SetupView(); }