public ViewsCache(
string instanceName,
ISeparateDbConnectionWorker worker,
IGlobalCacheLock globalCacheLock,
[OptionalDependencyAttribute] ISharedEventSubscriberFactory? subscriberFactory = null,
[OptionalDependencyAttribute] IUnityDisposableContainer? container = null
)
Public Sub New (
instanceName As String,
worker As ISeparateDbConnectionWorker,
globalCacheLock As IGlobalCacheLock,
<OptionalDependencyAttribute> Optional subscriberFactory As ISharedEventSubscriberFactory = Nothing,
<OptionalDependencyAttribute> Optional container As IUnityDisposableContainer = Nothing
)
public:
ViewsCache(
String^ instanceName,
ISeparateDbConnectionWorker^ worker,
IGlobalCacheLock^ globalCacheLock,
[OptionalDependencyAttribute] ISharedEventSubscriberFactory^ subscriberFactory = nullptr,
[OptionalDependencyAttribute] IUnityDisposableContainer^ container = nullptr
)
new :
instanceName : string *
worker : ISeparateDbConnectionWorker *
globalCacheLock : IGlobalCacheLock *
[<OptionalDependencyAttribute>] ?subscriberFactory : ISharedEventSubscriberFactory *
[<OptionalDependencyAttribute>] ?container : IUnityDisposableContainer
(* Defaults:
let _subscriberFactory = defaultArg subscriberFactory null
let _container = defaultArg container null
*)
-> ViewsCache
Фабрика объектов, выполняющих подписки и уведомления по глобальному событию инвалидации кэша.
Если это значение равно null, то кэш перестаёт быть глобальным и кэширует данные только в текущем объекте.