C# Class TrianglesInSpace.Messaging.MessageReceiver

Inheritance: IMessageReceiver, IDisposable
显示文件 Open project: anthony-martin/Triangles-in-space

Public Methods

Method Description
AddListener ( Action onMessageReceived ) : System.Action
CreateReceiveSocket ( ) : void
Dispose ( ) : void
Listen ( ) : void
MessageReceiver ( IMessageContext context ) : System
Receive ( ) : string
ReceiveLoop ( ) : void
RemoveListener ( Action onMessageReceived ) : void
SubscribeAndWait ( ) : void

Method Details

AddListener() public method

public AddListener ( Action onMessageReceived ) : System.Action
onMessageReceived Action
return System.Action

CreateReceiveSocket() public method

public CreateReceiveSocket ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Listen() public method

public Listen ( ) : void
return void

MessageReceiver() public method

public MessageReceiver ( IMessageContext context ) : System
context IMessageContext
return System

Receive() public method

public Receive ( ) : string
return string

ReceiveLoop() public method

public ReceiveLoop ( ) : void
return void

RemoveListener() public method

public RemoveListener ( Action onMessageReceived ) : void
onMessageReceived Action
return void

SubscribeAndWait() public method

public SubscribeAndWait ( ) : void
return void