Inversion of control for Orleans framework