public virtual void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
        {
            WorkflowServiceHost workflowServiceHost = serviceHostBase as WorkflowServiceHost;
             if (null != workflowServiceHost)
             {
                 string workflowDisplayName = workflowServiceHost.Activity.DisplayName;
                 TrackingProfile trackingProfile = GetProfile(this.profileName, workflowDisplayName);

                 TextFileTrackingParticipant participant = new TextFileTrackingParticipant()
                 {
                     TrackingProfile = trackingProfile,
                     Path = path
                 };

                 workflowServiceHost.WorkflowExtensions.Add(participant);
             }
        }
        public virtual void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
        {
            WorkflowServiceHost workflowServiceHost = serviceHostBase as WorkflowServiceHost;

            if (null != workflowServiceHost)
            {
                string          workflowDisplayName = workflowServiceHost.Activity.DisplayName;
                TrackingProfile trackingProfile     = GetProfile(this.profileName, workflowDisplayName);

                TextFileTrackingParticipant participant = new TextFileTrackingParticipant()
                {
                    TrackingProfile = trackingProfile,
                    Path            = path
                };

                workflowServiceHost.WorkflowExtensions.Add(participant);
            }
        }