コード例 #1
0
 public EmsWorkItem
     (
     decimal id,
     int externalEntityId,
     WorkItemState workItemState,
     SubmissionPriority submissionPriority,
     byte[] messageBody,
     bool assigned,
     bool isRetry,
     string ownerName,
     ContextIdentifier contextIdentifier,
     EmsReaderQueue queue,
     Message message
     )
     : base
         (
         id,
         externalEntityId,
         workItemState,
         submissionPriority,
         messageBody,
         assigned,
         isRetry,
         ownerName,
         contextIdentifier
         )
 {
     this.queue = queue;
     this.message = message;
 }
コード例 #2
0
        private void Init(ResponseDataProvider dataCommand, IResponseStatusTranslator responseTranslator, EmsReaderQueue queue)
        {
            ErrorTrap.AddAssertion(dataCommand != null, "ResponseData dataCommand can't be null for the" + this.GetType().FullName + ". Please correct the configuration and restart.");

            ErrorTrap.AddAssertion(responseTranslator != null, "IResponseStatusTranslator responseTranslator can't be null. Please correct the configuration for " + this.GetType() + " and restart.");

            ErrorTrap.RaiseTrappedErrors<ConfigurationErrorsException>();

            this.dataCommand = dataCommand;
            this.responseTranslator = responseTranslator;
            this.queue = queue;
        }
コード例 #3
0
 public EmsReader(IFailureExceptionHandler messageFailureExceptionHandler, EmsReaderQueue queue)
     : base(messageFailureExceptionHandler)
 {
     this.queue = queue;
 }
コード例 #4
0
 public ResponseProcessor(ResponseDataProvider dataCommand, IResponseStatusTranslator responseTranslator, EmsReaderQueue queue)
 {
     Init(dataCommand, responseTranslator, queue);
 }
コード例 #5
0
 public ResponseProcessor(string responseSPName, IResponseStatusTranslator responseTranslator, EmsReaderQueue queue)
 {
     Init(new ResponseDataProvider(responseSPName), responseTranslator, queue);
 }