C# Class Tempest.MessageFactory

Mostrar archivo Open project: ermau/Tempest

Public Methods

Method 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

Method Description
MessageFactory ( ) : System
RegisterTypesWithCtors ( IEnumerable messageTypes, bool ignoreDupes ) : void

Method Details

Create() public method

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.
return Message

Register() public method

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.
return void