Ejemplo n.º 1
0
        /// <summary>
        /// Execute item.
        /// </summary>
        protected void WaitCallbackFunc(object parameter)
        {
            ActiveClient client = Client;

            if (client != null)
            {
                client.PerformExecution(parameter as Envelope);
            }
        }
        /// <summary>
        /// Actually perform the exection.
        /// </summary>
        internal void PerformExecution(object envelope)
        {
            ActiveClient client = Client;

            if (client != null)
            {
                client.PerformExecution(envelope as Envelope);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Enlist item for execution.
        /// </summary>
        public virtual void Execute(Envelope envelope)
        {
            ActiveClient client = _client;

            if (envelope.ExecutionModel == Envelope.ExecutionModelEnum.Direct)
            {
                if (client != null)
                {
                    client.PerformExecution(envelope);
                }
            }
            else
            {
                OnExecute(envelope);
            }
        }