コード例 #1
0
 public void send_revoke_privileges(PrivilegeBag privileges)
 {
     oprot_.WriteMessageBegin(new TMessage("revoke_privileges", TMessageType.Call, seqid_));
     revoke_privileges_args args = new revoke_privileges_args();
     args.Privileges = privileges;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
コード例 #2
0
 public bool grant_privileges(PrivilegeBag privileges)
 {
     send_grant_privileges(privileges);
     return recv_grant_privileges();
 }
コード例 #3
0
 public bool revoke_privileges(PrivilegeBag privileges)
 {
     send_revoke_privileges(privileges);
     return recv_revoke_privileges();
 }
コード例 #4
0
 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)
                 {
                     Privileges = new PrivilegeBag();
                     Privileges.Read(iprot);
                 }
                 else
                 {
                     TProtocolUtil.Skip(iprot, field.Type);
                 }
                 break;
             default:
                 TProtocolUtil.Skip(iprot, field.Type);
                 break;
         }
         iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }