-
Notifications
You must be signed in to change notification settings - Fork 1
Processor
Pedro Felix edited this page Feb 23, 2011
·
1 revision
-
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 anIEnumerable<ProcessorArgument>
-
OnGetOutArguments
return anIEnumerable<ProcessorArgument>
-
OnExecute
receive the input arguments, via aobject[]
and return aProcessorResult
with the output arguments
-
-
Hook (non-abstract methods)
-
OnError
andOnInitialize
-
-
There is a set of generic classes (
Processor<T,TOutput>
,Processor<T1,T2,TOutput>
, ...)- Concrete the
OnGetInArguments
andOnGetOutArguments
based on the generic parameters - Concrete
OnExecute
method that converts fromobject[]
into typed parameters - Abstract
ProcessorResult<TOutput> OnExecute(T input)
method
- Concrete the
-
Existing processors
Pipeline
PipelineEntryProcessor
PipelineExitProcessor
FormUrlEncodedProcessor
JsonProcessor
PlainTextProcessor
XmlProcessor
HtmlProcessor
ResponseEntityBodyProcessor
UriTemplateProcessor