AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
AMPS.Client.ProtocolFactory Class Reference

Class which creates Protocols as well as registering and unregistering them from a Dictionary. More...

Static Public Member Functions

static void register (string name, string msgType)
 Method to register the name of the message and the message type. More...
 
static void unregister (string name)
 Method to unregister a message. More...
 
static Protocol createProtocol (string name, Properties props)
 Creates a protocol. More...
 

Detailed Description

Class which creates Protocols as well as registering and unregistering them from a Dictionary.

Member Function Documentation

◆ createProtocol()

static Protocol AMPS.Client.ProtocolFactory.createProtocol ( string  name,
Properties  props 
)
inlinestatic

Creates a protocol.

Parameters
nameA string which holds the name of the protocol.
propsA Properties object which holds the properties of the protocol.
Exceptions
ProtocolExceptionThe provided name is not a valid protocol.
Returns
This instance so that various operations can be chained together.

◆ register()

static void AMPS.Client.ProtocolFactory.register ( string  name,
string  msgType 
)
inlinestatic

Method to register the name of the message and the message type.

Parameters
nameA string containing the name of the message.
msgTypeA string containing the type of the message.
Exceptions
ProtocolExceptionThe name is already registered

◆ unregister()

static void AMPS.Client.ProtocolFactory.unregister ( string  name)
inlinestatic

Method to unregister a message.

Parameters
nameA string containing the name of the message.
Exceptions
ProtocolExceptionThe provided name is not registered.

The documentation for this class was generated from the following file: