示例#1
0
 private void AddAndRegisterShell(ShellContext context)
 {
     if (this._shellContexts.TryAdd(context.get_Settings().get_Name(), context) && this.CanRegisterShell(context))
     {
         this.RegisterShellSettings(context.get_Settings());
     }
     return;
 }
示例#2
0
 private bool CanRegisterShell(ShellContext context)
 {
     if (this.CanRegisterShell(context.get_Settings()))
     {
         return(true);
     }
     if (this._logger.IsEnabled(1))
     {
         stackVariable11    = this._logger;
         stackVariable14    = new object[1];
         stackVariable14[0] = context.get_Settings().get_Name();
         LoggerExtensions.LogDebug(stackVariable11, "Skipping shell context registration for tenant '{TenantName}'", stackVariable14);
     }
     return(false);
 }
 public static HttpContext CreateHttpContext(this ShellContext shell)
 {
     stackVariable2 = shell.get_Settings().CreateHttpContext();
     stackVariable3 = stackVariable2.get_Features();
     stackVariable4 = new ShellContextFeature();
     stackVariable4.set_ShellContext(shell);
     stackVariable4.set_OriginalPathBase(PathString.op_Implicit(string.Empty));
     stackVariable4.set_OriginalPath(PathString.op_Implicit("/"));
     stackVariable3.Set <ShellContextFeature>(stackVariable4);
     return(stackVariable2);
 }