Click or drag to resize

HazelcastClientGetUserContext Method

Returns a ConcurrentMap that can be used to add user-context to the IHazelcastInstance.

Namespace:  Hazelcast.Client
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.2
Syntax
public ConcurrentDictionary<string, Object> GetUserContext()

Return Value

Type: ConcurrentDictionaryString, Object
the user context.

Implements

IHazelcastInstanceGetUserContext
Remarks
Returns a ConcurrentMap that can be used to add user-context to the IHazelcastInstance. This can be used to store dependencies that otherwise are hard to obtain. IHazelcastInstance can be obtained by implementing IHazelcastInstanceAware interface when submitting a Runnable/Callable to Hazelcast ExecutorService. By storing the dependencies in the user-context, they can be retrieved as soon as you have a reference to the IHazelcastInstance.

This structure is purely local and Hazelcast remains agnostic abouts its content.

See Also