// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Yarp.ReverseProxy.Configuration;
namespace Aspire.Hosting.Yarp;
/// <summary>
/// Interface to build a configuration file for YARP
/// </summary>
public interface IYarpConfigurationBuilder
{
/// <summary>
/// Add a RouteConfig to the YARP resource
/// </summary>
public IYarpConfigurationBuilder AddRoute(RouteConfig route);
/// <summary>
/// Add a ClusterConfig to the YARP resource
/// </summary>
public IYarpConfigurationBuilder AddCluster(ClusterConfig cluster);
/// <summary>
/// Add a YARP config to the YARP resource
/// </summary>
public IYarpConfigurationBuilder WithConfigFile(string configFilePath);
}
|