2021-11-20 13:52:28 +01:00
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
using Microsoft.AspNetCore.Routing;
|
|
|
|
|
|
|
|
|
|
namespace zero.Routing;
|
|
|
|
|
|
|
|
|
|
public class ZeroEndpointRouteBuilder : IZeroEndpointRouteBuilder
|
|
|
|
|
{
|
2021-11-27 16:09:02 +01:00
|
|
|
readonly IEndpointRouteBuilder _builder;
|
2021-11-20 13:52:28 +01:00
|
|
|
|
|
|
|
|
public IServiceProvider ServiceProvider => _builder.ServiceProvider;
|
|
|
|
|
|
|
|
|
|
public ICollection<EndpointDataSource> DataSources => _builder.DataSources;
|
|
|
|
|
|
|
|
|
|
internal ZeroEndpointRouteBuilder(IEndpointRouteBuilder builder)
|
|
|
|
|
{
|
|
|
|
|
_builder = builder;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IApplicationBuilder CreateApplicationBuilder() => _builder.CreateApplicationBuilder();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public interface IZeroEndpointRouteBuilder : IEndpointRouteBuilder
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|