示例#1
0
 public ContinuationContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing)
 {
     _logger     = logger;
     _systemTime = systemTime;
     _invoker    = invoker;
     _outgoing   = outgoing;
 }
 public ContinuationContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing)
 {
     _logger = logger;
     _systemTime = systemTime;
     _invoker = invoker;
     _outgoing = outgoing;
 }
示例#3
0
 public EnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline)
 {
     this.logger = logger;
     _systemTime = systemTime;
     _invoker    = invoker;
     Outgoing    = outgoing;
     _pipeline   = pipeline;
 }
示例#4
0
 public ServiceBus(IEnvelopeSender sender, IEventAggregator events, IChainInvoker invoker, ISystemTime systemTime, ISubscriptionRepository subscriptionRepository)
 {
     _sender                 = sender;
     _events                 = events;
     _invoker                = invoker;
     _systemTime             = systemTime;
     _subscriptionRepository = subscriptionRepository;
 }
        protected override void beforeEach()
        {
            theEnvelope = ObjectMother.Envelope();
            theInvoker  = MockFor <IChainInvoker>();

            theInvoker.Stub(x => x.FindChain(theEnvelope))
            .Return(null);
        }
        public ProductionDiagnosticEnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline, Envelope envelope, IExecutionLogger executionLogger)
            : base(logger, systemTime, invoker, outgoing, pipeline)
        {
            _envelope = envelope;
            _executionLogger = executionLogger;
            _log = new ChainExecutionLog();

            _envelope.Log = _log;
        }
        protected override void beforeEach()
        {
            theEnvelope = ObjectMother.Envelope();
            theInvoker  = MockFor <IChainInvoker>();

            theException = new EnvelopeDeserializationException("I failed!");
            theInvoker.Stub(x => x.FindChain(theEnvelope))
            .Throw(theException);
        }
        protected override void beforeEach()
        {
            theEnvelope = ObjectMother.Envelope();
            theInvoker  = MockFor <IChainInvoker>();
            theChain    = new HandlerChain();
            theChain.AddToEnd(HandlerCall.For <TaskHandler>(x => x.AsyncHandle(null)));
            theChain.IsAsync.ShouldBeTrue();

            theInvoker.Stub(x => x.FindChain(theEnvelope))
            .Return(theChain);

            theContinuation = ClassUnderTest.Handle(theEnvelope);
        }
 public ChainExecutionEnvelopeHandler(IChainInvoker invoker)
 {
     _invoker = invoker;
 }
 public ChainExecutionEnvelopeHandler(IChainInvoker invoker)
 {
     _invoker = invoker;
 }
        public ProductionDiagnosticEnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline, Envelope envelope, IExecutionLogger executionLogger) : base(logger, systemTime, invoker, outgoing, pipeline)
        {
            _envelope        = envelope;
            _executionLogger = executionLogger;
            _log             = new ChainExecutionLog();

            _envelope.Log = _log;
        }
 public VerboseDiagnosticEnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline, Envelope envelope, IExecutionLogger executionLogger) : base(logger, systemTime, invoker, outgoing, pipeline, envelope, executionLogger)
 {
 }