예제 #1
0
 /// <summary>
 /// The on subscriber initializing.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnSubscriberInitializing(object sender, SubscriberInitializingEventArgs args)
 {
     if (this.SubscriberInitializing != null)
     {
         this.SubscriberInitializing(sender, args);
     }
 }
예제 #2
0
 /// <summary>
 /// The subscriber initialize.
 /// </summary>
 /// <param name="publisher">
 /// The publisher.
 /// </param>
 /// <param name="description">
 /// The description.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable SubscriberInitialize(ISubscriber publisher, SubscriberDescription description)
 {
     return(GetActivityTracker(
                () =>
     {
         var args = new SubscriberInitializingEventArgs {
             Description = description
         };
         this.OnSubscriberInitializing(publisher, args);
     },
                t =>
     {
         var args = new SubscriberInitializedEventArgs {
             Elapsed = t, Description = description
         };
         this.OnSubscriberInitialized(publisher, args);
     }));
 }
 /// <summary>
 /// The subscriber initialize.
 /// </summary>
 /// <param name="publisher">
 /// The publisher.
 /// </param>
 /// <param name="description">
 /// The description.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable SubscriberInitialize(ISubscriber publisher, SubscriberDescription description)
 {
     return GetActivityTracker(
         () =>
             {
                 var args = new SubscriberInitializingEventArgs { Description = description };
                 this.OnSubscriberInitializing(publisher, args);
             }, 
         t =>
             {
                 var args = new SubscriberInitializedEventArgs { Elapsed = t, Description = description };
                 this.OnSubscriberInitialized(publisher, args);
             });
 }
 /// <summary>
 /// The on subscriber initializing.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnSubscriberInitializing(object sender, SubscriberInitializingEventArgs args)
 {
     if (this.SubscriberInitializing != null)
     {
         this.SubscriberInitializing(sender, args);
     }
 }