/// <inheritdoc/> /// <summary> /// Initializes a new instance of the <see cref="AuthClient"/> class and binds it with a network session. /// </summary> /// <param name="authenticator">The <see cref="IAuthenticator"/> to use for authenticating the user.</param> /// <param name="nexus">The <see cref="IAuthToNexusRequestHandler"/> to query for... world stuff.</param> /// <param name="serverSession"><inheritdoc/></param> /// <param name="packetFactory"><inheritdoc/></param> /// <param name="logger"><inheritdoc/></param> public AuthClient(IAuthenticator authenticator, IAuthToNexusRequestHandler nexus, IServerSession serverSession, IPacketFactory packetFactory, ILogger logger) : base(serverSession, packetFactory, logger) { this.authenticator = authenticator; this.nexus = nexus; this.LoginAttempts = 0; this.State = AuthClientState.NotLoggedIn; }
/// <inheritdoc/> /// <summary> /// Initializes a new instance of the <see cref="AuthClient"/> class and binds it with a network session. /// </summary> /// <param name="authenticator">The <see cref="IAuthenticator"/> to use for authenticating the user.</param> /// <param name="nexus">The <see cref="IAuthToNexusRequestHandler"/> to query for... world stuff.</param> /// <param name="serverSession"><inheritdoc/></param> /// <param name="packetFactory"><inheritdoc/></param> /// <param name="logger"><inheritdoc/></param> public AuthClient(IAuthenticator authenticator, IAuthToNexusRequestHandler nexus, IServerSession serverSession, IPacketFactory packetFactory, ILogger logger) : base(serverSession, packetFactory, logger) { _authenticator = authenticator; _nexus = nexus; LoginAttempts = 0; State = AuthClientState.NotLoggedIn; }