Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginListener"/> class.
 /// </summary>
 /// <param name="protocolFactory">The protocol factory reference to create a protocol that the listerner will follow.</param>
 /// <param name="dosDefender">A reference to the DoS defender service implementation.</param>
 /// <param name="port">The port where this listener will listen.</param>
 public LoginListener(IProtocolFactory protocolFactory, IDoSDefender dosDefender, int port = DefaultLoginListenerPort)
     : base(port, protocolFactory?.CreateForType(OpenTibiaProtocolType.LoginProtocol), dosDefender)
 {
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManagementListener"/> class.
 /// </summary>
 /// <param name="protocolFactory">The protocol factory reference to create a protocol that the listerner will follow.</param>
 /// <param name="dosDefender">A reference to the DoS defender service implementation.</param>
 /// <param name="port">The port where this listener will listen.</param>
 public ManagementListener(IProtocolFactory protocolFactory, IDoSDefender dosDefender, int port = DefaultManagementListenerPort)
     : base(port, protocolFactory?.CreateForType(OpenTibiaProtocolType.ManagementProtocol), dosDefender)
 {
 }