Beispiel #1
0
        /// <summary>
        /// Runs the callback unparsed.
        /// </summary>
        /// <param name="Command">The command.</param>
        /// <param name="Callback">The callback.</param>
        /// <param name="Args">The args.</param>
        public void RunCallbackUnparsed(P4Callback Callback, string Command, params string[] Args)
        {
            CallbackClientUser cu        = new CallbackClientUser(Callback);
            CallbackKeepAlive  keepAlive = new CallbackKeepAlive(cu);

            EstablishConnection(false, keepAlive);
            Callback.SetEncoding(m_ClientApi.Encoding);
            RunIt(Command, Args, cu);

            // always throw a defered exception (means something went WAY wrong)
            if (cu.DeferedException != null)
            {
                throw cu.DeferedException;
            }
        }
Beispiel #2
0
 public CallbackClientUser(P4Callback callback)
 {
     this._callback = callback;
 }
Beispiel #3
0
        /// <summary>
        /// Runs the callback unparsed.
        /// </summary>
        /// <param name="Command">The command.</param>
        /// <param name="Callback">The callback.</param>
        /// <param name="Args">The args.</param>
        public void RunCallbackUnparsed(P4Callback Callback, string Command, params string[] Args)
        {
            CallbackClientUser cu = new CallbackClientUser(Callback);
            CallbackKeepAlive keepAlive = new CallbackKeepAlive(cu);
            EstablishConnection(false, keepAlive);
            Callback.SetEncoding(m_ClientApi.Encoding);
            RunIt(Command, Args, cu);

            // always throw a defered exception (means something went WAY wrong)
            if (cu.DeferedException != null)
            {
                throw cu.DeferedException;
            }
        }
Beispiel #4
0
 public CallbackClientUser(P4Callback callback)
 {
     this._callback = callback;
 }