예제 #1
0
        private static async Task WriteString(short id, string str)
        {
            if (str == null)
            {
                str = "";
            }
            await _thrift.WriteFieldBeginAsync(new TField(null, TType.String, id), System.Threading.CancellationToken.None);

            await _thrift.WriteStringAsync(str, System.Threading.CancellationToken.None);
        }
예제 #2
0
        private static async Task WriteString(short id, string str)
        {
            if (str == null)
            {
                str = "";
            }
            await _thrift.WriteFieldBeginAsync(new TField(null, TType.String, id));

            await _thrift.WriteStringAsync(str);
        }