Пример #1
0
 public SubscriptionImpl(Uri address, RoutingSlipEvents events, RoutingSlipEventContents include, string activityName = null, MessageEnvelope message = null)
 {
     Include = include;
     ActivityName = activityName;
     Address = address;
     Events = events;
     Message = message;
 }
Пример #2
0
 public SubscriptionImpl(Uri address, RoutingSlipEvents events, RoutingSlipEventContents include, string activityName = null, MessageEnvelope message = null)
 {
     Include      = include;
     ActivityName = activityName;
     Address      = address;
     Events       = events;
     Message      = message;
 }
 public RoutingSlipBuilderSendEndpoint(IRoutingSlipSendEndpointTarget builder, Uri destinationAddress, RoutingSlipEvents events, string activityName,
                                       RoutingSlipEventContents include = RoutingSlipEventContents.All)
 {
     _observers          = new SendObservable();
     _builder            = builder;
     _events             = events;
     _activityName       = activityName;
     _include            = include;
     _destinationAddress = destinationAddress;
 }
Пример #4
0
 /// <summary>
 /// Adds a message subscription to the routing slip that will be sent at the specified event points
 /// </summary>
 /// <param name="address"></param>
 /// <param name="events"></param>
 /// <param name="activityName">Only send events for the specified activity</param>
 /// <param name="contents"></param>
 /// <param name="callback"></param>
 /// <returns></returns>
 public Task AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName,
                             Func <ISendEndpoint, Task> callback)
 {
     return(callback(new RoutingSlipBuilderSendEndpoint(this, address, events, activityName, contents)));
 }
Пример #5
0
 /// <summary>
 /// Add an explicit subscription to the routing slip events
 /// </summary>
 /// <param name="address">The destination address where the events are sent</param>
 /// <param name="events">The events to include in the subscription</param>
 /// <param name="contents">The contents of the routing slip event</param>
 /// <param name="activityName">Only send events for the specified activity</param>
 public void AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName)
 {
     _subscriptions.Add(new SubscriptionImpl(address, events, contents, activityName));
 }
Пример #6
0
 /// <summary>
 /// Add an explicit subscription to the routing slip events
 /// </summary>
 /// <param name="address">The destination address where the events are sent</param>
 /// <param name="events">The events to include in the subscription</param>
 /// <param name="contents">The contents of the routing slip event</param>
 public void AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents)
 {
     _subscriptions.Add(new SubscriptionImpl(address, events, contents));
 }
Пример #7
0
 /// <summary>
 /// Adds a custom subscription message to the routing slip which is sent at the specified events
 /// </summary>
 /// <param name="address">The destination address where the events are sent</param>
 /// <param name="events">The events to include in the subscription</param>
 /// <param name="contents">The contents of the routing slip event</param>
 /// <param name="activityName"></param>
 /// <param name="message">The custom message to be sent</param>
 void IRoutingSlipSendEndpointTarget.AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName,
                                                     MessageEnvelope message)
 {
     _subscriptions.Add(new SubscriptionImpl(address, events, contents, activityName, message));
 }
Пример #8
0
 /// <summary>
 /// Add an explicit subscription to the routing slip events
 /// </summary>
 /// <param name="address">The destination address where the events are sent</param>
 /// <param name="events">The events to include in the subscription</param>
 /// <param name="contents">The contents of the routing slip event</param>
 public void AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents)
 {
     _subscriptions.Add(new SubscriptionImpl(address, events, contents));
 }
Пример #9
0
 public SubscriptionImpl(Uri address, RoutingSlipEvents events, RoutingSlipEventContents include)
 {
     Include = include;
     Address = address;
     Events  = events;
 }
Пример #10
0
 public SubscriptionImpl(Uri address, RoutingSlipEvents events, RoutingSlipEventContents include)
 {
     Include = include;
     Address = address;
     Events = events;
 }
Пример #11
0
 /// <summary>
 /// Adds a message subscription to the routing slip that will be sent at the specified event points
 /// </summary>
 /// <param name="address"></param>
 /// <param name="events"></param>
 /// <param name="activityName">Only send events for the specified activity</param>
 /// <param name="contents"></param>
 /// <param name="callback"></param>
 /// <returns></returns>
 public Task AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName,
     Func<ISendEndpoint, Task> callback)
 {
     return callback(new RoutingSlipBuilderSendEndpoint(this, address, events, activityName, contents));
 }
Пример #12
0
 /// <summary>
 /// Add an explicit subscription to the routing slip events
 /// </summary>
 /// <param name="address">The destination address where the events are sent</param>
 /// <param name="events">The events to include in the subscription</param>
 /// <param name="contents">The contents of the routing slip event</param>
 /// <param name="activityName">Only send events for the specified activity</param>
 public void AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName)
 {
     _subscriptions.Add(new SubscriptionImpl(address, events, contents, activityName));
 }
Пример #13
0
 /// <summary>
 /// Adds a custom subscription message to the routing slip which is sent at the specified events
 /// </summary>
 /// <param name="address">The destination address where the events are sent</param>
 /// <param name="events">The events to include in the subscription</param>
 /// <param name="contents">The contents of the routing slip event</param>
 /// <param name="activityName"></param>
 /// <param name="message">The custom message to be sent</param>
 void IRoutingSlipSendEndpointTarget.AddSubscription(Uri address, RoutingSlipEvents events, RoutingSlipEventContents contents, string activityName,
     MessageEnvelope message)
 {
     _subscriptions.Add(new SubscriptionImpl(address, events, contents, activityName, message));
 }