Click or drag to resize

ContextFactoryCreateContext Method

version: 10.22.0
Creates a new IContext instance.

Namespace:  SolaceSystems.Solclient.Messaging
Assembly:  SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.22.0
Syntax
C#
public IContext CreateContext(
	ContextProperties contextProperties,
	EventHandler<ContextEventArgs> contextEventHandler
)

Parameters

contextProperties
Type: SolaceSystems.Solclient.MessagingContextProperties
Context properties
contextEventHandler
Type: SystemEventHandlerContextEventArgs
An EventHandler delegate

Return Value

Type: IContext
A new IContext instance
Exceptions
ExceptionCondition
OperationErrorException thrown when unable to create a new context instance
FatalErrorException thrown when unrecoverable error occurs
See Also