Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
CacheListenerSupport..::.AddSafeListener Method
CacheListenerSupport Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Ensure that the specified cache has an Listeners object associated with the specified key and add the specified listener to it.

Namespace: Tangosol.Net.Cache.Support
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    protected static void AddSafeListener(
    	IDictionary cacheListeners,
    	Object key,
    	ICacheListener listener
    )

#### Parameters

cacheListeners
  Type: System.Collections..::.IDictionary
  Dictionary of cache listeners.

key
  Type: System..::.Object
  Key that specified listener should be associated to.

listener
  Type: Tangosol.Net.Cache..::.ICacheListener
  Listener to associate to specified key.

# See Also

CacheListenerSupport Class
Tangosol.Net.Cache.Support Namespace