Cached and Inner Classes

  • Just like before when we discussed Cached in the context of another BusinessProcess (see Introducing Cached), we can use Cached 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. The Cached method knows automatically that if the called constructor requires the parent class, it'll send it this

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com