public CCCommandAuditViewModelBuilder(ICostCentreRepository costCentreRepository, ICostCentreApplicationRepository costCentreApplicationRepository, ICommandProcessingAuditRepository commandProcessingAuditRepository, ICommandRoutingOnRequestRepository commandRoutingOnRequestRepository) { _costCentreRepository = costCentreRepository; _costCentreApplicationRepository = costCentreApplicationRepository; _commandProcessingAuditRepository = commandProcessingAuditRepository; _commandRoutingOnRequestRepository = commandRoutingOnRequestRepository; }
public CommandController(ICommandDeserialize commandDeserialize, IBusPublisher busPublisher, ICostCentreApplicationService costCentreApplicationService, ICommandProcessingAuditRepository commandProcessingAuditRepository) { _commandDeserialize = commandDeserialize; _busPublisher = busPublisher; _costCentreApplicationService = costCentreApplicationService; _commandProcessingAuditRepository = commandProcessingAuditRepository; }
public SubscriberMessageHandler(ICommandRoutingOnRequestRepository commandRoutingOnRequestRepository, ICommandRoutingOnRequestResolver commandRoutingOnRequestResolver, IRunCommandOnRequestInHostedEnvironment runCommandOnRequestInHostedEnvironment, ICommandDeserialize commandDeserialize, ISubscriberCommandExecutionGuard subscriberCommandExecutionGuard, ICommandProcessingAuditRepository commandProcessingAuditRepository, ICCAuditRepository auditRepository, IDocumentHelper documentHelper, ICommandEnvelopeRouteOnRequestCostcentreRepository commandEnvelopeRouteOn, ICommandEnvelopeProcessingAuditRepository envelopeProcessingAuditRepository) { _commandRoutingOnRequestRepository = commandRoutingOnRequestRepository; _commandRoutingOnRequestResolver = commandRoutingOnRequestResolver; _runCommandOnRequestInHostedEnvironment = runCommandOnRequestInHostedEnvironment; _commandDeserialize = commandDeserialize; //_busPublisher = busPublisher; _subscriberCommandExecutionGuard = subscriberCommandExecutionGuard; _commandProcessingAuditRepository = commandProcessingAuditRepository; _auditRepository = auditRepository; _documentHelper = documentHelper; _commandEnvelopeRouteOn = commandEnvelopeRouteOn; _envelopeProcessingAuditRepository = envelopeProcessingAuditRepository; }
public AzureCommandController(IBusPublisher busPublisher, ICostCentreApplicationService costCentreApplicationService, ICommandProcessingAuditRepository commandProcessingAuditRepository) { _busPublisher = busPublisher; _costCentreApplicationService = costCentreApplicationService; _commandProcessingAuditRepository = commandProcessingAuditRepository; }
/// <summary> /// There is a slight lag on updating the CommandProcessingAudit.Status. /// This is a check to ensure that a command with status Complete does not get executed twice /// </summary> private bool CheckValidDequeueProcess(CloudQueueMessage msg, ICommandProcessingAuditRepository _processingAudit,BusMessage busMessage) { bool validDequeueProcess = true; if (msg.DequeueCount > 1) { _logger.InfoFormat("More than one dequeue count, test message status "); CommandProcessingAudit auditDeque = _processingAudit.GetByCommandId(busMessage.MessageId); if (auditDeque.Status == CommandProcessingStatus.Complete) { _logger.Info("Dequeue validation detected CommandProcessingStatus.Complete. Dequeueing"); _incomingCommandQueue.DeleteMessage(msg); validDequeueProcess = false; } else { _logger.Info("Valid dequeue process ....."); } } return validDequeueProcess; }
public ValuesController(IBusPublisher busPublisher, ICommandProcessingAuditRepository commandProcessingAuditRepository) { _busPublisher = busPublisher; _commandProcessingAuditRepository = commandProcessingAuditRepository; }
public ReRouteDocumentCommandHandler(ICommandRoutingOnRequestRepository commandRoutingOnRequestRepository, ICommandProcessingAuditRepository commandProcessingAuditRepository) { _commandRoutingOnRequestRepository = commandRoutingOnRequestRepository; _commandProcessingAuditRepository = commandProcessingAuditRepository; }
public CommodityTransferHqWorkFlow(IBusPublisher busPublisher, ICommandProcessingAuditRepository commandProcessingAuditRepository) { _busPublisher = busPublisher; _commandProcessingAuditRepository = commandProcessingAuditRepository; }
public QAddRetryCommandHandler(ICommandProcessingAuditRepository commandProcessingAuditRepository, IBusPublisher busPublisher) { _commandProcessingAuditRepository = commandProcessingAuditRepository; _busPublisher = busPublisher; }
public CommodityReleaseHQWFManager(IBusPublisher busPublisher, ICommandProcessingAuditRepository commandProcessingAuditRepository) { _busPublisher = busPublisher; _commandProcessingAuditRepository = commandProcessingAuditRepository; }
public SubscriberCommandExecutionGuard(ICommandProcessingAuditRepository commandProcessingAuditRepository, ICCAuditRepository auditRepository) { _commandProcessingAuditRepository = commandProcessingAuditRepository; _auditRepository = auditRepository; }