public virtual ISocketServer SetMsgFilterFactory(IMsgFilterFactory msgFltrFctry) { if (msgFltrFctry == null) { throw new ArgumentNullException(nameof(msgFltrFctry)); } msgFilterFactory = msgFltrFctry; return(this); }
public TServer SetMsgFilterFactory(IMsgFilterFactory msgFltrFctry) { msgFilterFactory = msgFltrFctry ?? throw new ArgumentNullException(nameof(msgFltrFctry)); return(this as TServer); }