Photon Server API
Public Member Functions | List of all members
ExitGames.Messaging.Channels.IPublisher< T > Interface Template Reference

An Concurrency.Channels.IPublisher<T> with an additional Publish method that includes a host id. The host id is included to identify and filter received messages that were sent from the same host. More...

Inheritance diagram for ExitGames.Messaging.Channels.IPublisher< T >:
ExitGames.Concurrency.Channels.IPublisher< T >

Public Member Functions

bool Publish (T msg, Guid hostId)
 Publishes a message with a host id. More...
 
- Public Member Functions inherited from ExitGames.Concurrency.Channels.IPublisher< T >
bool Publish (T msg)
 Publish a message to all subscribers. Returns true if any subscribers are registered. More...
 

Detailed Description

An Concurrency.Channels.IPublisher<T> with an additional Publish method that includes a host id. The host id is included to identify and filter received messages that were sent from the same host.

Template Parameters
TThe message type.

Member Function Documentation

bool ExitGames.Messaging.Channels.IPublisher< T >.Publish ( msg,
Guid  hostId 
)

Publishes a message with a host id.

Parameters
msgThe message .
hostIdThe host id is included to identify and filter received messages that were sent from the same host.
Returns
True if there is any receiver.