示例#1
0
        public StateHandler(IDbContextLocator locator, IMessageBusProxy messageBus)
        {
            _locator = locator;
            messageBus.Listen <StatusChanged>()
            .Subscribe(Handle);
            messageBus.Listen <ContentStatusChanged>()
            .Subscribe(Handle);
            messageBus.Listen <ContentInstalled>()
            .Subscribe(Handle);
            messageBus.Listen <UninstallActionCompleted>()
            .Subscribe(Handle);
            messageBus.Listen <GameLaunched>()
            .Subscribe(Handle);
            messageBus.Listen <GameTerminated>()
            .Subscribe(Handle);
            messageBus.Listen <RecentItemRemoved>()
            .Subscribe(Handle);
            messageBus.Listen <ContentUsed>()
            .Subscribe(Handle);
            messageBus.Listen <ActionNotification>()
            .Subscribe(Handle);

            messageBus.Listen <ExtensionStateChanged>()
            .ConcatTask(Handle)
            .Subscribe();

            _subject2 = new Subject <ActionTabState>();
            _subject  = new Subject <StatusModel>();


            _subject.Subscribe(Handle);
            _subject2.ConcatTask(x => GetActionStateUpdate(x).Raise())
            .Subscribe();
        }
示例#2
0
 public GetServersInfoHandler(IDbContextLocator dbContextLocator, IServerQueryFactory sqf,
                              IRequestScopeLocator scopeLocator)
     : base(dbContextLocator)
 {
     _sqf          = sqf;
     _scopeLocator = scopeLocator;
 }
        public StateHandler(IDbContextLocator locator, IMessageBusProxy messageBus) {
            _locator = locator;
            messageBus.Listen<StatusChanged>()
                .Subscribe(Handle);
            messageBus.Listen<ContentStatusChanged>()
                .Subscribe(Handle);
            messageBus.Listen<ContentInstalled>()
                .Subscribe(Handle);
            messageBus.Listen<UninstallActionCompleted>()
                .Subscribe(Handle);
            messageBus.Listen<GameLaunched>()
                .Subscribe(Handle);
            messageBus.Listen<GameTerminated>()
                .Subscribe(Handle);
            messageBus.Listen<RecentItemRemoved>()
                .Subscribe(Handle);
            messageBus.Listen<ContentUsed>()
                .Subscribe(Handle);
            messageBus.Listen<ActionNotification>()
                .Subscribe(Handle);

            messageBus.Listen<ExtensionStateChanged>()
                .ConcatTask(Handle)
                .Subscribe();

            _subject2 = new Subject<ActionTabState>();
            _subject = new Subject<StatusModel>();


            _subject.Subscribe(Handle);
            _subject2.ConcatTask(x => GetActionStateUpdate(x).Raise())
                .Subscribe();
        }
 public ActionNotifierDecorator(IMediator decorated, IDbContextLocator locator, IGameSwitcher gameSwitcher,
                                INetworkContentSyncer networkSyncer) : base(decorated)
 {
     _locator       = locator;
     _gameSwitcher  = gameSwitcher;
     _networkSyncer = networkSyncer;
 }
 public GameSwitcher(IDbContextLocator locator, ISetupGameStuff setup, IGameLocker locker,
     IStateHandler stateHandler) {
     _locator = locator;
     _setup = setup;
     _locker = locker;
     _stateHandler = stateHandler;
 }
示例#6
0
 public GameSwitcher(IDbContextLocator locator, ISetupGameStuff setup, IGameLocker locker,
                     IStateHandler stateHandler)
 {
     _locator      = locator;
     _setup        = setup;
     _locker       = locker;
     _stateHandler = stateHandler;
 }
示例#7
0
 public AddExternalModHandler(IDbContextLocator dbContextLocator,
                              IContentInstallationService contentInstallation, IExternalFileDownloader fd,
                              IExternalDownloadStateHandler state)
     : base(dbContextLocator)
 {
     _contentInstallation = contentInstallation;
     _fd    = fd;
     _state = state;
 }
示例#8
0
 public UploadFolderHandler(IDbContextLocator dbContextLocator, IFolderHandler folderHandler,
                            IQueueManager queueManager, IRsyncLauncher rsyncLauncher, IW6Api api)
     : base(dbContextLocator)
 {
     _folderHandler = folderHandler;
     _queueManager  = queueManager;
     _rsyncLauncher = rsyncLauncher;
     _api           = api;
 }
示例#9
0
 public RealVirtualityLauncher(IGameLauncherProcess processManager,
                               IPathConfiguration pathConfiguration, IFileWriter writer, IDbContextLocator contextLocator)
     : base(processManager)
 {
     if (writer == null)
     {
         throw new ArgumentNullException(nameof(writer));
     }
     _writer         = writer;
     _contextLocator = contextLocator;
     _parPath        = pathConfiguration.LocalDataPath.GetChildDirectoryWithName("games");
 }
 public SetupGameStuff(IDbContextLocator locator, IDbContextFactory factory,
     INetworkContentSyncer networkContentSyncer, /* ICacheManager cacheMan, */
     IGameLocker gameLocker, IStateHandler stateHandler, IAssemblyService ass) {
     _locator = locator;
     _factory = factory;
     _networkContentSyncer = networkContentSyncer;
     //_cacheMan = cacheMan;
     _gameLocker = gameLocker;
     _stateHandler = stateHandler;
     _timer = new TimerWithElapsedCancellationAsync(TimeSpan.FromMinutes(30), onElapsedNonBool: OnElapsed);
     _gameFactory = new GameFactory(ass);
 }
