Skip to content
Pedro Felix edited this page Feb 23, 2011 · 1 revision

Processors

  • Processors are pipeline elements that

    • receive a set of input arguments
    • produce a set of output arguments
  • Abstract base class Processor

  • Abstract methods

    • OnGetInArguments return an IEnumerable<ProcessorArgument>
    • OnGetOutArguments return an IEnumerable<ProcessorArgument>
    • OnExecute receive the input arguments, via a object[] and return a ProcessorResult with the output arguments
  • Hook (non-abstract methods)

    • OnError and OnInitialize
  • There is a set of generic classes (Processor<T,TOutput>, Processor<T1,T2,TOutput>, ...)

    • Concrete the OnGetInArguments and OnGetOutArguments based on the generic parameters
    • Concrete OnExecute method that converts from object[] into typed parameters
    • Abstract ProcessorResult<TOutput> OnExecute(T input) method
  • Existing processors

    • Pipeline
    • PipelineEntryProcessor
    • PipelineExitProcessor
    • FormUrlEncodedProcessor
    • JsonProcessor
    • PlainTextProcessor
    • XmlProcessor
    • HtmlProcessor
    • ResponseEntityBodyProcessor
    • UriTemplateProcessor
Clone this wiki locally