| 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.12.3
Syntax ConcurrentDictionary<string, Object> GetUserContext()
Function GetUserContext As ConcurrentDictionary(Of String, Object)
ConcurrentDictionary<String^, Object^>^ GetUserContext()
abstract GetUserContext : unit -> ConcurrentDictionary<string, Object>
Return Value
Type:
ConcurrentDictionaryString,
Objectthe 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