Photon Server API
Public Member Functions | List of all members
ExitGames.Concurrency.Channels.QueueChannel< T > Class Template Reference

Default QueueChannel implementation. Once and only once delivery to first available consumer. More...

Inheritance diagram for ExitGames.Concurrency.Channels.QueueChannel< T >:
ExitGames.Concurrency.Channels.IQueueChannel< T >

Public Member Functions

IDisposable Subscribe (IExecutionContext executionContext, Action< T > onMessage)
 Subscribe to executor messages. More...
 
void Publish (T message)
 Publish message onto queue. Notify consumers of message. More...
 

Detailed Description

Default QueueChannel implementation. Once and only once delivery to first available consumer.

Template Parameters
T

Member Function Documentation

void ExitGames.Concurrency.Channels.QueueChannel< T >.Publish ( message)
inline

Publish message onto queue. Notify consumers of message.

Parameters
message

Implements ExitGames.Concurrency.Channels.IQueueChannel< T >.

IDisposable ExitGames.Concurrency.Channels.QueueChannel< T >.Subscribe ( IExecutionContext  executionContext,
Action< T >  onMessage 
)
inline

Subscribe to executor messages.

Parameters
executionContext
onMessage
Returns

Implements ExitGames.Concurrency.Channels.IQueueChannel< T >.