C# Class Tempest.MessageFactory

Afficher le fichier Open project: ermau/Tempest

Méthodes publiques

Méthode Description
Create ( ushort messageType ) : Message

Creates a new instance of the messageType.

Register ( IEnumerable messageTypes ) : void

Registers types with a method of construction.

Private Methods

Méthode Description
MessageFactory ( ) : System
RegisterTypesWithCtors ( IEnumerable messageTypes, bool ignoreDupes ) : void

Method Details

Create() public méthode

Creates a new instance of the messageType.
public Create ( ushort messageType ) : Message
messageType ushort The unique message identifier in the protocol for the desired message.
Résultat Message

Register() public méthode

Registers types with a method of construction.
is null. /// contains non-implementations of /// or contains duplicate s.
public Register ( IEnumerable messageTypes ) : void
messageTypes IEnumerable The types to register.
Résultat void