Skip to content

C# Pattern To Track Multi-Step Process in App? Mediator?

Paul

Asked Oct 10, 2007, 11:08 AM EDT1 answer
Share
LinkedInX

Hi all!

I am processing a file uploaded by the user to the application. A number of steps are used to process the file, and each of these steps is handled by code in different classes. Here's my question:
Is there a pattern that can be used to track the status and flow of these steps through the process? Rather than have each class call the next one in the process, is there a more efficient way to do so?
I looked at Mediator, and it seems to me that this pattern is more useful for objects calling one another in a crosshatch kind of way. I am wondering if anyone has experience with tracking a sequential process through code!

My thanks!

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    Except for simple things generally you have to mix and match parts of patterns to solve your problem.  In your case, I can see glints of the Mediator, Observer, and perhaps the Chain of Responsibility.

    Have you also considered using WF?  This would be a perfect fit and you wouldn't have to design any of the plumbing.

    0