/// <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> /// 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) { throw new NotImplementedException("UaBaseChannel does not implement ScheduleOutgoingRequest()"); }