///<summary> /// Returns the tracking profile, qualified by version, for the /// specified workflow <see cref="T:System.Type"></see>. ///</summary> ///<returns> ///A <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see>. ///</returns> ///<param name="workflowType">The <see cref="T:System.Type"></see> of the workflow.</param> ///<param name="profileVersion">The <see cref="T:System.Version"></see> of the tracking profile.</param> public TrackingProfile GetTrackingProfile(Type workflowType, Version profileVersion) { TraceHelper.Trace(); using (ITrackingProfileResourceAccessor resourceAccessor = CreateAccessor(resourceProvider)) { return(resourceAccessor.GetTrackingProfile(workflowType, profileVersion)); } }
/// <summary> /// Returns the tracking profile for the workflow instance with the /// specified identifier. /// </summary> ///<returns> ///A <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see>. ///</returns> /// <param name="instanceId">The <see cref="Guid"></see> of the workflow instance.</param> public TrackingProfile GetTrackingProfile(Guid instanceId) { TraceHelper.Trace(); using (ITrackingProfileResourceAccessor resourceAccessor = CreateAccessor(resourceProvider)) { return(resourceAccessor.GetTrackingProfile(instanceId)); } }