C# Class Boo.Lang.Runtime.DispatcherCache

Show file Open project: boo/boo-lang Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Removes all Dispatchers from the cache.

Get ( DispatcherKey key, DispatcherFactory factory ) : Dispatcher

Gets a dispatcher from the cache if available otherwise invokes factory to produce one and then cache it.

Method Details

Clear() public method

Removes all Dispatchers from the cache.
public Clear ( ) : void
return void

Get() public method

Gets a dispatcher from the cache if available otherwise invokes factory to produce one and then cache it.
public Get ( DispatcherKey key, DispatcherFactory factory ) : Dispatcher
key DispatcherKey the dispatcher key
factory DispatcherFactory function to produce a dispatcher in case one it's not yet available
return Dispatcher