/// <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); }
public void OnActivityPaused(Activity activity) { ActivityPaused?.Invoke(this, new ActivityEventArgs(activity)); }