Ejemplo n.º 1
0
        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
            };
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
 public StreamService(IAddonService addonService)
 {
     _addonService = addonService;
 }
Ejemplo n.º 7
0
 public AddonsViewModel(IEventAggregator eventAggregator, IAddonService addonService)
 {
     _eventAggregator = eventAggregator;
     _eventAggregator.Subscribe(this);
     _addonService = addonService;
 }
Ejemplo n.º 8
0
 public MetaService(IAddonService addonService)
 {
     _addonService = addonService;
 }