Example #1
0
        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();
        }
Example #2
0
 public void Dispose()
 {
     broker?.Dispose();
     subscription?.Dispose();
 }
Example #3
0
 public void Dispose()
 {
     broker?.Dispose();
 }