Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientConnectionCountPlugin"/> class.
 /// </summary>
 /// <param name="connectServerSettings">The settings.</param>
 public ClientConnectionCountPlugin(IConnectServerSettings connectServerSettings)
 {
     this.connectServerSettings = connectServerSettings;
     this.clientCounter         = new ClientConnectionCounter();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientConnectionCountPlugin" /> class.
 /// </summary>
 /// <param name="connectServerSettings">The settings.</param>
 /// <param name="logger">The logger.</param>
 public ClientConnectionCountPlugin(IConnectServerSettings connectServerSettings, ILogger <ClientConnectionCountPlugin> logger)
 {
     this.connectServerSettings = connectServerSettings;
     this.logger        = logger;
     this.clientCounter = new ClientConnectionCounter();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientConnectionCountPlugin"/> class.
 /// </summary>
 /// <param name="settings">The settings.</param>
 public ClientConnectionCountPlugin(Settings settings)
 {
     this.settings      = settings;
     this.clientCounter = new ClientConnectionCounter();
 }