void IGreeterRpc_NoReply.SessionParameter(EuNet.Core.ISession session) { var _writer_ = NetPool.DataWriterPool.Alloc(); try { _writer_.Write((int)IGreeterRpc_Enum.SessionParameter); SendRequest(_writer_); } finally { NetPool.DataWriterPool.Free(_writer_); } }
void ILoginRpc_NoReply.Login(string id, EuNet.Core.ISession session) { var _writer_ = NetPool.DataWriterPool.Alloc(); try { _writer_.Write((int)ILoginRpc_Enum.Login); _writer_.Write(id); SendRequest(_writer_); } finally { NetPool.DataWriterPool.Free(_writer_); } }
public async Task <string> SessionParameter(EuNet.Core.ISession session) { var _writer_ = NetPool.DataWriterPool.Alloc(); try { _writer_.Write((int)IGreeterRpc_Enum.SessionParameter); using (var _reader_ = await SendRequestAndReceive(_writer_)) { return(_reader_.ReadString()); } } finally { NetPool.DataWriterPool.Free(_writer_); } }
public async Task <int> Login(string id, EuNet.Core.ISession session) { var _writer_ = NetPool.DataWriterPool.Alloc(); try { _writer_.Write((int)ILoginRpc_Enum.Login); _writer_.Write(id); using (var _reader_ = await SendRequestAndReceive(_writer_)) { return(_reader_.ReadInt32()); } } finally { NetPool.DataWriterPool.Free(_writer_); } }
public abstract Task <string> SessionParameter(EuNet.Core.ISession session);
public abstract Task <int> Login(string id, EuNet.Core.ISession session);