Photon Server API
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 ExitGames.Concurrency.Fibers.DispatcherFiber ExitGames.Concurrency.Fibers.FormFiber

Public Member Functions

 GuiFiber (IExecutionContext executionContext, IExecutor executor)
 Creates an instance. More...
 
void Enqueue (Action action)
 Enqueue a single action. More...
 
void RegisterSubscription (IDisposable toAdd)
 
bool DeregisterSubscription (IDisposable toRemove)
 
IDisposable Schedule (Action action, long firstInMs)
 IScheduler.Schedule(Action,long) More...
 
IDisposable ScheduleOnInterval (Action action, long firstInMs, long regularInMs)
 IScheduler.ScheduleOnInterval(Action,long,long) More...
 
void Start ()
 IFiber.Start() More...
 
void Dispose ()
 IDisposable.Dispose() More...
 
void Stop ()
 Stops the fiber. More...
 

Properties

int NumSubscriptions [get]
 

Detailed Description

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

Constructor & Destructor Documentation

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

Creates an instance.

Member Function Documentation

bool ExitGames.Concurrency.Fibers.GuiFiber.DeregisterSubscription ( IDisposable  toRemove)
inline

summary> Number of subscriptions. /summary>

Implements ExitGames.Concurrency.Core.ISubscriptionRegistry.

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

IDisposable.Dispose()

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

Enqueue a single action.

Parameters
action

summary> Register subscription to be unsubcribed from when the fiber is disposed. /summary> param name="toAdd">

Implements ExitGames.Concurrency.Core.IExecutionContext.

void ExitGames.Concurrency.Fibers.GuiFiber.RegisterSubscription ( IDisposable  toAdd)
inline

summary> Deregister a subscription. /summary> param name="toRemove">

returns>

Implements ExitGames.Concurrency.Core.ISubscriptionRegistry.

IDisposable ExitGames.Concurrency.Fibers.GuiFiber.Schedule ( Action  action,
long  firstInMs 
)
inline
IDisposable ExitGames.Concurrency.Fibers.GuiFiber.ScheduleOnInterval ( Action  action,
long  firstInMs,
long  regularInMs 
)
inline
void ExitGames.Concurrency.Fibers.GuiFiber.Start ( )
inline
void ExitGames.Concurrency.Fibers.GuiFiber.Stop ( )
inline

Stops the fiber.

Property Documentation

int ExitGames.Concurrency.Fibers.GuiFiber.NumSubscriptions
get