Exemple #1
0
        /// <summary>
        /// Schedules an outgoing request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void ScheduleOutgoingRequest(IChannelOutgoingRequest request)
        {
#if MANAGE_CHANNEL_THREADS
            System.Threading.Thread thread = new System.Threading.Thread(OnSendRequest);
            thread.Start(request);
#else
            throw new NotImplementedException();
#endif
        }
Exemple #2
0
 /// <summary>
 /// Processes the request.
 /// </summary>
 /// <param name="state">IChannelOutgoingRequest object passed to the ScheduleOutgoingRequest method.</param>
 protected virtual void OnSendRequest(object state)
 {
     try
     {
         IChannelOutgoingRequest request = (IChannelOutgoingRequest)state;
         request.CallSynchronously();
     }
     catch (Exception e)
     {
         Utils.Trace(e, "Unexpected error sending outgoing request.");
     }
 }
 /// <summary>
 /// Schedules an outgoing request.
 /// </summary>
 /// <param name="request">The request.</param>
 public void ScheduleOutgoingRequest(IChannelOutgoingRequest request)
 {
     #if MANAGE_CHANNEL_THREADS
     System.Threading.Thread thread = new System.Threading.Thread(OnSendRequest);
     thread.Start(request);
     #else
     throw new NotImplementedException();
     #endif
 }
 /// <summary>
 /// Schedules an outgoing request.
 /// </summary>
 /// <param name="request">The request.</param>
 public void ScheduleOutgoingRequest(IChannelOutgoingRequest request)
 {
     throw new NotImplementedException("UaBaseChannel does not implement ScheduleOutgoingRequest()");
 }