예제 #1
0
        private static async Task WriteStructBegin(short id)
        {
            await _thrift.WriteFieldBeginAsync(new TField(null, TType.Struct, id), System.Threading.CancellationToken.None);

            /*
             * From Thrift source code:
             * Write a struct begin. This doesn't actually put anything on the wire. We
             * use it as an opportunity to put special placeholder markers on the field
             * stack so we can get the field id deltas correct.
             */
            await _thrift.WriteStructBeginAsync(new TStruct(), System.Threading.CancellationToken.None);
        }