Photon Server API
Public Member Functions | List of all members
ExitGames.Concurrency.Channels.RequestReplyChannel< R, M > Class Template Reference

Channel for synchronous and asynchronous requests. More...

Inheritance diagram for ExitGames.Concurrency.Channels.RequestReplyChannel< R, M >:
ExitGames.Concurrency.Channels.IRequestReplyChannel< R, M > ExitGames.Concurrency.Channels.IRequestPublisher< R, M > ExitGames.Concurrency.Channels.IReplySubscriber< R, M >

Public Member Functions

IDisposable Subscribe (IFiber fiber, Action< IRequest< R, M >> onRequest)
 Subscribe to requests. More...
 
IReply< M > SendRequest (R p)
 Send request to any and all subscribers. More...
 

Detailed Description

Channel for synchronous and asynchronous requests.

Template Parameters
R
M

Member Function Documentation

IReply<M> ExitGames.Concurrency.Channels.RequestReplyChannel< R, M >.SendRequest ( p)
inline

Send request to any and all subscribers.

Parameters
p
Returns
null if no subscribers registered for request.

Implements ExitGames.Concurrency.Channels.IRequestPublisher< R, M >.

IDisposable ExitGames.Concurrency.Channels.RequestReplyChannel< R, M >.Subscribe ( IFiber  fiber,
Action< IRequest< R, M >>  onRequest 
)
inline

Subscribe to requests.

Parameters
fiber
onRequest
Returns

Implements ExitGames.Concurrency.Channels.IReplySubscriber< R, M >.