Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
ExitGames.Concurrency.Fibers.GuiFiber Class Reference

Allows interaction with Windows Forms. Transparently moves actions onto the Form's thread. /summary> More...

Inheritance diagram for ExitGames.Concurrency.Fibers.GuiFiber:
ExitGames.Concurrency.Fibers.IFiber ExitGames.Concurrency.Core.ISubscriptionRegistry ExitGames.Concurrency.Core.IExecutionContext ExitGames.Concurrency.Core.IScheduler

Public Member Functions

 GuiFiber (IExecutionContext executionContext, IExecutor executor)
 Creates an instance. More...
 
void Enqueue (Action action)
 Enqueue a single action. More...
 
IDisposable Schedule (Action action, int firstInMs)
 IScheduler.Schedule(Action,int) More...
 
IDisposable ScheduleOnInterval (Action action, int firstInMs, int regularInMs)
 IScheduler.ScheduleOnInterval(Action, int, int) More...
 
IDisposable Schedule (IFiberAction action, int firstInMs)
 IScheduler.Schedule(IFiberAction,int) More...
 
IDisposable ScheduleOnInterval (IFiberAction action, int firstInMs, int regularInMs)
 IScheduler.ScheduleOnInterval(IFiberAction, int, int) More...
 
void Start ()
 IFiber.Start() More...
 
void Dispose ()
 IDisposable.Dispose() More...
 
void Stop ()
 Stops the fiber. More...
 
- Public Member Functions inherited from ExitGames.Concurrency.Core.ISubscriptionRegistry
void RegisterSubscription (IDisposable toAdd)
 Register subscription to be unsubcribed from when the fiber is disposed. /summary> param name="toAdd"> More...
 
bool DeregisterSubscription (IDisposable toRemove)
 
- Public Member Functions inherited from ExitGames.Concurrency.Core.IExecutionContext
void Enqueue (IFiberAction action)
 Enqueue a single action. More...
 

Properties

int NumSubscriptions [get]
 

Detailed Description

Allows interaction with Windows Forms. Transparently moves actions onto the Form's thread. /summary>

Constructor & Destructor Documentation

◆ GuiFiber()

ExitGames.Concurrency.Fibers.GuiFiber.GuiFiber ( IExecutionContext  executionContext,
IExecutor  executor 
)
inline

Creates an instance.

Member Function Documentation

◆ Dispose()

void ExitGames.Concurrency.Fibers.GuiFiber.Dispose ( )
inline

IDisposable.Dispose()

◆ Enqueue()

void ExitGames.Concurrency.Fibers.GuiFiber.Enqueue ( Action  action)
inline

Enqueue a single action.

Parameters
action

Implements ExitGames.Concurrency.Core.IExecutionContext.

◆ Schedule() [1/2]

IDisposable ExitGames.Concurrency.Fibers.GuiFiber.Schedule ( Action  action,
int  firstInMs 
)
inline

◆ Schedule() [2/2]

IDisposable ExitGames.Concurrency.Fibers.GuiFiber.Schedule ( IFiberAction  action,
int  firstInMs 
)
inline

◆ ScheduleOnInterval() [1/2]

IDisposable ExitGames.Concurrency.Fibers.GuiFiber.ScheduleOnInterval ( Action  action,
int  firstInMs,
int  regularInMs 
)
inline

◆ ScheduleOnInterval() [2/2]

IDisposable ExitGames.Concurrency.Fibers.GuiFiber.ScheduleOnInterval ( IFiberAction  action,
int  firstInMs,
int  regularInMs 
)
inline

◆ Start()

void ExitGames.Concurrency.Fibers.GuiFiber.Start ( )
inline

◆ Stop()

void ExitGames.Concurrency.Fibers.GuiFiber.Stop ( )
inline

Stops the fiber.

Property Documentation

◆ NumSubscriptions

int ExitGames.Concurrency.Fibers.GuiFiber.NumSubscriptions
get