Beispiel #1
0
 public static ILifetimeScope CreateShellContainer_Obsolete(this ISystemHost host)
 {
     return(((DefaultSystemHost)host)
            .Current
            .Single(x => x.Settings.Name == ShellSettings.DefaultName)
            .LifetimeScope);
 }
Beispiel #2
0
 /// <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>();
 }
Beispiel #3
0
 /// <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;
 }
Beispiel #4
0
 /// <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();
 }
Beispiel #8
0
 /// <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;
 }
Beispiel #9
0
 public static ISystemShell CreateShell_Obsolete(this ISystemHost host)
 {
     return(host.CreateShellContainer_Obsolete().Resolve <ISystemShell>());
 }