public void RegisterActivity(RecurringActivity activity)
        {
            if (this.registeredActivities.Contains(activity))
            {
                throw new InvalidOperationException("This activity is already registered.");
            }

            this.registeredActivities.Add(activity);
        }
Example #2
0
        public void RegisterActivity(RecurringActivity activity)
        {
            if (this.registeredActivities.Contains(activity))
            {
                throw new InvalidOperationException("This activity is already registered.");
            }

            this.registeredActivities.Add(activity);
        }
 public bool UnregisterActivity(RecurringActivity activity)
 {
     return this.registeredActivities.Remove(activity);
 }
Example #4
0
 public bool UnregisterActivity(RecurringActivity activity)
 {
     return(this.registeredActivities.Remove(activity));
 }