Cached and Inner Classes
- Just like before when we discussed
Cached
in the context of another BusinessProcess (see Introducing Cached), we can useCached
for an inner class.
public class ShowOrdersToDemoInnerClasses : UIControllerBase
{
...
protected override void OnEnterRow()
{
- new GetTotals(this).Run();
Cached<GetTotals>().Run();
}
...
}
- Note that we don't have to send
this
to the cached method - it is implicit. TheCached
method knows automatically that if the called constructor requires the parent class, it'll send itthis
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com