Example #1
0
        public TServer SetSocketServerConfig(ISocketServerConfig sckServCnfg)
        {
            socketServerConfig = sckServCnfg.DeepClone();
            if (socketServerConfig == null)
            {
                throw new AbandonedMutexException(nameof(sckServCnfg));
            }

            return(this as TServer);
        }
Example #2
0
        public virtual ISocketServer SetServerConfig(ISocketServerConfig cnfg)
        {
            if (cnfg == null)
            {
                throw new ArgumentNullException(nameof(cnfg));
            }

            this.config = cnfg;

            return(this);
        }