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

Subscription for actions on a channel. More...

Inheritance diagram for ExitGames.Concurrency.Channels.ChannelSubscription< T >:
ExitGames.Concurrency.Channels.BaseSubscription< T > ExitGames.Concurrency.Channels.ISubscribable< T > ExitGames.Concurrency.Channels.IProducerThreadSubscriber< T >

Public Member Functions

 ChannelSubscription (IFiber fiber, Action< T > receiver)
 Construct the subscription More...
 
- Public Member Functions inherited from ExitGames.Concurrency.Channels.BaseSubscription< T >
void ReceiveOnProducerThread (T msg)
 IProducerThreadSubscriber<T>.ReceiveOnProducerThread More...
 

Protected Member Functions

override void OnMessageOnProducerThread (T msg)
 Receives the action and queues the execution on the target fiber. More...
 

Properties

override ISubscriptionRegistry Subscriptions [get]
 
- Properties inherited from ExitGames.Concurrency.Channels.BaseSubscription< T >
Filter< T > FilterOnProducerThread [get, set]
 ISubscribable<T>.FilterOnProducerThread More...
 
abstract ISubscriptionRegistry Subscriptions [get]
 
- Properties inherited from ExitGames.Concurrency.Channels.ISubscribable< T >
Filter< T > FilterOnProducerThread [get, set]
 Filter called from producer threads. Should be thread safe as it may be called from multiple threads. More...
 
- Properties inherited from ExitGames.Concurrency.Channels.IProducerThreadSubscriber< T >
ISubscriptionRegistry Subscriptions [get]
 

Detailed Description

Subscription for actions on a channel.

Template Parameters
T

Constructor & Destructor Documentation

ExitGames.Concurrency.Channels.ChannelSubscription< T >.ChannelSubscription ( IFiber  fiber,
Action< T >  receiver 
)
inline

Construct the subscription

Parameters
fiber
receiver

summary> Allows for the registration and deregistration of subscriptions /summary>

Member Function Documentation

override void ExitGames.Concurrency.Channels.ChannelSubscription< T >.OnMessageOnProducerThread ( msg)
inlineprotectedvirtual

Receives the action and queues the execution on the target fiber.

Parameters
msg

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

Property Documentation