Ejemplo n.º 1
0
        private void OnRequestDispatched(object sender, RequestDispatchedEventArgs e)
        {
            UpdateRequestQueue();
            UpdateFailedQueue();
            switch (e.Result)
            {
            case DispatchResult.Expired:
                Status = String.Format(Properties.Resources.RequestExpired, e.Request.RequestId.ToString());
                break;

            case DispatchResult.Failed:
                Status = String.Format(Properties.Resources.ErrorDispatchingRequest, e.Request.RequestId.ToString());
                break;

            case DispatchResult.Succeeded:
                Status = String.Format(Properties.Resources.RequestSuccessfullyDispatched, e.Request.RequestId.ToString());
                break;
            }
        }
 private void OnRequestDispatched(object sender, RequestDispatchedEventArgs e)
 {
     dispatchedRequest = e.Request;
     dispatchResult    = e.Result;
 }