void XafDeltaModule_CustomGetApplication(object sender, CustomGetApplicationArgs e) { e.Application = Application ?? WebApplication.Instance; }