C# Class ParkitectNexus.Data.Assets.LocalAssetRepository

Inheritance: ILocalAssetRepository
Mostra file Open project: ParkitectNexus/ParkitectNexusClient

Public Methods

Method Description
DeleteAsset ( IAsset asset ) : void
GetAssetCount ( AssetType type ) : int
GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through the collection.

LocalAssetRepository ( IParkitect parkitect, IWebsite website, ILogger log, IAssetMetadataStorage assetMetadataStorage, IAssetCachedDataStorage assetCachedDataStorage ) : System
StoreAsset ( IDownloadedAsset downloadedAsset ) : Task
this ( AssetType type ) : IEnumerable

Protected Methods

Method Description
OnAssetAdded ( AssetEventArgs e ) : void

Raises the E:AssetAdded event.

OnAssetRemoved ( AssetEventArgs e ) : void

Raises the E:AssetRemoved event.

Private Methods

Method Description
GetFilesInAssetPath ( AssetType type ) : string[]
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Method Details

DeleteAsset() public method

public DeleteAsset ( IAsset asset ) : void
asset IAsset
return void

GetAssetCount() public method

public GetAssetCount ( AssetType type ) : int
type AssetType
return int

GetEnumerator() public method

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

LocalAssetRepository() public method

public LocalAssetRepository ( IParkitect parkitect, IWebsite website, ILogger log, IAssetMetadataStorage assetMetadataStorage, IAssetCachedDataStorage assetCachedDataStorage ) : System
parkitect IParkitect
website IWebsite
log ILogger
assetMetadataStorage IAssetMetadataStorage
assetCachedDataStorage IAssetCachedDataStorage
return System

OnAssetAdded() protected method

Raises the E:AssetAdded event.
protected OnAssetAdded ( AssetEventArgs e ) : void
e AssetEventArgs The instance containing the event data.
return void

OnAssetRemoved() protected method

Raises the E:AssetRemoved event.
protected OnAssetRemoved ( AssetEventArgs e ) : void
e AssetEventArgs The instance containing the event data.
return void

StoreAsset() public method

public StoreAsset ( IDownloadedAsset downloadedAsset ) : Task
downloadedAsset IDownloadedAsset
return Task

this() public method

public this ( AssetType type ) : IEnumerable
type AssetType
return IEnumerable