private void serverAsynchronous(fastCSharp.code.cSharp.tcpBase.subByteArrayBuffer data, Action <fastCSharp.net.returnValue <tcpServer._o0> > _onReturn_, fastCSharp.net.callback <fastCSharp.net.returnValue <tcpServer._o0> > _callback_, bool _isTask_) { fastCSharp.net.returnValue <tcpServer._o0> _returnType_ = new fastCSharp.net.returnValue <tcpServer._o0>(); try { fastCSharp.net.tcp.commandClient.streamCommandSocket _socket_ = TcpCommandClient.StreamSocket; if (_socket_ != null) { tcpServer._i0 _inputParameter_ = new tcpServer._i0 { data = data, }; _socket_.Get(_onReturn_, _callback_, _c0, ref _inputParameter_, ref _returnType_.Value, _isTask_); return; } _returnType_.Type = fastCSharp.net.returnValue.type.ClientDisposed; } catch (Exception _error_) { _returnType_.Type = fastCSharp.net.returnValue.type.ClientException; fastCSharp.log.Error.Add(_error_, null, false); } if (_callback_ != null) { _callback_.Callback(ref _returnType_); } else if (_onReturn_ != null) { _onReturn_(_returnType_); } }
private void add(int left, int right, Action <fastCSharp.net.returnValue <tcpServer._o0> > _onReturn_, fastCSharp.net.callback <fastCSharp.net.returnValue <tcpServer._o0> > _callback_, bool _isTask_) { fastCSharp.net.returnValue <tcpServer._o0> _returnType_ = new fastCSharp.net.returnValue <tcpServer._o0>(); try { fastCSharp.net.tcp.commandClient.streamCommandSocket _socket_ = TcpCommandClient.StreamSocket; if (_socket_ != null) { tcpServer._i0 _inputParameter_ = new tcpServer._i0 { left = left, right = right, }; _socket_.Get(_onReturn_, _callback_, _c0, ref _inputParameter_, ref _returnType_.Value, _isTask_); return; } _returnType_.Type = fastCSharp.net.returnValue.type.ClientDisposed; } catch (Exception _error_) { _returnType_.Type = fastCSharp.net.returnValue.type.ClientException; fastCSharp.log.Error.Add(_error_, null, false); } if (_callback_ != null) { _callback_.Callback(ref _returnType_); } else if (_onReturn_ != null) { _onReturn_(_returnType_); } }