Interface IApplicationInstanceCache
Defines the interface for caching objects inside the application instance (in-proc)
Namespace: ImageVault.Core.Common.Services
Assembly: ImageVault.Core.dll
Syntax
public interface IApplicationInstanceCache
Properties
ActiveMediaAnalysers
Get all active media analyzers
Declaration
IReadOnlyCollection<CorePluginInfo<IMediaAnalyser>> ActiveMediaAnalysers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<CorePluginInfo<IMediaAnalyser>> |
ActiveMediaConverters
Get all active media converters
Declaration
IReadOnlyCollection<CorePluginInfo<IMediaConverterBase>> ActiveMediaConverters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<CorePluginInfo<IMediaConverterBase>> |
ActiveMediaStorages
Get all active media storages
Declaration
IReadOnlyCollection<CorePluginInfo<IMediaStorage>> ActiveMediaStorages { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<CorePluginInfo<IMediaStorage>> |
GlobalRoleHelper
Gets the global role helper
Declaration
GlobalRoleHelper GlobalRoleHelper { get; }
Property Value
Type | Description |
---|---|
GlobalRoleHelper |
OriginalFormat
Gets the OriginalFormat of the system.
Declaration
OriginalFormat OriginalFormat { get; }
Property Value
Type | Description |
---|---|
OriginalFormat |
PublishingSources
Gets the Publishing sources of the application
Declaration
IDictionary<string, int> PublishingSources { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Int32> |
TypeRegistrations
Gets the registered type registrations
Declaration
BiDirectionalDictionary<int, Type> TypeRegistrations { get; }
Property Value
Type | Description |
---|---|
BiDirectionalDictionary<System.Int32, System.Type> |
Vaults
Gets the Vaults of the application
Declaration
IDictionary<int, DbVault> Vaults { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Int32, DbVault> |
Methods
GetSystemFormat<T>(String, Int32, Func<T>)
Gets a system format from the cache
Declaration
T GetSystemFormat<T>(string formatHash, int formatTypeId, Func<T> createFormat)
where T : MediaFormatBase
Parameters
Type | Name | Description |
---|---|---|
System.String | formatHash | The hash of the format to get |
System.Int32 | formatTypeId | |
System.Func<T> | createFormat | If no matching system format is found, this function is called and the output will be used to populate the cache |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
ReconnectToCacheEventHub()
Reconnects the cache to the CacheEventHub
Declaration
void ReconnectToCacheEventHub()
ResetPublishingSources()
Triggers a reload of the PublishingSources
Declaration
void ResetPublishingSources()