Photon Server API
Public Member Functions | Properties | List of all members
ExitGames.Concurrency.Fibers.StubScheduledAction Class Reference

For use only in testing. Allows for controlled execution of scheduled actions on the StubFiber. /summary> More...

Inheritance diagram for ExitGames.Concurrency.Fibers.StubScheduledAction:

Public Member Functions

 StubScheduledAction (Action action, long firstIntervalInMs, long intervalInMs, List< StubScheduledAction > registry)
 
 StubScheduledAction (Action action, long timeTilEnqueueInMs, List< StubScheduledAction > registry)
 
void Execute ()
 
void Dispose ()
 Cancels scheduled action. Removes scheduled action from registry. More...
 

Properties

long FirstIntervalInMs [get]
 
long IntervalInMs [get]
 

Detailed Description

For use only in testing. Allows for controlled execution of scheduled actions on the StubFiber. /summary>

Constructor & Destructor Documentation

ExitGames.Concurrency.Fibers.StubScheduledAction.StubScheduledAction ( Action  action,
long  firstIntervalInMs,
long  intervalInMs,
List< StubScheduledAction registry 
)
inline

summary> Use for scheduled actions that only occur once. /summary> param name="action">

param name="timeTilEnqueueInMs">

param name="registry">

ExitGames.Concurrency.Fibers.StubScheduledAction.StubScheduledAction ( Action  action,
long  timeTilEnqueueInMs,
List< StubScheduledAction registry 
)
inline

summary> First interval in milliseconds. /summary>

Member Function Documentation

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

Cancels scheduled action. Removes scheduled action from registry.

void ExitGames.Concurrency.Fibers.StubScheduledAction.Execute ( )
inline

Property Documentation

long ExitGames.Concurrency.Fibers.StubScheduledAction.FirstIntervalInMs
get

summary> Recurring interval in milliseconds. /summary>

long ExitGames.Concurrency.Fibers.StubScheduledAction.IntervalInMs
get

summary> Executes the scheduled action. If the action is not recurring it will be removed from the registry. /summary>