Beispiel #1
0
 public StartupWizardService(IServerConfigurationManager config, IServerApplicationHost appHost, IUserManager userManager, IConnectManager connectManager)
 {
     _config         = config;
     _appHost        = appHost;
     _userManager    = userManager;
     _connectManager = connectManager;
 }
Beispiel #2
0
 public AuthService(IUserManager userManager, IAuthorizationContext authorizationContext, IServerConfigurationManager config, IConnectManager connectManager, ISessionManager sessionManager)
 {
     AuthorizationContext = authorizationContext;
     _config = config;
     SessionManager = sessionManager;
     ConnectManager = connectManager;
     UserManager = userManager;
 }
 public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager)
 {
     _httpClient = httpClient;
     _appPaths = appPaths;
     _logger = logger;
     _networkManager = networkManager;
     _connectManager = connectManager;
 }
 public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager)
 {
     _httpClient     = httpClient;
     _appPaths       = appPaths;
     _logger         = logger;
     _networkManager = networkManager;
     _connectManager = connectManager;
 }
Beispiel #5
0
 public AuthService(IUserManager userManager, IAuthorizationContext authorizationContext, IServerConfigurationManager config, IConnectManager connectManager, ISessionManager sessionManager)
 {
     AuthorizationContext = authorizationContext;
     _config        = config;
     SessionManager = sessionManager;
     ConnectManager = connectManager;
     UserManager    = userManager;
 }
Beispiel #6
0
 public StartupWizardService(IServerConfigurationManager config, IHttpClient httpClient, IServerApplicationHost appHost, IUserManager userManager, IConnectManager connectManager, IMediaEncoder mediaEncoder)
 {
     _config         = config;
     _appHost        = appHost;
     _userManager    = userManager;
     _connectManager = connectManager;
     _mediaEncoder   = mediaEncoder;
     _httpClient     = httpClient;
 }
Beispiel #7
0
 public StartupWizardService(IServerConfigurationManager config, IServerApplicationHost appHost, IUserManager userManager, IConnectManager connectManager, ILiveTvManager liveTvManager, IMediaEncoder mediaEncoder)
 {
     _config         = config;
     _appHost        = appHost;
     _userManager    = userManager;
     _connectManager = connectManager;
     _liveTvManager  = liveTvManager;
     _mediaEncoder   = mediaEncoder;
 }
 /// <summary>
 /// Закрываем сессию
 /// </summary>
 internal void CloseHandlers()
 {
     if (!closed)
     {
         closed = true;
         Close();
         connectHandler = null;
         connectInfo    = null;
     }
 }
 public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager, IApplicationHost appHost, IFileSystem fileSystem)
 {
     _httpClient = httpClient;
     _appPaths = appPaths;
     _logger = logger;
     _networkManager = networkManager;
     _connectManager = connectManager;
     _appHost = appHost;
     _fileSystem = fileSystem;
 }
Beispiel #10
0
 public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager, IApplicationHost appHost, IFileSystem fileSystem)
 {
     _httpClient     = httpClient;
     _appPaths       = appPaths;
     _logger         = logger;
     _networkManager = networkManager;
     _connectManager = connectManager;
     _appHost        = appHost;
     _fileSystem     = fileSystem;
 }
        public HttpClientSession(IConnectManager connectHandler, IConnectionInfo connection, GameContext aContext)
            : base(connectHandler, connection)
        {
            context = aContext;

            addMessageHandler(inGameCreated, OnGameCreated);
            addMessageHandler(inGameJoined, OnGameJoined);
            addMessageHandler(inMoveMaked, OnMakeMove);
            addMessageHandler(inGameState, OnGameState);
            addMessageHandler(inExit, OnExit);
        }
Beispiel #12
0
 public ConnectEntryPoint(IHttpClient httpClient, IApplicationPaths appPaths, ILogger logger, INetworkManager networkManager, IConnectManager connectManager, IApplicationHost appHost, IFileSystem fileSystem, ITimerFactory timerFactory, IEncryptionManager encryption)
 {
     _httpClient     = httpClient;
     _appPaths       = appPaths;
     _logger         = logger;
     _networkManager = networkManager;
     _connectManager = connectManager;
     _appHost        = appHost;
     _fileSystem     = fileSystem;
     _timerFactory   = timerFactory;
     _encryption     = encryption;
 }
Beispiel #13
0
        public TcpSession(IConnectManager connectHandler, IConnectionInfo connection, GameContext aContext)
            : base(connectHandler, connection)
        {
            context   = aContext;
            signature = 20100;
            messageID = 0;

            MessageHandler[] inHandlers = new MessageHandler[inMessageCount];
            inHandlers[inGameInfo]      = new MessageHandler(OnGameInfo);
            inHandlers[inMoveInfo]      = new MessageHandler(OnMoveInfo);
            inHandlers[inEndGame]       = new MessageHandler(OnEndGame);
            inHandlers[inInterruptGame] = new MessageHandler(OnInterruptGame);
            SetInMessageHandlers(inHandlers);
        }
 public ConnectService(IConnectManager connectManager, ISessionManager sessionManager)
 {
     _connectManager = connectManager;
     _sessionManager = sessionManager;
 }
Beispiel #15
0
 public HttpSessionBasedOnJson(IConnectManager connManager, IConnectionInfo connection)
     : base(connManager, connection)
 {
 }
Beispiel #16
0
 public ConnectService(IConnectManager connectManager, ISessionManager sessionManager, IAuthorizationContext authContext)
 {
     _connectManager = connectManager;
     _sessionManager = sessionManager;
     _authContext    = authContext;
 }
Beispiel #17
0
 public ConnectService(IConnectManager connectManager, IUserManager userManager)
 {
     _connectManager = connectManager;
     _userManager    = userManager;
 }
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="asocketHandler">Сервер, который содал сессию</param>
 /// <param name="aConnection">Объект соединение</param>
 public Session(IConnectManager connectHandler, IConnectionInfo connection)
 {
     Open(connectHandler, connection);
 }
 public ConnectService(IConnectManager connectManager)
 {
     _connectManager = connectManager;
 }
 public TcpSession(IConnectManager connectHandler, IConnectionInfo connection)
     : base(connectHandler, connection)
 {
     SetInMessageHandlers(null);
 }
Beispiel #21
0
 public AuthorizationContext(IAuthenticationRepository authRepo, IConnectManager connectManager)
 {
     _authRepo       = authRepo;
     _connectManager = connectManager;
 }
Beispiel #22
0
 public AuthorizationContext(IAuthenticationRepository authRepo, IConnectManager connectManager)
 {
     _authRepo = authRepo;
     _connectManager = connectManager;
 }
 public void Open(IConnectManager aConnectHandler, IConnectionInfo connection)
 {
     connectHandler = aConnectHandler;
     connectInfo    = connection;
     closed         = false;
 }
 public HttpSession(IConnectManager connectHandler, IConnectionInfo connection)
     : base(connectHandler, connection)
 {
 }