Interface IParallelizedProcessorControlPlane
Interface implemented to provide control plane for ParallelizedProcessor.
Namespace: SuperOffice.Threading
Assembly: SoCore.dll
Syntax
public interface IParallelizedProcessorControlPlane
Remarks
This is a part of the ParallelProcessor<TParallelizedProcessor> pattern.
Methods
ReportCompleted(ParallelizedProcessor)
Report that processing has completed. This could either be because of an error or that it was told to stop processing.
Declaration
void ReportCompleted(ParallelizedProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ParallelizedProcessor | processor | Caller |
Remarks
This is a part of the ParallelProcessor<TParallelizedProcessor> pattern.
ReportError(ParallelizedProcessor, Exception)
Report that an error has occurred.
Declaration
void ReportError(ParallelizedProcessor processor, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
ParallelizedProcessor | processor | Caller |
Exception | exception | Error that occured |
Remarks
This is a part of the ParallelProcessor<TParallelizedProcessor> pattern.
ShouldProcessorContinue(ParallelizedProcessor)
Called by the ParallelizedProcessor to determine if it should continue processing.
Declaration
bool ShouldProcessorContinue(ParallelizedProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ParallelizedProcessor | processor | Caller |
Returns
Type | Description |
---|---|
bool | True to continue processing, false to complete and clean up. |
Remarks
This is a part of the ParallelProcessor<TParallelizedProcessor> pattern.