Owin.Loader.DefaultLoader.Load C# (CSharp) Method

Load() public method

Executes the loader, searching for the entry point by name.
public Load ( string startupName ) : Action
startupName string The name of the assembly and type entry point
return Action
        public Action<IAppBuilder> Load(string startupName)
        {
            return LoadImplementation(startupName) ?? _next(startupName);
        }

Usage Example

Esempio n. 1
0
        private IntegratedPipelineBlueprint InitializeBlueprint()
        {
            IntegratedPipelineBlueprintStage firstStage = null;

            string appStartup = ConfigurationManager.AppSettings[Constants.OwinAppStartup];
            var loader = new DefaultLoader();
            Action<IAppBuilder> startup = loader.Load(appStartup ?? string.Empty);
            if (startup == null)
            {
                return null;
            }

            var appContext = OwinBuilder.Build(builder =>
            {
                EnableIntegratedPipeline(builder, stage => firstStage = stage);
                startup.Invoke(builder);
            });

            if (appContext == null)
            {
                return null;
            }

            string basePath = Utils.NormalizePath(HttpRuntime.AppDomainAppVirtualPath);

            return new IntegratedPipelineBlueprint(appContext, firstStage, basePath);
        }
All Usage Examples Of Owin.Loader.DefaultLoader::Load