public AuthenticationHandler(ILoginServer server, ILoginPacketFactory loginPacketFactory, IDatabase database, IPasswordHasher <DbUser> passwordHasher, UserManager <DbUser> userManager)
 {
     _server             = server;
     _loginPacketFactory = loginPacketFactory;
     _database           = database;
     _passwordHasher     = passwordHasher;
     _userManager        = userManager;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new <see cref="LoginHandler"/> instance.
 /// </summary>
 /// <param name="logger">Logger.</param>
 /// <param name="loginConfiguration">Login server configuration.</param>
 /// <param name="loginServer">Login server instance.</param>
 /// <param name="database">Database service.</param>
 /// <param name="coreServer">Core server.</param>
 /// <param name="loginPacketFactory">Login server packet factory.</param>
 public LoginHandler(ILogger <LoginHandler> logger, IOptions <LoginConfiguration> loginConfiguration, ILoginServer loginServer, IRhisisDatabase database, ICoreServer coreServer, ILoginPacketFactory loginPacketFactory)
 {
     _logger             = logger;
     _loginConfiguration = loginConfiguration.Value;
     _loginServer        = loginServer;
     _database           = database;
     _coreServer         = coreServer;
     _loginPacketFactory = loginPacketFactory;
 }
Beispiel #3
0
 public SelectServerHandler(ILoginServer server, ILoginPacketFactory loginPacketFactory)
 {
     _server             = server;
     _loginPacketFactory = loginPacketFactory;
 }
Beispiel #4
0
        /// <summary>
        /// Initializes the current <see cref="LoginClient"/> instance.
        /// </summary>
        /// <param name="loginServer">Parent login server.</param>
        /// <param name="logger">Logger.</param>
        /// <param name="handlerInvoker">Handler invoker.</param>
        /// <param name="loginPacketFactory">Login packet factory.</param>
        public void Initialize(ILoginServer loginServer, ILogger <LoginClient> logger, IHandlerInvoker handlerInvoker, ILoginPacketFactory loginPacketFactory)
        {
            _loginServer    = loginServer;
            _logger         = logger;
            _handlerInvoker = handlerInvoker;

            loginPacketFactory.SendWelcome(this, SessionId);
        }
Beispiel #5
0
 /// <summary>
 /// Creates a new <see cref="LoginClient"/> instance.
 /// </summary>
 public LoginClient(ILogger <ImgeneusClient> logger, ICryptoManager cryptoManager, IServiceProvider serviceProvider, IHandlerInvoker handlerInvoker, ILoginPacketFactory loginPacketFactory) :
     base(logger, cryptoManager, serviceProvider)
 {
     _handlerInvoker     = handlerInvoker;
     _loginPacketFactory = loginPacketFactory;
 }