protected override void Dispose(bool explicitDispose) { _createAppRuntime = null; _createAppStartupContext = null; _onAppDescriptionLoaded = null; _onAppCreated = null; _onAppInitialized = null; _onAppStarted = null; // base.Dispose(explicitDispose); }
public XAppContainerControlReadOnlyConfiguration( Func <IContext, Task <IXAppRuntimeService> > createAppRuntime, XAppStartupContextFactory <ICustomXAppDescription> createAppStartupContext, Func <ICustomXAppDescription, ICustomXAppStartupContext, Task> onAppDescriptionLoaded = default, Func <ICustomXApp, ICustomXAppStartupContext, Task> onAppCreated = default, Func <ICustomXApp, ICustomXAppStartupContext, Task> onAppInitialized = default, bool isAppStartForbidden = default, Func <ICustomXApp, ICustomXAppStartupContext, Task> onAppStarted = default) { // createAppRuntime.EnsureNotNull(nameof(createAppRuntime)); createAppStartupContext.EnsureNotNull(nameof(createAppStartupContext)); // _createAppRuntime = createAppRuntime; _createAppStartupContext = createAppStartupContext; _onAppDescriptionLoaded = onAppDescriptionLoaded; _onAppCreated = onAppCreated; _onAppInitialized = onAppInitialized; _isAppStartForbidden = isAppStartForbidden; _onAppStarted = onAppStarted; }