コード例 #1
0
        protected override void Act()
        {
            var stream = new MemoryStream();

            using (var writer = new HessianOutputWriter(stream))
            {
                Action.Invoke(writer);
                Data = stream.ToArray();
            }

            DebugWriteArray(Data);
        }
コード例 #2
0
 public void Serialize(HessianOutputWriter writer, object graph)
 {
     writer.WriteDouble((double)graph);
 }
コード例 #3
0
 public void Serialize(HessianOutputWriter writer, object graph)
 {
     writer.WriteDateTime((DateTime)graph);
 }
コード例 #4
0
 public void Serialize(HessianOutputWriter writer, object graph)
 {
     writer.WriteString((string)graph);
 }
コード例 #5
0
 public void Serialize(HessianOutputWriter writer, object graph)
 {
     writer.WriteInt64((long)graph);
 }
コード例 #6
0
 public void Serialize(HessianOutputWriter writer, object graph)
 {
     writer.WriteInt32((int)graph);
 }
コード例 #7
0
 public void Serialize(HessianOutputWriter writer, object graph)
 {
     writer.WriteBoolean((bool)graph);
 }