public SessionManager(GlobalConfiguration globalConfiguration, IHostStateService hostStateService, Session.Factory sessionFactory, IRelayStateService relayStateService, ISteamManager steamManager) { var relayEndPoint = new IPEndPoint(IPAddress.Any, globalConfiguration.ListenerPort); _listener = new TcpListener(relayEndPoint); _sessionFactory = sessionFactory; _relayStateService = relayStateService; _steamManager = steamManager; MaxSessions = 1000; hostStateService.StateChanged += (sender, state) => { switch (state) { case HostState.Online: { _listener.Start(OnConnectionAccepted); break; } case HostState.Off: { Stop(); break; } } }; }
public SignInSteam(ISteamManager steamManager, IRelayStateService relayStateService, ISessionManager sessionManager, IAccountRepository accountRepository, ILoginQueueService loginQueueService) : base(relayStateService, sessionManager, accountRepository, loginQueueService) { _steamManager = steamManager; _accountRepository = accountRepository; }
public SteamListAccounts(ISteamManager steamManager, IAccountRepository accountRepository) { _steamManager = steamManager; _accountRepository = accountRepository; }