示例#1
0
 ///<summary>
 ///Must be overridden in the derived class, and when implemented, retrieves the tracking profile for the specified workflow type if one is available.
 ///</summary>
 ///
 ///<returns>
 ///true if a <see cref="T:System.Workflow.Runtime.Tracking.TrackingProfile"></see> for the specified workflow <see cref="T:System.Type"></see> is available; 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 for which to get the tracking profile.</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>
 protected override bool TryGetProfile(Type workflowType, out TrackingProfile profile)
 {
     using (IResourceAccessor resourceAccessor = CreateAccessor(resourceProvider))
     {
         return(resourceAccessor.TryGetProfile(workflowType, out profile));
     }
 }