Solclient
ContextFactoryCreateContext Method |
Creates a new IContext instance.
Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
public IContext CreateContext( ContextProperties contextProperties, EventHandler<ContextEventArgs> contextEventHandler )
Public Function CreateContext ( contextProperties As ContextProperties, contextEventHandler As EventHandler(Of ContextEventArgs) ) As IContext
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: IContextA new IContext instance
Exceptions
Exception | Condition |
---|---|
OperationErrorException | thrown when unable to create a new context instance |
FatalErrorException | thrown when unrecoverable error occurs |
See Also