diff --git a/.editorconfig b/.editorconfig index f6894d885..ce55b04e8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -166,6 +166,9 @@ dotnet_code_quality_unused_parameters = all:error ## C#-specific style [*.cs] +# License header +file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license. + # Preferred order of modfiers. # https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#normalize-modifiers csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error diff --git a/README.md b/README.md index aef0a5d08..5ffcbf848 100644 --- a/README.md +++ b/README.md @@ -56,13 +56,8 @@ Security issues and bugs should be reported privately, via email, to the Microso # Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. - -When you submit a pull request, a CLA bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. +This project welcomes contributions and suggestions. +Check out the [contributing](CONTRIBUTING.md) page for more info. This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct). diff --git a/reverse-proxy.sln b/YARP.sln similarity index 100% rename from reverse-proxy.sln rename to YARP.sln diff --git a/contributing.md b/contributing.md index dbc2a8d11..a0a287e55 100644 --- a/contributing.md +++ b/contributing.md @@ -50,9 +50,12 @@ One of the primary goals of YARP is to be easily extensible. Each deployment sit ### Submitting a pull request -You will need to sign a [Contributor License Agreement](https://cla.opensource.microsoft.com) when submitting your pull request. To complete the Contributor License Agreement (CLA), you will need to follow the instructions provided by the CLA bot when you send the pull request. This needs to only be done once for all repos using this CLA. +You will need to sign a [Contributor License Agreement](https://cla.dotnetfoundation.org/) when submitting your pull request. +To complete the Contributor License Agreement (CLA), you will need to follow the instructions provided by the CLA bot when you send the pull request. +This needs to only be done once for any .NET Foundation OSS project. -If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests. Make sure the repository can build and all tests pass. Familiarize yourself with the project workflow and our coding conventions. +If you don't know what a pull request is read this article: https://help.github.com/articles/using-pull-requests. +Make sure the repository can build and all tests pass. Familiarize yourself with the project workflow and our coding conventions. ### Feedback diff --git a/docs/operations/BackportingToPreview.md b/docs/operations/BackportingToPreview.md index 9fc870772..0e6ed4229 100644 --- a/docs/operations/BackportingToPreview.md +++ b/docs/operations/BackportingToPreview.md @@ -23,7 +23,7 @@ Backporting changes is very similar to a regular release. Changes are made on th Issues with significant security or disclosure concerns need to be fixed privately first. All of this work will happen on the internal Azdo repo and be merged to the public github repo at the time of disclosure. -- Make a separate clone of https://dnceng@dev.azure.com/dnceng/internal/_git/microsoft-reverse-proxy to avoid accidentally pushing to the public repo. +- Make a separate clone of https://dnceng@dev.azure.com/dnceng/internal/_git/dotnet-yarp to avoid accidentally pushing to the public repo. - Create a branch named `internal/release/{version being patched}` starting from the tagged commit of the prior release. - Update versioning as needed. - Create a feature branch, fix the issue, and send a PR using Azdo. diff --git a/eng/CodeAnalysis.src.globalconfig b/eng/CodeAnalysis.src.globalconfig index 5ec982ac5..278125889 100644 --- a/eng/CodeAnalysis.src.globalconfig +++ b/eng/CodeAnalysis.src.globalconfig @@ -1765,7 +1765,7 @@ dotnet_diagnostic.IDE0071.severity = warning dotnet_diagnostic.IDE0072.severity = silent # IDE0073: The file header is missing or not located at the top of the file -dotnet_diagnostic.IDE0073.severity = warning +dotnet_diagnostic.IDE0073.severity = error # IDE0074: Use compound assignment dotnet_diagnostic.IDE0074.severity = warning diff --git a/eng/CodeAnalysis.test.globalconfig b/eng/CodeAnalysis.test.globalconfig index dcd680fd3..0ce8a952c 100644 --- a/eng/CodeAnalysis.test.globalconfig +++ b/eng/CodeAnalysis.test.globalconfig @@ -1762,7 +1762,7 @@ dotnet_diagnostic.IDE0071.severity = silent dotnet_diagnostic.IDE0072.severity = silent # IDE0073: The file header is missing or not located at the top of the file -dotnet_diagnostic.IDE0073.severity = silent +dotnet_diagnostic.IDE0073.severity = error # IDE0074: Use compound assignment dotnet_diagnostic.IDE0074.severity = silent diff --git a/samples/Prometheus/HttpLoadApp/Program.cs b/samples/Prometheus/HttpLoadApp/Program.cs index 275a2afdb..e1cd66b0d 100644 --- a/samples/Prometheus/HttpLoadApp/Program.cs +++ b/samples/Prometheus/HttpLoadApp/Program.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Net.Http; using System.Threading.Tasks; diff --git a/samples/Prometheus/ReverseProxy.Metrics-Prometheus.Sample/PrometheusOutboundHttpMetrics.cs b/samples/Prometheus/ReverseProxy.Metrics-Prometheus.Sample/PrometheusOutboundHttpMetrics.cs index 78551d5f1..0787a7f5a 100644 --- a/samples/Prometheus/ReverseProxy.Metrics-Prometheus.Sample/PrometheusOutboundHttpMetrics.cs +++ b/samples/Prometheus/ReverseProxy.Metrics-Prometheus.Sample/PrometheusOutboundHttpMetrics.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. diff --git a/samples/ReverseProxy.HttpSysDelegation.Sample/ReverseProxy/Program.cs b/samples/ReverseProxy.HttpSysDelegation.Sample/ReverseProxy/Program.cs index ba835f22f..6a7d464d6 100644 --- a/samples/ReverseProxy.HttpSysDelegation.Sample/ReverseProxy/Program.cs +++ b/samples/ReverseProxy.HttpSysDelegation.Sample/ReverseProxy/Program.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System.Diagnostics; var builder = WebApplication.CreateBuilder(args); diff --git a/samples/ReverseProxy.HttpSysDelegation.Sample/SampleHttpSysServer/Program.cs b/samples/ReverseProxy.HttpSysDelegation.Sample/SampleHttpSysServer/Program.cs index bac1ca6d4..3e0f4ea56 100644 --- a/samples/ReverseProxy.HttpSysDelegation.Sample/SampleHttpSysServer/Program.cs +++ b/samples/ReverseProxy.HttpSysDelegation.Sample/SampleHttpSysServer/Program.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System.Diagnostics; using Microsoft.AspNetCore.Server.HttpSys; diff --git a/samples/ReverseProxy.Metrics.Sample/PerRequestMetrics.cs b/samples/ReverseProxy.Metrics.Sample/PerRequestMetrics.cs index c0dac5212..5391593f9 100644 --- a/samples/ReverseProxy.Metrics.Sample/PerRequestMetrics.cs +++ b/samples/ReverseProxy.Metrics.Sample/PerRequestMetrics.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Threading; using Yarp.ReverseProxy.Forwarder; diff --git a/samples/ReverseProxy.Metrics.Sample/PerRequestYarpMetricCollectionMiddleware.cs b/samples/ReverseProxy.Metrics.Sample/PerRequestYarpMetricCollectionMiddleware.cs index 7120e0d36..beaba6034 100644 --- a/samples/ReverseProxy.Metrics.Sample/PerRequestYarpMetricCollectionMiddleware.cs +++ b/samples/ReverseProxy.Metrics.Sample/PerRequestYarpMetricCollectionMiddleware.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/samples/ReverseProxy.Metrics.Sample/WebSocketsTelemetryConsumer.cs b/samples/ReverseProxy.Metrics.Sample/WebSocketsTelemetryConsumer.cs index fd9b066d2..161c55ea1 100644 --- a/samples/ReverseProxy.Metrics.Sample/WebSocketsTelemetryConsumer.cs +++ b/samples/ReverseProxy.Metrics.Sample/WebSocketsTelemetryConsumer.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using Microsoft.Extensions.Logging; using Yarp.Telemetry.Consumption; diff --git a/src/Application/Program.cs b/src/Application/Program.cs index 1f08448ff..1a33a51a9 100644 --- a/src/Application/Program.cs +++ b/src/Application/Program.cs @@ -1,3 +1,6 @@ +// 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.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Kubernetes.Controller/Converters/YarpParser.cs b/src/Kubernetes.Controller/Converters/YarpParser.cs index 99b25f994..6efcd2882 100644 --- a/src/Kubernetes.Controller/Converters/YarpParser.cs +++ b/src/Kubernetes.Controller/Converters/YarpParser.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Collections.Generic; using System.Globalization; diff --git a/src/Kubernetes.Controller/Properties/AssemblyInfo.cs b/src/Kubernetes.Controller/Properties/AssemblyInfo.cs index f6f5f63f1..76d0c2a74 100644 --- a/src/Kubernetes.Controller/Properties/AssemblyInfo.cs +++ b/src/Kubernetes.Controller/Properties/AssemblyInfo.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. diff --git a/src/Kubernetes.Controller/Protocol/DispatchConfigProvider.cs b/src/Kubernetes.Controller/Protocol/DispatchConfigProvider.cs index aa031d46c..d70f55eda 100644 --- a/src/Kubernetes.Controller/Protocol/DispatchConfigProvider.cs +++ b/src/Kubernetes.Controller/Protocol/DispatchConfigProvider.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Collections.Generic; using System.Linq; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/DestinationValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/DestinationValidator.cs index 5f0846cee..1e0346a76 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/DestinationValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/DestinationValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/HealthCheckValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/HealthCheckValidator.cs index 2ff17945f..375286b4b 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/HealthCheckValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/HealthCheckValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Frozen; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/IClusterValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/IClusterValidator.cs index d94f1dda0..df3b51189 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/IClusterValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/IClusterValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/LoadBalancingValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/LoadBalancingValidator.cs index ab92645a9..0a575b435 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/LoadBalancingValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/LoadBalancingValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Frozen; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpClientValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpClientValidator.cs index 1c79901e9..c1e850ef4 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpClientValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpClientValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpRequestValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpRequestValidator.cs index 3ea737b41..59f4157cd 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpRequestValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/ProxyHttpRequestValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/ClusterValidators/SessionAffinityValidator.cs b/src/ReverseProxy/Configuration/ClusterValidators/SessionAffinityValidator.cs index b74b8109a..4402dcd7e 100644 --- a/src/ReverseProxy/Configuration/ClusterValidators/SessionAffinityValidator.cs +++ b/src/ReverseProxy/Configuration/ClusterValidators/SessionAffinityValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Frozen; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/AuthorizationPolicyValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/AuthorizationPolicyValidator.cs index 2e34e4cf5..7a73a4570 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/AuthorizationPolicyValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/AuthorizationPolicyValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; diff --git a/src/ReverseProxy/Configuration/RouteValidators/CorsPolicyValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/CorsPolicyValidator.cs index 288cff809..bb02fc904 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/CorsPolicyValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/CorsPolicyValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Cors.Infrastructure; diff --git a/src/ReverseProxy/Configuration/RouteValidators/HeadersValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/HeadersValidator.cs index a955b0e81..08a0a0c8b 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/HeadersValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/HeadersValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/HostValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/HostValidator.cs index df77551fb..7aef40f53 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/HostValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/HostValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/IRouteValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/IRouteValidator.cs index aac53e356..da2fdc6b9 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/IRouteValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/IRouteValidator.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/MethodsValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/MethodsValidator.cs index 599b0ac10..8f1a70b7c 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/MethodsValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/MethodsValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/OutputCachePolicyValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/OutputCachePolicyValidator.cs index 253d2c8a6..743f4e588 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/OutputCachePolicyValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/OutputCachePolicyValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/PathValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/PathValidator.cs index 412d91ec0..ed430642a 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/PathValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/PathValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Routing.Patterns; diff --git a/src/ReverseProxy/Configuration/RouteValidators/QueryParametersValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/QueryParametersValidator.cs index 879bdac6e..e0f5024dd 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/QueryParametersValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/QueryParametersValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/RateLimitPolicyValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/RateLimitPolicyValidator.cs index fd8306cfa..833763344 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/RateLimitPolicyValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/RateLimitPolicyValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/ReverseProxy/Configuration/RouteValidators/TimeoutPolicyValidator.cs b/src/ReverseProxy/Configuration/RouteValidators/TimeoutPolicyValidator.cs index a57131f35..0c17d4628 100644 --- a/src/ReverseProxy/Configuration/RouteValidators/TimeoutPolicyValidator.cs +++ b/src/ReverseProxy/Configuration/RouteValidators/TimeoutPolicyValidator.cs @@ -1,4 +1,7 @@ -using System; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; using System.Collections.Generic; using System.Threading.Tasks; #if NET8_0_OR_GREATER diff --git a/src/ReverseProxy/Delegation/IHttpSysDelegator.cs b/src/ReverseProxy/Delegation/IHttpSysDelegator.cs index 382832158..733ccdceb 100644 --- a/src/ReverseProxy/Delegation/IHttpSysDelegator.cs +++ b/src/ReverseProxy/Delegation/IHttpSysDelegator.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + namespace Yarp.ReverseProxy.Delegation; public interface IHttpSysDelegator diff --git a/src/ReverseProxy/Transforms/RequestHeaderRouteValueTransform.cs b/src/ReverseProxy/Transforms/RequestHeaderRouteValueTransform.cs index 0bb89ba8d..a5bdf3f98 100644 --- a/src/ReverseProxy/Transforms/RequestHeaderRouteValueTransform.cs +++ b/src/ReverseProxy/Transforms/RequestHeaderRouteValueTransform.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; namespace Yarp.ReverseProxy.Transforms; diff --git a/src/ReverseProxy/Transforms/RequestHeaderTransform.cs b/src/ReverseProxy/Transforms/RequestHeaderTransform.cs index 0195dc127..b46d0d1e2 100644 --- a/src/ReverseProxy/Transforms/RequestHeaderTransform.cs +++ b/src/ReverseProxy/Transforms/RequestHeaderTransform.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Threading.Tasks; using Microsoft.Extensions.Primitives; diff --git a/startvs.cmd b/startvs.cmd index 8c648e9d7..b34ccad31 100644 --- a/startvs.cmd +++ b/startvs.cmd @@ -16,8 +16,8 @@ SET PATH=%DOTNET_ROOT%;%PATH% SET sln=%~1 IF "%sln%"=="" ( - echo Solution not specified, using reverse-proxy.sln - SET sln=%~dp0reverse-proxy.sln + echo Solution not specified, using YARP.sln + SET sln=%~dp0YARP.sln ) IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" ( diff --git a/test/ReverseProxy.FunctionalTests/Common/HttpSysTestEnvironment.cs b/test/ReverseProxy.FunctionalTests/Common/HttpSysTestEnvironment.cs index 96702bfe6..1b3ebf662 100644 --- a/test/ReverseProxy.FunctionalTests/Common/HttpSysTestEnvironment.cs +++ b/test/ReverseProxy.FunctionalTests/Common/HttpSysTestEnvironment.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/test/ReverseProxy.Tests/Common/TaskExtensions.cs b/test/ReverseProxy.Tests/Common/TaskExtensions.cs index c01384b11..309c3242c 100644 --- a/test/ReverseProxy.Tests/Common/TaskExtensions.cs +++ b/test/ReverseProxy.Tests/Common/TaskExtensions.cs @@ -1,8 +1,5 @@ -// ------------------------------------------------------------------------------ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// ------------------------------------------------------------------------------ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; diff --git a/test/ReverseProxy.Tests/Routing/ProxyEndpointFactoryTests.cs b/test/ReverseProxy.Tests/Routing/ProxyEndpointFactoryTests.cs index 5e96edc7c..3a504b9e0 100644 --- a/test/ReverseProxy.Tests/Routing/ProxyEndpointFactoryTests.cs +++ b/test/ReverseProxy.Tests/Routing/ProxyEndpointFactoryTests.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Linq; using System.Threading.Tasks; diff --git a/test/ReverseProxy.Tests/Routing/ReverseProxyConventionBuilderTests.cs b/test/ReverseProxy.Tests/Routing/ReverseProxyConventionBuilderTests.cs index acfb8be40..ed43ce397 100644 --- a/test/ReverseProxy.Tests/Routing/ReverseProxyConventionBuilderTests.cs +++ b/test/ReverseProxy.Tests/Routing/ReverseProxyConventionBuilderTests.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Collections.Generic; using System.Net.Http; diff --git a/test/ReverseProxy.Tests/Transforms/RequestHeaderRouteValueTransformTests.cs b/test/ReverseProxy.Tests/Transforms/RequestHeaderRouteValueTransformTests.cs index 19a3fb009..2271b17e6 100644 --- a/test/ReverseProxy.Tests/Transforms/RequestHeaderRouteValueTransformTests.cs +++ b/test/ReverseProxy.Tests/Transforms/RequestHeaderRouteValueTransformTests.cs @@ -1,3 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Net.Http; using System.Threading.Tasks;