Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
            }
        }