Esempio n. 1
0
     /// <summary>
     /// 闸机重启或关闭
     /// </summary>
     /// <param name="auth">通用参数</param>
     /// <param name="optCode">状态1-重启2-关闭系统</param>
     public bool gateSysShutdown(tbims.rpc.entity.AUTHORIZATION auth, int optCode)
     {
 #if !SILVERLIGHT
         send_gateSysShutdown(auth, optCode);
         return(recv_gateSysShutdown());
 #else
         var asyncResult = Begin_gateSysShutdown(null, null, auth, optCode);
         return(End_gateSysShutdown(asyncResult));
 #endif
     }
Esempio n. 2
0
     /// <summary>
     /// 心跳发送包
     /// </summary>
     /// <param name="auth">通用参数</param>
     public bool ping(tbims.rpc.entity.AUTHORIZATION auth)
     {
 #if !SILVERLIGHT
         send_ping(auth);
         return(recv_ping());
 #else
         var asyncResult = Begin_ping(null, null, auth);
         return(End_ping(asyncResult));
 #endif
     }
Esempio n. 3
0
     /// <summary>
     /// 运营模式切换
     /// </summary>
     /// <param name="auth">通用参数</param>
     /// <param name="gateMode">模式状态</param>
     public bool gateModeChange(tbims.rpc.entity.AUTHORIZATION auth, int gateMode)
     {
 #if !SILVERLIGHT
         send_gateModeChange(auth, gateMode);
         return(recv_gateModeChange());
 #else
         var asyncResult = Begin_gateModeChange(null, null, auth, gateMode);
         return(End_gateModeChange(asyncResult));
 #endif
     }
Esempio n. 4
0
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    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 = new tbims.rpc.entity.AUTHORIZATION();
                                Auth.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        case 2:
                            if (field.Type == TType.I32)
                            {
                                OptCode = iprot.ReadI32();
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
Esempio n. 5
0
            public void send_ping(tbims.rpc.entity.AUTHORIZATION auth)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("ping", TMessageType.Call, seqid_));
                ping_args args = new ping_args();

                args.Auth = auth;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Esempio n. 6
0
            public void send_gateSysShutdown(tbims.rpc.entity.AUTHORIZATION auth, int optCode)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("gateSysShutdown", TMessageType.Call, seqid_));
                gateSysShutdown_args args = new gateSysShutdown_args();

                args.Auth    = auth;
                args.OptCode = optCode;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Esempio n. 7
0
 public IAsyncResult send_ping(AsyncCallback callback, object state, tbims.rpc.entity.AUTHORIZATION auth)
Esempio n. 8
0
 public IAsyncResult Begin_ping(AsyncCallback callback, object state, tbims.rpc.entity.AUTHORIZATION auth)
 {
     return(send_ping(callback, state, auth));
 }
Esempio n. 9
0
 public IAsyncResult send_gateSysShutdown(AsyncCallback callback, object state, tbims.rpc.entity.AUTHORIZATION auth, int optCode)
Esempio n. 10
0
 public IAsyncResult Begin_gateSysShutdown(AsyncCallback callback, object state, tbims.rpc.entity.AUTHORIZATION auth, int optCode)
 {
     return(send_gateSysShutdown(callback, state, auth, optCode));
 }
Esempio n. 11
0
 public IAsyncResult send_gateModeChange(AsyncCallback callback, object state, tbims.rpc.entity.AUTHORIZATION auth, int gateMode)
Esempio n. 12
0
 public IAsyncResult Begin_gateModeChange(AsyncCallback callback, object state, tbims.rpc.entity.AUTHORIZATION auth, int gateMode)
 {
     return(send_gateModeChange(callback, state, auth, gateMode));
 }