C# Class Universe.RedisServices.AssetService.AssetService

Inheritance: Universe.Framework.Services.ConnectorBase, IAssetService, IService
Datei anzeigen Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
doDatabaseCaching bool
m_assetService IAssetDataPlugin
m_connectionDNS string
m_connectionPassword string
m_connectionPool Pool>
m_connectionPort int
m_enabled bool
m_migrateSQL bool

Public Methods

Method Description
Configure ( IConfigSource config, IRegistryCore registry ) : void
FinishedStartup ( ) : void
Get ( string id, object sender, AssetRetrieved handler ) : void
GetCached ( string id ) : AssetBase
GetMesh ( string id ) : AssetBase
Initialize ( IConfigSource config, IRegistryCore registry ) : void
RedisDeleteAsset ( string id ) : void
RedisExistsAsset ( string id ) : bool
RedisGetAsset ( string id ) : AssetBase
RedisSetAsset ( AssetBase asset ) : bool
Start ( IConfigSource config, IRegistryCore registry ) : void

Protected Methods

Method Description
HandleDeleteAsset ( IScene scene, string args ) : void

Handles the delete asset command.

HandleGetAsset ( IScene scene, string args ) : void

Handles the get asset command.

HandleMigrateSQLAssets ( IScene scene, string args ) : void

Handles enable/disable of the migrate SQL setting.

HandleShowDigest ( IScene scene, string args ) : void

Handles the show digest command.

Private Methods

Method Description
CheckForConversion ( string id ) : AssetBase
Delete ( UUID id ) : bool
Get ( string id ) : AssetBase
Get ( string id, bool showWarnings ) : AssetBase
GetData ( string id ) : byte[]
GetExists ( string id ) : bool
RedisEnsureConnection ( Func func ) : bool
RedisEnsureConnection ( Func func ) : byte[]
Store ( AssetBase asset ) : UUID
UpdateContent ( UUID id, byte data ) : UUID

Method Details

Configure() public method

public Configure ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

Get() public method

public Get ( string id, object sender, AssetRetrieved handler ) : void
id string
sender object
handler AssetRetrieved
return void

GetCached() public method

public GetCached ( string id ) : AssetBase
id string
return Universe.Framework.Services.ClassHelpers.Assets.AssetBase

GetMesh() public method

public GetMesh ( string id ) : AssetBase
id string
return Universe.Framework.Services.ClassHelpers.Assets.AssetBase

HandleDeleteAsset() protected method

Handles the delete asset command.
protected HandleDeleteAsset ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

HandleGetAsset() protected method

Handles the get asset command.
protected HandleGetAsset ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

HandleMigrateSQLAssets() protected method

Handles enable/disable of the migrate SQL setting.
protected HandleMigrateSQLAssets ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

HandleShowDigest() protected method

Handles the show digest command.
protected HandleShowDigest ( IScene scene, string args ) : void
scene IScene Scene.
args string Arguments.
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

RedisDeleteAsset() public method

public RedisDeleteAsset ( string id ) : void
id string
return void

RedisExistsAsset() public method

public RedisExistsAsset ( string id ) : bool
id string
return bool

RedisGetAsset() public method

public RedisGetAsset ( string id ) : AssetBase
id string
return Universe.Framework.Services.ClassHelpers.Assets.AssetBase

RedisSetAsset() public method

public RedisSetAsset ( AssetBase asset ) : bool
asset Universe.Framework.Services.ClassHelpers.Assets.AssetBase
return bool

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Property Details

doDatabaseCaching protected_oe property

protected bool doDatabaseCaching
return bool

m_assetService protected_oe property

protected IAssetDataPlugin m_assetService
return IAssetDataPlugin

m_connectionDNS protected_oe property

protected string m_connectionDNS
return string

m_connectionPassword protected_oe property

protected string m_connectionPassword
return string

m_connectionPool protected_oe property

protected Pool> m_connectionPool
return Pool>

m_connectionPort protected_oe property

protected int m_connectionPort
return int

m_enabled protected_oe property

protected bool m_enabled
return bool

m_migrateSQL protected_oe property

protected bool m_migrateSQL
return bool