///<summary> ///Must be overridden in the derived class, and when implemented, retrieves a new tracking profile for the specified workflow instance if the tracking profile has changed since it was last loaded. ///</summary> /// ///<returns> ///true if a new <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see> should be loaded; otherwise, false. If true, the <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see> is returned in profile. ///</returns> /// ///<param name="workflowType">The <see cref="T:System.Type"></see> of the workflow instance.</param> ///<param name="profile">When this method returns, contains the <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see> to load. This parameter is passed un-initialized.</param> ///<param name="workflowInstanceId">The <see cref="T:System.Guid"></see> of the workflow instance.</param> protected override bool TryReloadProfile(Type workflowType, Guid workflowInstanceId, out TrackingProfile profile) { using (IResourceAccessor resourceAccessor = CreateAccessor(resourceProvider)) { return(resourceAccessor.TryReloadProfile(workflowType, workflowInstanceId, out profile)); } }