protected EasyTcp(ConnectOptions options) { _easyBase = new EasyBase(options, ConnectMode.Tcp) { Received = Received, SendFunctionAsync = SendAsync }; ConnectOptions = options ?? throw new ArgumentNullException(nameof(options)); }
protected EasyUdp([NotNull] ConnectOptions options) { ConnectOptions = options ?? throw new ArgumentNullException(nameof(options)); _easyBase = new EasyBase(options, ConnectMode.Udp) { Received = Received, SendFunctionAsync = SendAsync }; }