Exemplo n.º 1
0
        private readonly ServerListener listener;     // the TCP listener


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public ServerContext(CoreLogic coreLogic, ArchiveHolder archiveHolder, ServerListener listener)
        {
            this.coreLogic     = coreLogic ?? throw new ArgumentNullException(nameof(coreLogic));
            this.archiveHolder = archiveHolder ?? throw new ArgumentNullException(nameof(archiveHolder));
            this.listener      = listener ?? throw new ArgumentNullException(nameof(listener));
        }