public void DisposeShellContext(IShellSettings settings) { // Dispose _runningShellTable.Remove(settings); if (_shellContexts.TryRemove(settings.Name, out var context)) { if (_shellContexts.Count == 0) { _shellContexts = null; } context.Dispose(); } // Dispose all shell message broker subscriptions // These will be activated again via BuildTenantPipeline within // Plato.Internal.Hosting.Web.Routing.PlatoRouterMiddleware _broker?.Dispose(); // Stop all shell background tasks // These will be activated again via BuildTenantPipeline within // Plato.Internal.Hosting.Web.Routing.PlatoRouterMiddleware _taskManager.StopTasks(); }
public void Dispose() { broker?.Dispose(); subscription?.Dispose(); }
public void Dispose() { broker?.Dispose(); }