示例#1
0
 /// <summary>
 /// The on publisher initializing.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnPublisherInitializing(object sender, PublisherInitializingEventArgs args)
 {
     if (this.PublisherInitializing != null)
     {
         this.PublisherInitializing(sender, args);
     }
 }
示例#2
0
 /// <summary>
 /// The publisher initialize.
 /// </summary>
 /// <param name="publisher">
 /// The publisher.
 /// </param>
 /// <param name="description">
 /// The description.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable PublisherInitialize(IPublisher publisher, PublisherDescription description)
 {
     return(GetActivityTracker(
                () =>
     {
         var args = new PublisherInitializingEventArgs {
             Description = description
         };
         this.OnPublisherInitializing(publisher, args);
     },
                t =>
     {
         var args = new PublisherInitializedEventArgs {
             Elapsed = t, Description = description
         };
         this.OnPublisherInitialized(publisher, args);
     }));
 }
 /// <summary>
 /// The publisher initialize.
 /// </summary>
 /// <param name="publisher">
 /// The publisher.
 /// </param>
 /// <param name="description">
 /// The description.
 /// </param>
 /// <returns>
 /// The <see cref="IDisposable"/>.
 /// </returns>
 public IDisposable PublisherInitialize(IPublisher publisher, PublisherDescription description)
 {
     return GetActivityTracker(
         () =>
             {
                 var args = new PublisherInitializingEventArgs { Description = description };
                 this.OnPublisherInitializing(publisher, args);
             }, 
         t =>
             {
                 var args = new PublisherInitializedEventArgs { Elapsed = t, Description = description };
                 this.OnPublisherInitialized(publisher, args);
             });
 }
 /// <summary>
 /// The on publisher initializing.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The eventArgs.
 /// </param>
 private void OnPublisherInitializing(object sender, PublisherInitializingEventArgs args)
 {
     if (this.PublisherInitializing != null)
     {
         this.PublisherInitializing(sender, args);
     }
 }