public Task Write(IDataWriter writer, CommandJson dataFrame)
        {
            var content = JsonConvert.SerializeObject(dataFrame);

            writer.WriteUInt32(writer.MeasureString(content));
            writer.WriteString(content);
            return(Task.FromResult(0));
        }
Ejemplo n.º 2
0
 private static async Task SendString(IDataWriter writer, string text)
 {
     writer.WriteUInt32(writer.MeasureString(text));
     writer.WriteString(text);
     await writer.StoreAsync();
 }