示例#1
0
 /// <summary>
 /// The on bridge initialized.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnBridgeInitialized(object sender, BridgeInitializedEventArgs args)
 {
     if (this.BridgeInitialized != null)
     {
         this.BridgeInitialized(sender, args);
     }
 }
示例#2
0
 /// <summary>
 /// The bridge initialize.
 /// </summary>
 /// <param name="bridge">
 /// The bridge.
 /// </param>
 /// <param name="description">
 /// The description.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable BridgeInitialize(IMessageBusBridge bridge, MessageBusBridgeDescription description)
 {
     return(GetActivityTracker(
                () =>
     {
         var args = new BridgeInitializingEventArgs {
             Description = description
         };
         this.OnBridgeInitializing(bridge, args);
     },
                t =>
     {
         var args = new BridgeInitializedEventArgs {
             Elapsed = t, Description = description
         };
         this.OnBridgeInitialized(bridge, args);
     }));
 }
 /// <summary>
 /// The on bridge initialized.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnBridgeInitialized(object sender, BridgeInitializedEventArgs args)
 {
     if (this.BridgeInitialized != null)
     {
         this.BridgeInitialized(sender, args);
     }
 }
 /// <summary>
 /// The bridge initialize.
 /// </summary>
 /// <param name="bridge">
 /// The bridge.
 /// </param>
 /// <param name="description">
 /// The description.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable BridgeInitialize(IMessageBusBridge bridge, MessageBusBridgeDescription description)
 {
     return GetActivityTracker(
         () =>
             {
                 var args = new BridgeInitializingEventArgs { Description = description };
                 this.OnBridgeInitializing(bridge, args);
             }, 
         t =>
             {
                 var args = new BridgeInitializedEventArgs { Elapsed = t, Description = description };
                 this.OnBridgeInitialized(bridge, args);
             });
 }