public SessionService( IAddonService addonService, IWarcraftService warcraftService, IWowUpService wowUpService) { _addonService = addonService; _wowUpService = wowUpService; var installedClientTypes = warcraftService.GetWowClientTypes(); var lastSelectedType = _wowUpService.GetLastSelectedClientType(); var initialClientType = installedClientTypes.Any() ? installedClientTypes.First() : WowClientType.None; // If the user has no stored type, or the type is no longer found just set it. if (lastSelectedType == WowClientType.None || !installedClientTypes.Any(ct => ct == lastSelectedType)) { _wowUpService.SetLastSelectedClientType(initialClientType); } else { initialClientType = lastSelectedType; } _sessionState = new SessionState { SelectedClientType = initialClientType, StatusText = string.Empty, UpdaterReady = false }; }
public UserSeatService(IPsaContextService contextService, IAddonService addonService, IOrganizationAddonService organizationAddonService, IMasterUserRepository masterUserRepository, IOrganizationService organizationService, IExternallyOwnedOrganizationService externallyOwnedOrganizationService) { ContextService = contextService; AddonService = addonService; OrganizationAddonService = organizationAddonService; MasterUserRepository = masterUserRepository; OrganizationService = organizationService; ExternallyOwnedOrganizationService = externallyOwnedOrganizationService; }
public ProfileSelectorViewModel(IEventAggregator eventAggregator, IAddonService addonService, IProfileService profileService, IGameService launcherService, IParameterService parameterService) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _addonService = addonService; _profileService = profileService; _launcherService = launcherService; _parameterService = parameterService; }
public GameService(IProcessAccessor processAccessor, IClipboardAccessor clipboardAccessor, ILogger logger, ISettingsService settingsService, IAddonService addonService, IParameterService parameterService, ISecurityService securityService) : base(logger) { _processAccessor = processAccessor; _clipboardAccessor = clipboardAccessor; _settingsService = settingsService; _addonService = addonService; _parameterService = parameterService; _securityService = securityService; LaunchSettings = new LaunchSettings(); }
public SettingsViewModel(IEventAggregator eventAggregator, IDialogCoordinator dialogCoordinator, IFileAccessor fileAccessor, ISettingsService settingsService, IAddonService addonService, IParameterService parameterService) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _dialogCoordinator = dialogCoordinator; _fileAccessor = fileAccessor; _settingsService = settingsService; _addonService = addonService; _parameterService = parameterService; Load(); }
public StreamService(IAddonService addonService) { _addonService = addonService; }
public AddonsViewModel(IEventAggregator eventAggregator, IAddonService addonService) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _addonService = addonService; }
public MetaService(IAddonService addonService) { _addonService = addonService; }