public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { AuthenticationToken = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { ClientMetrics = new ClientUsageMetrics(); ClientMetrics.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public IAsyncResult send_getSyncStateWithMetrics(AsyncCallback callback, object state, string authenticationToken, ClientUsageMetrics clientMetrics)
public void send_getSyncStateWithMetrics(string authenticationToken, ClientUsageMetrics clientMetrics) #endif { oprot_.WriteMessageBegin(new TMessage("getSyncStateWithMetrics", TMessageType.Call, seqid_)); getSyncStateWithMetrics_args args = new getSyncStateWithMetrics_args(); args.AuthenticationToken = authenticationToken; args.ClientMetrics = clientMetrics; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT || NETFX_CORE return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public SyncState getSyncStateWithMetrics(string authenticationToken, ClientUsageMetrics clientMetrics) { #if !SILVERLIGHT && !NETFX_CORE send_getSyncStateWithMetrics(authenticationToken, clientMetrics); return recv_getSyncStateWithMetrics(); #else var asyncResult = Begin_getSyncStateWithMetrics(null, null, authenticationToken, clientMetrics); return End_getSyncStateWithMetrics(asyncResult); #endif }