예제 #1
0
파일: RpcCall.cs 프로젝트: apkbox/closetrpc
 public void Serialize(BinaryWriter writer)
 {
     writer.Write((uint)(this.IsAsync ? 1 : 0));
     SerializationHelpers.WriteStringSafe(writer, this.ServiceName);
     SerializationHelpers.WriteStringSafe(writer, this.MethodName);
     writer.Write((uint)this.ObjectId);
     SerializationHelpers.WriteBytesSafe(writer, this.CallData);
 }
예제 #2
0
 public void Serialize(BinaryWriter writer)
 {
     writer.Write((int)this.Status);
     SerializationHelpers.WriteBytesSafe(writer, this.ResultData);
 }