\r\n

51Degrees Pipeline .NET  4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile Class Reference

Detailed Description

This class contains all configuration and run-time state information that is associated with a particular data file used by an aspect engine.

Inheritance diagram for FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile:

[legend]

Collaboration diagram for FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile:

[legend]

Public Member Functions

 AspectEngineDataFile (Type engineType=null)
Constructor More...
void  SetDataUpdateService (IDataUpdateService dataUpdateService)
Set the data update service that this data file is registered with. More...
void  Dispose ()
Dispose of this instance's resources. More...

Public Attributes

virtual string  FormattedUrl => FormattedUri.AbsoluteUri
Get the data update URL complete with any query string parameters that are needed to retrieve the data. More...

Protected Member Functions

virtual void  Dispose (bool disposing)
Dispose of this instance More...

Properties

string??  Identifier [get, set]
The name or identifier for this data file object. More...
IOnPremiseAspectEngine  Engine [get, set]
Get or set the IOnPremiseAspectEngine associated with this data file. More...
Type  EngineType [get]
Get or set the type of the engine that this data file is for. More...
virtual string  DataFilePath [get]
The complete file path to the location of the data file. More...
string  TempDataDirPath [get, set]
The path to use when working with temporary files associated with this data file. More...
virtual bool  AutomaticUpdatesEnabled [get]
True if automatic updates are enabled, false otherwise. More...
virtual string  TempDataFilePath [get, set]
The complete file path to the location of the temporary copy of the data file that is currently being used by the IAspectEngine. More...
DateTime  UpdateAvailableTime [get, set]
The date/time that a data update is expected to be available. More...
DateTime  DataPublishedDateTime [get, set]
The data/time that this data was published. More...
IDataFileConfiguration  Configuration [get, set]
The configuration parameters used when creating this data file instance. More...
virtual Uri  FormattedUri [get]
Get the data update URL complete with any query string parameters that are needed to retrieve the data. More...
bool  IsRegistered [get]
Returns true if this file has been registered with the data update service. More...

Properties inherited from FiftyOne.Pipeline.Engines.Data.IAspectEngineDataFile

string  Identifier [get, set]
An identifier for this data file. More...
IOnPremiseAspectEngine  Engine [get, set]
The engine this data file is used by More...
Type  EngineType [get]
Get the type of the engine that this data file is for. More...
string  DataFilePath [get]
The complete file path to the location of the data file. More...
string  TempDataDirPath [get, set]
The path to use when working with temporary files associated with this data file. More...
string  TempDataFilePath [get, set]
The complete file path to the location of the temporary copy of the data file that is currently being used by the IAspectEngine. More...
bool  AutomaticUpdatesEnabled [get]
True if automatic updates are enabled, false otherwise. More...
DateTime  UpdateAvailableTime [get, set]
The date and time by which an update to the current data file is expected to have been published. More...
DateTime  DataPublishedDateTime [get, set]
The date and time that the current data file was published. More...
IDataFileConfiguration  Configuration [get, set]
The configuration that was provided for this data file. More...
string  FormattedUrl [get]
Get the data update URL complete with any query string parameters that are needed to retrieve the data. More...
Uri  FormattedUri [get]
Get the data update URL complete with any query string parameters that are needed to retrieve the data. More...
bool  IsRegistered [get]
Returns true if this file has been registered with the data update service. More...

Constructor & Destructor Documentation

◆ AspectEngineDataFile()

FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.AspectEngineDataFile ( Type   engineType = null )

Constructor

Parameters
engineType - The type of the engine that this data file is used by.

Member Function Documentation

◆ Dispose() [1/2]

virtual void FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.Dispose ( bool   disposing )
protected virtual

Dispose of this instance

Parameters
disposing - True if this is called from the Dispose method. False if this is called from the finalizer.

◆ Dispose() [2/2]

void FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.Dispose ( )

Dispose of this instance's resources.

Member Data Documentation

◆ FormattedUrl

virtual string FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.FormattedUrl => FormattedUri.AbsoluteUri

Get the data update URL complete with any query string parameters that are needed to retrieve the data.

By default, no query string parameters are added to the URL.

Property Documentation

◆ AutomaticUpdatesEnabled

virtual bool FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.AutomaticUpdatesEnabled
get

True if automatic updates are enabled, false otherwise.

◆ Configuration

IDataFileConfiguration FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.Configuration
get set

The configuration parameters used when creating this data file instance.

◆ DataFilePath

virtual string FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.DataFilePath
get

The complete file path to the location of the data file.

This value will be null if the file has been supplied from a byte[] in memory.

◆ DataPublishedDateTime

DateTime FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.DataPublishedDateTime
get set

The data/time that this data was published.

◆ Engine

IOnPremiseAspectEngine FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.Engine
get set

Get or set the IOnPremiseAspectEngine associated with this data file.

◆ EngineType

Type FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.EngineType
get

Get or set the type of the engine that this data file is for.

This exists in addition to the Engine property because Engine can be null. This then allows the user to identify which engine this file relates to.

◆ FormattedUri

virtual Uri FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.FormattedUri
get

Get the data update URL complete with any query string parameters that are needed to retrieve the data.

By default, no query string parameters are added to the URL.

◆ Identifier

string?? FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.Identifier
get set

The name or identifier for this data file object.

Note that this is not the same as the filename. It is used by engines that require multiple data-files to determine what a given data file object relates to.

◆ IsRegistered

bool FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.IsRegistered
get

Returns true if this file has been registered with the data update service.

False if not.

◆ TempDataDirPath

string FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.TempDataDirPath
get set

The path to use when working with temporary files associated with this data file.

◆ TempDataFilePath

virtual string FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.TempDataFilePath
get set

The complete file path to the location of the temporary copy of the data file that is currently being used by the IAspectEngine.

Engines often make a temporary copy of the data file in order to allow the original to be updated. This value will be null if the file is loaded entirely into memory.

◆ UpdateAvailableTime

DateTime FiftyOne.Pipeline.Engines.Data.AspectEngineDataFile.UpdateAvailableTime
get set

The date/time that a data update is expected to be available.