Click or drag to resize

IHazelcastInstanceGetUserContext Method

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

Namespace:  Hazelcast.Core
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.11
Syntax
ConcurrentDictionary<string, Object> GetUserContext()

Return Value

Type: ConcurrentDictionaryString, Object
the user context.
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