SettingsUnitProvider - класс

Provides a high-level API for retrieving strongly-typed objects from settings units.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
C#
public sealed class SettingsUnitProvider : ISettingsUnitProvider, 
	ISettingsUnitCacheObserver, IDisposable
Inheritance
Object    SettingsUnitProvider
Implements
IDisposable, ISettingsUnitCacheObserver, ISettingsUnitProvider

Заметки

This provider uses ISettingsUnitCache as a first-level cache for raw SettingsUnitRecord instances and maintains a second-level cache ConcurrentDictionaryTKey, TValue for the materialized objects produced by the factory delegate.

Cache coherency is maintained by implementing ISettingsUnitCacheObserver. The second-level cache is automatically invalidated when the underlying record cache expires or is explicitly invalidated.

Конструкторы

SettingsUnitProvider Initializes a new instance of the SettingsUnitProvider class.

Методы

DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetAsyncT Retrieves a strongly-typed object derived from the settings unit record identified by the specified key.
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
OnExpire Called when a cached settings unit record is evicted from the memory cache due to expiration or memory pressure.
OnInvalidate Called when a settings unit is explicitly invalidated, either locally or via a distributed cache invalidation event.
ToStringReturns a string that represents the current object.
(Унаследован от Object)

См. также