CVB.Net 14.0
MessageChannel Class Reference

The message channel to create and send GenICam GenApi events. More...

Public Member Functions

GenApiEvent CreateGenApiEvent (string name, Namespace nameSpace)
 Creates a new event with the given name . More...
 
void Send (GenApiEvent genApiEvent)
 Sends the given genApiEvent to the remote client. More...
 
bool TrySend (GenApiEvent genApiEvent)
 Tries to send the given genApiEvent to the remote client. More...
 

Properties

GevServer Parent [get]
 Gets the parent server object.
 
IDictionary< string, GenApiEventEvents [get]
 Gets the dictionary containing all registered events.
 

Detailed Description

The message channel to create and send GenICam GenApi events.

Member Function Documentation

◆ CreateGenApiEvent()

GenApiEvent CreateGenApiEvent ( string  name,
Namespace  nameSpace 
)

Creates a new event with the given name .

Adds several nodes necessary for event activation and basic information like ID and timestamp of last update.

Parameters
nameUnique name of the event.
nameSpaceNamespace of the event.
Returns
The event object to Send.

◆ Send()

void Send ( GenApiEvent  genApiEvent)

Sends the given genApiEvent to the remote client.

Parameters
genApiEventGenApi event to send.

◆ TrySend()

bool TrySend ( GenApiEvent  genApiEvent)

Tries to send the given genApiEvent to the remote client.

Parameters
genApiEventGenApi event to send.
Returns
true if successfully sent; false on any error. Parameter errors and disposed exception will still be thrown.