10.26.0

ContextFactoryCreateContext Method

Creates a new IContext instance.

Definition

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

Parameters

contextProperties  ContextProperties
Context properties
contextEventHandler  EventHandlerContextEventArgs
An EventHandler delegate

Return Value

IContext
A new IContext instance

Exceptions

OperationErrorException thrown when unable to create a new context instance
FatalErrorException thrown when unrecoverable error occurs

See Also