public ProcessPendingExecutor(ExecutorArgs args, IServiceBrokerHelper isssbHelper) :
     base(args)
 {
     _issbHelper = isssbHelper;
     _processAll = false;
     _objectID   = null;
 }
Example #2
0
        public BaseSSSBService(ServiceOptions options, IDependencyResolver <TDispatcher, TMessageReaderFactory> dependencyResolver)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            if (dependencyResolver == null)
            {
                throw new ArgumentNullException(nameof(dependencyResolver));
            }

            this.Name       = options.Name;
            this._queueName = string.Empty;
            this._isStopped = true;
            this._rootToken = CancellationToken.None;

            this.IsQueueActivationEnabled = options.IsQueueActivationEnabled;
            this.MaxReadersCount          = options.MaxReadersCount;
            this.MaxReadParallelism       = options.MaxReadParallelism;
            this.ConversationGroup        = options.ConversationGroup;

            this.Logger = dependencyResolver.LoggerFactory.CreateLogger(this.GetType().Name);
            this._serviceBrokerHelper = dependencyResolver.ServiceBrokerHelper;
            this._connectionManager   = dependencyResolver.ConnectionManager;
            this._errorMessages       = dependencyResolver.ErrorMessages;
            this._messageDispatcher   = dependencyResolver.GetMessageDispatcher(this);
            this._tasksCoordinator    = dependencyResolver.GetTaskCoordinator(this);
        }
Example #3
0
 public EndDialogMessageResult(IServiceBrokerHelper serviceBrokerHelper, Args args)
 {
     _serviceBrokerHelper = serviceBrokerHelper;
     _error              = args.Error;
     _errorCode          = args.ErrorCode;
     _conversationHandle = args.ConversationHandle;
 }
 public GenericMessageResult(IServiceBrokerHelper serviceBrokerHelper, Args args)
 {
     _serviceBrokerHelper = serviceBrokerHelper;
     _conversationHandle  = args.ConversationHandle;
     _messageType         = args.MessageType;
     _xmlBody             = args.XmlBody;
 }
Example #5
0
 public DeferMessageResult(IServiceBrokerHelper serviceBrokerHelper, Args args)
 {
     _serviceBrokerHelper = serviceBrokerHelper;
     _fromService         = args.FromService ?? throw new ArgumentNullException(nameof(args.FromService));
     _lifeTime            = args.LifeTime ?? TimeSpan.FromHours(12);
     _activationTime      = args.ActivationTime;
     _attemptNumber       = args.AttemptNumber;
 }
 public StandardMessageHandlers(ILogger <StandardMessageHandlers> logger, IServiceBrokerHelper serviceBrokerHelper)
 {
     _logger = logger;
     _serviceBrokerHelper = serviceBrokerHelper;
 }