public IAsyncResult send_login(AsyncCallback callback, object state, AuthenticationRequest auth_request)
public void send_login(AuthenticationRequest auth_request) #endif { oprot_.WriteMessageBegin(new TMessage("login", TMessageType.Call, seqid_)); login_args args = new login_args(); args.Auth_request = auth_request; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void login(AuthenticationRequest auth_request) { #if !SILVERLIGHT send_login(auth_request); recv_login(); #else var asyncResult = Begin_login(null, null, auth_request); End_login(asyncResult); #endif }
public IAsyncResult Begin_login(AsyncCallback callback, object state, AuthenticationRequest auth_request) { return send_login(callback, state, auth_request); }
public void Read (TProtocol iprot) { bool isset_auth_request = false; TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Auth_request = new AuthenticationRequest(); Auth_request.Read(iprot); isset_auth_request = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); if (!isset_auth_request) throw new TProtocolException(TProtocolException.INVALID_DATA); }
public login_args(AuthenticationRequest auth_request) : this() { this.Auth_request = auth_request; }
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.Struct) { Auth_request = new AuthenticationRequest(); Auth_request.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }