public MainMenuViewModel(IStoreFolderPathProvider storeFolderPathProvider, INavigator navigator, IStateService stateService, IBlockUIService blockUIService, IHubClientConnection hubClientConnection) { _storeFolderPathProvider = storeFolderPathProvider; _navigator = navigator; _stateService = stateService; _blockUIService = blockUIService; _hubClientConnection = hubClientConnection; AuthenticateBackground(); }
public GameTablesViewModel(IStoreFolderPathProvider storeFolderPathProvider, IStateService stateService, INavigator navigator, IBlockUIService blockUIService, IDispatcher dispatcher, IMainHubApi mainHubClient) { _gameTables = new ObservableCollection <GameTable>(); _stateService = stateService; _navigator = navigator; _blockUIService = blockUIService; _dispatcher = dispatcher; _mainHubClient = mainHubClient; _isDisposed = false; _mainHubClient.CreatedNewGameTable += OnCreatedGameTable; }