public static ILifetimeScope CreateShellContainer_Obsolete(this ISystemHost host) { return(((DefaultSystemHost)host) .Current .Single(x => x.Settings.Name == ShellSettings.DefaultName) .LifetimeScope); }
/// <summary> /// Creates new instance of <see cref="HostMiddleware"/>. /// </summary> public HostMiddleware( RequestDelegate next, ISystemHost host, ITenantSelector tenantSelector, ILoggerFactory loggerFactory) { _next = next; _host = host; _tenantSelector = tenantSelector; _logger = loggerFactory.CreateLogger<HostMiddleware>(); }
/// <summary>Subscribes this system to the specified system host, so that host can receive updates.</summary> /// <param name="sender">The system host to receive our updates.</param> public void SubscribeToSystemHost(ISystemHost sender) { this.SystemHost = sender; }
/// <summary>Subscribes this system to the specified system host, so that host can receive updates.</summary> /// <param name="systemHost">The system host to receive our updates.</param> public void SubscribeToSystemHost(ISystemHost systemHost) { SystemHost = systemHost; }
/// <summary> /// Subscribes this system to the specified system host, so that host can receive updates. /// </summary> /// <param name="sender">The system host to receive our updates.</param> public void SubscribeToSystemHost(ISystemHost sender) { this.host = sender; }
private static void HostEndRequest(HttpApplication application, ISystemHost host) { host.EndRequest(); }
private static void HostBeginRequest(HttpApplication application, ISystemHost host) { application.Context.Items["originalHttpContext"] = application.Context; host.BeginRequest(); }
/// <summary> /// Subscribes this system to the specified system host, so that host can receive updates. /// </summary> /// <param name="sender">The system host to receive our updates.</param> public void SubscribeToSystemHost(ISystemHost systemHost) { this.SystemHost = systemHost; }
public static ISystemShell CreateShell_Obsolete(this ISystemHost host) { return(host.CreateShellContainer_Obsolete().Resolve <ISystemShell>()); }