File: Builder\IApplicationBuilderFactory.cs
Web Access
Project: src\src\Hosting\Hosting\src\Microsoft.AspNetCore.Hosting.csproj (Microsoft.AspNetCore.Hosting)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http.Features;
 
namespace Microsoft.AspNetCore.Hosting.Builder;
 
/// <summary>
/// Provides an interface for implementing a factory that produces <see cref="IApplicationBuilder"/> instances.
/// </summary>
public interface IApplicationBuilderFactory
{
    /// <summary>
    /// Create an <see cref="IApplicationBuilder" /> builder given a <paramref name="serverFeatures" />
    /// </summary>
    /// <param name="serverFeatures">An <see cref="IFeatureCollection"/> of HTTP features.</param>
    /// <returns>An <see cref="IApplicationBuilder"/> configured with <paramref name="serverFeatures"/>.</returns>
    IApplicationBuilder CreateBuilder(IFeatureCollection serverFeatures);
}