public void send_uploadNewCredentials(string name, Credentials creds) #endif { oprot_.WriteMessageBegin(new TMessage("uploadNewCredentials", TMessageType.Call, seqid_)); uploadNewCredentials_args args = new uploadNewCredentials_args(); args.Name = name; args.Creds = creds; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void uploadNewCredentials_Process(int seqid, TProtocol iprot, TProtocol oprot) { uploadNewCredentials_args args = new uploadNewCredentials_args(); args.Read(iprot); iprot.ReadMessageEnd(); uploadNewCredentials_result result = new uploadNewCredentials_result(); try { iface_.uploadNewCredentials(args.Name, args.Creds); } catch (NotAliveException e) { result.E = e; } catch (InvalidTopologyException ite) { result.Ite = ite; } catch (AuthorizationException aze) { result.Aze = aze; } oprot.WriteMessageBegin(new TMessage("uploadNewCredentials", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }