예제 #1
0
        TextWriter ConfigureExtensions(WorkflowApplication instance)
        {
            instance.Extensions.Add(() =>
            {
                TrackingParticipant participant = new TextWriterTrackingParticipant(this.hostView.OutputWriter);
                participant.TrackingProfile     = CreateTrackingProfile();
                return(participant);
            });

            TextWriter textWriter = this.hostView.CreateInstanceWriter();

            instance.Extensions.Add(() => textWriter);
            return(textWriter);
        }
        TextWriter ConfigureExtensions(WorkflowApplication instance)
        {
            instance.Extensions.Add(() =>
                {
                    TrackingParticipant participant = new TextWriterTrackingParticipant(this.hostView.OutputWriter);
                    participant.TrackingProfile = CreateTrackingProfile();
                    return participant;
                });

            TextWriter textWriter = this.hostView.CreateInstanceWriter();
            instance.Extensions.Add(() => textWriter);
            return textWriter;
        }