Esempio n. 1
0
        public virtual ISocketServer SetMsgFilterFactory(IMsgFilterFactory msgFltrFctry)
        {
            if (msgFltrFctry == null)
            {
                throw new ArgumentNullException(nameof(msgFltrFctry));
            }

            msgFilterFactory = msgFltrFctry;

            return(this);
        }
Esempio n. 2
0
 public TServer SetMsgFilterFactory(IMsgFilterFactory msgFltrFctry)
 {
     msgFilterFactory = msgFltrFctry ?? throw new ArgumentNullException(nameof(msgFltrFctry));
     return(this as TServer);
 }