C# Class WhiteCore.Modules.Archivers.AssetsRequest

Encapsulate the asynchronous requests for the assets required for an archive operation
显示文件 Open project: WhiteCoreSim/WhiteCore-Dev

Protected Properties

Property Type Description
m_assetService IAssetService
m_assetsArchiver WhiteCore.Modules.Archivers.AssetsArchiver
m_assetsRequestCallback AssetsRequestCallback
m_foundAssetUuids List
m_notFoundAssetUuids List
m_requestCallbackTimer System.Timers.Timer
m_uuids AssetType>.IDictionary

Public Methods

Method Description
AssetRequestCallback ( string assetID, object sender, WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase asset ) : void

Called back by the asset cache when it has the asset

Protected Methods

Method Description
AssetsRequest ( WhiteCore.Modules.Archivers.AssetsArchiver assetsArchiver, AssetType>.IDictionary uuids, IAssetService assetService, AssetsRequestCallback assetsRequestCallback ) : System
Execute ( ) : void
OnRequestCallbackTimeout ( object source, System.Timers.ElapsedEventArgs args ) : void
PerformAssetsRequestCallback ( object o ) : void

Perform the callback on the original requester of the assets

PreAssetRequestCallback ( string fetchedAssetID, object assetType, WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase fetchedAsset ) : void

Method Details

AssetRequestCallback() public method

Called back by the asset cache when it has the asset
public AssetRequestCallback ( string assetID, object sender, WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase asset ) : void
assetID string
sender object
asset WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
return void

AssetsRequest() protected method

protected AssetsRequest ( WhiteCore.Modules.Archivers.AssetsArchiver assetsArchiver, AssetType>.IDictionary uuids, IAssetService assetService, AssetsRequestCallback assetsRequestCallback ) : System
assetsArchiver WhiteCore.Modules.Archivers.AssetsArchiver
uuids AssetType>.IDictionary
assetService IAssetService
assetsRequestCallback AssetsRequestCallback
return System

Execute() protected method

protected Execute ( ) : void
return void

OnRequestCallbackTimeout() protected method

protected OnRequestCallbackTimeout ( object source, System.Timers.ElapsedEventArgs args ) : void
source object
args System.Timers.ElapsedEventArgs
return void

PerformAssetsRequestCallback() protected method

Perform the callback on the original requester of the assets
protected PerformAssetsRequestCallback ( object o ) : void
o object
return void

PreAssetRequestCallback() protected method

protected PreAssetRequestCallback ( string fetchedAssetID, object assetType, WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase fetchedAsset ) : void
fetchedAssetID string
assetType object
fetchedAsset WhiteCore.Framework.Services.ClassHelpers.Assets.AssetBase
return void

Property Details

m_assetService protected_oe property

protected IAssetService m_assetService
return IAssetService

m_assetsArchiver protected_oe property

protected AssetsArchiver,WhiteCore.Modules.Archivers m_assetsArchiver
return WhiteCore.Modules.Archivers.AssetsArchiver

m_assetsRequestCallback protected_oe property

protected AssetsRequestCallback m_assetsRequestCallback
return AssetsRequestCallback

m_foundAssetUuids protected_oe property

protected List m_foundAssetUuids
return List

m_notFoundAssetUuids protected_oe property

protected List m_notFoundAssetUuids
return List

m_requestCallbackTimer protected_oe property

protected Timer,System.Timers m_requestCallbackTimer
return System.Timers.Timer

m_uuids protected_oe property

protected IDictionary m_uuids
return AssetType>.IDictionary