public FaultedSendActivity(DestinationAddressProvider <TInstance> destinationAddressProvider,
                            AsyncEventExceptionMessageFactory <TInstance, TException, TMessage> messageFactory,
                            SendContextCallback <TInstance, TMessage> contextCallback)
     : this(messageFactory, contextCallback)
 {
     _destinationAddressProvider = destinationAddressProvider;
 }
Ejemplo n.º 2
0
 public static ExceptionActivityBinder <TInstance, TException> SendAsync <TInstance, TException, TMessage>(
     this ExceptionActivityBinder <TInstance, TException> source, Task <TMessage> message,
     SendContextCallback <TInstance, TMessage> contextCallback)
     where TInstance : class, SagaStateMachineInstance
     where TMessage : class
     where TException : Exception
 {
     return(source.Add(new SendActivity <TInstance, TMessage>(x => message, contextCallback)));
 }
Ejemplo n.º 3
0
 public static ExceptionActivityBinder <TInstance, TData, TException> SendAsync <TInstance, TData, TException, TMessage>(
     this ExceptionActivityBinder <TInstance, TData, TException> source,
     AsyncEventExceptionMessageFactory <TInstance, TData, TException, TMessage> messageFactory,
     SendContextCallback <TInstance, TData, TMessage> contextCallback)
     where TInstance : class, SagaStateMachineInstance
     where TData : class
     where TMessage : class
     where TException : Exception
 {
     return(source.Add(new FaultedSendActivity <TInstance, TData, TException, TMessage>(messageFactory, contextCallback)));
 }
 FaultedSendActivity(SendContextCallback <TInstance, TMessage> contextCallback)
 {
     _contextCallback = contextCallback;
 }
 public FaultedSendActivity(AsyncEventExceptionMessageFactory <TInstance, TException, TMessage> messageFactory,
                            SendContextCallback <TInstance, TMessage> contextCallback)
     : this(contextCallback)
 {
     _asyncMessageFactory = messageFactory;
 }
Ejemplo n.º 6
0
 public static EventActivityBinder <TInstance, TData> SendAsync <TInstance, TData, TMessage>(this EventActivityBinder <TInstance, TData> source,
                                                                                             AsyncEventMessageFactory <TInstance, TData, TMessage> messageFactory, SendContextCallback <TInstance, TData, TMessage> contextCallback)
     where TInstance : class, SagaStateMachineInstance
     where TData : class
     where TMessage : class
 {
     return(source.Add(new SendActivity <TInstance, TData, TMessage>(messageFactory, contextCallback)));
 }
Ejemplo n.º 7
0
 public static EventActivityBinder <TInstance> Send <TInstance, TMessage>(this EventActivityBinder <TInstance> source,
                                                                          TMessage message, SendContextCallback <TInstance, TMessage> contextCallback)
     where TInstance : class, SagaStateMachineInstance
     where TMessage : class
 {
     return(source.Add(new SendActivity <TInstance, TMessage>(x => message, contextCallback)));
 }
Ejemplo n.º 8
0
 public SendActivity(AsyncEventMessageFactory <TInstance, TMessage> messageFactory, SendContextCallback <TInstance, TMessage> contextCallback)
     : this(contextCallback)
 {
     _asyncMessageFactory = messageFactory;
 }
Ejemplo n.º 9
0
 public SendActivity(DestinationAddressProvider <TInstance> destinationAddressProvider, EventMessageFactory <TInstance, TMessage> messageFactory,
                     SendContextCallback <TInstance, TMessage> contextCallback)
     : this(messageFactory, contextCallback)
 {
     _destinationAddressProvider = destinationAddressProvider;
 }