public virtual void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
        {
            // get the tracking profile
            TrackingProfile trackingProfile = GetProfile(this.profileName);

            // configure the custom tracking with the new tracking profile
            HistoryFileTrackingParticipant participant = new HistoryFileTrackingParticipant() { TrackingProfile = trackingProfile };

            // add it to the extensions collection
            ((WorkflowServiceHost)serviceHostBase).WorkflowExtensions.Add(participant);
        }
        public virtual void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
        {
            // get the tracking profile
            TrackingProfile trackingProfile = GetProfile(this.profileName);

            // configure the custom tracking with the new tracking profile
            HistoryFileTrackingParticipant participant = new HistoryFileTrackingParticipant()
            {
                TrackingProfile = trackingProfile
            };

            // add it to the extensions collection
            ((WorkflowServiceHost)serviceHostBase).WorkflowExtensions.Add(participant);
        }
 public HistorySavePersistenceParticipant(HistoryFileTrackingParticipant participant)
     : base(true, false)
 {
     this.Participant = participant;
 }
Esempio n. 4
0
 public HistorySavePersistenceParticipant(HistoryFileTrackingParticipant participant)
     : base(true, false)
 {
     this.Participant = participant;
 }