示例#1
0
 ///<summary>
 ///Must be overridden in the derived class, and when implemented, 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="profileVersionId">The <see cref="T:System.Version"></see> of the tracking profile.</param>
 protected override TrackingProfile GetProfile(Type workflowType, Version profileVersionId)
 {
     using (IResourceAccessor resourceAccessor = CreateAccessor(resourceProvider))
     {
         return(resourceAccessor.GetProfile(workflowType, profileVersionId));
     }
 }
示例#2
0
 ///<summary>
 ///Must be overridden in the derived class, and when implemented, returns the tracking profile for the specified workflow instance.
 ///</summary>
 ///
 ///<returns>
 ///A <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see>.
 ///</returns>
 ///
 ///<param name="workflowInstanceId">The <see cref="T:System.Guid"></see> of the workflow instance.</param>
 protected override TrackingProfile GetProfile(Guid workflowInstanceId)
 {
     using (IResourceAccessor resourceAccessor = CreateAccessor(resourceProvider))
     {
         return(resourceAccessor.GetProfile(workflowInstanceId));
     }
 }