internal static void AddBlockingActivity(ref Collection <ActivityBlockingUpdate> blockingActivities, string updatedActivityId, string originalActivityId, string reason, string activityInstanceId)
        {
            if (blockingActivities == null)
            {
                blockingActivities = new Collection <ActivityBlockingUpdate>();
            }

            ActivityBlockingUpdate blockingActivity = new ActivityBlockingUpdate(updatedActivityId, originalActivityId, reason, activityInstanceId);

            blockingActivities.Add(blockingActivity);
        }
        private static string GetMessage(ActivityBlockingUpdate blockingActivity)
        {
            object activity = (object)blockingActivity.Activity ?? blockingActivity.UpdatedActivityId;

            if (activity != null)
            {
                return(SR.ActivityBlockingUpdate(activity, blockingActivity.Reason));
            }
            else
            {
                return(blockingActivity.Reason);
            }
        }
 private static string GetMessage(ActivityBlockingUpdate blockingActivity)
 {
     object activity = (object)blockingActivity.Activity ?? blockingActivity.UpdatedActivityId;
     if (activity != null)
     {
         return SR.ActivityBlockingUpdate(activity, blockingActivity.Reason);
     }
     else
     {
         return blockingActivity.Reason;
     }
 }
        internal static void AddBlockingActivity(ref Collection<ActivityBlockingUpdate> blockingActivities, string updatedActivityId, string originalActivityId, string reason, string activityInstanceId)
        {
            if (blockingActivities == null)
            {
                blockingActivities = new Collection<ActivityBlockingUpdate>();
            }

            ActivityBlockingUpdate blockingActivity = new ActivityBlockingUpdate(updatedActivityId, originalActivityId, reason, activityInstanceId);
            blockingActivities.Add(blockingActivity);
        }