\r\n

51Degrees Pipeline .NET  4.1Newer Version 4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine > Class Template Reference abstract

Detailed Description

Abstract base class that exposes the common options that all 51Degrees on-premise engine builders should make use of.

Template Parameters
TBuilder - The specific builder type to use as the return type from the fluent builder methods.
TEngine - The type of the engine that this builder will build
Type Constraints
TBuilder :OnPremiseAspectEngineBuilderBase 
TBuilder :TBuilder 
TBuilder :TEngine 
TEngine :IOnPremiseAspectEngine 

Inheritance diagram for FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >:

[legend]

Collaboration diagram for FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >:

[legend]

Public Member Functions

 OnPremiseAspectEngineBuilderBase (IDataUpdateService dataUpdateService)
Constructor More...
TBuilder  AddDataFile (IDataFileConfiguration configuration)
Add a data file for this engine to use. More...
TBuilder  SetTempDirPath (string dirPath)
Set the temporary path to use when the engine needs to create temporary files. More...
abstract TBuilder  SetPerformanceProfile (PerformanceProfiles profile)
Set the performance profile that the engine should use. More...

Public Member Functions inherited from FiftyOne.Pipeline.Engines.FlowElements.AspectEngineBuilderBase< TBuilder, TEngine >

TBuilder  SetLazyLoading (LazyLoadingConfiguration lazyLoadingConfig)
Configure lazy loading of results. More...
TBuilder  SetCache (CacheConfiguration cacheConfig)
Configure the results cache that will be used by the Pipeline to cache results from this engine. More...
TBuilder  SetProperties (List< string > properties)
Configure the properties that the engine will populate in the response. More...
TBuilder  SetProperty (string property)
Add a property to the list of properties that the engine will populate in the response. More...

Protected Member Functions

virtual AspectEngineDataFile  NewAspectEngineDataFile ()
Create a new instance of the AspectEngineDataFile instances used by the engine associated with this builder. More...
override void  PreCreateEngine ()
Called by the 'BuildEngine' method to handle anything that needs doing before the engine is built. More...
override void  ConfigureEngine (TEngine engine)
Called by the 'BuildEngine' method to handle configuration of the engine after it is built. More...

Protected Member Functions inherited from FiftyOne.Pipeline.Engines.FlowElements.AspectEngineBuilderBase< TBuilder, TEngine >

abstract TEngine  NewEngine (List< string > properties)
Called by the BuildEngine() method to handle creation of the engine instance. More...
TEngine  BuildEngine ()
Build an engine using the configured options. More...

Properties

List< IDataFileConfiguration >  DataFileConfigs = new List<IDataFileConfiguration>() [get, set]
List< AspectEngineDataFile >  DataFiles = new List<AspectEngineDataFile>() [get, set]
string  TempDir = Path.GetTempPath() [get, set]

Properties inherited from FiftyOne.Pipeline.Engines.FlowElements.AspectEngineBuilderBase< TBuilder, TEngine >

List< string >  Properties = new List<string>() [get]

Constructor & Destructor Documentation

◆ OnPremiseAspectEngineBuilderBase()

Constructor

Parameters
dataUpdateService - The IDataUpdateService instance to use when checking for data updates. If null is passed then data updates functionality will be unavailable.

Member Function Documentation

◆ AddDataFile()

TBuilder FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >.AddDataFile ( IDataFileConfiguration   configuration )

Add a data file for this engine to use.

Parameters
configuration - The data file configuration to add to this engine.
Returns
This engine builder instance.

◆ ConfigureEngine()

override void FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >.ConfigureEngine ( TEngine   engine )
protected virtual

Called by the 'BuildEngine' method to handle configuration of the engine after it is built.

Can be overridden by derived classes to add additional configuration, but the base method should always be called.

Parameters
engine - The engine to configure.

Reimplemented from FiftyOne.Pipeline.Engines.FlowElements.AspectEngineBuilderBase< TBuilder, TEngine >.

◆ NewAspectEngineDataFile()

protected virtual

Create a new instance of the AspectEngineDataFile instances used by the engine associated with this builder.

If the engine uses a derived type then this method should be overridden to return a new instance on that type.

Returns
A new AspectEngineDataFile instance.

Reimplemented in FiftyOne.Pipeline.Engines.FiftyOne.FlowElements.FiftyOneOnPremiseAspectEngineBuilderBase< TBuilder, TEngine >.

◆ PreCreateEngine()

override void FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >.PreCreateEngine ( )
protected virtual

Called by the 'BuildEngine' method to handle anything that needs doing before the engine is built.

Reimplemented from FiftyOne.Pipeline.Engines.FlowElements.AspectEngineBuilderBase< TBuilder, TEngine >.

◆ SetPerformanceProfile()

abstract TBuilder FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >.SetPerformanceProfile ( PerformanceProfiles   profile )
pure virtual

Set the performance profile that the engine should use.

Parameters
profile -
Returns

◆ SetTempDirPath()

TBuilder FiftyOne.Pipeline.Engines.FlowElements.OnPremiseAspectEngineBuilderBase< TBuilder, TEngine >.SetTempDirPath ( string   dirPath )

Set the temporary path to use when the engine needs to create temporary files.

(e.g. when downloading data updates) Default = Path.GetTempPath();

Parameters
dirPath - The full path to the temporary directory
Returns
This engine builder instance.
On This Page