Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     broker?.Dispose();
     subscription?.Dispose();
 }
Ejemplo n.º 3
0
 public void Dispose()
 {
     broker?.Dispose();
 }