-
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
-
OnGetInArgumentsreturn anIEnumerable<ProcessorArgument> -
OnGetOutArgumentsreturn anIEnumerable<ProcessorArgument> -
OnExecutereceive the input arguments, via aobject[]and return aProcessorResultwith the output arguments
-
-
Hook (non-abstract methods)
-
OnErrorandOnInitialize
-
-
There is a set of generic classes (
Processor<T,TOutput>,Processor<T1,T2,TOutput>, ...)- Concrete the
OnGetInArgumentsandOnGetOutArgumentsbased on the generic parameters - Concrete
OnExecutemethod that converts fromobject[]into typed parameters - Abstract
ProcessorResult<TOutput> OnExecute(T input)method
- Concrete the
-
Existing processors
PipelinePipelineEntryProcessorPipelineExitProcessorFormUrlEncodedProcessorJsonProcessorPlainTextProcessorXmlProcessorHtmlProcessorResponseEntityBodyProcessorUriTemplateProcessor