using System; using System.Collections; using System.Collections.Generic; using System.Workflow.ComponentModel; using System.Runtime.Serialization; using System.Security.Permissions; using System.Workflow.Runtime.Hosting; namespace System.Workflow.Runtime.Tracking { /// /// Interface for tracking services that provide notifications when a new version of a profile is availabe. /// The tracking runtime subscribes to the UpdateProfile and RemoveProfile events and updates its cache as events are raised. /// This decreases the number of requests for profiles that are made to a tracking service. The GetProfiles methods /// are still in use but they are not called as frequently. /// [Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")] public interface IProfileNotification { /// /// Use this event to inform the tracking runtime that a new profile version is available for a given workflow type. /// event EventHandler ProfileUpdated; /// /// Use this event to inform the tracking runtime that new instances of the specified workflow type should not have a profile. /// event EventHandler ProfileRemoved; } }