Esempio n. 1
0
 public SocketListener(ILogger <SocketListener> logger, ILoggerFactory loggerFactory, ConnectionParameters parameters)
 {
     this.logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     this.loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
     this.parameters    = parameters;
     handlers           = new ConcurrentDictionary <Guid, SocketHandler>();
 }