\r\n

51Degrees Pipeline .NET  4.1Newer Version 4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder > Class Template Reference

Detailed Description

Base class for pipeline builders that will produce a pipeline with specific flow elements.

Template Parameters
TBuilder -
Type Constraints
TBuilder :PrePackagedPipelineBuilderBase<TBuilder> 

Inheritance diagram for FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder >:

[legend]

Collaboration diagram for FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder >:

[legend]

Public Member Functions

 PrePackagedPipelineBuilderBase (ILoggerFactory loggerFactory)
Constructor More...
TBuilder  UseLazyLoading ()
Enable lazy loading of geo location results. More...
TBuilder  UseLazyLoading (TimeSpan timeout)
Enable lazy loading of geo location results. More...
TBuilder  UseLazyLoading (CancellationToken cancellationToken)
Enable lazy loading of geo location results. More...
TBuilder  UseLazyLoading (TimeSpan timeout, CancellationToken cancellationToken)
Enable lazy loading of geo location results. More...
TBuilder  UseResultsCache ()
Enable caching of geo location results. More...
TBuilder  UseResultsCache (int size)
Enable caching of geo location results. More...

Public Member Functions inherited from FiftyOne.Pipeline.Core.FlowElements.PipelineBuilderBase< TBuilder >

 PipelineBuilderBase (ILoggerFactory loggerFactory)
Create a new PipelineBuilderBase<T> instance. More...
virtual IPipeline  Build ()
Build the pipeline More...
T  AddFlowElement (IFlowElement element)
Add the specified IFlowElement to the pipeline. More...
T  AddFlowElementsParallel (params IFlowElement[] elements)
Add the specified IFlowElement array to the pipeline. More...
T  SetAutoDisposeElements (bool autoDispose)
Configure the Pipeline to either call dispose on it's child FlowElements when it is disposed or not. More...
T  SetSuppressProcessException (bool suppressExceptions)
Configure the Pipeline to either suppress exceptions added to IFlowData.Errors during processing or to throw them as an aggregate exception once processing is complete. More...

Properties

bool  LazyLoading = false [get, set]
bool  ResultsCache = false [get, set]
TimeSpan  LazyLoadingTimeout = TimeSpan.FromSeconds(5) [get, set]
CancellationToken  LazyLoadingCancellationToken = default(CancellationToken) [get, set]
int  ResultsCacheSize = 1000 [get, set]

Properties inherited from FiftyOne.Pipeline.Core.FlowElements.PipelineBuilderBase< TBuilder >

List< IFlowElement >  FlowElements [get]
The elements to be added to the pipeline More...
ILogger< T >  Logger [get]
Logger More...
ILoggerFactory  LoggerFactory [get]
A factory used to create logger instances. More...

Constructor & Destructor Documentation

◆ PrePackagedPipelineBuilderBase()

Constructor

Parameters
loggerFactory -

Member Function Documentation

◆ UseLazyLoading() [1/4]

Enable lazy loading of geo location results.

Uses a default timeout of 5 seconds.

Returns
This builder instance.

◆ UseLazyLoading() [2/4]

TBuilder FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder >.UseLazyLoading ( TimeSpan   timeout )

Enable lazy loading of geo location results.

Parameters
timeout - The timeout to use when attempting to access lazy-loaded values. Default is 5 seconds.
Returns
This builder instance.

◆ UseLazyLoading() [3/4]

TBuilder FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder >.UseLazyLoading ( CancellationToken   cancellationToken )

Enable lazy loading of geo location results.

Uses a default timeout of 5 seconds.

Parameters
cancellationToken - The cancellation token to observe while attempting to access lazy-loaded values.
Returns
This builder instance.

◆ UseLazyLoading() [4/4]

TBuilder FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder >.UseLazyLoading ( TimeSpan   timeout,
CancellationToken   cancellationToken  
)

Enable lazy loading of geo location results.

Parameters
timeout - The timeout to use when attempting to access lazy-loaded values. Default is 5 seconds.
cancellationToken - The cancellation token to observe while attempting to access lazy-loaded values.
Returns
This builder instance.

◆ UseResultsCache() [1/2]

Enable caching of geo location results.

Uses a default cache size of 1000.

Returns
This builder instance.

◆ UseResultsCache() [2/2]

TBuilder FiftyOne.Pipeline.Engines.FlowElements.PrePackagedPipelineBuilderBase< TBuilder >.UseResultsCache ( int   size )

Enable caching of geo location results.

Parameters
size - The maximum number of results to hold in the device detection cache. Default is 1000.
Returns
This builder instance.
On This Page