public bool sendResponse(Request request, string ofacResponseIdentifier) { MQQueue queue = _okQueue; Object lockObject = syncOkQueueLock; string queueName = config.okQueue; MQQueueManager manager = _mqManagerOkQueue; if (request.OfacStatus == OfacStatus.Confirm) { queue = _confirmQueue; lockObject = syncConfirmQueueLock; queueName = config.confirmQueue; manager = _mqManagerConfirmQueue; } RequestHeader header = RequestHeader.getRequestHeader(request.Header); return(sendMessage(queueName, request.RequestId, queue, manager, request.Name, request.ResponseMessage, request.RequestId.ToString(), lockObject)); }
public bool moveToError(Request request) { RequestHeader header = RequestHeader.getRequestHeader(request.Header); return(sendMessage(config.errorQueue, request.RequestId, _errorQueue, _mqManagerErrorQueue, request.Name, request.MessageBody, request.RequestId.ToString(), syncErrorQueueLock)); }