public ModuleTenantContainerMiddleware(
     RequestDelegate next,
     IEngineHost host,
     IRunningEngineTable runningEngineTable)
 {
     _next = next;
     _host = host;
     _runningEngineTable = runningEngineTable;
 }
Example #2
0
        public static EngineSettings Match(this IRunningEngineTable table, HttpContext httpContext)
        {
            if (httpContext == null)
            {
                throw new ArgumentNullException(nameof(httpContext));
            }

            var httpRequest = httpContext.Request;

            return(table.Match(httpRequest.Host.ToString(), httpRequest.Path, true));
        }
Example #3
0
 public EngineHost(
     IEngineSettingsManager engineSettingsManager,
     IEngineContextFactory engineContextFactory,
     IRunningEngineTable runningEngineTable,
     IPluginManager pluginManager,
     ILogger <EngineHost> logger)
 {
     _pluginManager         = pluginManager;
     _engineSettingsManager = engineSettingsManager;
     _engineContextFactory  = engineContextFactory;
     _runningEngineTable    = runningEngineTable;
     _logger = logger;
 }