Exemple #1
0
 /// <summary>
 /// The on bridge transferring.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnBridgeTransferring(object sender, BridgeTransferringEventArgs args)
 {
     if (this.BridgeTransferring != null)
     {
         this.BridgeTransferring(sender, args);
     }
 }
Exemple #2
0
 /// <summary>
 /// The bridge transfer.
 /// </summary>
 /// <param name="bridge">
 /// The bridge.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable BridgeTransfer(IMessageBusBridge bridge, IMessage message)
 {
     return(GetActivityTracker(
                () =>
     {
         var args = new BridgeTransferringEventArgs {
             Message = message
         };
         this.OnBridgeTransferring(bridge, args);
     },
                t =>
     {
         var args = new BridgeTransferredEventArgs {
             Elapsed = t, Message = message
         };
         this.OnBridgeTransferred(bridge, args);
     }));
 }
 /// <summary>
 /// The bridge transfer.
 /// </summary>
 /// <param name="bridge">
 /// The bridge.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable BridgeTransfer(IMessageBusBridge bridge, IMessage message)
 {
     return GetActivityTracker(
         () =>
             {
                 var args = new BridgeTransferringEventArgs { Message = message };
                 this.OnBridgeTransferring(bridge, args);
             }, 
         t =>
             {
                 var args = new BridgeTransferredEventArgs { Elapsed = t, Message = message };
                 this.OnBridgeTransferred(bridge, args);
             });
 }
 /// <summary>
 /// The on bridge transferring.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnBridgeTransferring(object sender, BridgeTransferringEventArgs args)
 {
     if (this.BridgeTransferring != null)
     {
         this.BridgeTransferring(sender, args);
     }
 }