Click or drag to resize
CacheHelperRegisterDependencyCallbackTTarget Method
Registers a cache callback for given list of cache dependencies

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static void RegisterDependencyCallback<TTarget>(
	string key,
	CMSCacheDependency cd,
	TTarget target,
	Action<TTarget, Object> handler,
	Object parameter,
	bool useManagedThread = true
)
where TTarget : class

Parameters

key
Type: SystemString
Cache key to use
cd
Type: CMS.HelpersCMSCacheDependency
Cache dependency to which bind the handler
target
Type: TTarget
Target object for the callback
handler
Type: SystemActionTTarget, Object
Callback handler
parameter
Type: SystemObject
Callback parameter
useManagedThread (Optional)
Type: SystemBoolean
If true, managed thread (CMSThread) is used for the callback

Type Parameters

TTarget
See Also