示例#11
0
 public SetupGameStuff(IDbContextLocator locator, IDbContextFactory factory,
                       INetworkContentSyncer networkContentSyncer, /* ICacheManager cacheMan, */
                       IGameLocker gameLocker, IStateHandler stateHandler, IAssemblyService ass)
 {
     _locator = locator;
     _factory = factory;
     _networkContentSyncer = networkContentSyncer;
     //_cacheMan = cacheMan;
     _gameLocker   = gameLocker;
     _stateHandler = stateHandler;
     _timer        = new TimerWithElapsedCancellationAsync(TimeSpan.FromMinutes(30), onElapsedNonBool: OnElapsed);
     _gameFactory  = new GameFactory(ass);
 }
示例#12
0
 public GetGameSettingsHandler(IDbContextLocator dbContextLocator, IGameSettingsViewModelFactory factory)
     : base(dbContextLocator)
 {
     _factory = factory;
 }
示例#13
0
 public OpenFolderHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
示例#14
0
 public PrepareFolderHandler(IDbContextLocator dbContextLocator, IFolderHandler folderHandler,
                             IDialogManager dialogManager) : base(dbContextLocator)
 {
     _folderHandler = folderHandler;
     _dialogManager = dialogManager;
 }
示例#15
0
 public SetupGameStuff(IDbContextLocator gameContextFactory, INetworkContentSyncer networkContentSyncer) {
     _gameContextFactory = gameContextFactory;
     _networkContentSyncer = networkContentSyncer;
 }
示例#16
0
 public GetGameMissionsHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
示例#17
0
 protected ApiDbCommandBase(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
示例#18
0
 protected ApiDbQueryBase(IDbContextLocator dbContextLocator) : base(dbContextLocator) {}
 public AuthProviderSettingsStorage(IDbContextLocator locator) {
     _locator = locator;
 }
示例#20
0
 public GetFoldersHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
示例#21
0
 public ImportPwsSettingsHandler(IDbContextLocator dbContextLocator, IPlayWithSixImporter importer)
     : base(dbContextLocator)
 {
     _importer = importer;
 }
 public DomainEventHandlerGrabber(IDbContextLocator contextFactory) {
     _contextFactory = contextFactory;
 }
示例#23
0
 public InstallContentHandler(IDbContextLocator dbContextLocator,
                              IContentInstallationService contentInstallation)
     : base(dbContextLocator)
 {
     _contentInstallation = contentInstallation;
 }
 protected DbRequestBase(IDbContextLocator dbContextLocator) {
     DbContextLocator = dbContextLocator;
 }
 public CollectionSyncer(IDbContextLocator locator, NetworkContentSyncer networkContentSyncer, IW6Api api) {
     _locator = locator;
     _networkContentSyncer = networkContentSyncer;
     _api = api;
 }
示例#26
0
 public CloseGameHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
 public NetworkContentSyncer(IDbContextLocator locator, IW6Api api) {
     _locator = locator;
     _collectionSyncer = new CollectionSyncer(locator, this, api);
 }
示例#28
0
 public GetStateHandler(IDbContextLocator dbContextLocator, IGameLockMonitor monitor, IStateHandler stateHandler)
     : base(dbContextLocator)
 {
     _monitor      = monitor;
     _stateHandler = stateHandler;
 }
示例#29
0
 protected ApiDbCommandBase(IDbContextLocator dbContextLocator) : base(dbContextLocator) {}
 public ContentEngineGameContext(IDbContextLocator contextLocator) {
     _contextLocator = contextLocator;
 }
示例#31
0
 public ResolveUserErrorHandler(IDbContextLocator dbContextLocator, IStateHandler handler)
     : base(dbContextLocator)
 {
     _handler = handler;
 }
示例#32
0
 public LaunchGameHandler(IDbContextLocator dbContextLocator, IGameLauncherFactory launcherFactory)
     : base(dbContextLocator)
 {
     _launcherFactory = launcherFactory;
 }
示例#33
0
 public DeleteCollectionHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
 public DomainEventHandlerGrabber(IDbContextLocator contextFactory)
 {
     _contextFactory = contextFactory;
 }
示例#35
0
 public SyncCollectionsHandler(IDbContextLocator dbContextLocator, INetworkContentSyncer contentSyncer)
     : base(dbContextLocator)
 {
     _contentSyncer = contentSyncer;
 }
 public FolderHandler(IDbContextLocator locator) {
     _locator = locator;
 }
示例#37
0
 public RetryQueueItemHandler(IDbContextLocator dbContextLocator, IQueueManager queueManager)
     : base(dbContextLocator)
 {
     _queueManager = queueManager;
 }
示例#38
0
 public GetServerAddressesHandler(IDbContextLocator dbContextLocator, IServerQueryFactory sqf,
                                  IRequestScopeLocator scopeLoc) : base(dbContextLocator)
 {
     _sqf      = sqf;
     _scopeLoc = scopeLoc;
 }
示例#39
0
 public PlayContentHandler(IDbContextLocator gameContext, IGameLauncherFactory factory,
                           IContentInstallationService contentInstallation) : base(gameContext)
 {
     _factory             = factory;
     _contentInstallation = contentInstallation;
 }
示例#40
0
 public SetLoginHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
 public SaveGeneralSettingsHandler(IDbContextLocator dbContextLocator) : base(dbContextLocator)
 {
 }
 public NetworkContentSyncer(IDbContextLocator locator) {
     _locator = locator;
 }
示例#43
0
 public PlayWithSixImporter(IDbContextLocator locator)
 {
     _locator = locator;
 }
示例#44
0
 public WhiteListFoldersHandler(IDbContextLocator dbContextLocator, IFolderHandler folderHandler)
     : base(dbContextLocator)
 {
     _folderHandler = folderHandler;
 }