Exemple #1
0
 /// <summary>
 /// The on subscriber initialized.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnSubscriberInitialized(object sender, SubscriberInitializedEventArgs args)
 {
     if (this.SubscriberInitialized != null)
     {
         this.SubscriberInitialized(sender, args);
     }
 }
Exemple #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 initialized.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnSubscriberInitialized(object sender, SubscriberInitializedEventArgs args)
 {
     if (this.SubscriberInitialized != null)
     {
         this.SubscriberInitialized(sender, args);
     }
 }