My application has a “pipeline” concept that runs through and executes one to many “components”. Some of these components cannot be executed unless one to many other components are run before it.
My goal is to somehow annotate these dependencies so that I can test via unit tests that they are ordered properly for execution in the pipeline.
Is there a construct in C#/.NET that would support this objective? My plan was to just inherit from a base component class that has a property on it, but I was hoping there’d be a better way.
Thoughts/suggestions?
Attributes would be one way to go:
http://msdn.microsoft.com/en-us/library/z0w1kczw.aspx