Example #1
0
        /// <summary>
        /// Called when the activity is paused.
        /// </summary>
        /// <param name="activity">The activity.</param>
        public void OnActivityPaused(Activity activity)
        {
            if (!ReferenceEquals(activity, _activity))
            {
                return;
            }

            var eventArgs = new ActivityEventArgs(activity);

            ActivityPaused?.Invoke(this, eventArgs);
        }
Example #2
0
 public void OnActivityPaused(Activity activity)
 {
     ActivityPaused?.Invoke(this, new ActivityEventArgs(activity));
 }