diff --git a/.editorconfig b/.editorconfig index f658667c6723..d7ec0b83dec4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -205,8 +205,8 @@ dotnet_diagnostic.IDE0043.severity = warning dotnet_diagnostic.IDE0044.severity = warning # IDE0073: File header -dotnet_diagnostic.IDE0073.severity = suggestion -file_header_template = Copyright (c) .NET Foundation. All rights reserved.\nLicensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +dotnet_diagnostic.IDE0073.severity = warning +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. [**/{test,samples,perf}/**.{cs,vb}] # CA1018: Mark attributes with AttributeUsageAttribute diff --git a/Directory.Build.props b/Directory.Build.props index 4a5a32268ec6..324cfc4ba367 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -95,7 +95,7 @@ MicrosoftAspNetCore - Apache-2.0 + MIT nugetaspnet@microsoft.com diff --git a/LICENSE.txt b/LICENSE.txt index 261eeb9e9f8b..984713a49622 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,201 +1,23 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +The MIT License (MIT) - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +Copyright (c) .NET Foundation and Contributors - 1. Definitions. +All rights reserved. - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index aad76a16acdb..bc422c8c9aae 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![.NET Foundation](https://img.shields.io/badge/.NET%20Foundation-blueviolet.svg)](https://www.dotnetfoundation.org/) -[![Apache-2.0 Licence](https://img.shields.io/github/license/dotnet/aspnetcore?color=%230b0&style=flat-square)](https://github.com/dotnet/aspnetcore/blob/main/LICENSE.txt) [![Help Wanted](https://img.shields.io/github/issues/dotnet/aspnetcore/help%20wanted?color=%232EA043&label=help%20wanted&style=flat-square)](https://github.com/dotnet/aspnetcore/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) [![Good First Issues](https://img.shields.io/github/issues/dotnet/aspnetcore/good%20first%20issue?color=%23512BD4&label=good%20first%20issue&style=flat-square)](https://github.com/dotnet/aspnetcore/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) +[![MIT License](https://img.shields.io/github/license/dotnet/aspnetcore?color=%230b0&style=flat-square)](https://github.com/dotnet/aspnetcore/blob/main/LICENSE.txt) [![Help Wanted](https://img.shields.io/github/issues/dotnet/aspnetcore/help%20wanted?color=%232EA043&label=help%20wanted&style=flat-square)](https://github.com/dotnet/aspnetcore/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) [![Good First Issues](https://img.shields.io/github/issues/dotnet/aspnetcore/good%20first%20issue?color=%23512BD4&label=good%20first%20issue&style=flat-square)](https://github.com/dotnet/aspnetcore/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) [![Discord](https://img.shields.io/discord/732297728826277939?style=flat-square&label=Discord&logo=discord&logoColor=white&color=7289DA)](https://aka.ms/dotnet-discord) ASP.NET Core diff --git a/eng/LicenseHeader.txt b/eng/LicenseHeader.txt index 618082bc4a8a..9c918697719c 100644 --- a/eng/LicenseHeader.txt +++ b/eng/LicenseHeader.txt @@ -1,3 +1,3 @@ -// 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. +// 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/eng/helix/content/RunTests/Program.cs b/eng/helix/content/RunTests/Program.cs index f9ff43ffc7fe..7247c80c364d 100644 --- a/eng/helix/content/RunTests/Program.cs +++ b/eng/helix/content/RunTests/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -24,7 +24,7 @@ static async Task Main(string[] args) { keepGoing = await runner.InstallPlaywrightAsync(); } -#else +#else Console.WriteLine("Playwright install skipped."); #endif diff --git a/eng/helix/content/RunTests/RunTestsOptions.cs b/eng/helix/content/RunTests/RunTestsOptions.cs index beaf08f19595..bafda9df2d27 100644 --- a/eng/helix/content/RunTests/RunTestsOptions.cs +++ b/eng/helix/content/RunTests/RunTestsOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/helix/content/RunTests/TestRunner.cs b/eng/helix/content/RunTests/TestRunner.cs index 1b8ff472932c..f08fac5fc260 100644 --- a/eng/helix/content/RunTests/TestRunner.cs +++ b/eng/helix/content/RunTests/TestRunner.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/tools/BaselineGenerator/Program.cs b/eng/tools/BaselineGenerator/Program.cs index a6c651dbdf8c..aa38b2828d3f 100644 --- a/eng/tools/BaselineGenerator/Program.cs +++ b/eng/tools/BaselineGenerator/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/eng/tools/RepoTasks/CreateFrameworkListFile.cs b/eng/tools/RepoTasks/CreateFrameworkListFile.cs index 5015bf4d5f7c..c2097f64d154 100644 --- a/eng/tools/RepoTasks/CreateFrameworkListFile.cs +++ b/eng/tools/RepoTasks/CreateFrameworkListFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/tools/RepoTasks/DownloadFile.cs b/eng/tools/RepoTasks/DownloadFile.cs index a520da435530..bb0f433c1767 100644 --- a/eng/tools/RepoTasks/DownloadFile.cs +++ b/eng/tools/RepoTasks/DownloadFile.cs @@ -1,5 +1,5 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// 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.IO; diff --git a/eng/tools/RepoTasks/FileUtilities.cs b/eng/tools/RepoTasks/FileUtilities.cs index b384cbe5e2c9..643360ffa731 100644 --- a/eng/tools/RepoTasks/FileUtilities.cs +++ b/eng/tools/RepoTasks/FileUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/tools/RepoTasks/GenerateGuid.cs b/eng/tools/RepoTasks/GenerateGuid.cs index f6e803986470..3309e6450cff 100644 --- a/eng/tools/RepoTasks/GenerateGuid.cs +++ b/eng/tools/RepoTasks/GenerateGuid.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/tools/RepoTasks/GenerateSharedFrameworkDepsFile.cs b/eng/tools/RepoTasks/GenerateSharedFrameworkDepsFile.cs index 172f002d18fe..726107c7dc0d 100644 --- a/eng/tools/RepoTasks/GenerateSharedFrameworkDepsFile.cs +++ b/eng/tools/RepoTasks/GenerateSharedFrameworkDepsFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/tools/RepoTasks/GetMsiProperty.cs b/eng/tools/RepoTasks/GetMsiProperty.cs index 182a5f0af362..9b60198651cd 100644 --- a/eng/tools/RepoTasks/GetMsiProperty.cs +++ b/eng/tools/RepoTasks/GetMsiProperty.cs @@ -1,7 +1,7 @@ -#if BUILD_MSI_TASKS -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +#if BUILD_MSI_TASKS using System; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; diff --git a/eng/tools/RepoTasks/RemoveSharedFrameworkDependencies.cs b/eng/tools/RepoTasks/RemoveSharedFrameworkDependencies.cs index 1471c657dc9a..7eb6e8408f21 100644 --- a/eng/tools/RepoTasks/RemoveSharedFrameworkDependencies.cs +++ b/eng/tools/RepoTasks/RemoveSharedFrameworkDependencies.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/eng/tools/RepoTasks/Uuid.cs b/eng/tools/RepoTasks/Uuid.cs index 0da14b68296c..b8ec99f2951e 100644 --- a/eng/tools/RepoTasks/Uuid.cs +++ b/eng/tools/RepoTasks/Uuid.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/src/BuildServiceProviderAnalyzer.cs b/src/Analyzers/Analyzers/src/BuildServiceProviderAnalyzer.cs index b8ab0bbad782..8ea1ffe28eb4 100644 --- a/src/Analyzers/Analyzers/src/BuildServiceProviderAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/BuildServiceProviderAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/CompilationFeatureDetector.cs b/src/Analyzers/Analyzers/src/CompilationFeatureDetector.cs index 907e8911c5dd..16386b4ad9f2 100644 --- a/src/Analyzers/Analyzers/src/CompilationFeatureDetector.cs +++ b/src/Analyzers/Analyzers/src/CompilationFeatureDetector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Analyzers/Analyzers/src/ConfigureMethodVisitor.cs b/src/Analyzers/Analyzers/src/ConfigureMethodVisitor.cs index db0e40d0ba9e..7d51606405d6 100644 --- a/src/Analyzers/Analyzers/src/ConfigureMethodVisitor.cs +++ b/src/Analyzers/Analyzers/src/ConfigureMethodVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/MiddlewareAnalysis.cs b/src/Analyzers/Analyzers/src/MiddlewareAnalysis.cs index 789dbcc352f5..609432340a90 100644 --- a/src/Analyzers/Analyzers/src/MiddlewareAnalysis.cs +++ b/src/Analyzers/Analyzers/src/MiddlewareAnalysis.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/MiddlewareAnalyzer.cs b/src/Analyzers/Analyzers/src/MiddlewareAnalyzer.cs index 1395969e1035..519f1e6f0e8c 100644 --- a/src/Analyzers/Analyzers/src/MiddlewareAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/MiddlewareAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/MiddlewareItem.cs b/src/Analyzers/Analyzers/src/MiddlewareItem.cs index 6e3e715ced16..e61d026261e4 100644 --- a/src/Analyzers/Analyzers/src/MiddlewareItem.cs +++ b/src/Analyzers/Analyzers/src/MiddlewareItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Operations; diff --git a/src/Analyzers/Analyzers/src/OptionsAnalysis.cs b/src/Analyzers/Analyzers/src/OptionsAnalysis.cs index 08f0e11e95bb..538a1b865cbc 100644 --- a/src/Analyzers/Analyzers/src/OptionsAnalysis.cs +++ b/src/Analyzers/Analyzers/src/OptionsAnalysis.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/OptionsAnalyzer.cs b/src/Analyzers/Analyzers/src/OptionsAnalyzer.cs index 28fa0e4fceea..8537e8cfa6ec 100644 --- a/src/Analyzers/Analyzers/src/OptionsAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/OptionsAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Immutable; diff --git a/src/Analyzers/Analyzers/src/OptionsFacts.cs b/src/Analyzers/Analyzers/src/OptionsFacts.cs index fb89a0224de5..cc2310061507 100644 --- a/src/Analyzers/Analyzers/src/OptionsFacts.cs +++ b/src/Analyzers/Analyzers/src/OptionsFacts.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/OptionsItem.cs b/src/Analyzers/Analyzers/src/OptionsItem.cs index d39850339fea..60d9e3a57427 100644 --- a/src/Analyzers/Analyzers/src/OptionsItem.cs +++ b/src/Analyzers/Analyzers/src/OptionsItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/Properties/AssemblyInfo.cs b/src/Analyzers/Analyzers/src/Properties/AssemblyInfo.cs index 9db659780bc8..0f3497963d4a 100644 --- a/src/Analyzers/Analyzers/src/Properties/AssemblyInfo.cs +++ b/src/Analyzers/Analyzers/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Analyzers/Analyzers/src/ServicesAnalysis.cs b/src/Analyzers/Analyzers/src/ServicesAnalysis.cs index 2cb58ca5d5cb..5ae7dd32a0c6 100644 --- a/src/Analyzers/Analyzers/src/ServicesAnalysis.cs +++ b/src/Analyzers/Analyzers/src/ServicesAnalysis.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/ServicesAnalyzer.cs b/src/Analyzers/Analyzers/src/ServicesAnalyzer.cs index ac74481a8854..262a8048b2b8 100644 --- a/src/Analyzers/Analyzers/src/ServicesAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/ServicesAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/ServicesItem.cs b/src/Analyzers/Analyzers/src/ServicesItem.cs index e468e62cc136..075653f0e80d 100644 --- a/src/Analyzers/Analyzers/src/ServicesItem.cs +++ b/src/Analyzers/Analyzers/src/ServicesItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Operations; diff --git a/src/Analyzers/Analyzers/src/StartupAnalysis.cs b/src/Analyzers/Analyzers/src/StartupAnalysis.cs index 85e9ca0659c5..711be81d6b84 100644 --- a/src/Analyzers/Analyzers/src/StartupAnalysis.cs +++ b/src/Analyzers/Analyzers/src/StartupAnalysis.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/StartupAnalysisBuilder.cs b/src/Analyzers/Analyzers/src/StartupAnalysisBuilder.cs index b7eef9e2d60c..c764c35db5f8 100644 --- a/src/Analyzers/Analyzers/src/StartupAnalysisBuilder.cs +++ b/src/Analyzers/Analyzers/src/StartupAnalysisBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.cs b/src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.cs index 59b1ec5b2ac8..3d871e20f128 100644 --- a/src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.cs +++ b/src/Analyzers/Analyzers/src/StartupAnalyzer.Diagnostics.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/StartupAnalyzer.Events.cs b/src/Analyzers/Analyzers/src/StartupAnalyzer.Events.cs index d5004bb432e4..7fd643075646 100644 --- a/src/Analyzers/Analyzers/src/StartupAnalyzer.Events.cs +++ b/src/Analyzers/Analyzers/src/StartupAnalyzer.Events.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/StartupAnalyzer.cs b/src/Analyzers/Analyzers/src/StartupAnalyzer.cs index 66c51ed532a8..fa857b896618 100644 --- a/src/Analyzers/Analyzers/src/StartupAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/StartupAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Immutable; diff --git a/src/Analyzers/Analyzers/src/StartupFacts.cs b/src/Analyzers/Analyzers/src/StartupFacts.cs index 3c5bc9ee9a48..049d686fe2ef 100644 --- a/src/Analyzers/Analyzers/src/StartupFacts.cs +++ b/src/Analyzers/Analyzers/src/StartupFacts.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; @@ -125,7 +125,7 @@ public static bool IsConfigure(StartupSymbols symbols, IMethodSymbol symbol) // // To be slightly less brittle, we don't look at the exact symbols and instead just look // at method names in here. We're NOT worried about false negatives, because all of these - // cases contain words like SignalR or Hub. + // cases contain words like SignalR or Hub. public static bool IsSignalRConfigureMethodGesture(IMethodSymbol symbol) { if (symbol == null) diff --git a/src/Analyzers/Analyzers/src/StartupSymbols.cs b/src/Analyzers/Analyzers/src/StartupSymbols.cs index e1beb5a74d8d..369cbedba17a 100644 --- a/src/Analyzers/Analyzers/src/StartupSymbols.cs +++ b/src/Analyzers/Analyzers/src/StartupSymbols.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/SymbolNames.cs b/src/Analyzers/Analyzers/src/SymbolNames.cs index eb544f1e6763..636d658dfece 100644 --- a/src/Analyzers/Analyzers/src/SymbolNames.cs +++ b/src/Analyzers/Analyzers/src/SymbolNames.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Analyzers { diff --git a/src/Analyzers/Analyzers/src/UseAuthorizationAnalyzer.cs b/src/Analyzers/Analyzers/src/UseAuthorizationAnalyzer.cs index 79f8fea63315..57ef1050faa9 100644 --- a/src/Analyzers/Analyzers/src/UseAuthorizationAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/UseAuthorizationAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Linq; diff --git a/src/Analyzers/Analyzers/src/UseMvcAnalyzer.cs b/src/Analyzers/Analyzers/src/UseMvcAnalyzer.cs index 90c09319bca7..f4adf8a050cf 100644 --- a/src/Analyzers/Analyzers/src/UseMvcAnalyzer.cs +++ b/src/Analyzers/Analyzers/src/UseMvcAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Analyzers/Analyzers/src/WellKnownFeatures.cs b/src/Analyzers/Analyzers/src/WellKnownFeatures.cs index 1ad0d7b84260..62f198538853 100644 --- a/src/Analyzers/Analyzers/src/WellKnownFeatures.cs +++ b/src/Analyzers/Analyzers/src/WellKnownFeatures.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Analyzers { diff --git a/src/Analyzers/Analyzers/test/AnalyzerTestBase.cs b/src/Analyzers/Analyzers/test/AnalyzerTestBase.cs index f70ac58c8b3f..2868df82a28b 100644 --- a/src/Analyzers/Analyzers/test/AnalyzerTestBase.cs +++ b/src/Analyzers/Analyzers/test/AnalyzerTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Analyzers/Analyzers/test/AnalyzersDiagnosticAnalyzerRunner.cs b/src/Analyzers/Analyzers/test/AnalyzersDiagnosticAnalyzerRunner.cs index f54a187c0e7e..7ec7449dbc81 100644 --- a/src/Analyzers/Analyzers/test/AnalyzersDiagnosticAnalyzerRunner.cs +++ b/src/Analyzers/Analyzers/test/AnalyzersDiagnosticAnalyzerRunner.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Analyzers/Analyzers/test/CompilationFeatureDetectorTest.cs b/src/Analyzers/Analyzers/test/CompilationFeatureDetectorTest.cs index 9fcc0ff16750..8d6d62048311 100644 --- a/src/Analyzers/Analyzers/test/CompilationFeatureDetectorTest.cs +++ b/src/Analyzers/Analyzers/test/CompilationFeatureDetectorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Analyzers/Analyzers/test/ConfigureMethodVisitorTest.cs b/src/Analyzers/Analyzers/test/ConfigureMethodVisitorTest.cs index 9cf769861bd9..19fa19f09f44 100644 --- a/src/Analyzers/Analyzers/test/ConfigureMethodVisitorTest.cs +++ b/src/Analyzers/Analyzers/test/ConfigureMethodVisitorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Analyzers/Analyzers/test/StartupAnalyzerTest.cs b/src/Analyzers/Analyzers/test/StartupAnalyzerTest.cs index 8345ddc58683..bfbd89f1c9d9 100644 --- a/src/Analyzers/Analyzers/test/StartupAnalyzerTest.cs +++ b/src/Analyzers/Analyzers/test/StartupAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using System.Linq; diff --git a/src/Analyzers/Analyzers/test/StartupFactsTest.cs b/src/Analyzers/Analyzers/test/StartupFactsTest.cs index b7a25e85a38f..1f4e955de756 100644 --- a/src/Analyzers/Analyzers/test/StartupFactsTest.cs +++ b/src/Analyzers/Analyzers/test/StartupFactsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapBlazorHub.cs b/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapBlazorHub.cs index 22e3148624a9..eb200f7c70b8 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapBlazorHub.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapBlazorHub.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapHub.cs b/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapHub.cs index 43ea578d88e6..b0d30d469522 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapHub.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithMapHub.cs @@ -1,5 +1,5 @@ -// 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. +// 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.SignalR; diff --git a/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithNoFeatures.cs b/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithNoFeatures.cs index 24426fc68117..96653c1194b3 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithNoFeatures.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/CompilationFeatureDetectorTest/StartupWithNoFeatures.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/ConfigureMethodVisitorTest/Startup.cs b/src/Analyzers/Analyzers/test/TestFiles/ConfigureMethodVisitorTest/Startup.cs index 0e196654dc27..ca0862fc099f 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/ConfigureMethodVisitorTest/Startup.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/ConfigureMethodVisitorTest/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/ConfigureServices_BuildServiceProvider.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/ConfigureServices_BuildServiceProvider.cs index 06d221662cfe..5115eb44488b 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/ConfigureServices_BuildServiceProvider.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/ConfigureServices_BuildServiceProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvc.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvc.cs index 771d0e07fe7b..ac2584add752 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvc.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvc.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcAndConfiguredRoutes.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcAndConfiguredRoutes.cs index 044043751e56..e478db380441 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcAndConfiguredRoutes.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcAndConfiguredRoutes.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcMultiple.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcMultiple.cs index b93b48a9dd40..5f0aba289468 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcMultiple.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcMultiple.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Builder; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRoute.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRoute.cs index 450f6d7e1b60..113a127ed7e8 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRoute.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRoute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndAddMvcOptionsEndpointRoutingDisabled.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndAddMvcOptionsEndpointRoutingDisabled.cs index 99c031bea247..241906b13bd2 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndAddMvcOptionsEndpointRoutingDisabled.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndAddMvcOptionsEndpointRoutingDisabled.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndEndpointRoutingDisabled.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndEndpointRoutingDisabled.cs index 1d9d5e5ec1f8..2e1aa297db30 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndEndpointRoutingDisabled.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithDefaultRouteAndEndpointRoutingDisabled.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithOtherMiddleware.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithOtherMiddleware.cs index 841112acfc2d..24ac1101bea4 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithOtherMiddleware.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/MvcOptions_UseMvcWithOtherMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Builder; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_MoreVariety.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_MoreVariety.cs index 46d3ead7c94a..f11fc3d96559 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_MoreVariety.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_MoreVariety.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Builder; @@ -14,11 +14,11 @@ public void ConfigureServices(IServiceCollection services) { } - public void ConfigureServices(IServiceCollection services, StringBuilder s) // Ignored + public void ConfigureServices(IServiceCollection services, StringBuilder s) // Ignored { } - public void Configure(StringBuilder s) // Ignored, + public void Configure(StringBuilder s) // Ignored, { } diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_Standard.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_Standard.cs index 286918ba476c..24eb0c5bff8a 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_Standard.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/StartupSignatures_Standard.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthAfterUseEndpoints.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthAfterUseEndpoints.cs index 91fa7e72319f..acd73a512eb7 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthAfterUseEndpoints.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthAfterUseEndpoints.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRouting.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRouting.cs index 82aebceb8051..bfac34e1b445 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRouting.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRoutingChained.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRoutingChained.cs index d76ecd09972b..ae7418342438 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRoutingChained.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthBeforeUseRoutingChained.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectly.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectly.cs index f34550833a3e..52cf074b4e03 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectly.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectly.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectlyChained.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectlyChained.cs index c7d170e75040..e63b2e76c23a 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectlyChained.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthConfiguredCorrectlyChained.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthFallbackPolicy.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthFallbackPolicy.cs index fde1ffb367cf..7d5b70ee9efe 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthFallbackPolicy.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthFallbackPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthMultipleTimes.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthMultipleTimes.cs index a99ae8cad88c..9b815df09583 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthMultipleTimes.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupAnalyzerTest/UseAuthMultipleTimes.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/BasicStartup.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/BasicStartup.cs index 7447e5e001e5..560e83453d51 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/BasicStartup.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/BasicStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/EnvironmentStartup.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/EnvironmentStartup.cs index 434a451277d8..7bcf9fe41eae 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/EnvironmentStartup.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/EnvironmentStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/NotAStartupClass.cs b/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/NotAStartupClass.cs index 74948f1e72d0..381668e44c43 100644 --- a/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/NotAStartupClass.cs +++ b/src/Analyzers/Analyzers/test/TestFiles/StartupFactsTest/NotAStartupClass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/Assert.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/Assert.cs index b79ae064b0bf..dd023f129f87 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/Assert.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/Assert.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis; using Xunit.Sdk; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/CodeFixRunner.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/CodeFixRunner.cs index 3c21e5c3b452..3017fc698837 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/CodeFixRunner.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/CodeFixRunner.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticAnalyzerRunner.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticAnalyzerRunner.cs index bfc9406335c8..315fd7ad9e5f 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticAnalyzerRunner.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticAnalyzerRunner.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticLocation.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticLocation.cs index e5321613f72c..d9ab5c814fb6 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticLocation.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticLocation.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticProject.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticProject.cs index d390db41afb1..4ecac2357661 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticProject.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticProject.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.IO; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticVerifier.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticVerifier.cs index d0796f40a896..1faaceeb6a28 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticVerifier.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticVerifier.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/TestSource.cs b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/TestSource.cs index ef70152faa5d..8451c558c14a 100644 --- a/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/TestSource.cs +++ b/src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/TestSource.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Antiforgery/src/AntiforgeryOptions.cs b/src/Antiforgery/src/AntiforgeryOptions.cs index b7d50b22d61d..2b151f208d6e 100644 --- a/src/Antiforgery/src/AntiforgeryOptions.cs +++ b/src/Antiforgery/src/AntiforgeryOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Antiforgery/src/AntiforgeryServiceCollectionExtensions.cs b/src/Antiforgery/src/AntiforgeryServiceCollectionExtensions.cs index 969c17f63207..98213588602f 100644 --- a/src/Antiforgery/src/AntiforgeryServiceCollectionExtensions.cs +++ b/src/Antiforgery/src/AntiforgeryServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Antiforgery; diff --git a/src/Antiforgery/src/AntiforgeryTokenSet.cs b/src/Antiforgery/src/AntiforgeryTokenSet.cs index 5aa466927697..996522542a2d 100644 --- a/src/Antiforgery/src/AntiforgeryTokenSet.cs +++ b/src/Antiforgery/src/AntiforgeryTokenSet.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Antiforgery/src/AntiforgeryValidationException.cs b/src/Antiforgery/src/AntiforgeryValidationException.cs index 700c13f34b0a..ca0fc1b06d5f 100644 --- a/src/Antiforgery/src/AntiforgeryValidationException.cs +++ b/src/Antiforgery/src/AntiforgeryValidationException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Antiforgery/src/IAntiforgery.cs b/src/Antiforgery/src/IAntiforgery.cs index 425f5d592009..f2ba28d578b1 100644 --- a/src/Antiforgery/src/IAntiforgery.cs +++ b/src/Antiforgery/src/IAntiforgery.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Antiforgery/src/IAntiforgeryAdditionalDataProvider.cs b/src/Antiforgery/src/IAntiforgeryAdditionalDataProvider.cs index 485fc8c9e8b2..667da5b7471e 100644 --- a/src/Antiforgery/src/IAntiforgeryAdditionalDataProvider.cs +++ b/src/Antiforgery/src/IAntiforgeryAdditionalDataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Antiforgery/src/Internal/AntiforgeryFeature.cs b/src/Antiforgery/src/Internal/AntiforgeryFeature.cs index 5d65e8ac70d7..53f20f2da76e 100644 --- a/src/Antiforgery/src/Internal/AntiforgeryFeature.cs +++ b/src/Antiforgery/src/Internal/AntiforgeryFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Antiforgery { diff --git a/src/Antiforgery/src/Internal/AntiforgeryLoggerExtensions.cs b/src/Antiforgery/src/Internal/AntiforgeryLoggerExtensions.cs index 7c5b1d49e74a..78704b346622 100644 --- a/src/Antiforgery/src/Internal/AntiforgeryLoggerExtensions.cs +++ b/src/Antiforgery/src/Internal/AntiforgeryLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Antiforgery/src/Internal/AntiforgeryOptionsSetup.cs b/src/Antiforgery/src/Internal/AntiforgeryOptionsSetup.cs index 74a591698e8c..ab677f85b891 100644 --- a/src/Antiforgery/src/Internal/AntiforgeryOptionsSetup.cs +++ b/src/Antiforgery/src/Internal/AntiforgeryOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/Antiforgery/src/Internal/AntiforgerySerializationContext.cs b/src/Antiforgery/src/Internal/AntiforgerySerializationContext.cs index 19609e43c743..f7ea48cdee5b 100644 --- a/src/Antiforgery/src/Internal/AntiforgerySerializationContext.cs +++ b/src/Antiforgery/src/Internal/AntiforgerySerializationContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Security.Cryptography; diff --git a/src/Antiforgery/src/Internal/AntiforgerySerializationContextPooledObjectPolicy.cs b/src/Antiforgery/src/Internal/AntiforgerySerializationContextPooledObjectPolicy.cs index c88bd8fbfa7e..9d4d2b48a0da 100644 --- a/src/Antiforgery/src/Internal/AntiforgerySerializationContextPooledObjectPolicy.cs +++ b/src/Antiforgery/src/Internal/AntiforgerySerializationContextPooledObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.ObjectPool; diff --git a/src/Antiforgery/src/Internal/AntiforgeryToken.cs b/src/Antiforgery/src/Internal/AntiforgeryToken.cs index 590f92f55458..f3f6e60ccdca 100644 --- a/src/Antiforgery/src/Internal/AntiforgeryToken.cs +++ b/src/Antiforgery/src/Internal/AntiforgeryToken.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Antiforgery { diff --git a/src/Antiforgery/src/Internal/BinaryBlob.cs b/src/Antiforgery/src/Internal/BinaryBlob.cs index 0cc2c4a38bef..a23b9de76d0d 100644 --- a/src/Antiforgery/src/Internal/BinaryBlob.cs +++ b/src/Antiforgery/src/Internal/BinaryBlob.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Antiforgery/src/Internal/DefaultAntiforgery.cs b/src/Antiforgery/src/Internal/DefaultAntiforgery.cs index 3eeac224a2d8..e8e5106b77f0 100644 --- a/src/Antiforgery/src/Internal/DefaultAntiforgery.cs +++ b/src/Antiforgery/src/Internal/DefaultAntiforgery.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Antiforgery/src/Internal/DefaultAntiforgeryAdditionalDataProvider.cs b/src/Antiforgery/src/Internal/DefaultAntiforgeryAdditionalDataProvider.cs index 3aa9b13e2769..d7882f5b153f 100644 --- a/src/Antiforgery/src/Internal/DefaultAntiforgeryAdditionalDataProvider.cs +++ b/src/Antiforgery/src/Internal/DefaultAntiforgeryAdditionalDataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenGenerator.cs b/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenGenerator.cs index 62230190bcef..f38b4b3cde24 100644 --- a/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenGenerator.cs +++ b/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenSerializer.cs b/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenSerializer.cs index 474205b64df9..c600c8fea4a0 100644 --- a/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenSerializer.cs +++ b/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenStore.cs b/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenStore.cs index 513f92b1c6f6..9607bd749bb2 100644 --- a/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenStore.cs +++ b/src/Antiforgery/src/Internal/DefaultAntiforgeryTokenStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Antiforgery/src/Internal/DefaultClaimUidExtractor.cs b/src/Antiforgery/src/Internal/DefaultClaimUidExtractor.cs index c8d1e195fc9d..ad4a2dbad8fb 100644 --- a/src/Antiforgery/src/Internal/DefaultClaimUidExtractor.cs +++ b/src/Antiforgery/src/Internal/DefaultClaimUidExtractor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Antiforgery/src/Internal/IAntiforgeryFeature.cs b/src/Antiforgery/src/Internal/IAntiforgeryFeature.cs index c73c33f1aa0e..97834bac7f85 100644 --- a/src/Antiforgery/src/Internal/IAntiforgeryFeature.cs +++ b/src/Antiforgery/src/Internal/IAntiforgeryFeature.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.CodeAnalysis; namespace Microsoft.AspNetCore.Antiforgery diff --git a/src/Antiforgery/src/Internal/IAntiforgeryTokenGenerator.cs b/src/Antiforgery/src/Internal/IAntiforgeryTokenGenerator.cs index b3629ff4683f..76e5edafadfc 100644 --- a/src/Antiforgery/src/Internal/IAntiforgeryTokenGenerator.cs +++ b/src/Antiforgery/src/Internal/IAntiforgeryTokenGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Http; diff --git a/src/Antiforgery/src/Internal/IAntiforgeryTokenSerializer.cs b/src/Antiforgery/src/Internal/IAntiforgeryTokenSerializer.cs index be160879e081..40f0274cfc0e 100644 --- a/src/Antiforgery/src/Internal/IAntiforgeryTokenSerializer.cs +++ b/src/Antiforgery/src/Internal/IAntiforgeryTokenSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Antiforgery { diff --git a/src/Antiforgery/src/Internal/IAntiforgeryTokenStore.cs b/src/Antiforgery/src/Internal/IAntiforgeryTokenStore.cs index f202e90f5e58..9a3b764f1073 100644 --- a/src/Antiforgery/src/Internal/IAntiforgeryTokenStore.cs +++ b/src/Antiforgery/src/Internal/IAntiforgeryTokenStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Antiforgery/src/Internal/IClaimUidExtractor.cs b/src/Antiforgery/src/Internal/IClaimUidExtractor.cs index 0153e10bc76f..7aad2a1c4c1a 100644 --- a/src/Antiforgery/src/Internal/IClaimUidExtractor.cs +++ b/src/Antiforgery/src/Internal/IClaimUidExtractor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; diff --git a/src/Antiforgery/src/Properties/AssemblyInfo.cs b/src/Antiforgery/src/Properties/AssemblyInfo.cs index 490fb1953349..b3b37f09c020 100644 --- a/src/Antiforgery/src/Properties/AssemblyInfo.cs +++ b/src/Antiforgery/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Antiforgery/test/AntiforgeryOptionsSetupTest.cs b/src/Antiforgery/test/AntiforgeryOptionsSetupTest.cs index b0acff572d49..45ea37efc472 100644 --- a/src/Antiforgery/test/AntiforgeryOptionsSetupTest.cs +++ b/src/Antiforgery/test/AntiforgeryOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection; using Microsoft.AspNetCore.Http; diff --git a/src/Antiforgery/test/AntiforgeryTokenTest.cs b/src/Antiforgery/test/AntiforgeryTokenTest.cs index c44f5be57537..de3dbbbcba52 100644 --- a/src/Antiforgery/test/AntiforgeryTokenTest.cs +++ b/src/Antiforgery/test/AntiforgeryTokenTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Antiforgery/test/BinaryBlobTest.cs b/src/Antiforgery/test/BinaryBlobTest.cs index 01c77ff68440..83998f6c3f91 100644 --- a/src/Antiforgery/test/BinaryBlobTest.cs +++ b/src/Antiforgery/test/BinaryBlobTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Antiforgery/test/DefaultAntiforgeryTest.cs b/src/Antiforgery/test/DefaultAntiforgeryTest.cs index 4a566190a76c..47307a0fa8b3 100644 --- a/src/Antiforgery/test/DefaultAntiforgeryTest.cs +++ b/src/Antiforgery/test/DefaultAntiforgeryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -376,7 +376,7 @@ private string GetAndStoreTokens_CacheHeadersArrangeAct(TestSink testSink, strin [InlineData("Cache-Control", "no-cache, no-store")] [InlineData("Cache-Control", "NO-CACHE, NO-STORE")] [InlineData("Cache-Control", "no-cache, no-store, private")] - [InlineData("Cache-Control", "NO-CACHE, NO-STORE, PRIVATE")] + [InlineData("Cache-Control", "NO-CACHE, NO-STORE, PRIVATE")] public void GetAndStoreTokens_DoesNotOverwriteCacheControlHeader(string headerName, string headerValue) { var testSink = new TestSink(); diff --git a/src/Antiforgery/test/DefaultAntiforgeryTokenGeneratorTest.cs b/src/Antiforgery/test/DefaultAntiforgeryTokenGeneratorTest.cs index 39f8d4ac10e4..ef4663c6f781 100644 --- a/src/Antiforgery/test/DefaultAntiforgeryTokenGeneratorTest.cs +++ b/src/Antiforgery/test/DefaultAntiforgeryTokenGeneratorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable using System; diff --git a/src/Antiforgery/test/DefaultAntiforgeryTokenSerializerTest.cs b/src/Antiforgery/test/DefaultAntiforgeryTokenSerializerTest.cs index 88ce09b4e2fd..176612bc70e2 100644 --- a/src/Antiforgery/test/DefaultAntiforgeryTokenSerializerTest.cs +++ b/src/Antiforgery/test/DefaultAntiforgeryTokenSerializerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Antiforgery/test/DefaultAntiforgeryTokenStoreTest.cs b/src/Antiforgery/test/DefaultAntiforgeryTokenStoreTest.cs index bd00a7361ac9..6e8445d1564a 100644 --- a/src/Antiforgery/test/DefaultAntiforgeryTokenStoreTest.cs +++ b/src/Antiforgery/test/DefaultAntiforgeryTokenStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Antiforgery/test/DefaultClaimUidExtractorTest.cs b/src/Antiforgery/test/DefaultClaimUidExtractorTest.cs index 2a9b994d77d1..12db63aaf9f1 100644 --- a/src/Antiforgery/test/DefaultClaimUidExtractorTest.cs +++ b/src/Antiforgery/test/DefaultClaimUidExtractorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Antiforgery/test/TestOptionsManager.cs b/src/Antiforgery/test/TestOptionsManager.cs index 7a6b3d773976..dcd7d04ea64c 100644 --- a/src/Antiforgery/test/TestOptionsManager.cs +++ b/src/Antiforgery/test/TestOptionsManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Options; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Controllers/AccountController.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Controllers/AccountController.cs index c728ee4e494d..f76d05899035 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Controllers/AccountController.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Controllers/AccountController.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authorization; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs index 94db862a83a2..ade157a25656 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml.cs index 32ad8b4e7c51..c544e951cd3a 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs index 48eac9f5d075..b005b9897205 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAccountControllerFeatureProvider.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAccountControllerFeatureProvider.cs index 41efc90242d9..e9f7c00677a1 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAccountControllerFeatureProvider.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAccountControllerFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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; @@ -21,4 +21,4 @@ public void PopulateFeature(IEnumerable parts, ControllerFeatur } } } -} \ No newline at end of file +} diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAuthenticationBuilderExtensions.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAuthenticationBuilderExtensions.cs index 9da2925a1a7a..21c351432afd 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAuthenticationBuilderExtensions.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADAuthenticationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADCookieOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADCookieOptionsConfiguration.cs index 607d0f78ed8f..19a2e2116bab 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADCookieOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADCookieOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.Cookies; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs index c4d21967014f..ea639c53f9ae 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADDefaults.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADJwtBearerOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADJwtBearerOptionsConfiguration.cs index 5dbc09ee6398..a4e286727143 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADJwtBearerOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADJwtBearerOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.AzureAD.UI; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOpenIdConnectOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOpenIdConnectOptionsConfiguration.cs index bea7de448088..fff4e5a9bfa0 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOpenIdConnectOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOpenIdConnectOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.OpenIdConnect; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptions.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptions.cs index e871449927ba..c5e9afbee3bc 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptions.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptions.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.Cookies; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsConfiguration.cs index ba91b5f59d18..88f3a45b783e 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Options; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsValidation.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsValidation.cs index 5edde29942a5..7bd02a38ad92 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsValidation.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOptionsValidation.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Options; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADSchemeOptions.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADSchemeOptions.cs index 79ae769a459d..45c57cc36990 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADSchemeOptions.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADSchemeOptions.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Properties/AssemblyInfo.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Properties/AssemblyInfo.cs index aaf76791a3a5..603ecc14a424 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Properties/AssemblyInfo.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/test/AzureADAuthenticationBuilderExtensionsTests.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/AzureADAuthenticationBuilderExtensionsTests.cs index 6a31d3477ec2..3ae6066f62b2 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/test/AzureADAuthenticationBuilderExtensionsTests.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/AzureADAuthenticationBuilderExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.AzureAD.UI; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Controllers/AccountControllerTests.cs b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Controllers/AccountControllerTests.cs index 8d7ab6b3daf5..1a744342f2f7 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Controllers/AccountControllerTests.cs +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/test/Controllers/AccountControllerTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Security.Claims; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Controllers/AccountController.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Controllers/AccountController.cs index 387ae4c6b076..286f67644ef1 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Controllers/AccountController.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Controllers/AccountController.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs index 62bae46b08a2..86c052fbc7f7 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs index 313cb372d363..7d920732ce60 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs index 5d8a011e8b0b..646425bc68c1 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CAccountControllerFeatureProvider.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CAccountControllerFeatureProvider.cs index b6b639a796aa..fdfd9e33c46d 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CAccountControllerFeatureProvider.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CAccountControllerFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CCookieOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CCookieOptionsConfiguration.cs index 257e809631bd..5bc707611590 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CCookieOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CCookieOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.Cookies; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CJwtBearerOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CJwtBearerOptionsConfiguration.cs index 2be6706b2845..337b35706dad 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CJwtBearerOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2CJwtBearerOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.JwtBearer; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2COpenIdConnectOptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2COpenIdConnectOptionsConfiguration.cs index e03badf98183..1eefa3df8a96 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2COpenIdConnectOptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureADB2COpenIdConnectOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.OpenIdConnect; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CAuthenticationBuilderExtensions.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CAuthenticationBuilderExtensions.cs index 2b70aa9b480a..aee5e9c21e73 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CAuthenticationBuilderExtensions.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CAuthenticationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.IO; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs index 6d95f08d0ebc..7e054ecffea4 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CDefaults.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COpenIDConnectEventHandlers.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COpenIDConnectEventHandlers.cs index 4726aace65dd..51a8bd6f404f 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COpenIDConnectEventHandlers.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COpenIDConnectEventHandlers.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptions.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptions.cs index eb0d95d53a68..2e76b29701de 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptions.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptions.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.Cookies; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptionsConfiguration.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptionsConfiguration.cs index bad360b960ae..e6ffee877964 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptionsConfiguration.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2COptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Options; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CSchemeOptions.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CSchemeOptions.cs index 991e5fc5b680..4ec7e8807b78 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CSchemeOptions.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/AzureAdB2CSchemeOptions.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Properties/AssemblyInfo.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Properties/AssemblyInfo.cs index 1269fbc713f6..f6d1a8898aa7 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Properties/AssemblyInfo.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs index cd7dde32f668..321cfd209ac1 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2CAuthenticationBuilderExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.AspNetCore.Authentication.AzureADB2C.UI; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2COpenIDConnectEventHandlersTests.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2COpenIDConnectEventHandlersTests.cs index 17f236868d23..af4cebd58490 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2COpenIDConnectEventHandlersTests.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/AzureAdB2COpenIDConnectEventHandlersTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Controllers/AccountControllerTests.cs b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Controllers/AccountControllerTests.cs index 5585ed30d19c..d4e5ec0b33b5 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Controllers/AccountControllerTests.cs +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/test/Controllers/AccountControllerTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Security.Claims; diff --git a/src/Azure/AzureAD/test/FunctionalTests/ApiAuthenticationTests.cs b/src/Azure/AzureAD/test/FunctionalTests/ApiAuthenticationTests.cs index 1bd9718ac3c5..2cb508806877 100644 --- a/src/Azure/AzureAD/test/FunctionalTests/ApiAuthenticationTests.cs +++ b/src/Azure/AzureAD/test/FunctionalTests/ApiAuthenticationTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Azure/AzureAD/test/FunctionalTests/WebAuthenticationTests.cs b/src/Azure/AzureAD/test/FunctionalTests/WebAuthenticationTests.cs index 572ed87113f0..ae83add40798 100644 --- a/src/Azure/AzureAD/test/FunctionalTests/WebAuthenticationTests.cs +++ b/src/Azure/AzureAD/test/FunctionalTests/WebAuthenticationTests.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Controllers/TestController.cs b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Controllers/TestController.cs index 5340cd1a1657..2c17b530d029 100644 --- a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Controllers/TestController.cs +++ b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Controllers/TestController.cs @@ -1,5 +1,5 @@ -// 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.using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Program.cs b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Program.cs index 998a9ab3243b..29e075d229eb 100644 --- a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Program.cs +++ b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Startup.cs b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Startup.cs index d59b400ae46a..079bddd0f6da 100644 --- a/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Startup.cs +++ b/src/Azure/AzureAD/test/testassets/AzureAD.WebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; diff --git a/src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs b/src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs index 6852ee94a914..5090659f7fdf 100644 --- a/src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs +++ b/src/Azure/AzureAppServices.HostingStartup/src/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Azure/AzureAppServices.HostingStartup/src/AzureAppServicesHostingStartup.cs b/src/Azure/AzureAppServices.HostingStartup/src/AzureAppServicesHostingStartup.cs index d34e26494e23..f939f7ee31d3 100644 --- a/src/Azure/AzureAppServices.HostingStartup/src/AzureAppServicesHostingStartup.cs +++ b/src/Azure/AzureAppServices.HostingStartup/src/AzureAppServicesHostingStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; diff --git a/src/Azure/AzureAppServices.HostingStartup/src/HostingStartupConfigurationExtensions.cs b/src/Azure/AzureAppServices.HostingStartup/src/HostingStartupConfigurationExtensions.cs index 55ffdc6710c0..8c8445115203 100644 --- a/src/Azure/AzureAppServices.HostingStartup/src/HostingStartupConfigurationExtensions.cs +++ b/src/Azure/AzureAppServices.HostingStartup/src/HostingStartupConfigurationExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Configuration; diff --git a/src/Azure/AzureAppServicesIntegration/src/AppServicesWebHostBuilderExtensions.cs b/src/Azure/AzureAppServicesIntegration/src/AppServicesWebHostBuilderExtensions.cs index ed5c39561e3f..2271c9132ace 100644 --- a/src/Azure/AzureAppServicesIntegration/src/AppServicesWebHostBuilderExtensions.cs +++ b/src/Azure/AzureAppServicesIntegration/src/AppServicesWebHostBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Azure/AzureAppServicesIntegration/src/Properties/AssemblyInfo.cs b/src/Azure/AzureAppServicesIntegration/src/Properties/AssemblyInfo.cs index 15e5bb66e25a..4a522943635e 100644 --- a/src/Azure/AzureAppServicesIntegration/src/Properties/AssemblyInfo.cs +++ b/src/Azure/AzureAppServicesIntegration/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Azure/AzureAppServicesIntegration/test/AppServicesWebHostBuilderExtensionsTest.cs b/src/Azure/AzureAppServicesIntegration/test/AppServicesWebHostBuilderExtensionsTest.cs index d3aa47bba5ea..6852a694a25c 100644 --- a/src/Azure/AzureAppServicesIntegration/test/AppServicesWebHostBuilderExtensionsTest.cs +++ b/src/Azure/AzureAppServicesIntegration/test/AppServicesWebHostBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Azure/samples/AzureAppServicesHostingStartupSample/Startup.cs b/src/Azure/samples/AzureAppServicesHostingStartupSample/Startup.cs index 1b914973492b..c5943cb18e84 100644 --- a/src/Azure/samples/AzureAppServicesHostingStartupSample/Startup.cs +++ b/src/Azure/samples/AzureAppServicesHostingStartupSample/Startup.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/src/Azure/samples/AzureAppServicesSample/Startup.cs b/src/Azure/samples/AzureAppServicesSample/Startup.cs index 2f92a5e01f24..62858badb088 100644 --- a/src/Azure/samples/AzureAppServicesSample/Startup.cs +++ b/src/Azure/samples/AzureAppServicesSample/Startup.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/src/Components/Analyzers/src/ComponentFacts.cs b/src/Components/Analyzers/src/ComponentFacts.cs index a8b24b37be48..932be4b49e2f 100644 --- a/src/Components/Analyzers/src/ComponentFacts.cs +++ b/src/Components/Analyzers/src/ComponentFacts.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Analyzers/src/ComponentInternalUsageDiagnosticAnalzyer.cs b/src/Components/Analyzers/src/ComponentInternalUsageDiagnosticAnalzyer.cs index f1a598a9c5e5..4ba5911a2a31 100644 --- a/src/Components/Analyzers/src/ComponentInternalUsageDiagnosticAnalzyer.cs +++ b/src/Components/Analyzers/src/ComponentInternalUsageDiagnosticAnalzyer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Immutable; diff --git a/src/Components/Analyzers/src/ComponentParameterAnalyzer.cs b/src/Components/Analyzers/src/ComponentParameterAnalyzer.cs index 43ad2b77d15e..c489c7665ad2 100644 --- a/src/Components/Analyzers/src/ComponentParameterAnalyzer.cs +++ b/src/Components/Analyzers/src/ComponentParameterAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Analyzers/src/ComponentParameterUsageAnalyzer.cs b/src/Components/Analyzers/src/ComponentParameterUsageAnalyzer.cs index 527ea0372be8..697e3164ed67 100644 --- a/src/Components/Analyzers/src/ComponentParameterUsageAnalyzer.cs +++ b/src/Components/Analyzers/src/ComponentParameterUsageAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using System.Linq; diff --git a/src/Components/Analyzers/src/ComponentParametersShouldBePublicCodeFixProvider.cs b/src/Components/Analyzers/src/ComponentParametersShouldBePublicCodeFixProvider.cs index 0d89f0236d02..9dc1959a03d7 100644 --- a/src/Components/Analyzers/src/ComponentParametersShouldBePublicCodeFixProvider.cs +++ b/src/Components/Analyzers/src/ComponentParametersShouldBePublicCodeFixProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using System.Composition; diff --git a/src/Components/Analyzers/src/ComponentSymbols.cs b/src/Components/Analyzers/src/ComponentSymbols.cs index d115e27f5389..da7e74fc9217 100644 --- a/src/Components/Analyzers/src/ComponentSymbols.cs +++ b/src/Components/Analyzers/src/ComponentSymbols.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Analyzers/src/ComponentsApi.cs b/src/Components/Analyzers/src/ComponentsApi.cs index 425287d3daf7..1b849a70b214 100644 --- a/src/Components/Analyzers/src/ComponentsApi.cs +++ b/src/Components/Analyzers/src/ComponentsApi.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Analyzers { diff --git a/src/Components/Analyzers/src/DiagnosticDescriptors.cs b/src/Components/Analyzers/src/DiagnosticDescriptors.cs index 8b4bfdb15446..9e0380ad5af6 100644 --- a/src/Components/Analyzers/src/DiagnosticDescriptors.cs +++ b/src/Components/Analyzers/src/DiagnosticDescriptors.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; diff --git a/src/Components/Analyzers/src/InternalUsageAnalyzer.cs b/src/Components/Analyzers/src/InternalUsageAnalyzer.cs index d9ac0a155d04..68bb6d87f891 100644 --- a/src/Components/Analyzers/src/InternalUsageAnalyzer.cs +++ b/src/Components/Analyzers/src/InternalUsageAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Analyzers/src/Properties/AssemblyInfo.cs b/src/Components/Analyzers/src/Properties/AssemblyInfo.cs index 6e6689b592ac..0253b1d6f86f 100644 --- a/src/Components/Analyzers/src/Properties/AssemblyInfo.cs +++ b/src/Components/Analyzers/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.Components.Analyzers.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Components/Analyzers/test/AnalyzerTestBase.cs b/src/Components/Analyzers/test/AnalyzerTestBase.cs index 8960ad232391..a7a7580a9ab3 100644 --- a/src/Components/Analyzers/test/AnalyzerTestBase.cs +++ b/src/Components/Analyzers/test/AnalyzerTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Analyzers/test/ComponentAnalyzerDiagnosticAnalyzerRunner.cs b/src/Components/Analyzers/test/ComponentAnalyzerDiagnosticAnalyzerRunner.cs index 727f060bd463..f5c215ff685c 100644 --- a/src/Components/Analyzers/test/ComponentAnalyzerDiagnosticAnalyzerRunner.cs +++ b/src/Components/Analyzers/test/ComponentAnalyzerDiagnosticAnalyzerRunner.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Analyzers/test/ComponentInternalUsageDiagnosticsAnalyzerTest.cs b/src/Components/Analyzers/test/ComponentInternalUsageDiagnosticsAnalyzerTest.cs index c7a01a5c630f..9fc6b7df9ea6 100644 --- a/src/Components/Analyzers/test/ComponentInternalUsageDiagnosticsAnalyzerTest.cs +++ b/src/Components/Analyzers/test/ComponentInternalUsageDiagnosticsAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Analyzer.Testing; diff --git a/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs b/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs index e4673c374799..576eb26b5d77 100644 --- a/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs +++ b/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; diff --git a/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs b/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs index f7b055caa7ca..aa0bc4a38827 100644 --- a/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs +++ b/src/Components/Analyzers/test/ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Analyzers/test/ComponentParameterSettersShouldBePublicTest.cs b/src/Components/Analyzers/test/ComponentParameterSettersShouldBePublicTest.cs index f32bc6048e45..13898f6826aa 100644 --- a/src/Components/Analyzers/test/ComponentParameterSettersShouldBePublicTest.cs +++ b/src/Components/Analyzers/test/ComponentParameterSettersShouldBePublicTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; diff --git a/src/Components/Analyzers/test/ComponentParameterUsageAnalyzerTest.cs b/src/Components/Analyzers/test/ComponentParameterUsageAnalyzerTest.cs index d1c2d2bede4b..a6a7637594a4 100644 --- a/src/Components/Analyzers/test/ComponentParameterUsageAnalyzerTest.cs +++ b/src/Components/Analyzers/test/ComponentParameterUsageAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; diff --git a/src/Components/Analyzers/test/ComponentParametersShouldBePublicCodeFixProviderTest.cs b/src/Components/Analyzers/test/ComponentParametersShouldBePublicCodeFixProviderTest.cs index 2e1ee00be08b..23cf361ecda0 100644 --- a/src/Components/Analyzers/test/ComponentParametersShouldBePublicCodeFixProviderTest.cs +++ b/src/Components/Analyzers/test/ComponentParametersShouldBePublicCodeFixProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; diff --git a/src/Components/Analyzers/test/ComponentParametersShouldBePublicTest.cs b/src/Components/Analyzers/test/ComponentParametersShouldBePublicTest.cs index 97b01c469948..e46cce78ce4a 100644 --- a/src/Components/Analyzers/test/ComponentParametersShouldBePublicTest.cs +++ b/src/Components/Analyzers/test/ComponentParametersShouldBePublicTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; diff --git a/src/Components/Analyzers/test/ComponentsTestDeclarations.cs b/src/Components/Analyzers/test/ComponentsTestDeclarations.cs index 3c71a825660d..56c9b2c06e84 100644 --- a/src/Components/Analyzers/test/ComponentsTestDeclarations.cs +++ b/src/Components/Analyzers/test/ComponentsTestDeclarations.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Analyzers { diff --git a/src/Components/Analyzers/test/Helpers/CodeFixVerifier.Helper.cs b/src/Components/Analyzers/test/Helpers/CodeFixVerifier.Helper.cs index b523daa09b12..a7a5b73dca90 100644 --- a/src/Components/Analyzers/test/Helpers/CodeFixVerifier.Helper.cs +++ b/src/Components/Analyzers/test/Helpers/CodeFixVerifier.Helper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // Most of the code in this file comes from the default Roslyn Analyzer project template diff --git a/src/Components/Analyzers/test/Helpers/DiagnosticResult.cs b/src/Components/Analyzers/test/Helpers/DiagnosticResult.cs index 4e3349ae2592..d93c98fdd6cc 100644 --- a/src/Components/Analyzers/test/Helpers/DiagnosticResult.cs +++ b/src/Components/Analyzers/test/Helpers/DiagnosticResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // Most of the code in this file comes from the default Roslyn Analyzer project template diff --git a/src/Components/Analyzers/test/Helpers/DiagnosticVerifier.Helper.cs b/src/Components/Analyzers/test/Helpers/DiagnosticVerifier.Helper.cs index b55bf99cf4a4..1a1aa6aeca06 100644 --- a/src/Components/Analyzers/test/Helpers/DiagnosticVerifier.Helper.cs +++ b/src/Components/Analyzers/test/Helpers/DiagnosticVerifier.Helper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // Most of the code in this file comes from the default Roslyn Analyzer project template diff --git a/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsersRendererTypesInMethodBody.cs b/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsersRendererTypesInMethodBody.cs index 9bd27fb960c1..9275c1d53796 100644 --- a/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsersRendererTypesInMethodBody.cs +++ b/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsersRendererTypesInMethodBody.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.AspNetCore.Components.RenderTree; diff --git a/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererAsBaseClass.cs b/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererAsBaseClass.cs index 7ca9dfccf5c8..483ac7cce09b 100644 --- a/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererAsBaseClass.cs +++ b/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererAsBaseClass.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.Components.RenderTree; diff --git a/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererTypesInDeclarations.cs b/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererTypesInDeclarations.cs index 82dcfdc508a8..e9b7857112d4 100644 --- a/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererTypesInDeclarations.cs +++ b/src/Components/Analyzers/test/TestFiles/ComponentInternalUsageDiagnosticsAnalyzerTest/UsesRendererTypesInDeclarations.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.Components.RenderTree; diff --git a/src/Components/Analyzers/test/Verifiers/CodeFixVerifier.cs b/src/Components/Analyzers/test/Verifiers/CodeFixVerifier.cs index 693b6ef8cef9..28396c377e69 100644 --- a/src/Components/Analyzers/test/Verifiers/CodeFixVerifier.cs +++ b/src/Components/Analyzers/test/Verifiers/CodeFixVerifier.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // Most of the code in this file comes from the default Roslyn Analyzer project template diff --git a/src/Components/Analyzers/test/Verifiers/DiagnosticVerifier.cs b/src/Components/Analyzers/test/Verifiers/DiagnosticVerifier.cs index d323c3a59241..02e70144d7d6 100644 --- a/src/Components/Analyzers/test/Verifiers/DiagnosticVerifier.cs +++ b/src/Components/Analyzers/test/Verifiers/DiagnosticVerifier.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // Most of the code in this file comes from the default Roslyn Analyzer project template diff --git a/src/Components/Authorization/src/AttributeAuthorizeDataCache.cs b/src/Components/Authorization/src/AttributeAuthorizeDataCache.cs index 6eaedce34ebb..0aabb81adc11 100644 --- a/src/Components/Authorization/src/AttributeAuthorizeDataCache.cs +++ b/src/Components/Authorization/src/AttributeAuthorizeDataCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Authorization/src/AuthenticationState.cs b/src/Components/Authorization/src/AuthenticationState.cs index 6a05dce35d98..23c5e9b16161 100644 --- a/src/Components/Authorization/src/AuthenticationState.cs +++ b/src/Components/Authorization/src/AuthenticationState.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Components/Authorization/src/AuthenticationStateProvider.cs b/src/Components/Authorization/src/AuthenticationStateProvider.cs index 73c0cda65f56..585ad39f52f2 100644 --- a/src/Components/Authorization/src/AuthenticationStateProvider.cs +++ b/src/Components/Authorization/src/AuthenticationStateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Authorization/src/AuthorizeDataAdapter.cs b/src/Components/Authorization/src/AuthorizeDataAdapter.cs index 7cd144a589cc..c66a23b15c2d 100644 --- a/src/Components/Authorization/src/AuthorizeDataAdapter.cs +++ b/src/Components/Authorization/src/AuthorizeDataAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authorization; diff --git a/src/Components/Authorization/src/AuthorizeRouteView.cs b/src/Components/Authorization/src/AuthorizeRouteView.cs index 9fbb7f402d18..ef1fb45dfd9c 100644 --- a/src/Components/Authorization/src/AuthorizeRouteView.cs +++ b/src/Components/Authorization/src/AuthorizeRouteView.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; diff --git a/src/Components/Authorization/src/AuthorizeView.cs b/src/Components/Authorization/src/AuthorizeView.cs index 53be769570e0..27f26db6e905 100644 --- a/src/Components/Authorization/src/AuthorizeView.cs +++ b/src/Components/Authorization/src/AuthorizeView.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; diff --git a/src/Components/Authorization/src/AuthorizeViewCore.cs b/src/Components/Authorization/src/AuthorizeViewCore.cs index b72ad2131b9a..d8ebeed9d9f4 100644 --- a/src/Components/Authorization/src/AuthorizeViewCore.cs +++ b/src/Components/Authorization/src/AuthorizeViewCore.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Components/Authorization/src/IHostEnvironmentAuthenticationStateProvider.cs b/src/Components/Authorization/src/IHostEnvironmentAuthenticationStateProvider.cs index fc036572a23f..3580b97fc879 100644 --- a/src/Components/Authorization/src/IHostEnvironmentAuthenticationStateProvider.cs +++ b/src/Components/Authorization/src/IHostEnvironmentAuthenticationStateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Authorization/test/AuthorizeRouteViewTest.cs b/src/Components/Authorization/test/AuthorizeRouteViewTest.cs index 58c29459e8ec..ba17437acacb 100644 --- a/src/Components/Authorization/test/AuthorizeRouteViewTest.cs +++ b/src/Components/Authorization/test/AuthorizeRouteViewTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Components/Authorization/test/AuthorizeViewTest.cs b/src/Components/Authorization/test/AuthorizeViewTest.cs index 0cbbe4506106..63eab3220922 100644 --- a/src/Components/Authorization/test/AuthorizeViewTest.cs +++ b/src/Components/Authorization/test/AuthorizeViewTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Authorization/test/CascadingAuthenticationStateTest.cs b/src/Components/Authorization/test/CascadingAuthenticationStateTest.cs index ab942fe82a98..6ff147f2d5eb 100644 --- a/src/Components/Authorization/test/CascadingAuthenticationStateTest.cs +++ b/src/Components/Authorization/test/CascadingAuthenticationStateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Authorization/test/TestAsyncAuthorizationService.cs b/src/Components/Authorization/test/TestAsyncAuthorizationService.cs index ac273a4b087b..e60fe54c3b8e 100644 --- a/src/Components/Authorization/test/TestAsyncAuthorizationService.cs +++ b/src/Components/Authorization/test/TestAsyncAuthorizationService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Authorization/test/TestAuthenticationStateProvider.cs b/src/Components/Authorization/test/TestAuthenticationStateProvider.cs index 3e8faf6a5027..79439cef37f8 100644 --- a/src/Components/Authorization/test/TestAuthenticationStateProvider.cs +++ b/src/Components/Authorization/test/TestAuthenticationStateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Authorization/test/TestAuthorizationPolicyProvider.cs b/src/Components/Authorization/test/TestAuthorizationPolicyProvider.cs index 7935f7713859..dc3e633e8661 100644 --- a/src/Components/Authorization/test/TestAuthorizationPolicyProvider.cs +++ b/src/Components/Authorization/test/TestAuthorizationPolicyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; diff --git a/src/Components/Authorization/test/TestAuthorizationService.cs b/src/Components/Authorization/test/TestAuthorizationService.cs index 42f2d4b93662..33991da14f4b 100644 --- a/src/Components/Authorization/test/TestAuthorizationService.cs +++ b/src/Components/Authorization/test/TestAuthorizationService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Authorization/test/TestIdentity.cs b/src/Components/Authorization/test/TestIdentity.cs index 936c6ee0ea87..b0406fabc2ea 100644 --- a/src/Components/Authorization/test/TestIdentity.cs +++ b/src/Components/Authorization/test/TestIdentity.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Principal; diff --git a/src/Components/Components/perf/AssemblyInfo.cs b/src/Components/Components/perf/AssemblyInfo.cs index 59c4ce51802f..39d1350a5ed8 100644 --- a/src/Components/Components/perf/AssemblyInfo.cs +++ b/src/Components/Components/perf/AssemblyInfo.cs @@ -1,4 +1,4 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] \ No newline at end of file diff --git a/src/Components/Components/perf/Program.cs b/src/Components/Components/perf/Program.cs index 8602bc9462b0..59ac802bfc22 100644 --- a/src/Components/Components/perf/Program.cs +++ b/src/Components/Components/perf/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Components/perf/RenderTreeDiffBuilderBenchmark.cs b/src/Components/Components/perf/RenderTreeDiffBuilderBenchmark.cs index 51d7fea9fc68..1968a9c4c973 100644 --- a/src/Components/Components/perf/RenderTreeDiffBuilderBenchmark.cs +++ b/src/Components/Components/perf/RenderTreeDiffBuilderBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/BindConverter.cs b/src/Components/Components/src/BindConverter.cs index e74fcd429a03..6029830787e2 100644 --- a/src/Components/Components/src/BindConverter.cs +++ b/src/Components/Components/src/BindConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/BindElementAttribute.cs b/src/Components/Components/src/BindElementAttribute.cs index 1b48ee94081d..654640876d34 100644 --- a/src/Components/Components/src/BindElementAttribute.cs +++ b/src/Components/Components/src/BindElementAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -40,7 +40,7 @@ public BindElementAttribute(string element, string? suffix, string valueAttribut ChangeAttribute = changeAttribute; Suffix = suffix; } - + /// /// Gets the tag name of the element. /// diff --git a/src/Components/Components/src/CascadingParameterAttribute.cs b/src/Components/Components/src/CascadingParameterAttribute.cs index 8e106b404c13..1c7fa9a38ec1 100644 --- a/src/Components/Components/src/CascadingParameterAttribute.cs +++ b/src/Components/Components/src/CascadingParameterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/CascadingParameterState.cs b/src/Components/Components/src/CascadingParameterState.cs index 712efc9e7976..21a563c44e69 100644 --- a/src/Components/Components/src/CascadingParameterState.cs +++ b/src/Components/Components/src/CascadingParameterState.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/CascadingTypeParameterAttribute.cs b/src/Components/Components/src/CascadingTypeParameterAttribute.cs index bfd866ce846b..4b3ee215da90 100644 --- a/src/Components/Components/src/CascadingTypeParameterAttribute.cs +++ b/src/Components/Components/src/CascadingTypeParameterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/CascadingValue.cs b/src/Components/Components/src/CascadingValue.cs index c8214f9b4907..75b3f591713e 100644 --- a/src/Components/Components/src/CascadingValue.cs +++ b/src/Components/Components/src/CascadingValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/ChangeDetection.cs b/src/Components/Components/src/ChangeDetection.cs index 404b48011275..f774f76f26dc 100644 --- a/src/Components/Components/src/ChangeDetection.cs +++ b/src/Components/Components/src/ChangeDetection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/ChangeEventArgs.cs b/src/Components/Components/src/ChangeEventArgs.cs index 744c66429afb..2c93d85fb7e1 100644 --- a/src/Components/Components/src/ChangeEventArgs.cs +++ b/src/Components/Components/src/ChangeEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/CompilerServices/RuntimeHelpers.cs b/src/Components/Components/src/CompilerServices/RuntimeHelpers.cs index 5d3469e622e8..941f70b83b96 100644 --- a/src/Components/Components/src/CompilerServices/RuntimeHelpers.cs +++ b/src/Components/Components/src/CompilerServices/RuntimeHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/ComponentBase.cs b/src/Components/Components/src/ComponentBase.cs index 196fb84f064c..90f2e01b5724 100644 --- a/src/Components/Components/src/ComponentBase.cs +++ b/src/Components/Components/src/ComponentBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -198,7 +198,7 @@ void IComponent.Attach(RenderHandle renderHandle) /// A that completes when the component has finished updating and rendering itself. /// /// - /// Parameters are passed when is called. It is not required that + /// Parameters are passed when is called. It is not required that /// the caller supply a parameter value for all of the parameters that are logically understood by the component. /// /// diff --git a/src/Components/Components/src/ComponentFactory.cs b/src/Components/Components/src/ComponentFactory.cs index ba8d5affb4be..e798d066e6bd 100644 --- a/src/Components/Components/src/ComponentFactory.cs +++ b/src/Components/Components/src/ComponentFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/DefaultComponentActivator.cs b/src/Components/Components/src/DefaultComponentActivator.cs index 8295091b835f..8de27812a6aa 100644 --- a/src/Components/Components/src/DefaultComponentActivator.cs +++ b/src/Components/Components/src/DefaultComponentActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Components/src/Dispatcher.cs b/src/Components/Components/src/Dispatcher.cs index db0ee4973f2c..7870979278e1 100644 --- a/src/Components/Components/src/Dispatcher.cs +++ b/src/Components/Components/src/Dispatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/DynamicComponent.cs b/src/Components/Components/src/DynamicComponent.cs index db83925d5dee..85f984fa80ad 100644 --- a/src/Components/Components/src/DynamicComponent.cs +++ b/src/Components/Components/src/DynamicComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/EditorRequiredAttribute.cs b/src/Components/Components/src/EditorRequiredAttribute.cs index 38a23937668b..983b4ad3daca 100644 --- a/src/Components/Components/src/EditorRequiredAttribute.cs +++ b/src/Components/Components/src/EditorRequiredAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/ElementReference.cs b/src/Components/Components/src/ElementReference.cs index 26fdea89bd04..8858f60ac3df 100644 --- a/src/Components/Components/src/ElementReference.cs +++ b/src/Components/Components/src/ElementReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/Components/src/ElementReferenceContext.cs b/src/Components/Components/src/ElementReferenceContext.cs index 2bb7b9194a5a..39653f0a816b 100644 --- a/src/Components/Components/src/ElementReferenceContext.cs +++ b/src/Components/Components/src/ElementReferenceContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components { diff --git a/src/Components/Components/src/ErrorBoundaryBase.cs b/src/Components/Components/src/ErrorBoundaryBase.cs index f35441db7e8d..fa65f38eb244 100644 --- a/src/Components/Components/src/ErrorBoundaryBase.cs +++ b/src/Components/Components/src/ErrorBoundaryBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.ExceptionServices; diff --git a/src/Components/Components/src/EventCallback.cs b/src/Components/Components/src/EventCallback.cs index 03f2fae15e97..e3676c62d680 100644 --- a/src/Components/Components/src/EventCallback.cs +++ b/src/Components/Components/src/EventCallback.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/EventCallbackFactory.cs b/src/Components/Components/src/EventCallbackFactory.cs index 1b53376b85ae..059c17b0c8f8 100644 --- a/src/Components/Components/src/EventCallbackFactory.cs +++ b/src/Components/Components/src/EventCallbackFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Components/Components/src/EventCallbackFactoryBinderExtensions.cs b/src/Components/Components/src/EventCallbackFactoryBinderExtensions.cs index ce527295583e..1e3d3f032436 100644 --- a/src/Components/Components/src/EventCallbackFactoryBinderExtensions.cs +++ b/src/Components/Components/src/EventCallbackFactoryBinderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Components/src/EventCallbackFactoryEventArgsExtensions.cs b/src/Components/Components/src/EventCallbackFactoryEventArgsExtensions.cs index d0c4aec3038f..bb0b57436659 100644 --- a/src/Components/Components/src/EventCallbackFactoryEventArgsExtensions.cs +++ b/src/Components/Components/src/EventCallbackFactoryEventArgsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/EventCallbackOfT.cs b/src/Components/Components/src/EventCallbackOfT.cs index e228d8e31e1e..1aa1c0f86392 100644 --- a/src/Components/Components/src/EventCallbackOfT.cs +++ b/src/Components/Components/src/EventCallbackOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/EventCallbackWorkItem.cs b/src/Components/Components/src/EventCallbackWorkItem.cs index 8382f8daeb79..3114729d6909 100644 --- a/src/Components/Components/src/EventCallbackWorkItem.cs +++ b/src/Components/Components/src/EventCallbackWorkItem.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Components/Components/src/EventHandlerAttribute.cs b/src/Components/Components/src/EventHandlerAttribute.cs index 67307fb9efe5..57562645774e 100644 --- a/src/Components/Components/src/EventHandlerAttribute.cs +++ b/src/Components/Components/src/EventHandlerAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/HotReload/HotReloadManager.cs b/src/Components/Components/src/HotReload/HotReloadManager.cs index 7c5c193f0140..699b20a08315 100644 --- a/src/Components/Components/src/HotReload/HotReloadManager.cs +++ b/src/Components/Components/src/HotReload/HotReloadManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection.Metadata; diff --git a/src/Components/Components/src/HotReload/TestableMetadataUpdate.cs b/src/Components/Components/src/HotReload/TestableMetadataUpdate.cs index b58fb566112f..56a591235588 100644 --- a/src/Components/Components/src/HotReload/TestableMetadataUpdate.cs +++ b/src/Components/Components/src/HotReload/TestableMetadataUpdate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection.Metadata; diff --git a/src/Components/Components/src/ICascadingValueComponent.cs b/src/Components/Components/src/ICascadingValueComponent.cs index 258116bd4c95..2510d7f82f32 100644 --- a/src/Components/Components/src/ICascadingValueComponent.cs +++ b/src/Components/Components/src/ICascadingValueComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; using System; diff --git a/src/Components/Components/src/IComponent.cs b/src/Components/Components/src/IComponent.cs index 936cd379441a..616111de6f51 100644 --- a/src/Components/Components/src/IComponent.cs +++ b/src/Components/Components/src/IComponent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Components/src/IComponentActivator.cs b/src/Components/Components/src/IComponentActivator.cs index d3ed66554469..5239f1ff14ea 100644 --- a/src/Components/Components/src/IComponentActivator.cs +++ b/src/Components/Components/src/IComponentActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Components/src/IErrorBoundary.cs b/src/Components/Components/src/IErrorBoundary.cs index b433dd055737..bb4ec1d9eee1 100644 --- a/src/Components/Components/src/IErrorBoundary.cs +++ b/src/Components/Components/src/IErrorBoundary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/IEventCallback.cs b/src/Components/Components/src/IEventCallback.cs index c95f76734c50..d6239808a489 100644 --- a/src/Components/Components/src/IEventCallback.cs +++ b/src/Components/Components/src/IEventCallback.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components { diff --git a/src/Components/Components/src/IHandleAfterRender.cs b/src/Components/Components/src/IHandleAfterRender.cs index 349138519f15..02c3f973ea21 100644 --- a/src/Components/Components/src/IHandleAfterRender.cs +++ b/src/Components/Components/src/IHandleAfterRender.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Components/src/IHandleEvent.cs b/src/Components/Components/src/IHandleEvent.cs index 61912ca6ce71..7593ccbd8bd0 100644 --- a/src/Components/Components/src/IHandleEvent.cs +++ b/src/Components/Components/src/IHandleEvent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Components/src/InjectAttribute.cs b/src/Components/Components/src/InjectAttribute.cs index f18381fe9cf3..3e9c0f6a51c1 100644 --- a/src/Components/Components/src/InjectAttribute.cs +++ b/src/Components/Components/src/InjectAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/LayoutAttribute.cs b/src/Components/Components/src/LayoutAttribute.cs index 8e4fa7892274..16472adc2f6f 100644 --- a/src/Components/Components/src/LayoutAttribute.cs +++ b/src/Components/Components/src/LayoutAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/LayoutComponentBase.cs b/src/Components/Components/src/LayoutComponentBase.cs index b0402f27af01..2eb22c600bb3 100644 --- a/src/Components/Components/src/LayoutComponentBase.cs +++ b/src/Components/Components/src/LayoutComponentBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Threading.Tasks; diff --git a/src/Components/Components/src/LayoutView.cs b/src/Components/Components/src/LayoutView.cs index a9f8f5b7e7f6..ba8e5bc89dbe 100644 --- a/src/Components/Components/src/LayoutView.cs +++ b/src/Components/Components/src/LayoutView.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; @@ -68,7 +68,7 @@ private void Render() private static RenderFragment WrapInLayout([DynamicallyAccessedMembers(Component)] Type layoutType, RenderFragment bodyParam) { void Render(RenderTreeBuilder builder) - { + { builder.OpenComponent(0, layoutType); builder.AddAttribute(1, LayoutComponentBase.BodyPropertyName, bodyParam); builder.CloseComponent(); diff --git a/src/Components/Components/src/Lifetime/ComponentApplicationLifetime.cs b/src/Components/Components/src/Lifetime/ComponentApplicationLifetime.cs index 2d5464e3952f..13e4cd308081 100644 --- a/src/Components/Components/src/Lifetime/ComponentApplicationLifetime.cs +++ b/src/Components/Components/src/Lifetime/ComponentApplicationLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Lifetime/ComponentApplicationState.cs b/src/Components/Components/src/Lifetime/ComponentApplicationState.cs index a1062b39cc07..1b25d22c8328 100644 --- a/src/Components/Components/src/Lifetime/ComponentApplicationState.cs +++ b/src/Components/Components/src/Lifetime/ComponentApplicationState.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Lifetime/IComponentApplicationStateStore.cs b/src/Components/Components/src/Lifetime/IComponentApplicationStateStore.cs index c509475d0e0d..68312633c5c8 100644 --- a/src/Components/Components/src/Lifetime/IComponentApplicationStateStore.cs +++ b/src/Components/Components/src/Lifetime/IComponentApplicationStateStore.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.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Components/Components/src/LocationChangeException.cs b/src/Components/Components/src/LocationChangeException.cs index 13010eb5c156..93cf414514cc 100644 --- a/src/Components/Components/src/LocationChangeException.cs +++ b/src/Components/Components/src/LocationChangeException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/MarkupString.cs b/src/Components/Components/src/MarkupString.cs index c0f9c8af0a0d..3574b8f1213d 100644 --- a/src/Components/Components/src/MarkupString.cs +++ b/src/Components/Components/src/MarkupString.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components { diff --git a/src/Components/Components/src/NavigationException.cs b/src/Components/Components/src/NavigationException.cs index 5acb891e6ff6..70bdc0eed082 100644 --- a/src/Components/Components/src/NavigationException.cs +++ b/src/Components/Components/src/NavigationException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/NavigationManager.cs b/src/Components/Components/src/NavigationManager.cs index fc59596f03c1..0936eb92e91c 100644 --- a/src/Components/Components/src/NavigationManager.cs +++ b/src/Components/Components/src/NavigationManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.Routing; diff --git a/src/Components/Components/src/NavigationOptions.cs b/src/Components/Components/src/NavigationOptions.cs index ea8d4995fab8..40f20c6f66e9 100644 --- a/src/Components/Components/src/NavigationOptions.cs +++ b/src/Components/Components/src/NavigationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components { diff --git a/src/Components/Components/src/OwningComponentBase.cs b/src/Components/Components/src/OwningComponentBase.cs index 01ca71cb4112..a0fc53763e1d 100644 --- a/src/Components/Components/src/OwningComponentBase.cs +++ b/src/Components/Components/src/OwningComponentBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Components/Components/src/ParameterAttribute.cs b/src/Components/Components/src/ParameterAttribute.cs index 8001f1cdb330..3df1f1d7a7ed 100644 --- a/src/Components/Components/src/ParameterAttribute.cs +++ b/src/Components/Components/src/ParameterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/ParameterValue.cs b/src/Components/Components/src/ParameterValue.cs index c080880de243..defe70660940 100644 --- a/src/Components/Components/src/ParameterValue.cs +++ b/src/Components/Components/src/ParameterValue.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components { diff --git a/src/Components/Components/src/ParameterView.cs b/src/Components/Components/src/ParameterView.cs index 39d9bbfbfaf8..ae3fe17fcf4a 100644 --- a/src/Components/Components/src/ParameterView.cs +++ b/src/Components/Components/src/ParameterView.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/ParameterViewBuilder.cs b/src/Components/Components/src/ParameterViewBuilder.cs index dcdd67b96f30..22f356fbb51e 100644 --- a/src/Components/Components/src/ParameterViewBuilder.cs +++ b/src/Components/Components/src/ParameterViewBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; diff --git a/src/Components/Components/src/Properties/AssemblyInfo.cs b/src/Components/Components/src/Properties/AssemblyInfo.cs index d3db4d652c24..5247054165ec 100644 --- a/src/Components/Components/src/Properties/AssemblyInfo.cs +++ b/src/Components/Components/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Components/Components/src/Reflection/ComponentProperties.cs b/src/Components/Components/src/Reflection/ComponentProperties.cs index 90e09b56af5d..e0b0f8d14c4f 100644 --- a/src/Components/Components/src/Reflection/ComponentProperties.cs +++ b/src/Components/Components/src/Reflection/ComponentProperties.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/Reflection/MemberAssignment.cs b/src/Components/Components/src/Reflection/MemberAssignment.cs index 03878aafd56c..627a1ce4e7a1 100644 --- a/src/Components/Components/src/Reflection/MemberAssignment.cs +++ b/src/Components/Components/src/Reflection/MemberAssignment.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Reflection/PropertySetter.cs b/src/Components/Components/src/Reflection/PropertySetter.cs index fda4ffc593ee..862e936be8d1 100644 --- a/src/Components/Components/src/Reflection/PropertySetter.cs +++ b/src/Components/Components/src/Reflection/PropertySetter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Components/src/RenderFragment.cs b/src/Components/Components/src/RenderFragment.cs index cf27ad2cc43e..f94d59dd4a9a 100644 --- a/src/Components/Components/src/RenderFragment.cs +++ b/src/Components/Components/src/RenderFragment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; diff --git a/src/Components/Components/src/RenderHandle.cs b/src/Components/Components/src/RenderHandle.cs index c90ed31c89b1..e7923ce41d0b 100644 --- a/src/Components/Components/src/RenderHandle.cs +++ b/src/Components/Components/src/RenderHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Components/src/RenderTree/ArrayBuilderExtensions.cs b/src/Components/Components/src/RenderTree/ArrayBuilderExtensions.cs index 2252000716dc..2e9209afce58 100644 --- a/src/Components/Components/src/RenderTree/ArrayBuilderExtensions.cs +++ b/src/Components/Components/src/RenderTree/ArrayBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/RenderTree/ArrayBuilderSegment.cs b/src/Components/Components/src/RenderTree/ArrayBuilderSegment.cs index 0e540f9c8cbe..18b79198e553 100644 --- a/src/Components/Components/src/RenderTree/ArrayBuilderSegment.cs +++ b/src/Components/Components/src/RenderTree/ArrayBuilderSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Components/src/RenderTree/ArrayRange.cs b/src/Components/Components/src/RenderTree/ArrayRange.cs index a980a9224645..43e1a97f5039 100644 --- a/src/Components/Components/src/RenderTree/ArrayRange.cs +++ b/src/Components/Components/src/RenderTree/ArrayRange.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if IGNITOR namespace Ignitor diff --git a/src/Components/Components/src/RenderTree/EventArgsTypeCache.cs b/src/Components/Components/src/RenderTree/EventArgsTypeCache.cs index ffb6379612c9..a13962ad85f4 100644 --- a/src/Components/Components/src/RenderTree/EventArgsTypeCache.cs +++ b/src/Components/Components/src/RenderTree/EventArgsTypeCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/RenderTree/EventFieldInfo.cs b/src/Components/Components/src/RenderTree/EventFieldInfo.cs index d612e2840f20..98a4c0b8bae9 100644 --- a/src/Components/Components/src/RenderTree/EventFieldInfo.cs +++ b/src/Components/Components/src/RenderTree/EventFieldInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.RenderTree { @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Components.RenderTree /// Types in the Microsoft.AspNetCore.Components.RenderTree are not recommended for use outside /// of the Blazor framework. These types will change in a future release. /// - // + // // Information supplied with an event notification that can be used to update an existing // render tree to match the latest UI state when a form field has mutated. To determine // which field has been mutated, the renderer matches it based on the event handler ID. diff --git a/src/Components/Components/src/RenderTree/RenderBatch.cs b/src/Components/Components/src/RenderTree/RenderBatch.cs index 55f3c02629dd..f7100354c10b 100644 --- a/src/Components/Components/src/RenderTree/RenderBatch.cs +++ b/src/Components/Components/src/RenderTree/RenderBatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if IGNITOR namespace Ignitor diff --git a/src/Components/Components/src/RenderTree/RenderTreeDiff.cs b/src/Components/Components/src/RenderTree/RenderTreeDiff.cs index 4947029ab2e2..2c05741fa604 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeDiff.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeDiff.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if IGNITOR namespace Ignitor diff --git a/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs b/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs index efaa52f4b43a..b5716c7ce3d6 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Components/src/RenderTree/RenderTreeEdit.cs b/src/Components/Components/src/RenderTree/RenderTreeEdit.cs index 1188fb63fb1d..c7b5f43f6ca4 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeEdit.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeEdit.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; diff --git a/src/Components/Components/src/RenderTree/RenderTreeEditType.cs b/src/Components/Components/src/RenderTree/RenderTreeEditType.cs index f3d48172fb71..a749ebb92626 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeEditType.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeEditType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if IGNITOR namespace Ignitor diff --git a/src/Components/Components/src/RenderTree/RenderTreeFrame.cs b/src/Components/Components/src/RenderTree/RenderTreeFrame.cs index 7eaa04e0579c..6e4d356cfd55 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeFrame.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeFrame.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Components/Components/src/RenderTree/RenderTreeFrameArrayBuilder.cs b/src/Components/Components/src/RenderTree/RenderTreeFrameArrayBuilder.cs index 45463ac9f34f..144f71f3dd69 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeFrameArrayBuilder.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeFrameArrayBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; @@ -82,7 +82,7 @@ public void AppendComponent(int sequence, [DynamicallyAccessedMembers(Component) { GrowBuffer(_items.Length * 2); } - + _items[_itemsInUse++] = new RenderTreeFrame { SequenceField = sequence, @@ -97,7 +97,7 @@ public void AppendElementReferenceCapture(int sequence, Action { GrowBuffer(_items.Length * 2); } - + _items[_itemsInUse++] = new RenderTreeFrame { SequenceField = sequence, @@ -112,7 +112,7 @@ public void AppendComponentReferenceCapture(int sequence, Action compone { GrowBuffer(_items.Length * 2); } - + _items[_itemsInUse++] = new RenderTreeFrame { SequenceField = sequence, @@ -128,7 +128,7 @@ public void AppendRegion(int sequence) { GrowBuffer(_items.Length * 2); } - + _items[_itemsInUse++] = new RenderTreeFrame { SequenceField = sequence, diff --git a/src/Components/Components/src/RenderTree/RenderTreeFrameType.cs b/src/Components/Components/src/RenderTree/RenderTreeFrameType.cs index 1e6249c8d779..8df81b317a6c 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeFrameType.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeFrameType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if IGNITOR namespace Ignitor diff --git a/src/Components/Components/src/RenderTree/Renderer.Log.cs b/src/Components/Components/src/RenderTree/Renderer.Log.cs index 1676964874cc..1b52c42c5651 100644 --- a/src/Components/Components/src/RenderTree/Renderer.Log.cs +++ b/src/Components/Components/src/RenderTree/Renderer.Log.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Components/src/RenderTree/Renderer.cs b/src/Components/Components/src/RenderTree/Renderer.cs index bfcd5de15f40..d016c79e82b8 100644 --- a/src/Components/Components/src/RenderTree/Renderer.cs +++ b/src/Components/Components/src/RenderTree/Renderer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings @@ -975,7 +975,7 @@ private void HandleExceptionViaErrorBoundary(Exception error, ComponentState? er protected virtual void Dispose(bool disposing) { Disposed = true; - + if (TestableMetadataUpdate.IsSupported) { HotReloadManager.OnDeltaApplied -= RenderRootComponentsOnHotReload; diff --git a/src/Components/Components/src/RenderTree/StackObjectPool.cs b/src/Components/Components/src/RenderTree/StackObjectPool.cs index a2c9c1f5241b..63c573aabc67 100644 --- a/src/Components/Components/src/RenderTree/StackObjectPool.cs +++ b/src/Components/Components/src/RenderTree/StackObjectPool.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/Rendering/ComponentState.cs b/src/Components/Components/src/Rendering/ComponentState.cs index f5692f83e76b..0c4fe5906f41 100644 --- a/src/Components/Components/src/Rendering/ComponentState.cs +++ b/src/Components/Components/src/Rendering/ComponentState.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Rendering/KeyedItemInfo.cs b/src/Components/Components/src/Rendering/KeyedItemInfo.cs index c8a7de5e1aef..8f7da6ee3bbe 100644 --- a/src/Components/Components/src/Rendering/KeyedItemInfo.cs +++ b/src/Components/Components/src/Rendering/KeyedItemInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Rendering { diff --git a/src/Components/Components/src/Rendering/ParameterViewLifetime.cs b/src/Components/Components/src/Rendering/ParameterViewLifetime.cs index 57b2cf567e44..25178bc32855 100644 --- a/src/Components/Components/src/Rendering/ParameterViewLifetime.cs +++ b/src/Components/Components/src/Rendering/ParameterViewLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/Rendering/RenderBatchBuilder.cs b/src/Components/Components/src/Rendering/RenderBatchBuilder.cs index d4223bbce280..6677525b4b33 100644 --- a/src/Components/Components/src/Rendering/RenderBatchBuilder.cs +++ b/src/Components/Components/src/Rendering/RenderBatchBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Rendering/RenderQueueEntry.cs b/src/Components/Components/src/Rendering/RenderQueueEntry.cs index 09e5e9c3272a..14f79ba7829b 100644 --- a/src/Components/Components/src/Rendering/RenderQueueEntry.cs +++ b/src/Components/Components/src/Rendering/RenderQueueEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/Rendering/RenderTreeBuilder.cs b/src/Components/Components/src/Rendering/RenderTreeBuilder.cs index 57441c85b696..f9163f5b6b64 100644 --- a/src/Components/Components/src/Rendering/RenderTreeBuilder.cs +++ b/src/Components/Components/src/Rendering/RenderTreeBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Rendering/RenderTreeUpdater.cs b/src/Components/Components/src/Rendering/RenderTreeUpdater.cs index 4b97d5231796..b6e8d5443f9b 100644 --- a/src/Components/Components/src/Rendering/RenderTreeUpdater.cs +++ b/src/Components/Components/src/Rendering/RenderTreeUpdater.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.RenderTree; diff --git a/src/Components/Components/src/Rendering/RendererSynchronizationContext.cs b/src/Components/Components/src/Rendering/RendererSynchronizationContext.cs index 571f8468952c..5f84530fc41c 100644 --- a/src/Components/Components/src/Rendering/RendererSynchronizationContext.cs +++ b/src/Components/Components/src/Rendering/RendererSynchronizationContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Components/src/Rendering/RendererSynchronizationContextDispatcher.cs b/src/Components/Components/src/Rendering/RendererSynchronizationContextDispatcher.cs index e09488431c20..14516ec32591 100644 --- a/src/Components/Components/src/Rendering/RendererSynchronizationContextDispatcher.cs +++ b/src/Components/Components/src/Rendering/RendererSynchronizationContextDispatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Rendering/SimplifiedStringHashComparer.cs b/src/Components/Components/src/Rendering/SimplifiedStringHashComparer.cs index 03af8db6e129..5368aa7c68bf 100644 --- a/src/Components/Components/src/Rendering/SimplifiedStringHashComparer.cs +++ b/src/Components/Components/src/Rendering/SimplifiedStringHashComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/RouteAttribute.cs b/src/Components/Components/src/RouteAttribute.cs index 6e3214845bc5..80eee6980206 100644 --- a/src/Components/Components/src/RouteAttribute.cs +++ b/src/Components/Components/src/RouteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/RouteView.cs b/src/Components/Components/src/RouteView.cs index 69753ba394af..70cab970c104 100644 --- a/src/Components/Components/src/RouteView.cs +++ b/src/Components/Components/src/RouteView.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Components/src/Routing/IHostEnvironmentNavigationManager.cs b/src/Components/Components/src/Routing/IHostEnvironmentNavigationManager.cs index 89dac06e0fd8..b2a9ea89e91d 100644 --- a/src/Components/Components/src/Routing/IHostEnvironmentNavigationManager.cs +++ b/src/Components/Components/src/Routing/IHostEnvironmentNavigationManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Routing { diff --git a/src/Components/Components/src/Routing/INavigationInterception.cs b/src/Components/Components/src/Routing/INavigationInterception.cs index 0100062aba90..006cdc937dec 100644 --- a/src/Components/Components/src/Routing/INavigationInterception.cs +++ b/src/Components/Components/src/Routing/INavigationInterception.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Components/src/Routing/LocationChangedEventArgs.cs b/src/Components/Components/src/Routing/LocationChangedEventArgs.cs index 7d1dca39e486..b6a7ea4f9654 100644 --- a/src/Components/Components/src/Routing/LocationChangedEventArgs.cs +++ b/src/Components/Components/src/Routing/LocationChangedEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/Routing/NavigationContext.cs b/src/Components/Components/src/Routing/NavigationContext.cs index b2d0f47031d5..b61018627b38 100644 --- a/src/Components/Components/src/Routing/NavigationContext.cs +++ b/src/Components/Components/src/Routing/NavigationContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Components/Components/src/Routing/QueryParameterValueSupplier.cs b/src/Components/Components/src/Routing/QueryParameterValueSupplier.cs index 421a0b6d02ce..49b4e196922b 100644 --- a/src/Components/Components/src/Routing/QueryParameterValueSupplier.cs +++ b/src/Components/Components/src/Routing/QueryParameterValueSupplier.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Components/Components/src/Routing/RouteConstraint.cs b/src/Components/Components/src/Routing/RouteConstraint.cs index 51dd00d3f5c4..bb05328b15d8 100644 --- a/src/Components/Components/src/Routing/RouteConstraint.cs +++ b/src/Components/Components/src/Routing/RouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/Routing/RouteContext.cs b/src/Components/Components/src/Routing/RouteContext.cs index 4c31ee2257ed..a8109c29e2ce 100644 --- a/src/Components/Components/src/Routing/RouteContext.cs +++ b/src/Components/Components/src/Routing/RouteContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Routing/RouteData.cs b/src/Components/Components/src/Routing/RouteData.cs index c1448ccc443e..e8e0af365905 100644 --- a/src/Components/Components/src/Routing/RouteData.cs +++ b/src/Components/Components/src/Routing/RouteData.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Routing/RouteEntry.cs b/src/Components/Components/src/Routing/RouteEntry.cs index 14454fe47e8c..46b194c528a4 100644 --- a/src/Components/Components/src/Routing/RouteEntry.cs +++ b/src/Components/Components/src/Routing/RouteEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Components/src/Routing/RouteKey.cs b/src/Components/Components/src/Routing/RouteKey.cs index 522415a36d60..4b55fd26a69a 100644 --- a/src/Components/Components/src/Routing/RouteKey.cs +++ b/src/Components/Components/src/Routing/RouteKey.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Routing/RouteTable.cs b/src/Components/Components/src/Routing/RouteTable.cs index f7bcf11ddfec..e903c4bdf850 100644 --- a/src/Components/Components/src/Routing/RouteTable.cs +++ b/src/Components/Components/src/Routing/RouteTable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Routing { diff --git a/src/Components/Components/src/Routing/RouteTableFactory.cs b/src/Components/Components/src/Routing/RouteTableFactory.cs index e8f263fd08b8..ead69e69518a 100644 --- a/src/Components/Components/src/Routing/RouteTableFactory.cs +++ b/src/Components/Components/src/Routing/RouteTableFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/Routing/RouteTemplate.cs b/src/Components/Components/src/Routing/RouteTemplate.cs index 63ecd9dad3eb..bab10e022e25 100644 --- a/src/Components/Components/src/Routing/RouteTemplate.cs +++ b/src/Components/Components/src/Routing/RouteTemplate.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Routing/Router.cs b/src/Components/Components/src/Routing/Router.cs index 832f697a363b..17c29d69803a 100644 --- a/src/Components/Components/src/Routing/Router.cs +++ b/src/Components/Components/src/Routing/Router.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Components/src/Routing/StringSegmentAccumulator.cs b/src/Components/Components/src/Routing/StringSegmentAccumulator.cs index fdf8bbd17ab0..2834eac7f708 100644 --- a/src/Components/Components/src/Routing/StringSegmentAccumulator.cs +++ b/src/Components/Components/src/Routing/StringSegmentAccumulator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/src/Routing/TemplateParser.cs b/src/Components/Components/src/Routing/TemplateParser.cs index 1f4f1bbb1f89..df6f4bc9e01e 100644 --- a/src/Components/Components/src/Routing/TemplateParser.cs +++ b/src/Components/Components/src/Routing/TemplateParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Microsoft.AspNetCore.Components.Routing diff --git a/src/Components/Components/src/Routing/TemplateSegment.cs b/src/Components/Components/src/Routing/TemplateSegment.cs index de28e3e79508..7933439f8185 100644 --- a/src/Components/Components/src/Routing/TemplateSegment.cs +++ b/src/Components/Components/src/Routing/TemplateSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/src/Routing/UrlValueConstraint.cs b/src/Components/Components/src/Routing/UrlValueConstraint.cs index 2cb97915dc16..eec67aa25ce2 100644 --- a/src/Components/Components/src/Routing/UrlValueConstraint.cs +++ b/src/Components/Components/src/Routing/UrlValueConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/src/Sections/ISectionContentProvider.cs b/src/Components/Components/src/Sections/ISectionContentProvider.cs index ca83b29e6a6c..02b9f44cc49c 100644 --- a/src/Components/Components/src/Sections/ISectionContentProvider.cs +++ b/src/Components/Components/src/Sections/ISectionContentProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Sections { diff --git a/src/Components/Components/src/Sections/ISectionContentSubscriber.cs b/src/Components/Components/src/Sections/ISectionContentSubscriber.cs index fea0af54f571..bcda7e1a00a8 100644 --- a/src/Components/Components/src/Sections/ISectionContentSubscriber.cs +++ b/src/Components/Components/src/Sections/ISectionContentSubscriber.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Sections { diff --git a/src/Components/Components/src/Sections/SectionContent.cs b/src/Components/Components/src/Sections/SectionContent.cs index 1de34ab164b9..3d7738ddb3b8 100644 --- a/src/Components/Components/src/Sections/SectionContent.cs +++ b/src/Components/Components/src/Sections/SectionContent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Sections { diff --git a/src/Components/Components/src/Sections/SectionOutlet.cs b/src/Components/Components/src/Sections/SectionOutlet.cs index 16ff900babd7..da125ddfa1fd 100644 --- a/src/Components/Components/src/Sections/SectionOutlet.cs +++ b/src/Components/Components/src/Sections/SectionOutlet.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Sections { diff --git a/src/Components/Components/src/Sections/SectionRegistry.cs b/src/Components/Components/src/Sections/SectionRegistry.cs index 4e45da65f4b1..be528777ef7b 100644 --- a/src/Components/Components/src/Sections/SectionRegistry.cs +++ b/src/Components/Components/src/Sections/SectionRegistry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Sections { diff --git a/src/Components/Components/src/SupplyParameterFromQueryAttribute.cs b/src/Components/Components/src/SupplyParameterFromQueryAttribute.cs index 0d3c693212d3..37f79d1f313e 100644 --- a/src/Components/Components/src/SupplyParameterFromQueryAttribute.cs +++ b/src/Components/Components/src/SupplyParameterFromQueryAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Components/test/BindConverterTest.cs b/src/Components/Components/test/BindConverterTest.cs index c6fe1275cc77..02101fae3851 100644 --- a/src/Components/Components/test/BindConverterTest.cs +++ b/src/Components/Components/test/BindConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Components/Components/test/CascadingParameterStateTest.cs b/src/Components/Components/test/CascadingParameterStateTest.cs index bbef687c3157..de8fcc62d649 100644 --- a/src/Components/Components/test/CascadingParameterStateTest.cs +++ b/src/Components/Components/test/CascadingParameterStateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/CascadingParameterTest.cs b/src/Components/Components/test/CascadingParameterTest.cs index 522d027d6abe..e9060374d06c 100644 --- a/src/Components/Components/test/CascadingParameterTest.cs +++ b/src/Components/Components/test/CascadingParameterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/ComponentBaseTest.cs b/src/Components/Components/test/ComponentBaseTest.cs index bd09cc49c559..c8c0b22be04e 100644 --- a/src/Components/Components/test/ComponentBaseTest.cs +++ b/src/Components/Components/test/ComponentBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Components/test/ComponentFactoryTest.cs b/src/Components/Components/test/ComponentFactoryTest.cs index 4fb0a3438574..6fc8e81a4821 100644 --- a/src/Components/Components/test/ComponentFactoryTest.cs +++ b/src/Components/Components/test/ComponentFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/DependencyInjectionTest.cs b/src/Components/Components/test/DependencyInjectionTest.cs index 54e5e948adeb..fc0fbdcca082 100644 --- a/src/Components/Components/test/DependencyInjectionTest.cs +++ b/src/Components/Components/test/DependencyInjectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components; using Microsoft.AspNetCore.Components.Test.Helpers; diff --git a/src/Components/Components/test/DynamicComponentTest.cs b/src/Components/Components/test/DynamicComponentTest.cs index 526a1c95747c..c6639c6e7c98 100644 --- a/src/Components/Components/test/DynamicComponentTest.cs +++ b/src/Components/Components/test/DynamicComponentTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/EventCallbackFactoryBinderExtensionsTest.cs b/src/Components/Components/test/EventCallbackFactoryBinderExtensionsTest.cs index 3cefe9f195ca..fbd19834b26a 100644 --- a/src/Components/Components/test/EventCallbackFactoryBinderExtensionsTest.cs +++ b/src/Components/Components/test/EventCallbackFactoryBinderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Components/Components/test/EventCallbackFactoryTest.cs b/src/Components/Components/test/EventCallbackFactoryTest.cs index 69b7bfa7480b..bcc84f5a745a 100644 --- a/src/Components/Components/test/EventCallbackFactoryTest.cs +++ b/src/Components/Components/test/EventCallbackFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/EventCallbackTest.cs b/src/Components/Components/test/EventCallbackTest.cs index 57c2538e483a..09fdc9494ae3 100644 --- a/src/Components/Components/test/EventCallbackTest.cs +++ b/src/Components/Components/test/EventCallbackTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Components/Components/test/LayoutViewTest.cs b/src/Components/Components/test/LayoutViewTest.cs index 592cb7e62d15..cf613950de30 100644 --- a/src/Components/Components/test/LayoutViewTest.cs +++ b/src/Components/Components/test/LayoutViewTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Lifetime/ComponentApplicationLifetimeTest.cs b/src/Components/Components/test/Lifetime/ComponentApplicationLifetimeTest.cs index 9781eb13144e..d7046bd12a69 100644 --- a/src/Components/Components/test/Lifetime/ComponentApplicationLifetimeTest.cs +++ b/src/Components/Components/test/Lifetime/ComponentApplicationLifetimeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Lifetime/ComponentApplicationStateTest.cs b/src/Components/Components/test/Lifetime/ComponentApplicationStateTest.cs index 37be27f92c9c..d9a434260efe 100644 --- a/src/Components/Components/test/Lifetime/ComponentApplicationStateTest.cs +++ b/src/Components/Components/test/Lifetime/ComponentApplicationStateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/NavigationManagerTest.cs b/src/Components/Components/test/NavigationManagerTest.cs index 9b857bb04477..da506f429dfc 100644 --- a/src/Components/Components/test/NavigationManagerTest.cs +++ b/src/Components/Components/test/NavigationManagerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Components/Components/test/OwningComponentBaseTest.cs b/src/Components/Components/test/OwningComponentBaseTest.cs index 2ece32bf97a1..ed8e5f8d0db2 100644 --- a/src/Components/Components/test/OwningComponentBaseTest.cs +++ b/src/Components/Components/test/OwningComponentBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Dynamic; diff --git a/src/Components/Components/test/ParameterViewTest.Assignment.cs b/src/Components/Components/test/ParameterViewTest.Assignment.cs index aad5631b7baf..69d8c39d5abd 100644 --- a/src/Components/Components/test/ParameterViewTest.Assignment.cs +++ b/src/Components/Components/test/ParameterViewTest.Assignment.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/ParameterViewTest.cs b/src/Components/Components/test/ParameterViewTest.cs index 6cf26a7a7ee3..8775a2cf703e 100644 --- a/src/Components/Components/test/ParameterViewTest.cs +++ b/src/Components/Components/test/ParameterViewTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/RenderTreeDiffBuilderTest.cs b/src/Components/Components/test/RenderTreeDiffBuilderTest.cs index fd7f255db4c7..98584be76c67 100644 --- a/src/Components/Components/test/RenderTreeDiffBuilderTest.cs +++ b/src/Components/Components/test/RenderTreeDiffBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/RenderTreeUpdaterTest.cs b/src/Components/Components/test/RenderTreeUpdaterTest.cs index de9ba94aca6e..f02cead4cfb9 100644 --- a/src/Components/Components/test/RenderTreeUpdaterTest.cs +++ b/src/Components/Components/test/RenderTreeUpdaterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.Rendering; diff --git a/src/Components/Components/test/RendererTest.cs b/src/Components/Components/test/RendererTest.cs index 1fc573c8a878..0ff340b8d604 100644 --- a/src/Components/Components/test/RendererTest.cs +++ b/src/Components/Components/test/RendererTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Components/test/Rendering/ArrayBuilderSegmentTest.cs b/src/Components/Components/test/Rendering/ArrayBuilderSegmentTest.cs index 3e6a22fb6fed..8d136e35eec8 100644 --- a/src/Components/Components/test/Rendering/ArrayBuilderSegmentTest.cs +++ b/src/Components/Components/test/Rendering/ArrayBuilderSegmentTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.RenderTree; diff --git a/src/Components/Components/test/Rendering/ArrayBuilderTest.cs b/src/Components/Components/test/Rendering/ArrayBuilderTest.cs index d1aae06064d4..2303cddf6e56 100644 --- a/src/Components/Components/test/Rendering/ArrayBuilderTest.cs +++ b/src/Components/Components/test/Rendering/ArrayBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Components/Components/test/Rendering/RenderTreeBuilderTest.cs b/src/Components/Components/test/Rendering/RenderTreeBuilderTest.cs index 7a2e9c1ab804..f56d09b2033c 100644 --- a/src/Components/Components/test/Rendering/RenderTreeBuilderTest.cs +++ b/src/Components/Components/test/Rendering/RenderTreeBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Rendering/RendererSynchronizationContextTest.cs b/src/Components/Components/test/Rendering/RendererSynchronizationContextTest.cs index b8908caff8a4..300b258b8bda 100644 --- a/src/Components/Components/test/Rendering/RendererSynchronizationContextTest.cs +++ b/src/Components/Components/test/Rendering/RendererSynchronizationContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Components/test/Rendering/SimplifiedStringHashComparerTest.cs b/src/Components/Components/test/Rendering/SimplifiedStringHashComparerTest.cs index 7fcd70743ebd..a0bab649ad7a 100644 --- a/src/Components/Components/test/Rendering/SimplifiedStringHashComparerTest.cs +++ b/src/Components/Components/test/Rendering/SimplifiedStringHashComparerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Components/Components/test/Rendering/TestArrayPool.cs b/src/Components/Components/test/Rendering/TestArrayPool.cs index c5335a6b64a8..6060e8183211 100644 --- a/src/Components/Components/test/Rendering/TestArrayPool.cs +++ b/src/Components/Components/test/Rendering/TestArrayPool.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.Collections.Generic; diff --git a/src/Components/Components/test/RouteViewTest.cs b/src/Components/Components/test/RouteViewTest.cs index 05b1c8b20f4d..03c136721a56 100644 --- a/src/Components/Components/test/RouteViewTest.cs +++ b/src/Components/Components/test/RouteViewTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Routing/QueryParameterValueSupplierTest.cs b/src/Components/Components/test/Routing/QueryParameterValueSupplierTest.cs index 3d0306fe990d..352becf8cf62 100644 --- a/src/Components/Components/test/Routing/QueryParameterValueSupplierTest.cs +++ b/src/Components/Components/test/Routing/QueryParameterValueSupplierTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Routing/RouteConstraintTest.cs b/src/Components/Components/test/Routing/RouteConstraintTest.cs index 34889f03dd46..604a878b0e47 100644 --- a/src/Components/Components/test/Routing/RouteConstraintTest.cs +++ b/src/Components/Components/test/Routing/RouteConstraintTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Components/Components/test/Routing/RouteKeyTest.cs b/src/Components/Components/test/Routing/RouteKeyTest.cs index dce296826724..95e4392f2b26 100644 --- a/src/Components/Components/test/Routing/RouteKeyTest.cs +++ b/src/Components/Components/test/Routing/RouteKeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Components/Components/test/Routing/RouteTableFactoryTests.cs b/src/Components/Components/test/Routing/RouteTableFactoryTests.cs index c5475b138499..d48023c78c41 100644 --- a/src/Components/Components/test/Routing/RouteTableFactoryTests.cs +++ b/src/Components/Components/test/Routing/RouteTableFactoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Routing/RouterTest.cs b/src/Components/Components/test/Routing/RouterTest.cs index 206f675035c4..2f0c308bbf87 100644 --- a/src/Components/Components/test/Routing/RouterTest.cs +++ b/src/Components/Components/test/Routing/RouterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/Routing/TemplateParserTests.cs b/src/Components/Components/test/Routing/TemplateParserTests.cs index 82e7ad72fae6..0f362c90f54d 100644 --- a/src/Components/Components/test/Routing/TemplateParserTests.cs +++ b/src/Components/Components/test/Routing/TemplateParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Components/test/StackObjectPoolTest.cs b/src/Components/Components/test/StackObjectPoolTest.cs index 33b9becc0549..d15a1bd50a5c 100644 --- a/src/Components/Components/test/StackObjectPoolTest.cs +++ b/src/Components/Components/test/StackObjectPoolTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Forms/src/DataAnnotationsValidator.cs b/src/Components/Forms/src/DataAnnotationsValidator.cs index 583c5886200d..416e4c9234cf 100644 --- a/src/Components/Forms/src/DataAnnotationsValidator.cs +++ b/src/Components/Forms/src/DataAnnotationsValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Forms/src/EditContext.cs b/src/Components/Forms/src/EditContext.cs index 223f892de774..1799c2d9bd87 100644 --- a/src/Components/Forms/src/EditContext.cs +++ b/src/Components/Forms/src/EditContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Forms/src/EditContextDataAnnotationsExtensions.cs b/src/Components/Forms/src/EditContextDataAnnotationsExtensions.cs index 29ca2c94ab78..ab67dec74334 100644 --- a/src/Components/Forms/src/EditContextDataAnnotationsExtensions.cs +++ b/src/Components/Forms/src/EditContextDataAnnotationsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Forms/src/EditContextProperties.cs b/src/Components/Forms/src/EditContextProperties.cs index 9337d44871a1..c6b1c467ca46 100644 --- a/src/Components/Forms/src/EditContextProperties.cs +++ b/src/Components/Forms/src/EditContextProperties.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Components/Forms/src/FieldChangedEventArgs.cs b/src/Components/Forms/src/FieldChangedEventArgs.cs index 780a91a01d35..823b36e1d489 100644 --- a/src/Components/Forms/src/FieldChangedEventArgs.cs +++ b/src/Components/Forms/src/FieldChangedEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Forms/src/FieldIdentifier.cs b/src/Components/Forms/src/FieldIdentifier.cs index cd5e913743e9..6c321839f811 100644 --- a/src/Components/Forms/src/FieldIdentifier.cs +++ b/src/Components/Forms/src/FieldIdentifier.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Components/Forms/src/FieldState.cs b/src/Components/Forms/src/FieldState.cs index 2f4a48c750cf..311d118ab3f3 100644 --- a/src/Components/Forms/src/FieldState.cs +++ b/src/Components/Forms/src/FieldState.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Components/Forms/src/ValidationMessageStore.cs b/src/Components/Forms/src/ValidationMessageStore.cs index d330c18b9e35..0c72fe170d6a 100644 --- a/src/Components/Forms/src/ValidationMessageStore.cs +++ b/src/Components/Forms/src/ValidationMessageStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Forms/src/ValidationRequestedEventArgs.cs b/src/Components/Forms/src/ValidationRequestedEventArgs.cs index 52efde8de529..78e5aeb4d3de 100644 --- a/src/Components/Forms/src/ValidationRequestedEventArgs.cs +++ b/src/Components/Forms/src/ValidationRequestedEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Forms/src/ValidationStateChangedEventArgs.cs b/src/Components/Forms/src/ValidationStateChangedEventArgs.cs index 51fe8a2aca92..64dda2d4efa5 100644 --- a/src/Components/Forms/src/ValidationStateChangedEventArgs.cs +++ b/src/Components/Forms/src/ValidationStateChangedEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Forms/test/EditContextDataAnnotationsExtensionsTest.cs b/src/Components/Forms/test/EditContextDataAnnotationsExtensionsTest.cs index 80feb0d20a8d..f1ab86195015 100644 --- a/src/Components/Forms/test/EditContextDataAnnotationsExtensionsTest.cs +++ b/src/Components/Forms/test/EditContextDataAnnotationsExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Components/Forms/test/EditContextTest.cs b/src/Components/Forms/test/EditContextTest.cs index 78198c4114b8..16069307c48f 100644 --- a/src/Components/Forms/test/EditContextTest.cs +++ b/src/Components/Forms/test/EditContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -64,7 +64,7 @@ public void TracksFieldsAsModifiedWhenValueChanged() Assert.False(editContext.IsModified(fieldOnThisModel2)); Assert.True(editContext.IsModified(fieldOnOtherModel)); } - + [Fact] public void CanClearIndividualModifications() { diff --git a/src/Components/Forms/test/FieldIdentifierTest.cs b/src/Components/Forms/test/FieldIdentifierTest.cs index 6192017b592f..4b496c02c6fd 100644 --- a/src/Components/Forms/test/FieldIdentifierTest.cs +++ b/src/Components/Forms/test/FieldIdentifierTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Forms/test/ValidationMessageStoreTest.cs b/src/Components/Forms/test/ValidationMessageStoreTest.cs index 5264e254bd4b..d8246804a353 100644 --- a/src/Components/Forms/test/ValidationMessageStoreTest.cs +++ b/src/Components/Forms/test/ValidationMessageStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; @@ -29,7 +29,7 @@ public void CanAddMessages() var field1 = new FieldIdentifier(new object(), "field1"); var field2 = new FieldIdentifier(new object(), "field2"); var field3 = new FieldIdentifier(new object(), "field3"); - + // Act messages.Add(field1, "Field 1 message 1"); messages.Add(field1, "Field 1 message 2"); diff --git a/src/Components/Ignitor/src/BlazorClient.cs b/src/Components/Ignitor/src/BlazorClient.cs index c1e7075785cd..c72d50f05511 100644 --- a/src/Components/Ignitor/src/BlazorClient.cs +++ b/src/Components/Ignitor/src/BlazorClient.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Ignitor/src/CancellableOperation.cs b/src/Components/Ignitor/src/CancellableOperation.cs index 4c88a8fed08f..c22d3e909d90 100644 --- a/src/Components/Ignitor/src/CancellableOperation.cs +++ b/src/Components/Ignitor/src/CancellableOperation.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Ignitor/src/CapturedAttachComponentCall.cs b/src/Components/Ignitor/src/CapturedAttachComponentCall.cs index b3897c95792c..ed74479f0c5d 100644 --- a/src/Components/Ignitor/src/CapturedAttachComponentCall.cs +++ b/src/Components/Ignitor/src/CapturedAttachComponentCall.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/CapturedJSInteropCall.cs b/src/Components/Ignitor/src/CapturedJSInteropCall.cs index 0dc8b0fa11a1..b17f72c20412 100644 --- a/src/Components/Ignitor/src/CapturedJSInteropCall.cs +++ b/src/Components/Ignitor/src/CapturedJSInteropCall.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/CapturedRenderBatch.cs b/src/Components/Ignitor/src/CapturedRenderBatch.cs index df2de87e9fc7..e5e43c4a9112 100644 --- a/src/Components/Ignitor/src/CapturedRenderBatch.cs +++ b/src/Components/Ignitor/src/CapturedRenderBatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/CommentNode.cs b/src/Components/Ignitor/src/CommentNode.cs index 9f273e5d61e5..44c6b568b7dd 100644 --- a/src/Components/Ignitor/src/CommentNode.cs +++ b/src/Components/Ignitor/src/CommentNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/ComponentNode.cs b/src/Components/Ignitor/src/ComponentNode.cs index f10a75b0baee..024205f72626 100644 --- a/src/Components/Ignitor/src/ComponentNode.cs +++ b/src/Components/Ignitor/src/ComponentNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/ComponentState.cs b/src/Components/Ignitor/src/ComponentState.cs index 28683bee116e..124d583f57af 100644 --- a/src/Components/Ignitor/src/ComponentState.cs +++ b/src/Components/Ignitor/src/ComponentState.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/ContainerNode.cs b/src/Components/Ignitor/src/ContainerNode.cs index 24ee50b45895..64896fbd5360 100644 --- a/src/Components/Ignitor/src/ContainerNode.cs +++ b/src/Components/Ignitor/src/ContainerNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Ignitor/src/ElementHive.cs b/src/Components/Ignitor/src/ElementHive.cs index 6d9949e81040..8c8faea52f2b 100644 --- a/src/Components/Ignitor/src/ElementHive.cs +++ b/src/Components/Ignitor/src/ElementHive.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Ignitor/src/ElementNode.cs b/src/Components/Ignitor/src/ElementNode.cs index c3ad3b41b04a..9bd714b30fad 100644 --- a/src/Components/Ignitor/src/ElementNode.cs +++ b/src/Components/Ignitor/src/ElementNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Ignitor/src/ElementReference.cs b/src/Components/Ignitor/src/ElementReference.cs index 8b0f769a9f98..a75a457cd1cc 100644 --- a/src/Components/Ignitor/src/ElementReference.cs +++ b/src/Components/Ignitor/src/ElementReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Ignitor/src/Error.cs b/src/Components/Ignitor/src/Error.cs index 7258ebe8851b..e59bde906321 100644 --- a/src/Components/Ignitor/src/Error.cs +++ b/src/Components/Ignitor/src/Error.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable namespace Ignitor diff --git a/src/Components/Ignitor/src/IComponent.cs b/src/Components/Ignitor/src/IComponent.cs index 54b1c853a68f..f5e489fc0abe 100644 --- a/src/Components/Ignitor/src/IComponent.cs +++ b/src/Components/Ignitor/src/IComponent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/IgnitorMessagePackHubProtocol.cs b/src/Components/Ignitor/src/IgnitorMessagePackHubProtocol.cs index b78db5323128..00bf46414627 100644 --- a/src/Components/Ignitor/src/IgnitorMessagePackHubProtocol.cs +++ b/src/Components/Ignitor/src/IgnitorMessagePackHubProtocol.cs @@ -1,5 +1,5 @@ -// 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. +// 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.SignalR.Protocol; diff --git a/src/Components/Ignitor/src/MarkupNode.cs b/src/Components/Ignitor/src/MarkupNode.cs index f9de5d8564a9..f30664a49a20 100644 --- a/src/Components/Ignitor/src/MarkupNode.cs +++ b/src/Components/Ignitor/src/MarkupNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/src/Node.cs b/src/Components/Ignitor/src/Node.cs index 8ce08e8463fd..1d29a155ebed 100644 --- a/src/Components/Ignitor/src/Node.cs +++ b/src/Components/Ignitor/src/Node.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Ignitor/src/NodeSerializer.cs b/src/Components/Ignitor/src/NodeSerializer.cs index bc47d24f6b4e..3944261731cc 100644 --- a/src/Components/Ignitor/src/NodeSerializer.cs +++ b/src/Components/Ignitor/src/NodeSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Ignitor/src/Operations.cs b/src/Components/Ignitor/src/Operations.cs index e9c525835c8a..7bb41972de91 100644 --- a/src/Components/Ignitor/src/Operations.cs +++ b/src/Components/Ignitor/src/Operations.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; diff --git a/src/Components/Ignitor/src/Properties/AssemblyInfo.cs b/src/Components/Ignitor/src/Properties/AssemblyInfo.cs index fe8865bcc28e..903927b6a015 100644 --- a/src/Components/Ignitor/src/Properties/AssemblyInfo.cs +++ b/src/Components/Ignitor/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Ignitor.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Components/Ignitor/src/RenderBatchReader.cs b/src/Components/Ignitor/src/RenderBatchReader.cs index 986778032663..b305d0796731 100644 --- a/src/Components/Ignitor/src/RenderBatchReader.cs +++ b/src/Components/Ignitor/src/RenderBatchReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Components/Ignitor/src/TextNode.cs b/src/Components/Ignitor/src/TextNode.cs index 750de36f1bba..44950c269282 100644 --- a/src/Components/Ignitor/src/TextNode.cs +++ b/src/Components/Ignitor/src/TextNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Ignitor { diff --git a/src/Components/Ignitor/test/RenderBatchReaderTest.cs b/src/Components/Ignitor/test/RenderBatchReaderTest.cs index 917da8a8acbd..5acd97e15da6 100644 --- a/src/Components/Ignitor/test/RenderBatchReaderTest.cs +++ b/src/Components/Ignitor/test/RenderBatchReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Samples/BlazorServerApp/Data/WeatherForecast.cs b/src/Components/Samples/BlazorServerApp/Data/WeatherForecast.cs index b45af089e0b7..35d505a97f48 100644 --- a/src/Components/Samples/BlazorServerApp/Data/WeatherForecast.cs +++ b/src/Components/Samples/BlazorServerApp/Data/WeatherForecast.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 BlazorServerApp.Data diff --git a/src/Components/Samples/BlazorServerApp/Data/WeatherForecastService.cs b/src/Components/Samples/BlazorServerApp/Data/WeatherForecastService.cs index 53fb28b8b67a..5cf5e926d7bf 100644 --- a/src/Components/Samples/BlazorServerApp/Data/WeatherForecastService.cs +++ b/src/Components/Samples/BlazorServerApp/Data/WeatherForecastService.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/src/Components/Samples/BlazorServerApp/Program.cs b/src/Components/Samples/BlazorServerApp/Program.cs index 562b3ade5b5b..55ae6b1690f9 100644 --- a/src/Components/Samples/BlazorServerApp/Program.cs +++ b/src/Components/Samples/BlazorServerApp/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.Collections.Generic; using System.IO; diff --git a/src/Components/Samples/BlazorServerApp/Startup.cs b/src/Components/Samples/BlazorServerApp/Startup.cs index c7723ac690cc..3f7f34753034 100644 --- a/src/Components/Samples/BlazorServerApp/Startup.cs +++ b/src/Components/Samples/BlazorServerApp/Startup.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/Components/Samples/IgnitorSample/Program.cs b/src/Components/Samples/IgnitorSample/Program.cs index 9f1075e4a4b9..014db6cd04a9 100644 --- a/src/Components/Samples/IgnitorSample/Program.cs +++ b/src/Components/Samples/IgnitorSample/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.Diagnostics; using System.Text.Json; diff --git a/src/Components/Server/src/BlazorPack/.editorconfig b/src/Components/Server/src/BlazorPack/.editorconfig new file mode 100644 index 000000000000..08c2f6889f58 --- /dev/null +++ b/src/Components/Server/src/BlazorPack/.editorconfig @@ -0,0 +1,4 @@ +[{Requires.cs,SequenceOfT.cs}] +# IDE0073: File header +dotnet_diagnostic.IDE0073.severity = warning +file_header_template = Copyright (c) Andrew Arnott. All rights reserved.\nLicensed under the MIT license. See LICENSE.txt file in the project root for full license information. \ No newline at end of file diff --git a/src/Components/Server/src/BlazorPack/BlazorPackHubProtocol.cs b/src/Components/Server/src/BlazorPack/BlazorPackHubProtocol.cs index 3477e3f0212d..43616ec7c3d6 100644 --- a/src/Components/Server/src/BlazorPack/BlazorPackHubProtocol.cs +++ b/src/Components/Server/src/BlazorPack/BlazorPackHubProtocol.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Components/Server/src/BlazorPack/BlazorPackHubProtocolWorker.cs b/src/Components/Server/src/BlazorPack/BlazorPackHubProtocolWorker.cs index 1b83ee14d655..02a77bd0e9e8 100644 --- a/src/Components/Server/src/BlazorPack/BlazorPackHubProtocolWorker.cs +++ b/src/Components/Server/src/BlazorPack/BlazorPackHubProtocolWorker.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Components/Server/src/BlazorPack/NonDefaultHubProtocolAttribute.cs b/src/Components/Server/src/BlazorPack/NonDefaultHubProtocolAttribute.cs index 141d8b319489..9ffdf7899f52 100644 --- a/src/Components/Server/src/BlazorPack/NonDefaultHubProtocolAttribute.cs +++ b/src/Components/Server/src/BlazorPack/NonDefaultHubProtocolAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Server/src/Builder/ComponentEndpointConventionBuilder.cs b/src/Components/Server/src/Builder/ComponentEndpointConventionBuilder.cs index a154feb4e64a..66c8c260e8c8 100644 --- a/src/Components/Server/src/Builder/ComponentEndpointConventionBuilder.cs +++ b/src/Components/Server/src/Builder/ComponentEndpointConventionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Server/src/Builder/ComponentEndpointRouteBuilderExtensions.cs b/src/Components/Server/src/Builder/ComponentEndpointRouteBuilderExtensions.cs index 776d2521561c..179b38bbc386 100644 --- a/src/Components/Server/src/Builder/ComponentEndpointRouteBuilderExtensions.cs +++ b/src/Components/Server/src/Builder/ComponentEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.Server; diff --git a/src/Components/Server/src/CircuitDisconnectMiddleware.cs b/src/Components/Server/src/CircuitDisconnectMiddleware.cs index 03c8c551e38b..5aeae80b10e3 100644 --- a/src/Components/Server/src/CircuitDisconnectMiddleware.cs +++ b/src/Components/Server/src/CircuitDisconnectMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/CircuitOptions.cs b/src/Components/Server/src/CircuitOptions.cs index 9f862b069d4c..68c9ef05aa58 100644 --- a/src/Components/Server/src/CircuitOptions.cs +++ b/src/Components/Server/src/CircuitOptions.cs @@ -1,12 +1,12 @@ -// 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. +// 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 Microsoft.AspNetCore.Components.Server { /// - /// Options to configure circuit handler for server-side Blazor + /// Options to configure circuit handler for server-side Blazor /// public sealed class CircuitOptions { diff --git a/src/Components/Server/src/Circuits/Circuit.cs b/src/Components/Server/src/Circuits/Circuit.cs index 9d6620d83ae1..330615cfcd5c 100644 --- a/src/Components/Server/src/Circuits/Circuit.cs +++ b/src/Components/Server/src/Circuits/Circuit.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Server.Circuits { diff --git a/src/Components/Server/src/Circuits/CircuitClientProxy.cs b/src/Components/Server/src/Circuits/CircuitClientProxy.cs index 901c835e4d62..cd3df0a68e02 100644 --- a/src/Components/Server/src/Circuits/CircuitClientProxy.cs +++ b/src/Components/Server/src/Circuits/CircuitClientProxy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/CircuitFactory.cs b/src/Components/Server/src/Circuits/CircuitFactory.cs index d1b81f618351..e5ea50ae4f12 100644 --- a/src/Components/Server/src/Circuits/CircuitFactory.cs +++ b/src/Components/Server/src/Circuits/CircuitFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/CircuitHandle.cs b/src/Components/Server/src/Circuits/CircuitHandle.cs index 88493453d00d..4dfe1f2e3a5f 100644 --- a/src/Components/Server/src/Circuits/CircuitHandle.cs +++ b/src/Components/Server/src/Circuits/CircuitHandle.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Server.Circuits { diff --git a/src/Components/Server/src/Circuits/CircuitHandleRegistry.cs b/src/Components/Server/src/Circuits/CircuitHandleRegistry.cs index 26433fd31932..3591eda47861 100644 --- a/src/Components/Server/src/Circuits/CircuitHandleRegistry.cs +++ b/src/Components/Server/src/Circuits/CircuitHandleRegistry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -24,7 +24,7 @@ public CircuitHandle GetCircuitHandle(IDictionarycircuitHandles { return (CircuitHandle) circuitHandle; } - + return null;; } diff --git a/src/Components/Server/src/Circuits/CircuitHandler.cs b/src/Components/Server/src/Circuits/CircuitHandler.cs index b4c1dc596e53..f783d2038087 100644 --- a/src/Components/Server/src/Circuits/CircuitHandler.cs +++ b/src/Components/Server/src/Circuits/CircuitHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Components/Server/src/Circuits/CircuitHost.cs b/src/Components/Server/src/Circuits/CircuitHost.cs index bfff03c67379..8d9be6ce5306 100644 --- a/src/Components/Server/src/Circuits/CircuitHost.cs +++ b/src/Components/Server/src/Circuits/CircuitHost.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Security.Claims; diff --git a/src/Components/Server/src/Circuits/CircuitId.cs b/src/Components/Server/src/Circuits/CircuitId.cs index 90240b620b47..50ca9d7db93e 100644 --- a/src/Components/Server/src/Circuits/CircuitId.cs +++ b/src/Components/Server/src/Circuits/CircuitId.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/Components/Server/src/Circuits/CircuitIdFactory.cs b/src/Components/Server/src/Circuits/CircuitIdFactory.cs index 61ded8c44188..e08ade40a567 100644 --- a/src/Components/Server/src/Circuits/CircuitIdFactory.cs +++ b/src/Components/Server/src/Circuits/CircuitIdFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Data; diff --git a/src/Components/Server/src/Circuits/CircuitOptionsJSInteropDetailedErrorsConfiguration.cs b/src/Components/Server/src/Circuits/CircuitOptionsJSInteropDetailedErrorsConfiguration.cs index 94c03ea58516..8d472c719a6c 100644 --- a/src/Components/Server/src/Circuits/CircuitOptionsJSInteropDetailedErrorsConfiguration.cs +++ b/src/Components/Server/src/Circuits/CircuitOptionsJSInteropDetailedErrorsConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Components/Server/src/Circuits/CircuitRegistry.cs b/src/Components/Server/src/Circuits/CircuitRegistry.cs index f8e4971a6497..6c15c1b470fe 100644 --- a/src/Components/Server/src/Circuits/CircuitRegistry.cs +++ b/src/Components/Server/src/Circuits/CircuitRegistry.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Server/src/Circuits/ComponentDescriptor.cs b/src/Components/Server/src/Circuits/ComponentDescriptor.cs index 13a64f83efe4..8c86551ef31c 100644 --- a/src/Components/Server/src/Circuits/ComponentDescriptor.cs +++ b/src/Components/Server/src/Circuits/ComponentDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Server/src/Circuits/ComponentParameterDeserializer.cs b/src/Components/Server/src/Circuits/ComponentParameterDeserializer.cs index 58452aea1971..f341881c4d65 100644 --- a/src/Components/Server/src/Circuits/ComponentParameterDeserializer.cs +++ b/src/Components/Server/src/Circuits/ComponentParameterDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/DefaultCircuitAccessor.cs b/src/Components/Server/src/Circuits/DefaultCircuitAccessor.cs index 4d3bd1707bd5..7e3c9a569754 100644 --- a/src/Components/Server/src/Circuits/DefaultCircuitAccessor.cs +++ b/src/Components/Server/src/Circuits/DefaultCircuitAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Server.Circuits { diff --git a/src/Components/Server/src/Circuits/ICircuitAccessor.cs b/src/Components/Server/src/Circuits/ICircuitAccessor.cs index 2bd1418ccf16..d8e2f918ab64 100644 --- a/src/Components/Server/src/Circuits/ICircuitAccessor.cs +++ b/src/Components/Server/src/Circuits/ICircuitAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Server.Circuits { diff --git a/src/Components/Server/src/Circuits/ICircuitFactory.cs b/src/Components/Server/src/Circuits/ICircuitFactory.cs index ff109d35a680..4c6027248086 100644 --- a/src/Components/Server/src/Circuits/ICircuitFactory.cs +++ b/src/Components/Server/src/Circuits/ICircuitFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/ICircuitHandleRegistry.cs b/src/Components/Server/src/Circuits/ICircuitHandleRegistry.cs index 703ca70c5383..799ab63853c6 100644 --- a/src/Components/Server/src/Circuits/ICircuitHandleRegistry.cs +++ b/src/Components/Server/src/Circuits/ICircuitHandleRegistry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/IServerComponentDeserializer.cs b/src/Components/Server/src/Circuits/IServerComponentDeserializer.cs index 50bbb1aef1d4..f2a43f6ed124 100644 --- a/src/Components/Server/src/Circuits/IServerComponentDeserializer.cs +++ b/src/Components/Server/src/Circuits/IServerComponentDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/RemoteErrorBoundaryLogger.cs b/src/Components/Server/src/Circuits/RemoteErrorBoundaryLogger.cs index 6fa23c40a9b9..035ebd05e0e6 100644 --- a/src/Components/Server/src/Circuits/RemoteErrorBoundaryLogger.cs +++ b/src/Components/Server/src/Circuits/RemoteErrorBoundaryLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/RemoteJSDataStream.cs b/src/Components/Server/src/Circuits/RemoteJSDataStream.cs index 32b9fb05e841..f29cfb757d9b 100644 --- a/src/Components/Server/src/Circuits/RemoteJSDataStream.cs +++ b/src/Components/Server/src/Circuits/RemoteJSDataStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Server/src/Circuits/RemoteJSRuntime.cs b/src/Components/Server/src/Circuits/RemoteJSRuntime.cs index 42e25ff9a180..1c18ba50ded5 100644 --- a/src/Components/Server/src/Circuits/RemoteJSRuntime.cs +++ b/src/Components/Server/src/Circuits/RemoteJSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/RemoteNavigationInterception.cs b/src/Components/Server/src/Circuits/RemoteNavigationInterception.cs index 1a689621e515..61ba89000fe4 100644 --- a/src/Components/Server/src/Circuits/RemoteNavigationInterception.cs +++ b/src/Components/Server/src/Circuits/RemoteNavigationInterception.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/RemoteNavigationManager.cs b/src/Components/Server/src/Circuits/RemoteNavigationManager.cs index 8a695dbd43c8..d301bbb19939 100644 --- a/src/Components/Server/src/Circuits/RemoteNavigationManager.cs +++ b/src/Components/Server/src/Circuits/RemoteNavigationManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Server/src/Circuits/RemoteRenderer.cs b/src/Components/Server/src/Circuits/RemoteRenderer.cs index 07c3f94e172f..c1342e015c44 100644 --- a/src/Components/Server/src/Circuits/RemoteRenderer.cs +++ b/src/Components/Server/src/Circuits/RemoteRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using Microsoft.AspNetCore.Components.RenderTree; diff --git a/src/Components/Server/src/Circuits/RevalidatingServerAuthenticationStateProvider.cs b/src/Components/Server/src/Circuits/RevalidatingServerAuthenticationStateProvider.cs index 0bc4beb7ef2d..fe13b58e5a5a 100644 --- a/src/Components/Server/src/Circuits/RevalidatingServerAuthenticationStateProvider.cs +++ b/src/Components/Server/src/Circuits/RevalidatingServerAuthenticationStateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; @@ -83,7 +83,7 @@ private async Task RevalidationLoop(Task authenticationStat throw; } - + if (!isValid) { ForceSignOut(); diff --git a/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs b/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs index c2d88bea0758..952f95d4dc45 100644 --- a/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs +++ b/src/Components/Server/src/Circuits/ServerAuthenticationStateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/src/Circuits/ServerComponentDeserializer.cs b/src/Components/Server/src/Circuits/ServerComponentDeserializer.cs index 6a5cda1ce846..ddfd95abad93 100644 --- a/src/Components/Server/src/Circuits/ServerComponentDeserializer.cs +++ b/src/Components/Server/src/Circuits/ServerComponentDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -191,7 +191,7 @@ public bool TryDeserializeComponentDescriptorCollection(string serializedCompone // TryDeserializeParameters does appropriate logging. return default; } - + var componentDescriptor = new ComponentDescriptor { ComponentType = componentType, diff --git a/src/Components/Server/src/ComponentHub.cs b/src/Components/Server/src/ComponentHub.cs index a65d34951147..f9f448f012dd 100644 --- a/src/Components/Server/src/ComponentHub.cs +++ b/src/Components/Server/src/ComponentHub.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Components/Server/src/DependencyInjection/ComponentServiceCollectionExtensions.cs b/src/Components/Server/src/DependencyInjection/ComponentServiceCollectionExtensions.cs index fae6eb2b8e87..3a7cd4ce8426 100644 --- a/src/Components/Server/src/DependencyInjection/ComponentServiceCollectionExtensions.cs +++ b/src/Components/Server/src/DependencyInjection/ComponentServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Components/Server/src/DependencyInjection/ConfigureStaticFilesOptions.cs b/src/Components/Server/src/DependencyInjection/ConfigureStaticFilesOptions.cs index f7484626ce4f..507341d9439b 100644 --- a/src/Components/Server/src/DependencyInjection/ConfigureStaticFilesOptions.cs +++ b/src/Components/Server/src/DependencyInjection/ConfigureStaticFilesOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Server/src/DependencyInjection/IServerSideBlazorBuilder.cs b/src/Components/Server/src/DependencyInjection/IServerSideBlazorBuilder.cs index d46eebc06664..3c5320870dfb 100644 --- a/src/Components/Server/src/DependencyInjection/IServerSideBlazorBuilder.cs +++ b/src/Components/Server/src/DependencyInjection/IServerSideBlazorBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/Components/Server/src/DependencyInjection/ServerSideBlazorBuilderExtensions.cs b/src/Components/Server/src/DependencyInjection/ServerSideBlazorBuilderExtensions.cs index cb2c27af084d..71452ac374ea 100644 --- a/src/Components/Server/src/DependencyInjection/ServerSideBlazorBuilderExtensions.cs +++ b/src/Components/Server/src/DependencyInjection/ServerSideBlazorBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.Server; diff --git a/src/Components/Server/src/Properties/AssemblyInfo.cs b/src/Components/Server/src/Properties/AssemblyInfo.cs index c9bfce34b123..c1a3a96bb3fc 100644 --- a/src/Components/Server/src/Properties/AssemblyInfo.cs +++ b/src/Components/Server/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.Blazor.DevServer, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorage.cs b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorage.cs index 42dd5b0cb35c..1c6a9a91a592 100644 --- a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorage.cs +++ b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorage.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorageResult.cs b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorageResult.cs index 26abda605c8d..89bd8ca53314 100644 --- a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorageResult.cs +++ b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedBrowserStorageResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage { diff --git a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedLocalStorage.cs b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedLocalStorage.cs index 0d606b541915..e94878b0e224 100644 --- a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedLocalStorage.cs +++ b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedLocalStorage.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection; using Microsoft.JSInterop; diff --git a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs index 274179f70f4d..caf11ca55fee 100644 --- a/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs +++ b/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection; using Microsoft.JSInterop; diff --git a/src/Components/Server/test/BlazorPack/BlazorPackHubProtocolTest.cs b/src/Components/Server/test/BlazorPack/BlazorPackHubProtocolTest.cs index e41c045d651f..6152c7787321 100644 --- a/src/Components/Server/test/BlazorPack/BlazorPackHubProtocolTest.cs +++ b/src/Components/Server/test/BlazorPack/BlazorPackHubProtocolTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.SignalR.Common.Tests.Internal.Protocol; using Microsoft.AspNetCore.SignalR.Protocol; diff --git a/src/Components/Server/test/CircuitDisconnectMiddlewareTest.cs b/src/Components/Server/test/CircuitDisconnectMiddlewareTest.cs index a63ece5b88f1..1d13c4bd8237 100644 --- a/src/Components/Server/test/CircuitDisconnectMiddlewareTest.cs +++ b/src/Components/Server/test/CircuitDisconnectMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Components/Server/test/Circuits/CircuitClientProxyTest.cs b/src/Components/Server/test/Circuits/CircuitClientProxyTest.cs index 2b486c2e5b6f..935376fbb913 100644 --- a/src/Components/Server/test/Circuits/CircuitClientProxyTest.cs +++ b/src/Components/Server/test/Circuits/CircuitClientProxyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/CircuitHostTest.cs b/src/Components/Server/test/Circuits/CircuitHostTest.cs index f26e0224a721..22b9b85f61d0 100644 --- a/src/Components/Server/test/Circuits/CircuitHostTest.cs +++ b/src/Components/Server/test/Circuits/CircuitHostTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/CircuitIdFactoryTest.cs b/src/Components/Server/test/Circuits/CircuitIdFactoryTest.cs index 588eadfdd8e5..9515d5630377 100644 --- a/src/Components/Server/test/Circuits/CircuitIdFactoryTest.cs +++ b/src/Components/Server/test/Circuits/CircuitIdFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/CircuitRegistryTest.cs b/src/Components/Server/test/Circuits/CircuitRegistryTest.cs index 2ae3eca5e79b..dbf0e81ce566 100644 --- a/src/Components/Server/test/Circuits/CircuitRegistryTest.cs +++ b/src/Components/Server/test/Circuits/CircuitRegistryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/ComponentHubTest.cs b/src/Components/Server/test/Circuits/ComponentHubTest.cs index 54b3083c8d30..cf7b636ea5c1 100644 --- a/src/Components/Server/test/Circuits/ComponentHubTest.cs +++ b/src/Components/Server/test/Circuits/ComponentHubTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Security.Claims; diff --git a/src/Components/Server/test/Circuits/RemoteJSDataStreamTest.cs b/src/Components/Server/test/Circuits/RemoteJSDataStreamTest.cs index 721afe1ebb30..d0a433fbf183 100644 --- a/src/Components/Server/test/Circuits/RemoteJSDataStreamTest.cs +++ b/src/Components/Server/test/Circuits/RemoteJSDataStreamTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Server/test/Circuits/RemoteRendererTest.cs b/src/Components/Server/test/Circuits/RemoteRendererTest.cs index 1597c22a4784..b2d789c88974 100644 --- a/src/Components/Server/test/Circuits/RemoteRendererTest.cs +++ b/src/Components/Server/test/Circuits/RemoteRendererTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/RenderBatchWriterTest.cs b/src/Components/Server/test/Circuits/RenderBatchWriterTest.cs index dff7ab271852..5d0cb2a66eec 100644 --- a/src/Components/Server/test/Circuits/RenderBatchWriterTest.cs +++ b/src/Components/Server/test/Circuits/RenderBatchWriterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/RevalidatingServerAuthenticationStateProviderTest.cs b/src/Components/Server/test/Circuits/RevalidatingServerAuthenticationStateProviderTest.cs index 05ccb17879fb..337858eaf742 100644 --- a/src/Components/Server/test/Circuits/RevalidatingServerAuthenticationStateProviderTest.cs +++ b/src/Components/Server/test/Circuits/RevalidatingServerAuthenticationStateProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/ServerAuthenticationStateProviderTest.cs b/src/Components/Server/test/Circuits/ServerAuthenticationStateProviderTest.cs index add061aa0433..e1204f34d59c 100644 --- a/src/Components/Server/test/Circuits/ServerAuthenticationStateProviderTest.cs +++ b/src/Components/Server/test/Circuits/ServerAuthenticationStateProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Components/Server/test/Circuits/ServerComponentDeserializerTest.cs b/src/Components/Server/test/Circuits/ServerComponentDeserializerTest.cs index e1f5dc34a1f0..381463d3e737 100644 --- a/src/Components/Server/test/Circuits/ServerComponentDeserializerTest.cs +++ b/src/Components/Server/test/Circuits/ServerComponentDeserializerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/TestCircuitHost.cs b/src/Components/Server/test/Circuits/TestCircuitHost.cs index fe65bb6f9b00..0dfc5d652dd9 100644 --- a/src/Components/Server/test/Circuits/TestCircuitHost.cs +++ b/src/Components/Server/test/Circuits/TestCircuitHost.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Server/test/Circuits/TestCircuitIdFactory.cs b/src/Components/Server/test/Circuits/TestCircuitIdFactory.cs index 18dca9b964bf..38b143a66757 100644 --- a/src/Components/Server/test/Circuits/TestCircuitIdFactory.cs +++ b/src/Components/Server/test/Circuits/TestCircuitIdFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection; diff --git a/src/Components/Server/test/ComponentEndpointRouteBuilderExtensionsTest.cs b/src/Components/Server/test/ComponentEndpointRouteBuilderExtensionsTest.cs index 03a651d7be87..7a6e892fc50d 100644 --- a/src/Components/Server/test/ComponentEndpointRouteBuilderExtensionsTest.cs +++ b/src/Components/Server/test/ComponentEndpointRouteBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Threading.Tasks; @@ -51,7 +51,7 @@ public void MapBlazorHub_MostGeneralOverload_MapsUnderlyingHub() // Assert Assert.True(called); } - + private IApplicationBuilder CreateAppBuilder() { var services = new ServiceCollection(); diff --git a/src/Components/Server/test/DependencyInjection/ComponentServiceCollectionExtensionsTest.cs b/src/Components/Server/test/DependencyInjection/ComponentServiceCollectionExtensionsTest.cs index 95f7db582b85..5c6c732b9ce8 100644 --- a/src/Components/Server/test/DependencyInjection/ComponentServiceCollectionExtensionsTest.cs +++ b/src/Components/Server/test/DependencyInjection/ComponentServiceCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.Server; diff --git a/src/Components/Server/test/ElementReferenceJsonConverterTest.cs b/src/Components/Server/test/ElementReferenceJsonConverterTest.cs index 39449197b284..5e1b1762af6c 100644 --- a/src/Components/Server/test/ElementReferenceJsonConverterTest.cs +++ b/src/Components/Server/test/ElementReferenceJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Server/test/ProtectedBrowserStorageTest.cs b/src/Components/Server/test/ProtectedBrowserStorageTest.cs index 3e5f8f4a582c..299e6861f971 100644 --- a/src/Components/Server/test/ProtectedBrowserStorageTest.cs +++ b/src/Components/Server/test/ProtectedBrowserStorageTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Shared/src/ArrayBuilder.cs b/src/Components/Shared/src/ArrayBuilder.cs index 61bd03f5ca46..bf6db8213482 100644 --- a/src/Components/Shared/src/ArrayBuilder.cs +++ b/src/Components/Shared/src/ArrayBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Components/Shared/src/ArrayBuilderMemoryStream.cs b/src/Components/Shared/src/ArrayBuilderMemoryStream.cs index c9122a6a341a..6efafb44fefc 100644 --- a/src/Components/Shared/src/ArrayBuilderMemoryStream.cs +++ b/src/Components/Shared/src/ArrayBuilderMemoryStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Shared/src/BrowserNavigationManagerInterop.cs b/src/Components/Shared/src/BrowserNavigationManagerInterop.cs index fc51b94e4701..94d6130a537a 100644 --- a/src/Components/Shared/src/BrowserNavigationManagerInterop.cs +++ b/src/Components/Shared/src/BrowserNavigationManagerInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Shared/src/CacheHeaderSettings.cs b/src/Components/Shared/src/CacheHeaderSettings.cs index c4d6e8a260f6..85c6770a8ea3 100644 --- a/src/Components/Shared/src/CacheHeaderSettings.cs +++ b/src/Components/Shared/src/CacheHeaderSettings.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.Net.Http.Headers; diff --git a/src/Components/Shared/src/ComponentParametersTypeCache.cs b/src/Components/Shared/src/ComponentParametersTypeCache.cs index 98db6500d89c..5e5183fb283e 100644 --- a/src/Components/Shared/src/ComponentParametersTypeCache.cs +++ b/src/Components/Shared/src/ComponentParametersTypeCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Shared/src/ElementReferenceJsonConverter.cs b/src/Components/Shared/src/ElementReferenceJsonConverter.cs index ba4d0868bd9c..4cc98c502f4c 100644 --- a/src/Components/Shared/src/ElementReferenceJsonConverter.cs +++ b/src/Components/Shared/src/ElementReferenceJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Components/Shared/src/JsonSerializerOptionsProvider.cs b/src/Components/Shared/src/JsonSerializerOptionsProvider.cs index 74a02b9f59ba..f62363c08166 100644 --- a/src/Components/Shared/src/JsonSerializerOptionsProvider.cs +++ b/src/Components/Shared/src/JsonSerializerOptionsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; diff --git a/src/Components/Shared/src/PullFromJSDataStream.cs b/src/Components/Shared/src/PullFromJSDataStream.cs index 9f674c6a3b64..37b3c9488fa0 100644 --- a/src/Components/Shared/src/PullFromJSDataStream.cs +++ b/src/Components/Shared/src/PullFromJSDataStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Shared/src/RenderBatchWriter.cs b/src/Components/Shared/src/RenderBatchWriter.cs index 865059a0d543..da5390ad4847 100644 --- a/src/Components/Shared/src/RenderBatchWriter.cs +++ b/src/Components/Shared/src/RenderBatchWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -24,7 +24,7 @@ namespace Microsoft.AspNetCore.Components.Server.Circuits /// /// Provides a custom binary serializer for instances. /// This is designed with both server-side and client-side perf in mind: - /// + /// /// * Array-like regions always have a fixed size per entry (even if some entry types /// don't require as much space as others) so the recipient can index directly. /// * The indices describing where field data starts, where each string value starts, @@ -35,7 +35,7 @@ namespace Microsoft.AspNetCore.Components.Server.Circuits /// * We only serialize the data that the JS side will need. For example, we don't /// emit frame sequence numbers, or any representation of nonstring attribute /// values, or component instances, etc. - /// + /// /// We don't have or need a .NET reader for this format. We only read it from JS code. /// internal class RenderBatchWriter : IDisposable diff --git a/src/Components/Shared/src/RootComponentTypeCache.cs b/src/Components/Shared/src/RootComponentTypeCache.cs index 55f2ab7136ac..947af0438c4c 100644 --- a/src/Components/Shared/src/RootComponentTypeCache.cs +++ b/src/Components/Shared/src/RootComponentTypeCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/Shared/src/WebEventData/ChangeEventArgsReader.cs b/src/Components/Shared/src/WebEventData/ChangeEventArgsReader.cs index 42645a1afc57..d0f6e8845ac8 100644 --- a/src/Components/Shared/src/WebEventData/ChangeEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/ChangeEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/ClipboardEventArgsReader.cs b/src/Components/Shared/src/WebEventData/ClipboardEventArgsReader.cs index 36b1ace3a965..186555b6db3d 100644 --- a/src/Components/Shared/src/WebEventData/ClipboardEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/ClipboardEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/DragEventArgsReader.cs b/src/Components/Shared/src/WebEventData/DragEventArgsReader.cs index d60937ec6171..052c8d960fd5 100644 --- a/src/Components/Shared/src/WebEventData/DragEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/DragEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/ErrorEventArgsReader.cs b/src/Components/Shared/src/WebEventData/ErrorEventArgsReader.cs index 8f14f73cfd31..71cc492eb963 100644 --- a/src/Components/Shared/src/WebEventData/ErrorEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/ErrorEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/FocusEventArgsReader.cs b/src/Components/Shared/src/WebEventData/FocusEventArgsReader.cs index 512629b0797b..ac49ad4c9389 100644 --- a/src/Components/Shared/src/WebEventData/FocusEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/FocusEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/KeyboardEventArgsReader.cs b/src/Components/Shared/src/WebEventData/KeyboardEventArgsReader.cs index 0d031498ebdb..f27311e96703 100644 --- a/src/Components/Shared/src/WebEventData/KeyboardEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/KeyboardEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/MouseEventArgsReader.cs b/src/Components/Shared/src/WebEventData/MouseEventArgsReader.cs index 3b5a172544c8..65a9a398c901 100644 --- a/src/Components/Shared/src/WebEventData/MouseEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/MouseEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/PointerEventArgsReader.cs b/src/Components/Shared/src/WebEventData/PointerEventArgsReader.cs index 8f5d44e78ff5..913e50cbf3fe 100644 --- a/src/Components/Shared/src/WebEventData/PointerEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/PointerEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/ProgressEventArgReader.cs b/src/Components/Shared/src/WebEventData/ProgressEventArgReader.cs index d61ff1ae4f8e..f70f888f84c7 100644 --- a/src/Components/Shared/src/WebEventData/ProgressEventArgReader.cs +++ b/src/Components/Shared/src/WebEventData/ProgressEventArgReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/TouchEventArgsReader.cs b/src/Components/Shared/src/WebEventData/TouchEventArgsReader.cs index 5b893c8cc9cc..725f14d69ce2 100644 --- a/src/Components/Shared/src/WebEventData/TouchEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/TouchEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/WebEventData.cs b/src/Components/Shared/src/WebEventData/WebEventData.cs index 635604024024..45d7f4c74bf6 100644 --- a/src/Components/Shared/src/WebEventData/WebEventData.cs +++ b/src/Components/Shared/src/WebEventData/WebEventData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/WebEventDescriptorReader.cs b/src/Components/Shared/src/WebEventData/WebEventDescriptorReader.cs index ba3d0aa79014..dbaa03c18dbb 100644 --- a/src/Components/Shared/src/WebEventData/WebEventDescriptorReader.cs +++ b/src/Components/Shared/src/WebEventData/WebEventDescriptorReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/src/WebEventData/WheelEventArgsReader.cs b/src/Components/Shared/src/WebEventData/WheelEventArgsReader.cs index 4e7747884b00..45bfab1d97ae 100644 --- a/src/Components/Shared/src/WebEventData/WheelEventArgsReader.cs +++ b/src/Components/Shared/src/WebEventData/WheelEventArgsReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/Shared/test/ArrayRangeExtensions.cs b/src/Components/Shared/test/ArrayRangeExtensions.cs index 7929c2bc6bfb..93920bbcc439 100644 --- a/src/Components/Shared/test/ArrayRangeExtensions.cs +++ b/src/Components/Shared/test/ArrayRangeExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Shared/test/AssertFrame.cs b/src/Components/Shared/test/AssertFrame.cs index 1fb2debbf26a..8d0e9a0def1f 100644 --- a/src/Components/Shared/test/AssertFrame.cs +++ b/src/Components/Shared/test/AssertFrame.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components; diff --git a/src/Components/Shared/test/AutoRenderComponent.cs b/src/Components/Shared/test/AutoRenderComponent.cs index 10cf5b9bf72f..f0941518f902 100644 --- a/src/Components/Shared/test/AutoRenderComponent.cs +++ b/src/Components/Shared/test/AutoRenderComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.ExceptionServices; diff --git a/src/Components/Shared/test/AutoRenderFragmentComponent.cs b/src/Components/Shared/test/AutoRenderFragmentComponent.cs index 1526d36e57fa..ca90c7df93e8 100644 --- a/src/Components/Shared/test/AutoRenderFragmentComponent.cs +++ b/src/Components/Shared/test/AutoRenderFragmentComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; diff --git a/src/Components/Shared/test/CapturedBatch.cs b/src/Components/Shared/test/CapturedBatch.cs index f4762c126762..3ed3865186c5 100644 --- a/src/Components/Shared/test/CapturedBatch.cs +++ b/src/Components/Shared/test/CapturedBatch.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Shared/test/IComponentExtensions.cs b/src/Components/Shared/test/IComponentExtensions.cs index 93d48ee9a454..7cd434336e71 100644 --- a/src/Components/Shared/test/IComponentExtensions.cs +++ b/src/Components/Shared/test/IComponentExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Components/Shared/test/TestRenderer.cs b/src/Components/Shared/test/TestRenderer.cs index df5791a6b45d..0cf7f7deae4a 100644 --- a/src/Components/Shared/test/TestRenderer.cs +++ b/src/Components/Shared/test/TestRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Shared/test/TestServiceProvider.cs b/src/Components/Shared/test/TestServiceProvider.cs index d1837b3124a9..b3f3c1a0412e 100644 --- a/src/Components/Shared/test/TestServiceProvider.cs +++ b/src/Components/Shared/test/TestServiceProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web.JS/jest.config.js b/src/Components/Web.JS/jest.config.js index 7972dab3aa4e..5aebedfb7ea4 100644 --- a/src/Components/Web.JS/jest.config.js +++ b/src/Components/Web.JS/jest.config.js @@ -1,8 +1,8 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. module.exports = { - globals: { + globals: { transform: { '^.+\\.ts?$': 'ts-jest', }, diff --git a/src/Components/Web.JS/src/Platform/Logging/Logger.ts b/src/Components/Web.JS/src/Platform/Logging/Logger.ts index 13f6a7c8a658..af4e742bc1ee 100644 --- a/src/Components/Web.JS/src/Platform/Logging/Logger.ts +++ b/src/Components/Web.JS/src/Platform/Logging/Logger.ts @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // These values are designed to match the ASP.NET Log Levels since that's the pattern we're emulating here. /** Indicates the severity of a log message. diff --git a/src/Components/Web/src/BindInputElementAttribute.cs b/src/Components/Web/src/BindInputElementAttribute.cs index d559667ed168..1a450e11e506 100644 --- a/src/Components/Web/src/BindInputElementAttribute.cs +++ b/src/Components/Web/src/BindInputElementAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -23,7 +23,7 @@ public sealed class BindInputElementAttribute : Attribute /// Determines whether binding will use or . /// /// - /// An optional format to use when converting values. + /// An optional format to use when converting values. /// public BindInputElementAttribute(string? type, string? suffix, string? valueAttribute, string? changeAttribute, bool isInvariantCulture, string? format) { @@ -49,7 +49,7 @@ public BindInputElementAttribute(string? type, string? suffix, string? valueAttr /// Gets the value of the element's type attribute. /// public string? Type { get; } - + /// /// Gets the suffix value. /// diff --git a/src/Components/Web/src/DomWrapperInterop.cs b/src/Components/Web/src/DomWrapperInterop.cs index 9df9b2a442b2..00fe00adf3e9 100644 --- a/src/Components/Web/src/DomWrapperInterop.cs +++ b/src/Components/Web/src/DomWrapperInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components { diff --git a/src/Components/Web/src/ElementReferenceExtensions.cs b/src/Components/Web/src/ElementReferenceExtensions.cs index 426b8bf01dcf..2eb4a8e69785 100644 --- a/src/Components/Web/src/ElementReferenceExtensions.cs +++ b/src/Components/Web/src/ElementReferenceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/EditContextFieldClassExtensions.cs b/src/Components/Web/src/Forms/EditContextFieldClassExtensions.cs index 34acb704e39b..eaadfad836fd 100644 --- a/src/Components/Web/src/Forms/EditContextFieldClassExtensions.cs +++ b/src/Components/Web/src/Forms/EditContextFieldClassExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Components/Web/src/Forms/EditForm.cs b/src/Components/Web/src/Forms/EditForm.cs index f5a13fc9fd0a..72d4227c3e3b 100644 --- a/src/Components/Web/src/Forms/EditForm.cs +++ b/src/Components/Web/src/Forms/EditForm.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/FieldCssClassProvider.cs b/src/Components/Web/src/Forms/FieldCssClassProvider.cs index ea77dbb9ba03..c80a635bae44 100644 --- a/src/Components/Web/src/Forms/FieldCssClassProvider.cs +++ b/src/Components/Web/src/Forms/FieldCssClassProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; diff --git a/src/Components/Web/src/Forms/InputBase.cs b/src/Components/Web/src/Forms/InputBase.cs index b8b2f298991a..737c10e748cd 100644 --- a/src/Components/Web/src/Forms/InputBase.cs +++ b/src/Components/Web/src/Forms/InputBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/InputCheckbox.cs b/src/Components/Web/src/Forms/InputCheckbox.cs index db372e25eb4a..0e6d7129daf6 100644 --- a/src/Components/Web/src/Forms/InputCheckbox.cs +++ b/src/Components/Web/src/Forms/InputCheckbox.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Web/src/Forms/InputDate.cs b/src/Components/Web/src/Forms/InputDate.cs index 5d25930f41e3..bdb1ac93f346 100644 --- a/src/Components/Web/src/Forms/InputDate.cs +++ b/src/Components/Web/src/Forms/InputDate.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Web/src/Forms/InputExtensions.cs b/src/Components/Web/src/Forms/InputExtensions.cs index ade04b2505b5..f0065f0611ff 100644 --- a/src/Components/Web/src/Forms/InputExtensions.cs +++ b/src/Components/Web/src/Forms/InputExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Web/src/Forms/InputFile.cs b/src/Components/Web/src/Forms/InputFile.cs index 24dde0992de9..64898847b4c8 100644 --- a/src/Components/Web/src/Forms/InputFile.cs +++ b/src/Components/Web/src/Forms/InputFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/InputFile/BrowserFile.cs b/src/Components/Web/src/Forms/InputFile/BrowserFile.cs index 92f62cabd9ce..428d94339b06 100644 --- a/src/Components/Web/src/Forms/InputFile/BrowserFile.cs +++ b/src/Components/Web/src/Forms/InputFile/BrowserFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Web/src/Forms/InputFile/BrowserFileExtensions.cs b/src/Components/Web/src/Forms/InputFile/BrowserFileExtensions.cs index 8b2e9a70fca4..849c1af98a27 100644 --- a/src/Components/Web/src/Forms/InputFile/BrowserFileExtensions.cs +++ b/src/Components/Web/src/Forms/InputFile/BrowserFileExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/InputFile/BrowserFileStream.cs b/src/Components/Web/src/Forms/InputFile/BrowserFileStream.cs index a3c98e8c80fe..8341c9362701 100644 --- a/src/Components/Web/src/Forms/InputFile/BrowserFileStream.cs +++ b/src/Components/Web/src/Forms/InputFile/BrowserFileStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Web/src/Forms/InputFile/IBrowserFile.cs b/src/Components/Web/src/Forms/InputFile/IBrowserFile.cs index 44d7e53275cc..5a94cd9c8826 100644 --- a/src/Components/Web/src/Forms/InputFile/IBrowserFile.cs +++ b/src/Components/Web/src/Forms/InputFile/IBrowserFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Web/src/Forms/InputFile/IInputFileJsCallbacks.cs b/src/Components/Web/src/Forms/InputFile/IInputFileJsCallbacks.cs index 5e23a5803662..2a2006d27ad0 100644 --- a/src/Components/Web/src/Forms/InputFile/IInputFileJsCallbacks.cs +++ b/src/Components/Web/src/Forms/InputFile/IInputFileJsCallbacks.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Web/src/Forms/InputFile/InputFileChangeEventArgs.cs b/src/Components/Web/src/Forms/InputFile/InputFileChangeEventArgs.cs index fed0c50489a1..e7a6e0debd0d 100644 --- a/src/Components/Web/src/Forms/InputFile/InputFileChangeEventArgs.cs +++ b/src/Components/Web/src/Forms/InputFile/InputFileChangeEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/InputFile/InputFileInterop.cs b/src/Components/Web/src/Forms/InputFile/InputFileInterop.cs index c1e72282b039..292e497f2890 100644 --- a/src/Components/Web/src/Forms/InputFile/InputFileInterop.cs +++ b/src/Components/Web/src/Forms/InputFile/InputFileInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Forms { diff --git a/src/Components/Web/src/Forms/InputFile/InputFileJsCallbacksRelay.cs b/src/Components/Web/src/Forms/InputFile/InputFileJsCallbacksRelay.cs index c375993a1689..1482e40d3c82 100644 --- a/src/Components/Web/src/Forms/InputFile/InputFileJsCallbacksRelay.cs +++ b/src/Components/Web/src/Forms/InputFile/InputFileJsCallbacksRelay.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs b/src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs index c4d2c5b4efbf..a8aae9f25f8b 100644 --- a/src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs +++ b/src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Versioning; diff --git a/src/Components/Web/src/Forms/InputNumber.cs b/src/Components/Web/src/Forms/InputNumber.cs index 6e84f715759e..7afad4aa6424 100644 --- a/src/Components/Web/src/Forms/InputNumber.cs +++ b/src/Components/Web/src/Forms/InputNumber.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Web/src/Forms/InputRadio.cs b/src/Components/Web/src/Forms/InputRadio.cs index dcf0c85b3006..739f1b31ec91 100644 --- a/src/Components/Web/src/Forms/InputRadio.cs +++ b/src/Components/Web/src/Forms/InputRadio.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/InputRadioContext.cs b/src/Components/Web/src/Forms/InputRadioContext.cs index 45f302871bec..b33e24846a89 100644 --- a/src/Components/Web/src/Forms/InputRadioContext.cs +++ b/src/Components/Web/src/Forms/InputRadioContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Forms { @@ -13,7 +13,7 @@ internal class InputRadioContext /// /// Gets the name of the input radio group. /// - public string GroupName { get; } + public string GroupName { get; } /// /// Gets the current selected value in the input radio group. diff --git a/src/Components/Web/src/Forms/InputRadioGroup.cs b/src/Components/Web/src/Forms/InputRadioGroup.cs index 966fd2b3a525..ea126b9acc44 100644 --- a/src/Components/Web/src/Forms/InputRadioGroup.cs +++ b/src/Components/Web/src/Forms/InputRadioGroup.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/Web/src/Forms/InputSelect.cs b/src/Components/Web/src/Forms/InputSelect.cs index a9d12f38bc81..477c8d69326b 100644 --- a/src/Components/Web/src/Forms/InputSelect.cs +++ b/src/Components/Web/src/Forms/InputSelect.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Web/src/Forms/InputText.cs b/src/Components/Web/src/Forms/InputText.cs index 71bd3a304a73..bcaf30bf1533 100644 --- a/src/Components/Web/src/Forms/InputText.cs +++ b/src/Components/Web/src/Forms/InputText.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Components.Rendering; diff --git a/src/Components/Web/src/Forms/InputTextArea.cs b/src/Components/Web/src/Forms/InputTextArea.cs index ce8e711c164f..40b4a3dcfa4d 100644 --- a/src/Components/Web/src/Forms/InputTextArea.cs +++ b/src/Components/Web/src/Forms/InputTextArea.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Components.Rendering; diff --git a/src/Components/Web/src/Forms/ValidationMessage.cs b/src/Components/Web/src/Forms/ValidationMessage.cs index f7131aee0921..236a262f55d0 100644 --- a/src/Components/Web/src/Forms/ValidationMessage.cs +++ b/src/Components/Web/src/Forms/ValidationMessage.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Forms/ValidationSummary.cs b/src/Components/Web/src/Forms/ValidationSummary.cs index 8c2e2172c269..a6d7039a202f 100644 --- a/src/Components/Web/src/Forms/ValidationSummary.cs +++ b/src/Components/Web/src/Forms/ValidationSummary.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Head/HeadContent.cs b/src/Components/Web/src/Head/HeadContent.cs index 90181cafaeff..b2e5b4bbb41d 100644 --- a/src/Components/Web/src/Head/HeadContent.cs +++ b/src/Components/Web/src/Head/HeadContent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; using Microsoft.AspNetCore.Components.Sections; diff --git a/src/Components/Web/src/Head/HeadOutlet.cs b/src/Components/Web/src/Head/HeadOutlet.cs index 7cd30dfa83bc..785132180f92 100644 --- a/src/Components/Web/src/Head/HeadOutlet.cs +++ b/src/Components/Web/src/Head/HeadOutlet.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; using Microsoft.AspNetCore.Components.Sections; diff --git a/src/Components/Web/src/Head/PageTitle.cs b/src/Components/Web/src/Head/PageTitle.cs index 8981d60ffab5..273f4496d334 100644 --- a/src/Components/Web/src/Head/PageTitle.cs +++ b/src/Components/Web/src/Head/PageTitle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; using Microsoft.AspNetCore.Components.Sections; diff --git a/src/Components/Web/src/JSComponents/IJSComponentConfiguration.cs b/src/Components/Web/src/JSComponents/IJSComponentConfiguration.cs index 653f95755cf9..44427d1217f6 100644 --- a/src/Components/Web/src/JSComponents/IJSComponentConfiguration.cs +++ b/src/Components/Web/src/JSComponents/IJSComponentConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/JSComponents/JSComponentConfigurationExtensions.cs b/src/Components/Web/src/JSComponents/JSComponentConfigurationExtensions.cs index 68aba444625c..ed162dbd9e12 100644 --- a/src/Components/Web/src/JSComponents/JSComponentConfigurationExtensions.cs +++ b/src/Components/Web/src/JSComponents/JSComponentConfigurationExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Components; diff --git a/src/Components/Web/src/JSComponents/JSComponentConfigurationStore.cs b/src/Components/Web/src/JSComponents/JSComponentConfigurationStore.cs index 512044634705..7c579ebc274d 100644 --- a/src/Components/Web/src/JSComponents/JSComponentConfigurationStore.cs +++ b/src/Components/Web/src/JSComponents/JSComponentConfigurationStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/JSComponents/JSComponentInterop.cs b/src/Components/Web/src/JSComponents/JSComponentInterop.cs index 9f15866687bf..ea05e5434c00 100644 --- a/src/Components/Web/src/JSComponents/JSComponentInterop.cs +++ b/src/Components/Web/src/JSComponents/JSComponentInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using System.ComponentModel; diff --git a/src/Components/Web/src/Properties/AssemblyInfo.cs b/src/Components/Web/src/Properties/AssemblyInfo.cs index 891ea5326c15..3fc8f70211e6 100644 --- a/src/Components/Web/src/Properties/AssemblyInfo.cs +++ b/src/Components/Web/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.Components.Server.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Components/Web/src/Routing/FocusOnNavigate.cs b/src/Components/Web/src/Routing/FocusOnNavigate.cs index a016c369334d..023b3266b0ba 100644 --- a/src/Components/Web/src/Routing/FocusOnNavigate.cs +++ b/src/Components/Web/src/Routing/FocusOnNavigate.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Routing/NavLink.cs b/src/Components/Web/src/Routing/NavLink.cs index 3e7c3e3c0fa2..fde80208fa2f 100644 --- a/src/Components/Web/src/Routing/NavLink.cs +++ b/src/Components/Web/src/Routing/NavLink.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Routing/NavLinkMatch.cs b/src/Components/Web/src/Routing/NavLinkMatch.cs index a6dad1760c6d..d11295d78ed6 100644 --- a/src/Components/Web/src/Routing/NavLinkMatch.cs +++ b/src/Components/Web/src/Routing/NavLinkMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Routing { diff --git a/src/Components/Web/src/Virtualization/IVirtualizeJsCallbacks.cs b/src/Components/Web/src/Virtualization/IVirtualizeJsCallbacks.cs index b8948d057eef..b1d1031f5017 100644 --- a/src/Components/Web/src/Virtualization/IVirtualizeJsCallbacks.cs +++ b/src/Components/Web/src/Virtualization/IVirtualizeJsCallbacks.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web.Virtualization { diff --git a/src/Components/Web/src/Virtualization/ItemsProviderDelegate.cs b/src/Components/Web/src/Virtualization/ItemsProviderDelegate.cs index 52bd6bf5c9b3..cc5f210f839a 100644 --- a/src/Components/Web/src/Virtualization/ItemsProviderDelegate.cs +++ b/src/Components/Web/src/Virtualization/ItemsProviderDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/Web/src/Virtualization/ItemsProviderRequest.cs b/src/Components/Web/src/Virtualization/ItemsProviderRequest.cs index fb0e8f595fa0..0d94f9381b8d 100644 --- a/src/Components/Web/src/Virtualization/ItemsProviderRequest.cs +++ b/src/Components/Web/src/Virtualization/ItemsProviderRequest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Components/Web/src/Virtualization/ItemsProviderResult.cs b/src/Components/Web/src/Virtualization/ItemsProviderResult.cs index 4b1d47fdfe8c..6a535e471084 100644 --- a/src/Components/Web/src/Virtualization/ItemsProviderResult.cs +++ b/src/Components/Web/src/Virtualization/ItemsProviderResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Components/Web/src/Virtualization/PlaceholderContext.cs b/src/Components/Web/src/Virtualization/PlaceholderContext.cs index 6cdd39d11043..43fe871c27ab 100644 --- a/src/Components/Web/src/Virtualization/PlaceholderContext.cs +++ b/src/Components/Web/src/Virtualization/PlaceholderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web.Virtualization { diff --git a/src/Components/Web/src/Virtualization/Virtualize.cs b/src/Components/Web/src/Virtualization/Virtualize.cs index 60d6e0ede58a..1ffebda1ca38 100644 --- a/src/Components/Web/src/Virtualization/Virtualize.cs +++ b/src/Components/Web/src/Virtualization/Virtualize.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Virtualization/VirtualizeJsInterop.cs b/src/Components/Web/src/Virtualization/VirtualizeJsInterop.cs index 824aa4051c15..1423f1ef7a9c 100644 --- a/src/Components/Web/src/Virtualization/VirtualizeJsInterop.cs +++ b/src/Components/Web/src/Virtualization/VirtualizeJsInterop.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/Web/src/Web/BindAttributes.cs b/src/Components/Web/src/Web/BindAttributes.cs index a6d5ce90315f..f19866b05d8e 100644 --- a/src/Components/Web/src/Web/BindAttributes.cs +++ b/src/Components/Web/src/Web/BindAttributes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/Web/ClipboardEventArgs.cs b/src/Components/Web/src/Web/ClipboardEventArgs.cs index 4879875baff6..84194c4db10a 100644 --- a/src/Components/Web/src/Web/ClipboardEventArgs.cs +++ b/src/Components/Web/src/Web/ClipboardEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/DataTransfer.cs b/src/Components/Web/src/Web/DataTransfer.cs index 48b76423a7a7..c8ea28a244a7 100644 --- a/src/Components/Web/src/Web/DataTransfer.cs +++ b/src/Components/Web/src/Web/DataTransfer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/DataTransferItem.cs b/src/Components/Web/src/Web/DataTransferItem.cs index 112e27dfd03a..5fac39d7d345 100644 --- a/src/Components/Web/src/Web/DataTransferItem.cs +++ b/src/Components/Web/src/Web/DataTransferItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/Web/DragEventArgs.cs b/src/Components/Web/src/Web/DragEventArgs.cs index 5a92d6d6b314..1599b618808d 100644 --- a/src/Components/Web/src/Web/DragEventArgs.cs +++ b/src/Components/Web/src/Web/DragEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/Web/ErrorBoundary.cs b/src/Components/Web/src/Web/ErrorBoundary.cs index 85eef462f243..9e1e9f21a2d6 100644 --- a/src/Components/Web/src/Web/ErrorBoundary.cs +++ b/src/Components/Web/src/Web/ErrorBoundary.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Web/ErrorEventArgs.cs b/src/Components/Web/src/Web/ErrorEventArgs.cs index a2afd3c3ac6d..921baf60d3a3 100644 --- a/src/Components/Web/src/Web/ErrorEventArgs.cs +++ b/src/Components/Web/src/Web/ErrorEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/EventHandlers.cs b/src/Components/Web/src/Web/EventHandlers.cs index e83892f2da71..55f94ac2fa8b 100644 --- a/src/Components/Web/src/Web/EventHandlers.cs +++ b/src/Components/Web/src/Web/EventHandlers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/FocusEventArgs.cs b/src/Components/Web/src/Web/FocusEventArgs.cs index 65187d32ee34..e40fe9e38073 100644 --- a/src/Components/Web/src/Web/FocusEventArgs.cs +++ b/src/Components/Web/src/Web/FocusEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/IErrorBoundaryLogger.cs b/src/Components/Web/src/Web/IErrorBoundaryLogger.cs index 69ddd0e45f2a..539db2236e1b 100644 --- a/src/Components/Web/src/Web/IErrorBoundaryLogger.cs +++ b/src/Components/Web/src/Web/IErrorBoundaryLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Web/KeyboardEventArgs.cs b/src/Components/Web/src/Web/KeyboardEventArgs.cs index e988bc3776f9..675a249f96d0 100644 --- a/src/Components/Web/src/Web/KeyboardEventArgs.cs +++ b/src/Components/Web/src/Web/KeyboardEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/MouseEventArgs.cs b/src/Components/Web/src/Web/MouseEventArgs.cs index e71ed7c563d3..0718622e3f7e 100644 --- a/src/Components/Web/src/Web/MouseEventArgs.cs +++ b/src/Components/Web/src/Web/MouseEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/PointerEventArgs.cs b/src/Components/Web/src/Web/PointerEventArgs.cs index f7ad475ddaca..eff622049a2c 100644 --- a/src/Components/Web/src/Web/PointerEventArgs.cs +++ b/src/Components/Web/src/Web/PointerEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/Web/ProgressEventArgs.cs b/src/Components/Web/src/Web/ProgressEventArgs.cs index 4acda3ac062b..d260842b5fea 100644 --- a/src/Components/Web/src/Web/ProgressEventArgs.cs +++ b/src/Components/Web/src/Web/ProgressEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/TouchEventArgs.cs b/src/Components/Web/src/Web/TouchEventArgs.cs index e6e3894863b7..2278745f3c84 100644 --- a/src/Components/Web/src/Web/TouchEventArgs.cs +++ b/src/Components/Web/src/Web/TouchEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/Web/src/Web/TouchPoint.cs b/src/Components/Web/src/Web/TouchPoint.cs index fd92762447a2..68f4de779259 100644 --- a/src/Components/Web/src/Web/TouchPoint.cs +++ b/src/Components/Web/src/Web/TouchPoint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/Web/WebEventCallbackFactoryEventArgsExtensions.cs b/src/Components/Web/src/Web/WebEventCallbackFactoryEventArgsExtensions.cs index e13959c43567..190f082501d1 100644 --- a/src/Components/Web/src/Web/WebEventCallbackFactoryEventArgsExtensions.cs +++ b/src/Components/Web/src/Web/WebEventCallbackFactoryEventArgsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/src/Web/WebRenderTreeBuilderExtensions.cs b/src/Components/Web/src/Web/WebRenderTreeBuilderExtensions.cs index a44a7e254492..f58d1ef18990 100644 --- a/src/Components/Web/src/Web/WebRenderTreeBuilderExtensions.cs +++ b/src/Components/Web/src/Web/WebRenderTreeBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Rendering; using Microsoft.AspNetCore.Components.RenderTree; diff --git a/src/Components/Web/src/Web/WheelEventArgs.cs b/src/Components/Web/src/Web/WheelEventArgs.cs index 63d3ee13627b..13f92236cd2e 100644 --- a/src/Components/Web/src/Web/WheelEventArgs.cs +++ b/src/Components/Web/src/Web/WheelEventArgs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web { diff --git a/src/Components/Web/src/WebElementReferenceContext.cs b/src/Components/Web/src/WebElementReferenceContext.cs index 56afc0905903..6e3f42ac1ae7 100644 --- a/src/Components/Web/src/WebElementReferenceContext.cs +++ b/src/Components/Web/src/WebElementReferenceContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JSInterop; diff --git a/src/Components/Web/src/WebEventDescriptor.cs b/src/Components/Web/src/WebEventDescriptor.cs index 76bb6f82a2e5..f7f67a99ece7 100644 --- a/src/Components/Web/src/WebEventDescriptor.cs +++ b/src/Components/Web/src/WebEventDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.RenderTree { diff --git a/src/Components/Web/src/WebRenderer.cs b/src/Components/Web/src/WebRenderer.cs index fc07fb306ba1..8840a53c43fb 100644 --- a/src/Components/Web/src/WebRenderer.cs +++ b/src/Components/Web/src/WebRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Text.Json; diff --git a/src/Components/Web/test/Forms/BrowserFileTest.cs b/src/Components/Web/test/Forms/BrowserFileTest.cs index ceb894924cdf..d39f44a029de 100644 --- a/src/Components/Web/test/Forms/BrowserFileTest.cs +++ b/src/Components/Web/test/Forms/BrowserFileTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/Web/test/Forms/EditFormTest.cs b/src/Components/Web/test/Forms/EditFormTest.cs index 05a390ddcaa1..76ab5bf02cb3 100644 --- a/src/Components/Web/test/Forms/EditFormTest.cs +++ b/src/Components/Web/test/Forms/EditFormTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/Forms/InputBaseTest.cs b/src/Components/Web/test/Forms/InputBaseTest.cs index a1d68bbb858b..1cc87dd3323a 100644 --- a/src/Components/Web/test/Forms/InputBaseTest.cs +++ b/src/Components/Web/test/Forms/InputBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/Forms/InputDateTest.cs b/src/Components/Web/test/Forms/InputDateTest.cs index 8ad6319ef761..2358feabdada 100644 --- a/src/Components/Web/test/Forms/InputDateTest.cs +++ b/src/Components/Web/test/Forms/InputDateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/Forms/InputFileChangeEventArgsTest.cs b/src/Components/Web/test/Forms/InputFileChangeEventArgsTest.cs index 8dcdfcc18eda..e429e3abc4c7 100644 --- a/src/Components/Web/test/Forms/InputFileChangeEventArgsTest.cs +++ b/src/Components/Web/test/Forms/InputFileChangeEventArgsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Components/Web/test/Forms/InputNumberTest.cs b/src/Components/Web/test/Forms/InputNumberTest.cs index 2273b7271283..1701d2ff7e61 100644 --- a/src/Components/Web/test/Forms/InputNumberTest.cs +++ b/src/Components/Web/test/Forms/InputNumberTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Components/Web/test/Forms/InputRadioTest.cs b/src/Components/Web/test/Forms/InputRadioTest.cs index 1447a16316f3..6a4638fa89d7 100644 --- a/src/Components/Web/test/Forms/InputRadioTest.cs +++ b/src/Components/Web/test/Forms/InputRadioTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/Forms/InputRenderer.cs b/src/Components/Web/test/Forms/InputRenderer.cs index 3c8398191597..9974b08f23ec 100644 --- a/src/Components/Web/test/Forms/InputRenderer.cs +++ b/src/Components/Web/test/Forms/InputRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Components.Forms { internal static class InputRenderer { - public static async Task RenderAndGetComponent(TestInputHostComponent hostComponent) + public static async Task RenderAndGetComponent(TestInputHostComponent hostComponent) where TComponent : InputBase { var testRenderer = new TestRenderer(); diff --git a/src/Components/Web/test/Forms/InputSelectTest.cs b/src/Components/Web/test/Forms/InputSelectTest.cs index d16bca952da6..014eb5633f93 100644 --- a/src/Components/Web/test/Forms/InputSelectTest.cs +++ b/src/Components/Web/test/Forms/InputSelectTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/Forms/InputTextAreaTest.cs b/src/Components/Web/test/Forms/InputTextAreaTest.cs index d9eceb370e01..f54c8a647a51 100644 --- a/src/Components/Web/test/Forms/InputTextAreaTest.cs +++ b/src/Components/Web/test/Forms/InputTextAreaTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Xunit; diff --git a/src/Components/Web/test/Forms/InputTextTest.cs b/src/Components/Web/test/Forms/InputTextTest.cs index f2b3dba669e7..b30ac24c6592 100644 --- a/src/Components/Web/test/Forms/InputTextTest.cs +++ b/src/Components/Web/test/Forms/InputTextTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Xunit; diff --git a/src/Components/Web/test/Forms/TestInputHostComponent.cs b/src/Components/Web/test/Forms/TestInputHostComponent.cs index 4eb194a7180c..39da73186d23 100644 --- a/src/Components/Web/test/Forms/TestInputHostComponent.cs +++ b/src/Components/Web/test/Forms/TestInputHostComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/Virtualization/VirtualizeTest.cs b/src/Components/Web/test/Virtualization/VirtualizeTest.cs index 931a46545c31..ff5170ace14e 100644 --- a/src/Components/Web/test/Virtualization/VirtualizeTest.cs +++ b/src/Components/Web/test/Virtualization/VirtualizeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/Web/test/WebEventData/ChangeEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/ChangeEventArgsReaderTest.cs index ed1eb52e5f96..2357e48324f0 100644 --- a/src/Components/Web/test/WebEventData/ChangeEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/ChangeEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/Components/Web/test/WebEventData/ClipboardEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/ClipboardEventArgsReaderTest.cs index 6eb0cd91f4f9..388cdc176943 100644 --- a/src/Components/Web/test/WebEventData/ClipboardEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/ClipboardEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/Components/Web/test/WebEventData/DragEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/DragEventArgsReaderTest.cs index 325a83ceb6fe..19c807a2766c 100644 --- a/src/Components/Web/test/WebEventData/DragEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/DragEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Components/Web/test/WebEventData/ErrorEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/ErrorEventArgsReaderTest.cs index f3279b6fa429..464f6a16fb5d 100644 --- a/src/Components/Web/test/WebEventData/ErrorEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/ErrorEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; @@ -20,7 +20,7 @@ public void Read_Works() Message = "Error1", Type = "type2", }; - + var jsonElement = GetJsonElement(args); // Act diff --git a/src/Components/Web/test/WebEventData/FocusEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/FocusEventArgsReaderTest.cs index ba37b266bbfc..92f2fd0c59f6 100644 --- a/src/Components/Web/test/WebEventData/FocusEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/FocusEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; @@ -16,7 +16,7 @@ public void Read_Works() { Type = "type1", }; - + var jsonElement = GetJsonElement(args); // Act diff --git a/src/Components/Web/test/WebEventData/KeyboardEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/KeyboardEventArgsReaderTest.cs index 2752818fe747..5289eb10d4ca 100644 --- a/src/Components/Web/test/WebEventData/KeyboardEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/KeyboardEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; @@ -24,7 +24,7 @@ public void Read_Works() ShiftKey = true, Type = "type1", }; - + var jsonElement = GetJsonElement(args); // Act diff --git a/src/Components/Web/test/WebEventData/MouseEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/MouseEventArgsReaderTest.cs index 3ed9d74bf160..73ae4a4edba1 100644 --- a/src/Components/Web/test/WebEventData/MouseEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/MouseEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/Components/Web/test/WebEventData/PointerEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/PointerEventArgsReaderTest.cs index fbc59bb395a8..b0a960e0d045 100644 --- a/src/Components/Web/test/WebEventData/PointerEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/PointerEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Components/Web/test/WebEventData/ProgressEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/ProgressEventArgsReaderTest.cs index 4edb977f010e..cec2ef773d9c 100644 --- a/src/Components/Web/test/WebEventData/ProgressEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/ProgressEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/Components/Web/test/WebEventData/TouchEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/TouchEventArgsReaderTest.cs index cdfea531c20b..66269c6fbae1 100644 --- a/src/Components/Web/test/WebEventData/TouchEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/TouchEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; @@ -71,7 +71,7 @@ public void Read_Works() }, }, }; - + var jsonElement = GetJsonElement(args); // Act diff --git a/src/Components/Web/test/WebEventData/WebEventDescriptorReaderTest.cs b/src/Components/Web/test/WebEventData/WebEventDescriptorReaderTest.cs index bda24a52fc5d..7554fca6598f 100644 --- a/src/Components/Web/test/WebEventData/WebEventDescriptorReaderTest.cs +++ b/src/Components/Web/test/WebEventData/WebEventDescriptorReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Microsoft.AspNetCore.Components.RenderTree; diff --git a/src/Components/Web/test/WebEventData/WheelEventArgsReaderTest.cs b/src/Components/Web/test/WebEventData/WheelEventArgsReaderTest.cs index cbbd380eb1cc..e1fe1306f3f2 100644 --- a/src/Components/Web/test/WebEventData/WheelEventArgsReaderTest.cs +++ b/src/Components/Web/test/WebEventData/WheelEventArgsReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalAuthenticationOptions.cs b/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalAuthenticationOptions.cs index 9ce734746bda..3d8a55118254 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalAuthenticationOptions.cs +++ b/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalAuthenticationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalCacheOptions.cs b/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalCacheOptions.cs index 961b8ecea654..702225ff47c4 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalCacheOptions.cs +++ b/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalCacheOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Authentication.WebAssembly.Msal.Models { diff --git a/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalProviderOptions.cs b/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalProviderOptions.cs index c02c651891fe..81d565cc0f3c 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalProviderOptions.cs +++ b/src/Components/WebAssembly/Authentication.Msal/src/Models/MsalProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Text.Json.Serialization; diff --git a/src/Components/WebAssembly/Authentication.Msal/src/MsalDefaultOptionsConfiguration.cs b/src/Components/WebAssembly/Authentication.Msal/src/MsalDefaultOptionsConfiguration.cs index db81a1202641..b3a659973095 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/MsalDefaultOptionsConfiguration.cs +++ b/src/Components/WebAssembly/Authentication.Msal/src/MsalDefaultOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components; diff --git a/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs b/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs index 30b86c3c0767..4975c34a8430 100644 --- a/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs +++ b/src/Components/WebAssembly/Authentication.Msal/src/MsalWebAssemblyServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/DevServer/src/Program.cs b/src/Components/WebAssembly/DevServer/src/Program.cs index 1980e7835c7d..b87a967debc1 100644 --- a/src/Components/WebAssembly/DevServer/src/Program.cs +++ b/src/Components/WebAssembly/DevServer/src/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.Extensions.Hosting; diff --git a/src/Components/WebAssembly/DevServer/src/Server/Program.cs b/src/Components/WebAssembly/DevServer/src/Server/Program.cs index 600bdf6ca5a3..35edbe6bb354 100644 --- a/src/Components/WebAssembly/DevServer/src/Server/Program.cs +++ b/src/Components/WebAssembly/DevServer/src/Server/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Components/WebAssembly/DevServer/src/Server/Startup.cs b/src/Components/WebAssembly/DevServer/src/Server/Startup.cs index 418d062dc597..77992f2dd76b 100644 --- a/src/Components/WebAssembly/DevServer/src/Server/Startup.cs +++ b/src/Components/WebAssembly/DevServer/src/Server/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/JSInterop/src/InternalCalls.cs b/src/Components/WebAssembly/JSInterop/src/InternalCalls.cs index 6f9141ee7aaa..a60b6c87e1ba 100644 --- a/src/Components/WebAssembly/JSInterop/src/InternalCalls.cs +++ b/src/Components/WebAssembly/JSInterop/src/InternalCalls.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Runtime.CompilerServices; diff --git a/src/Components/WebAssembly/JSInterop/src/JSCallInfo.cs b/src/Components/WebAssembly/JSInterop/src/JSCallInfo.cs index 5053a35bfd7b..eaf69627a35d 100644 --- a/src/Components/WebAssembly/JSInterop/src/JSCallInfo.cs +++ b/src/Components/WebAssembly/JSInterop/src/JSCallInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; using Microsoft.JSInterop; diff --git a/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReference.cs b/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReference.cs index da1dc1edc20c..80a480c42bab 100644 --- a/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReference.cs +++ b/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.JSInterop.Implementation; diff --git a/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReferenceJsonConverter.cs b/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReferenceJsonConverter.cs index 5b2f12f54bed..607b6b10e16f 100644 --- a/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReferenceJsonConverter.cs +++ b/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSObjectReferenceJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSRuntime.cs b/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSRuntime.cs index 683789a73828..53a6cb394710 100644 --- a/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSRuntime.cs +++ b/src/Components/WebAssembly/JSInterop/src/WebAssemblyJSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Data/HttpWeatherForecastService.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Data/HttpWeatherForecastService.cs index 84ab14ffe3bd..f489f4aae333 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Data/HttpWeatherForecastService.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Data/HttpWeatherForecastService.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/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Program.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Program.cs index 472419cd9610..7134095c40dc 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/Program.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Client/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 HostedBlazorWebassemblyApp.Client.Data; using HostedBlazorWebassemblyApp.Shared; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; diff --git a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Controllers/WeatherForecastController.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Controllers/WeatherForecastController.cs index f6e04258c104..8e8657a4a96f 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Controllers/WeatherForecastController.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Controllers/WeatherForecastController.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 HostedBlazorWebassemblyApp.Shared; diff --git a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Data/WeatherForecastService.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Data/WeatherForecastService.cs index f633536c03f3..7cc9f9e7e4ba 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Data/WeatherForecastService.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Data/WeatherForecastService.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/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Pages/Error.cshtml.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Pages/Error.cshtml.cs index 62ba05c97860..5280fe1218b5 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Pages/Error.cshtml.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Pages/Error.cshtml.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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; diff --git a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Program.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Program.cs index 252edb15e8ef..241c530f9bde 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Program.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Program.cs @@ -1,4 +1,7 @@ -using 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.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; diff --git a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Startup.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Startup.cs index 37cb5fb3969d..c15288660f87 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Startup.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Server/Startup.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 HostedBlazorWebassemblyApp.Server.Data; using HostedBlazorWebassemblyApp.Shared; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/IWeatherForecastService.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/IWeatherForecastService.cs index 033f28e9f521..24c68a0329ac 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/IWeatherForecastService.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/IWeatherForecastService.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/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/WeatherForecast.cs b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/WeatherForecast.cs index a808856eda37..3045ff8ec22a 100644 --- a/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/WeatherForecast.cs +++ b/src/Components/WebAssembly/Samples/HostedBlazorWebassemblyApp/Shared/WeatherForecast.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.Text; diff --git a/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs b/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs index fedf3d437dcf..a2592892bbbc 100644 --- a/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs +++ b/src/Components/WebAssembly/Server/src/ComponentsWebAssemblyApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/WebAssembly/Server/src/ContentEncodingNegotiator.cs b/src/Components/WebAssembly/Server/src/ContentEncodingNegotiator.cs index 79309aee2708..4ceb77861554 100644 --- a/src/Components/WebAssembly/Server/src/ContentEncodingNegotiator.cs +++ b/src/Components/WebAssembly/Server/src/ContentEncodingNegotiator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/Server/src/DebugProxyLauncher.cs b/src/Components/WebAssembly/Server/src/DebugProxyLauncher.cs index 379053cda63c..50f67a8e3b38 100644 --- a/src/Components/WebAssembly/Server/src/DebugProxyLauncher.cs +++ b/src/Components/WebAssembly/Server/src/DebugProxyLauncher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/Server/src/TargetPickerUi.cs b/src/Components/WebAssembly/Server/src/TargetPickerUi.cs index de2c036b46fb..692489ec48c0 100644 --- a/src/Components/WebAssembly/Server/src/TargetPickerUi.cs +++ b/src/Components/WebAssembly/Server/src/TargetPickerUi.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/Server/src/WebAssemblyNetDebugProxyAppBuilderExtensions.cs b/src/Components/WebAssembly/Server/src/WebAssemblyNetDebugProxyAppBuilderExtensions.cs index 123df48a4be7..743932bc6af9 100644 --- a/src/Components/WebAssembly/Server/src/WebAssemblyNetDebugProxyAppBuilderExtensions.cs +++ b/src/Components/WebAssembly/Server/src/WebAssemblyNetDebugProxyAppBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/Server/test/ContentEncodingNegotiatorTests.cs b/src/Components/WebAssembly/Server/test/ContentEncodingNegotiatorTests.cs index 5976ef161383..929e8a9e3438 100644 --- a/src/Components/WebAssembly/Server/test/ContentEncodingNegotiatorTests.cs +++ b/src/Components/WebAssembly/Server/test/ContentEncodingNegotiatorTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/IAccessTokenProviderAccessor.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/IAccessTokenProviderAccessor.cs index 5e20c27cfde5..ddfccbb5556b 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/IAccessTokenProviderAccessor.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/IAccessTokenProviderAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication.Internal { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationBuilder.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationBuilder.cs index 0006f5e2e9f3..e11b32b6ac2a 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationBuilder.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.WebAssembly.Authentication; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationPathsProvider.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationPathsProvider.cs index d598a097fa81..94b82fd8704f 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationPathsProvider.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/IRemoteAuthenticationPathsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/AccessToken.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/AccessToken.cs index a282d1c79470..c9511a816c9a 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/AccessToken.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/AccessToken.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationActions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationActions.cs index fda3b5efbc80..11de56e84adf 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationActions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationActions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs index f54a69c558a0..2ee2ca75183d 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationResult.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationResult.cs index 529f34e54b01..b0d9d20b1e5b 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationResult.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationState.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationState.cs index 461a0d83dda4..06ff8f19a0bf 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationState.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationState.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationStatus.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationStatus.cs index 08cf1a69a079..67e0729f9c2c 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationStatus.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteAuthenticationStatus.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteUserAccount.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteUserAccount.cs index 0218aebce3b2..5d4606ece166 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteUserAccount.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Models/RemoteUserAccount.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Text.Json.Serialization; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/ApiAuthorizationProviderOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/ApiAuthorizationProviderOptions.cs index 3c51793a0484..1357ad69e312 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/ApiAuthorizationProviderOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/ApiAuthorizationProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultApiAuthorizationOptionsConfiguration.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultApiAuthorizationOptionsConfiguration.cs index a1cd533c1e7b..a29f53ce3698 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultApiAuthorizationOptionsConfiguration.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultApiAuthorizationOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Options; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultOidcProviderOptionsConfiguration.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultOidcProviderOptionsConfiguration.cs index 886d7ddcbbf1..c3aed9880ff2 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultOidcProviderOptionsConfiguration.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/DefaultOidcProviderOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/OidcProviderOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/OidcProviderOptions.cs index ea7dec36a80e..2fc496142f5d 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/OidcProviderOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/OidcProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Text.Json.Serialization; @@ -59,7 +59,7 @@ public class OidcProviderOptions public string ResponseMode { get; set; } /// - /// Gets or sets the additional provider parameters to use on the authorization flow. + /// Gets or sets the additional provider parameters to use on the authorization flow. /// /// /// These parameters are for the IdP and not for the application. Using those parameters in the application in any way on the login callback will likely introduce security issues as they should be treated as untrusted input. diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationApplicationPathsOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationApplicationPathsOptions.cs index 0a30feedf80c..85b16778fea4 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationApplicationPathsOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationApplicationPathsOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs index b20c2f8b2610..178cc1417884 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationUserOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationUserOptions.cs index 22e40f9c14bb..ed929d9375a8 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationUserOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Options/RemoteAuthenticationUserOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Properties/AssemblyInfo.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Properties/AssemblyInfo.cs index d0b4317656db..b544d2eb639f 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Properties/AssemblyInfo.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.Blazor.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/QueryStringHelper.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/QueryStringHelper.cs index 8af2a4e57275..1c8c28defedf 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/QueryStringHelper.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/QueryStringHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Encodings.Web; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilder.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilder.cs index a321a37d78a5..1d6fb1374750 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilder.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilderExtensions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilderExtensions.cs index 826b2eb612b0..aa135ea907af 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilderExtensions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Components.WebAssembly.Authentication; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationDefaults.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationDefaults.cs index 51d66c7a9e5f..857f694e9ab7 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationDefaults.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticationDefaults.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorView.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorView.cs index ff93e18bfff7..8cfbaac5c2fd 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorView.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorView.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs index 096c52d690d4..777cf6cef12a 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/RemoteAuthenticatorViewCore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenProviderAccessor.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenProviderAccessor.cs index 5aac0607151d..edda71fd7245 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenProviderAccessor.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenProviderAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenRequestOptions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenRequestOptions.cs index cffb2fd3dc46..0cba1833bb7c 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenRequestOptions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenRequestOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResult.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResult.cs index b30581322ec1..3c2a782138f5 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResult.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResultStatus.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResultStatus.cs index 15d311413f25..fa80f26fc26a 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResultStatus.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenResultStatus.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication { diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccountClaimsPrincipalFactory.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccountClaimsPrincipalFactory.cs index 5cafba2576d4..4de6d2a7ec1c 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccountClaimsPrincipalFactory.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccountClaimsPrincipalFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Text.Json; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AuthorizationMessageHandler.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AuthorizationMessageHandler.cs index 521d3b90fca3..c49d2273147d 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AuthorizationMessageHandler.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AuthorizationMessageHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/BaseAddressAuthorizationMessageHandler.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/BaseAddressAuthorizationMessageHandler.cs index 5fe5511f1ef4..7ddf533596db 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/BaseAddressAuthorizationMessageHandler.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/BaseAddressAuthorizationMessageHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/DefaultRemoteApplicationPathsProvider.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/DefaultRemoteApplicationPathsProvider.cs index 665efb43ff9f..4593f3e0fec6 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/DefaultRemoteApplicationPathsProvider.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/DefaultRemoteApplicationPathsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Options; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs index 1f619e6ebd87..f67f4af493bc 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/ExpiredTokenException.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IAccessTokenProvider.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IAccessTokenProvider.cs index 9a9932ecea10..adf18db4ce33 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IAccessTokenProvider.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IAccessTokenProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IRemoteAuthenticationService.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IRemoteAuthenticationService.cs index ebad4494bab5..6e157d4946b6 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IRemoteAuthenticationService.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/IRemoteAuthenticationService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs index aa6a4d73b4da..301c90c3f06c 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs index 7c4a216a85c6..755cf958bc17 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/SignOutSessionStateManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Text.Json; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs b/src/Components/WebAssembly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs index ca8c023d9e8c..ef97b7411958 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/test/AuthorizationMessageHandlerTests.cs b/src/Components/WebAssembly/WebAssembly.Authentication/test/AuthorizationMessageHandlerTests.cs index 768d45d8ec4f..9d4700f20c06 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/test/AuthorizationMessageHandlerTests.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/test/AuthorizationMessageHandlerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticationServiceTests.cs b/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticationServiceTests.cs index dde0939e1761..cdb51033099a 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticationServiceTests.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticationServiceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticatorCoreTests.cs b/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticatorCoreTests.cs index 578f18b2e210..2b416d0cfdbd 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticatorCoreTests.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/test/RemoteAuthenticatorCoreTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -531,7 +531,7 @@ public async Task AuthenticationManager_DisplaysRightUI_ForEachStateAsync(UIVali // Arrange var renderer = new TestRenderer(new ServiceCollection().BuildServiceProvider()); var authenticator = new TestRemoteAuthenticatorView(); - renderer.Attach(authenticator); + renderer.Attach(authenticator); validator.SetupFakeRender(authenticator); var parameters = ParameterView.FromDictionary(new Dictionary diff --git a/src/Components/WebAssembly/WebAssembly.Authentication/test/WebAssemblyAuthenticationServiceCollectionExtensionsTests.cs b/src/Components/WebAssembly/WebAssembly.Authentication/test/WebAssemblyAuthenticationServiceCollectionExtensionsTests.cs index 7cc73feb1e3c..a6eee4b92e82 100644 --- a/src/Components/WebAssembly/WebAssembly.Authentication/test/WebAssemblyAuthenticationServiceCollectionExtensionsTests.cs +++ b/src/Components/WebAssembly/WebAssembly.Authentication/test/WebAssemblyAuthenticationServiceCollectionExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs index f9c0c3cb13e1..47f146c1e0ac 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/IWebAssemblyHostEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting { diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/LoggingBuilder.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/LoggingBuilder.cs index 66c219045172..57034c463b91 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/LoggingBuilder.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/LoggingBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/RegisteredComponentsInterop.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/RegisteredComponentsInterop.cs index a978405d5b91..01858d5bf8d5 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/RegisteredComponentsInterop.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/RegisteredComponentsInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting { diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMapping.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMapping.cs index 32a1cce09b1b..5bfed2a58471 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMapping.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMapping.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMappingCollection.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMappingCollection.cs index 6bf729fc62bd..41dded2f3772 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMappingCollection.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/RootComponentMappingCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCallQueue.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCallQueue.cs index 69700ac96c67..085b87ee9ccc 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCallQueue.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCallQueue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCultureProvider.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCultureProvider.cs index e6ea37439c7b..d7f9002aeb08 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCultureProvider.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHost.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHost.cs index f3b36d2ae8e4..839d0d074408 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHost.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHost.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection.Metadata; using System.Text.Json; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs index f66b58fd7a11..2d6494e95b09 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostConfiguration.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostConfiguration.cs index 26629e17a5c0..b9ccdd5373a8 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostConfiguration.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironment.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironment.cs index 53904c9f8743..7d8799905b54 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironment.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Hosting { diff --git a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs index dd719245ed02..d6a02b666c61 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyHostEnvironmentExtensions.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.Text; diff --git a/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs b/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs index 53b704417c0c..f67f66cd19fc 100644 --- a/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs +++ b/src/Components/WebAssembly/WebAssembly/src/HotReload/HotReloadAgent.cs @@ -1,5 +1,5 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // Based on the implementation in https://raw.githubusercontent.com/dotnet/sdk/4eaeb44f850903af2e0da8d74b7796f9df11c29d/src/BuiltInTools/DotNetDeltaApplier/HotReloadAgent.cs diff --git a/src/Components/WebAssembly/WebAssembly/src/HotReload/UpdateDelta.cs b/src/Components/WebAssembly/WebAssembly/src/HotReload/UpdateDelta.cs index 1587ac6945a9..7c1d5c634279 100644 --- a/src/Components/WebAssembly/WebAssembly/src/HotReload/UpdateDelta.cs +++ b/src/Components/WebAssembly/WebAssembly/src/HotReload/UpdateDelta.cs @@ -1,5 +1,5 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/WebAssembly/WebAssembly/src/HotReload/WebAssemblyHotReload.cs b/src/Components/WebAssembly/WebAssembly/src/HotReload/WebAssemblyHotReload.cs index 2c2c0f527428..879a689282d4 100644 --- a/src/Components/WebAssembly/WebAssembly/src/HotReload/WebAssemblyHotReload.cs +++ b/src/Components/WebAssembly/WebAssembly/src/HotReload/WebAssemblyHotReload.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCache.cs b/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCache.cs index 2e43edc91d78..e30072713c6f 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCache.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Http { diff --git a/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCredentials.cs b/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCredentials.cs index 491454566543..134176187d60 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCredentials.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestCredentials.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Http { diff --git a/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestMode.cs b/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestMode.cs index 1155efef0bc1..2cb774385c5f 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestMode.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Http/BrowserRequestMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebAssembly.Http { diff --git a/src/Components/WebAssembly/WebAssembly/src/Http/WebAssemblyHttpRequestMessageExtensions.cs b/src/Components/WebAssembly/WebAssembly/src/Http/WebAssemblyHttpRequestMessageExtensions.cs index 12987cbac609..7e4b03de2773 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Http/WebAssemblyHttpRequestMessageExtensions.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Http/WebAssemblyHttpRequestMessageExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs b/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs index 0db2d82b756d..bb088a0a4bba 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Infrastructure/JSInteropMethods.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Components/WebAssembly/WebAssembly/src/Prerendering/ClientComponentParameterDeserializer.cs b/src/Components/WebAssembly/WebAssembly/src/Prerendering/ClientComponentParameterDeserializer.cs index 8138b7409ba4..33e8b83d890e 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Prerendering/ClientComponentParameterDeserializer.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Prerendering/ClientComponentParameterDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Properties/AssemblyInfo.cs b/src/Components/WebAssembly/WebAssembly/src/Properties/AssemblyInfo.cs index 47bfb5013ffc..9c7898e3fbc9 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Properties/AssemblyInfo.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Components/WebAssembly/WebAssembly/src/Rendering/NullDispatcher.cs b/src/Components/WebAssembly/WebAssembly/src/Rendering/NullDispatcher.cs index 2301ce09fbba..aad702d48d26 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Rendering/NullDispatcher.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Rendering/NullDispatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Rendering/RendererRegistry.cs b/src/Components/WebAssembly/WebAssembly/src/Rendering/RendererRegistry.cs index 56d4246e23fe..f207cf84a3f6 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Rendering/RendererRegistry.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Rendering/RendererRegistry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Rendering/WebAssemblyRenderer.cs b/src/Components/WebAssembly/WebAssembly/src/Rendering/WebAssemblyRenderer.cs index a8786b234892..2813ccf14f75 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Rendering/WebAssemblyRenderer.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Rendering/WebAssemblyRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Text.Json; diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/DefaultWebAssemblyJSRuntime.cs b/src/Components/WebAssembly/WebAssembly/src/Services/DefaultWebAssemblyJSRuntime.cs index ab1b2c6d93fa..bf3fba7c1efb 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/DefaultWebAssemblyJSRuntime.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/DefaultWebAssemblyJSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/LazyAssemblyLoader.cs b/src/Components/WebAssembly/WebAssembly/src/Services/LazyAssemblyLoader.cs index 095a1df38b79..c16c744dd9bc 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/LazyAssemblyLoader.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/LazyAssemblyLoader.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLogger.cs b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLogger.cs index fd4e12403c33..e5920db63972 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLogger.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs index cc3079d91746..3be78720a6e8 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyConsoleLoggerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyErrorBoundaryLogger.cs b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyErrorBoundaryLogger.cs index eac12ba48e33..1f4e89ec4826 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyErrorBoundaryLogger.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyErrorBoundaryLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationInterception.cs b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationInterception.cs index be31cf98ac7e..ae4790736138 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationInterception.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationInterception.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Components.Routing; diff --git a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs index 0ee37b1ffd9a..419442a28fc2 100644 --- a/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs +++ b/src/Components/WebAssembly/WebAssembly/src/Services/WebAssemblyNavigationManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebAssembly/WebAssembly/test/Hosting/RootComponentMappingTest.cs b/src/Components/WebAssembly/WebAssembly/test/Hosting/RootComponentMappingTest.cs index 560653845690..efb03fe3a0e2 100644 --- a/src/Components/WebAssembly/WebAssembly/test/Hosting/RootComponentMappingTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/Hosting/RootComponentMappingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyCultureProviderTest.cs b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyCultureProviderTest.cs index b6ccff2518f4..d1a7fe79da19 100644 --- a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyCultureProviderTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyCultureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs index 1821fad3fbc6..033b4143044e 100644 --- a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostConfigurationTest.cs b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostConfigurationTest.cs index ac1550db3616..60fdca1016c1 100644 --- a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostConfigurationTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostConfigurationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostTest.cs b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostTest.cs index 907547ac5679..1e1e2e365cab 100644 --- a/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/Hosting/WebAssemblyHostTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/WebAssembly/WebAssembly/test/JSObjectReferenceJsonConverterTest.cs b/src/Components/WebAssembly/WebAssembly/test/JSObjectReferenceJsonConverterTest.cs index f497833647d2..c14889496743 100644 --- a/src/Components/WebAssembly/WebAssembly/test/JSObjectReferenceJsonConverterTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/JSObjectReferenceJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Microsoft.JSInterop; diff --git a/src/Components/WebAssembly/WebAssembly/test/PullFromJSDataStreamTest.cs b/src/Components/WebAssembly/WebAssembly/test/PullFromJSDataStreamTest.cs index bff0253ac546..72a5141062eb 100644 --- a/src/Components/WebAssembly/WebAssembly/test/PullFromJSDataStreamTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/PullFromJSDataStreamTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Testing; diff --git a/src/Components/WebAssembly/WebAssembly/test/RenderRegistryTest.cs b/src/Components/WebAssembly/WebAssembly/test/RenderRegistryTest.cs index d36d10f0da52..879c2f4cafae 100644 --- a/src/Components/WebAssembly/WebAssembly/test/RenderRegistryTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/RenderRegistryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Components/WebAssembly/WebAssembly/test/TestJSUnmarshalledRuntime.cs b/src/Components/WebAssembly/WebAssembly/test/TestJSUnmarshalledRuntime.cs index 8c6d50ac4ff0..1172fd8fd06b 100644 --- a/src/Components/WebAssembly/WebAssembly/test/TestJSUnmarshalledRuntime.cs +++ b/src/Components/WebAssembly/WebAssembly/test/TestJSUnmarshalledRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JSInterop; @@ -40,7 +40,7 @@ public TResult InvokeUnmarshalled(string identifier, T0 arg public TResult InvokeUnmarshalled(string identifier) => InvokeUnmarshalled(identifier, null, null, null); - + public TResult InvokeUnmarshalled(string identifier, T0 arg0) => InvokeUnmarshalled(identifier, arg0, null, null); diff --git a/src/Components/WebAssembly/WebAssembly/test/WebAssemblyHotReloadTest.cs b/src/Components/WebAssembly/WebAssembly/test/WebAssemblyHotReloadTest.cs index ee506b14857d..02c0d0048617 100644 --- a/src/Components/WebAssembly/WebAssembly/test/WebAssemblyHotReloadTest.cs +++ b/src/Components/WebAssembly/WebAssembly/test/WebAssemblyHotReloadTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Components.RenderTree; diff --git a/src/Components/WebAssembly/testassets/CustomBasePathApp/Program.cs b/src/Components/WebAssembly/testassets/CustomBasePathApp/Program.cs index c28f5292b6fc..89247db76623 100644 --- a/src/Components/WebAssembly/testassets/CustomBasePathApp/Program.cs +++ b/src/Components/WebAssembly/testassets/CustomBasePathApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/testassets/HostedInAspNet.Client/Program.cs b/src/Components/WebAssembly/testassets/HostedInAspNet.Client/Program.cs index fd106e9719c5..05276c90b998 100644 --- a/src/Components/WebAssembly/testassets/HostedInAspNet.Client/Program.cs +++ b/src/Components/WebAssembly/testassets/HostedInAspNet.Client/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; diff --git a/src/Components/WebAssembly/testassets/HostedInAspNet.Server/BootResourceRequestLog.cs b/src/Components/WebAssembly/testassets/HostedInAspNet.Server/BootResourceRequestLog.cs index b0c8181c4319..918b427060ad 100644 --- a/src/Components/WebAssembly/testassets/HostedInAspNet.Server/BootResourceRequestLog.cs +++ b/src/Components/WebAssembly/testassets/HostedInAspNet.Server/BootResourceRequestLog.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Program.cs b/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Program.cs index bcb0fcf29b10..b0a17880d58a 100644 --- a/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Program.cs +++ b/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.Extensions.Hosting; diff --git a/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Startup.cs b/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Startup.cs index 6698a990db95..f7de975aadd1 100644 --- a/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Startup.cs +++ b/src/Components/WebAssembly/testassets/HostedInAspNet.Server/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Components/WebAssembly/testassets/StandaloneApp/Program.cs b/src/Components/WebAssembly/testassets/StandaloneApp/Program.cs index 67e675954a93..3d1b926b23be 100644 --- a/src/Components/WebAssembly/testassets/StandaloneApp/Program.cs +++ b/src/Components/WebAssembly/testassets/StandaloneApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/OidcAccount.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/OidcAccount.cs index b6d39ef9e69a..061bf53db499 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/OidcAccount.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/OidcAccount.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.Text.Json.Serialization; using Microsoft.AspNetCore.Components.WebAssembly.Authentication; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/PreferencesUserFactory.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/PreferencesUserFactory.cs index 9fcf56a1ee8c..545e67c5cbce 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/PreferencesUserFactory.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/PreferencesUserFactory.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; using System.Net.Http; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Program.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Program.cs index 0efb670f10e3..463a46be2136 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Program.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/RemoteAppState.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/RemoteAppState.cs index eee8535069b3..e10d4850cc6e 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/RemoteAppState.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/RemoteAppState.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/Components/WebAssembly/testassets/Wasm.Authentication.Client/StateService.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/StateService.cs index 0906ee85b997..0c0e12df5b78 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/StateService.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/StateService.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/Components/WebAssembly/testassets/Wasm.Authentication.Client/WeatherForecastClient.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/WeatherForecastClient.cs index 0f9ff86f0771..84f021e82a23 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/WeatherForecastClient.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Client/WeatherForecastClient.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/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/OidcConfigurationController.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/OidcConfigurationController.cs index 2a3d084e045e..f2fb0bcd17fc 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/OidcConfigurationController.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/OidcConfigurationController.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.ApiAuthorization.IdentityServer; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/PreferencesController.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/PreferencesController.cs index dd9d703e88e5..6fc15d0fe5c1 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/PreferencesController.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/PreferencesController.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.Linq; using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/RolesController.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/RolesController.cs index 10ec3c59e393..833a2f5adda3 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/RolesController.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/RolesController.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.Security.Claims; using System.Threading.Tasks; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/WeatherForecastController.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/WeatherForecastController.cs index 0bcf4f452ba8..398458c96b09 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/WeatherForecastController.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Controllers/WeatherForecastController.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/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/ApplicationDbContext.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/ApplicationDbContext.cs index ae1031562b22..b8b4fb243f1f 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/ApplicationDbContext.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/ApplicationDbContext.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 Wasm.Authentication.Server.Models; using Duende.IdentityServer.EntityFramework.Options; using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200324213904_Initial.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200324213904_Initial.cs index 22fd95f30fe1..d37a15ed3578 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200324213904_Initial.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200324213904_Initial.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 Microsoft.EntityFrameworkCore.Migrations; namespace Wasm.Authentication.Server.Data.Migrations diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200818132003_IdentityServer4.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200818132003_IdentityServer4.cs index 59133a5862df..5a7559835780 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200818132003_IdentityServer4.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Data/Migrations/20200818132003_IdentityServer4.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 Microsoft.EntityFrameworkCore.Migrations; namespace Wasm.Authentication.Server.Data.Migrations diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/ApplicationUser.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/ApplicationUser.cs index d770230b5343..50bc6a4b9e79 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/ApplicationUser.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/ApplicationUser.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.Identity; using System; using System.Collections.Generic; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/UserPreference.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/UserPreference.cs index fb386a3272ad..16ffbfb300d6 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/UserPreference.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Models/UserPreference.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/Components/WebAssembly/testassets/Wasm.Authentication.Server/Pages/Error.cshtml.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Pages/Error.cshtml.cs index 7ff93f69eb11..de8392060944 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Pages/Error.cshtml.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Pages/Error.cshtml.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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Program.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Program.cs index deee60575118..b6ad0901429b 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Program.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/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; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Startup.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Startup.cs index 038e01f0c711..424ec384ef1a 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Startup.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Server/Startup.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.IdentityModel.Tokens.Jwt; using System.Linq; using Microsoft.AspNetCore.Authentication; diff --git a/src/Components/WebAssembly/testassets/Wasm.Authentication.Shared/WeatherForecast.cs b/src/Components/WebAssembly/testassets/Wasm.Authentication.Shared/WeatherForecast.cs index 04b6a67a4676..7594d2faae55 100644 --- a/src/Components/WebAssembly/testassets/Wasm.Authentication.Shared/WeatherForecast.cs +++ b/src/Components/WebAssembly/testassets/Wasm.Authentication.Shared/WeatherForecast.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.Text; diff --git a/src/Components/WebView/Samples/PhotinoPlatform/src/BlazorWindow.cs b/src/Components/WebView/Samples/PhotinoPlatform/src/BlazorWindow.cs index 9c17b99c2bce..608257b3a74c 100644 --- a/src/Components/WebView/Samples/PhotinoPlatform/src/BlazorWindow.cs +++ b/src/Components/WebView/Samples/PhotinoPlatform/src/BlazorWindow.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -67,7 +67,7 @@ public void AddRootComponent(string selector, IDictionary { await _manager.AddRootComponentAsync(typeof(TComponent), selector, parameterView); - }); + }); } /// diff --git a/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoDispatcher.cs b/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoDispatcher.cs index 592330054dfe..29ff2f511cbd 100644 --- a/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoDispatcher.cs +++ b/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoDispatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoSynchronizationContext.cs b/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoSynchronizationContext.cs index b757da730df7..a6abb5bdd2bd 100644 --- a/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoSynchronizationContext.cs +++ b/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoSynchronizationContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoWebViewManager.cs b/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoWebViewManager.cs index 81474838ae45..68854c1784ad 100644 --- a/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoWebViewManager.cs +++ b/src/Components/WebView/Samples/PhotinoPlatform/src/PhotinoWebViewManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/WebView/Samples/PhotinoPlatform/testassets/PhotinoTestApp/Program.cs b/src/Components/WebView/Samples/PhotinoPlatform/testassets/PhotinoTestApp/Program.cs index 6d81b6ca2890..616ed94364b3 100644 --- a/src/Components/WebView/Samples/PhotinoPlatform/testassets/PhotinoTestApp/Program.cs +++ b/src/Components/WebView/Samples/PhotinoPlatform/testassets/PhotinoTestApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.WebView.Photino; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Components/WebView/WebView/src/ComponentsWebViewServiceCollectionExtensions.cs b/src/Components/WebView/WebView/src/ComponentsWebViewServiceCollectionExtensions.cs index c627c279b1c4..494bb7ecf818 100644 --- a/src/Components/WebView/WebView/src/ComponentsWebViewServiceCollectionExtensions.cs +++ b/src/Components/WebView/WebView/src/ComponentsWebViewServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components; using Microsoft.AspNetCore.Components.Routing; diff --git a/src/Components/WebView/WebView/src/FileExtensionContentTypeProvider.cs b/src/Components/WebView/WebView/src/FileExtensionContentTypeProvider.cs index bdd24208a06c..3b5bcb1b83a5 100644 --- a/src/Components/WebView/WebView/src/FileExtensionContentTypeProvider.cs +++ b/src/Components/WebView/WebView/src/FileExtensionContentTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // NOTE: This file is copied from src/Middleware/StaticFiles/src/IContentTypeProvider.cs // and made internal with a namespace change. diff --git a/src/Components/WebView/WebView/src/IContentTypeProvider.cs b/src/Components/WebView/WebView/src/IContentTypeProvider.cs index 6322de063267..4ec0c253f091 100644 --- a/src/Components/WebView/WebView/src/IContentTypeProvider.cs +++ b/src/Components/WebView/WebView/src/IContentTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // NOTE: This file is copied from src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs // and made internal with a namespace change. diff --git a/src/Components/WebView/WebView/src/IpcCommon.cs b/src/Components/WebView/WebView/src/IpcCommon.cs index 23b80a084e37..6ec47a98959f 100644 --- a/src/Components/WebView/WebView/src/IpcCommon.cs +++ b/src/Components/WebView/WebView/src/IpcCommon.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/src/IpcReceiver.cs b/src/Components/WebView/WebView/src/IpcReceiver.cs index 531ff9754321..39309a6f2fcf 100644 --- a/src/Components/WebView/WebView/src/IpcReceiver.cs +++ b/src/Components/WebView/WebView/src/IpcReceiver.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Components/WebView/WebView/src/IpcSender.cs b/src/Components/WebView/WebView/src/IpcSender.cs index 14bce7f39546..a0ba3d5b6792 100644 --- a/src/Components/WebView/WebView/src/IpcSender.cs +++ b/src/Components/WebView/WebView/src/IpcSender.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Components/WebView/WebView/src/PageContext.cs b/src/Components/WebView/WebView/src/PageContext.cs index 14152218be2a..a4bce46d52ed 100644 --- a/src/Components/WebView/WebView/src/PageContext.cs +++ b/src/Components/WebView/WebView/src/PageContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/src/PathString.cs b/src/Components/WebView/WebView/src/PathString.cs index 085e1c966acf..b8bb145e5f6e 100644 --- a/src/Components/WebView/WebView/src/PathString.cs +++ b/src/Components/WebView/WebView/src/PathString.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // NOTE: This file is copied from src/Http/Http.Abstractions/src/PathString.cs // and made internal with a namespace change. diff --git a/src/Components/WebView/WebView/src/PathStringHelper.cs b/src/Components/WebView/WebView/src/PathStringHelper.cs index 9fecfa919103..e132eeb13098 100644 --- a/src/Components/WebView/WebView/src/PathStringHelper.cs +++ b/src/Components/WebView/WebView/src/PathStringHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // NOTE: This file is copied from src/Http/Http.Abstractions/src/Internal/PathStringHelper.cs // and made internal with a namespace change. diff --git a/src/Components/WebView/WebView/src/QueryString.cs b/src/Components/WebView/WebView/src/QueryString.cs index 41d20f118d9b..f2a23c6b2e88 100644 --- a/src/Components/WebView/WebView/src/QueryString.cs +++ b/src/Components/WebView/WebView/src/QueryString.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // NOTE: This file is copied from src/Http/Http.Abstractions/src/QueryString.cs // and made internal with a namespace change. diff --git a/src/Components/WebView/WebView/src/Services/WebViewJSRuntime.cs b/src/Components/WebView/WebView/src/Services/WebViewJSRuntime.cs index d2f35b3d5473..0d4e33bf87c5 100644 --- a/src/Components/WebView/WebView/src/Services/WebViewJSRuntime.cs +++ b/src/Components/WebView/WebView/src/Services/WebViewJSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/src/Services/WebViewNavigationInterception.cs b/src/Components/WebView/WebView/src/Services/WebViewNavigationInterception.cs index 884efd3fefe4..0537d06feb93 100644 --- a/src/Components/WebView/WebView/src/Services/WebViewNavigationInterception.cs +++ b/src/Components/WebView/WebView/src/Services/WebViewNavigationInterception.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Components.Routing; diff --git a/src/Components/WebView/WebView/src/Services/WebViewNavigationManager.cs b/src/Components/WebView/WebView/src/Services/WebViewNavigationManager.cs index 3d6be1ef20e3..4dc98dd422a7 100644 --- a/src/Components/WebView/WebView/src/Services/WebViewNavigationManager.cs +++ b/src/Components/WebView/WebView/src/Services/WebViewNavigationManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Services { diff --git a/src/Components/WebView/WebView/src/Services/WebViewRenderer.cs b/src/Components/WebView/WebView/src/Services/WebViewRenderer.cs index a6555984a33a..668d91841a39 100644 --- a/src/Components/WebView/WebView/src/Services/WebViewRenderer.cs +++ b/src/Components/WebView/WebView/src/Services/WebViewRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.ExceptionServices; using Microsoft.AspNetCore.Components.RenderTree; diff --git a/src/Components/WebView/WebView/src/StaticContentProvider.cs b/src/Components/WebView/WebView/src/StaticContentProvider.cs index f3c729c93067..32bbbab5c00a 100644 --- a/src/Components/WebView/WebView/src/StaticContentProvider.cs +++ b/src/Components/WebView/WebView/src/StaticContentProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/src/StaticWebAssetsLoader.cs b/src/Components/WebView/WebView/src/StaticWebAssetsLoader.cs index 2c38b5597f9e..f1202ba0a9b6 100644 --- a/src/Components/WebView/WebView/src/StaticWebAssetsLoader.cs +++ b/src/Components/WebView/WebView/src/StaticWebAssetsLoader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Components/WebView/WebView/src/WebViewManager.cs b/src/Components/WebView/WebView/src/WebViewManager.cs index d39ef3b017f7..313550b00e1d 100644 --- a/src/Components/WebView/WebView/src/WebViewManager.cs +++ b/src/Components/WebView/WebView/src/WebViewManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/test/Infrastructure/AssertHelpers.cs b/src/Components/WebView/WebView/test/Infrastructure/AssertHelpers.cs index 1e4b08cc6725..bdb2ecf699ee 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/AssertHelpers.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/AssertHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Components.RenderTree; diff --git a/src/Components/WebView/WebView/test/Infrastructure/ComponentNode.cs b/src/Components/WebView/WebView/test/Infrastructure/ComponentNode.cs index 02b1e91fd8db..d8185a86ed87 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/ComponentNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/ComponentNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Document { diff --git a/src/Components/WebView/WebView/test/Infrastructure/ContainerNode.cs b/src/Components/WebView/WebView/test/Infrastructure/ContainerNode.cs index 0029f1b21b5c..3219ee80acf7 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/ContainerNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/ContainerNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/test/Infrastructure/ElementNode.cs b/src/Components/WebView/WebView/test/Infrastructure/ElementNode.cs index c72ad89dbb70..0d34daee377c 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/ElementNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/ElementNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/test/Infrastructure/LogicalContainerNode.cs b/src/Components/WebView/WebView/test/Infrastructure/LogicalContainerNode.cs index 18d5724f4f27..eb97bb24f683 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/LogicalContainerNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/LogicalContainerNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Document { diff --git a/src/Components/WebView/WebView/test/Infrastructure/MarkupNode.cs b/src/Components/WebView/WebView/test/Infrastructure/MarkupNode.cs index 0c7308be5612..fbebcba2882f 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/MarkupNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/MarkupNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Document { diff --git a/src/Components/WebView/WebView/test/Infrastructure/RootComponentNode.cs b/src/Components/WebView/WebView/test/Infrastructure/RootComponentNode.cs index 6279a4519e43..390ca1193e04 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/RootComponentNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/RootComponentNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Document { diff --git a/src/Components/WebView/WebView/test/Infrastructure/TestDocument.cs b/src/Components/WebView/WebView/test/Infrastructure/TestDocument.cs index ff7552890f80..ebc8fb34f8da 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/TestDocument.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/TestDocument.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/test/Infrastructure/TestFileProvider.cs b/src/Components/WebView/WebView/test/Infrastructure/TestFileProvider.cs index 263bf0f8eaf4..f5b2f36b08d5 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/TestFileProvider.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/TestFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Primitives; diff --git a/src/Components/WebView/WebView/test/Infrastructure/TestNode.cs b/src/Components/WebView/WebView/test/Infrastructure/TestNode.cs index 068194a1ddb2..920129678c32 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/TestNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/TestNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Document { diff --git a/src/Components/WebView/WebView/test/Infrastructure/TestWebViewManager.cs b/src/Components/WebView/WebView/test/Infrastructure/TestWebViewManager.cs index 71fafbf0118f..eba85194ccfb 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/TestWebViewManager.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/TestWebViewManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/test/Infrastructure/TestWebViewServiceCollectionExtensions.cs b/src/Components/WebView/WebView/test/Infrastructure/TestWebViewServiceCollectionExtensions.cs index e6bc70429020..fe525726197b 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/TestWebViewServiceCollectionExtensions.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/TestWebViewServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; diff --git a/src/Components/WebView/WebView/test/Infrastructure/TextNode.cs b/src/Components/WebView/WebView/test/Infrastructure/TextNode.cs index 185abbba6644..2f3d14846cb1 100644 --- a/src/Components/WebView/WebView/test/Infrastructure/TextNode.cs +++ b/src/Components/WebView/WebView/test/Infrastructure/TextNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebView.Document { diff --git a/src/Components/WebView/WebView/test/StaticContentProviderTests.cs b/src/Components/WebView/WebView/test/StaticContentProviderTests.cs index dcfc14063c5d..a818bad55f76 100644 --- a/src/Components/WebView/WebView/test/StaticContentProviderTests.cs +++ b/src/Components/WebView/WebView/test/StaticContentProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/WebView/WebView/test/WebViewManagerTests.cs b/src/Components/WebView/WebView/test/WebViewManagerTests.cs index 5b80aa1e14d0..69890c6fb86a 100644 --- a/src/Components/WebView/WebView/test/WebViewManagerTests.cs +++ b/src/Components/WebView/WebView/test/WebViewManagerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/ConsoleHostRenderer.cs b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/ConsoleHostRenderer.cs index f29a516b1aa7..8cca25affc00 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/ConsoleHostRenderer.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/ConsoleHostRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.ExceptionServices; diff --git a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/NullDispatcher.cs b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/NullDispatcher.cs index bf600ab8f0d5..3957a05576dd 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/NullDispatcher.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/NullDispatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Program.cs index c32f16eb3a30..efa457ed768f 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.CommandLineUtils; using Wasm.Performance.ConsoleHost.Scenarios; diff --git a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/ComponentRenderingScenarioBase.cs b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/ComponentRenderingScenarioBase.cs index 55705c91c2bd..f7355ccdc73d 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/ComponentRenderingScenarioBase.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/ComponentRenderingScenarioBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/GridScenario.cs b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/GridScenario.cs index b40f09b96a18..7f6c33021181 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/GridScenario.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/ConsoleHost/Scenarios/GridScenario.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMeasurement.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMeasurement.cs index 91bcf385f43c..778c01b1dbb0 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMeasurement.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMeasurement.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMetadata.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMetadata.cs index ab98fef891b9..d2785eb471f5 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMetadata.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Wasm.Performance.Driver { diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkOutput.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkOutput.cs index 7a32ce146d58..2ac6930dc1f6 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkOutput.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkOutput.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResult.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResult.cs index 08c3a575108c..f58b6d5876a1 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResult.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResult.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.Collections.Generic; namespace Wasm.Performance.Driver diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResultsStartup.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResultsStartup.cs index 4f4454dc8903..6b69147033ea 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResultsStartup.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkResultsStartup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkScenarioResult.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkScenarioResult.cs index 5311b1a4ade1..7037fb6f59e4 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkScenarioResult.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/BenchmarkScenarioResult.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 Wasm.Performance.Driver { class BenchmarkScenarioResult @@ -21,4 +24,4 @@ public class BenchmarkDescriptor public string Description { get; set; } } } -} \ No newline at end of file +} diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs index 708dc40d0049..37e1bf3138f4 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/Selenium.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/Selenium.cs index 0752937771df..27e3be83220d 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/Selenium.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/Selenium.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/benchmarkapps/Wasm.Performance/TestApp/BenchmarkEvent.cs b/src/Components/benchmarkapps/Wasm.Performance/TestApp/BenchmarkEvent.cs index 769f99eda4d3..ab62e1857e1d 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/TestApp/BenchmarkEvent.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/TestApp/BenchmarkEvent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.JSInterop; diff --git a/src/Components/benchmarkapps/Wasm.Performance/TestApp/Person.cs b/src/Components/benchmarkapps/Wasm.Performance/TestApp/Person.cs index 53b028c14dda..cb5b75403428 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/TestApp/Person.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/TestApp/Person.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/benchmarkapps/Wasm.Performance/TestApp/PersonJsonContext.cs b/src/Components/benchmarkapps/Wasm.Performance/TestApp/PersonJsonContext.cs index 12e6a1df5910..0d854ab21b80 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/TestApp/PersonJsonContext.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/TestApp/PersonJsonContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json.Serialization; diff --git a/src/Components/benchmarkapps/Wasm.Performance/TestApp/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/TestApp/Program.cs index a8008a4ac3e9..d7cd275b05e7 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/TestApp/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/TestApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; diff --git a/src/Components/benchmarkapps/Wasm.Performance/TestApp/WasmMemory.cs b/src/Components/benchmarkapps/Wasm.Performance/TestApp/WasmMemory.cs index 92579d127a22..e82d18d66aee 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/TestApp/WasmMemory.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/TestApp/WasmMemory.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/Components/test/E2ETest/Infrastructure/AssemblyInfo.AssemblyFixtures.cs b/src/Components/test/E2ETest/Infrastructure/AssemblyInfo.AssemblyFixtures.cs index d7e5921fef32..666c370a19a8 100644 --- a/src/Components/test/E2ETest/Infrastructure/AssemblyInfo.AssemblyFixtures.cs +++ b/src/Components/test/E2ETest/Infrastructure/AssemblyInfo.AssemblyFixtures.cs @@ -1,5 +1,5 @@ -// 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. +// 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.E2ETesting; using Microsoft.AspNetCore.Testing; diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetEnvironment.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetEnvironment.cs index 54a76e303d2a..e53519a841be 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetEnvironment.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures { diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs index abb11bc748f8..a595f268495f 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs index c0b1c6d51a3e..76891c2be229 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures { diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BlazorWasmTestAppFixture.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BlazorWasmTestAppFixture.cs index 102cf4d1ba19..85d0d69e3bfe 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BlazorWasmTestAppFixture.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/BlazorWasmTestAppFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.E2ETesting; diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ServerFixture.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ServerFixture.cs index 57234090223f..af308b97d6bb 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ServerFixture.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs index b8efba02f9b8..7f122eba57a0 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/WebHostServerFixture.cs b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/WebHostServerFixture.cs index a29f47315284..7e63222edb0e 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerFixtures/WebHostServerFixture.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerFixtures/WebHostServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.AspNetCore.Hosting.Server.Features; diff --git a/src/Components/test/E2ETest/Infrastructure/ServerTestBase.cs b/src/Components/test/E2ETest/Infrastructure/ServerTestBase.cs index df1dc8c62f2f..62ef499eada3 100644 --- a/src/Components/test/E2ETest/Infrastructure/ServerTestBase.cs +++ b/src/Components/test/E2ETest/Infrastructure/ServerTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure.ServerFixtures; using Microsoft.AspNetCore.E2ETesting; diff --git a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppAuthenticationWebDriverExtensions.cs b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppAuthenticationWebDriverExtensions.cs index 938e8508d1db..518ce4e3203c 100644 --- a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppAuthenticationWebDriverExtensions.cs +++ b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppAuthenticationWebDriverExtensions.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 Microsoft.AspNetCore.E2ETesting; diff --git a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs index 77c35d4fc601..954942755d32 100644 --- a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.cs +++ b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/BasicTestAppWebDriverExtensions.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.E2ETesting; using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; diff --git a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs index a77ca1edf4b7..0d0067f6c1c2 100644 --- a/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.cs +++ b/src/Components/test/E2ETest/Infrastructure/WebDriverExtensions/WebDriverExtensions.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 OpenQA.Selenium; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs b/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs index 0f2c758e8ddf..0665d6346d23 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/CircuitGracefulTerminationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ComponentHubInvalidEventTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ComponentHubInvalidEventTest.cs index ae83cdb286d3..17efc3f83755 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ComponentHubInvalidEventTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ComponentHubInvalidEventTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ComponentWithParametersTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ComponentWithParametersTest.cs index e8672e185763..0540d8e8dd84 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ComponentWithParametersTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ComponentWithParametersTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/HeadModificationPrerenderingTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/HeadModificationPrerenderingTest.cs index 7834a74cba7b..bb5c89c5b8cf 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/HeadModificationPrerenderingTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/HeadModificationPrerenderingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/HotReloadTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/HotReloadTest.cs index 60eacf8b9894..2dcd59537356 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/HotReloadTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/HotReloadTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/IgnitorTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/IgnitorTest.cs index bb1a943fbb64..f06c98f811c3 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/IgnitorTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/IgnitorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/InteropReliabilityTests.cs b/src/Components/test/E2ETest/ServerExecutionTests/InteropReliabilityTests.cs index 3e68c7ee3fe9..933af3d889a3 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/InteropReliabilityTests.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/InteropReliabilityTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/MultipleRootComponentsTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/MultipleRootComponentsTest.cs index 74a5f5f975f0..14bcab524204 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/MultipleRootComponentsTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/MultipleRootComponentsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/PrerenderingTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/PrerenderingTest.cs index a1604789bb4a..8036f0eee7e0 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/PrerenderingTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/PrerenderingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ProtectedBrowserStorageUsageTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ProtectedBrowserStorageUsageTest.cs index 962233606c54..9b14f255c2f0 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ProtectedBrowserStorageUsageTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ProtectedBrowserStorageUsageTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/RemoteRendererBufferLimitTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/RemoteRendererBufferLimitTest.cs index 2b7970c9a215..375b386ff577 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/RemoteRendererBufferLimitTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/RemoteRendererBufferLimitTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerAuthTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerAuthTest.cs index 146edddb84b8..bc08d5ee93b8 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerAuthTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerAuthTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerComponentRenderingTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerComponentRenderingTest.cs index d08fb01a34ce..082ec5f1d9ee 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerComponentRenderingTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerComponentRenderingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerErrorNotificationTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerErrorNotificationTest.cs index 77b7da75d65a..318c057fb00e 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerErrorNotificationTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerErrorNotificationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerEventTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerEventTest.cs index ee74f4a60efd..baa99a95006f 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerEventTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerEventTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerExecutionTestExtensions.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerExecutionTestExtensions.cs index 9d13f5e280f8..9a44aa5f35de 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerExecutionTestExtensions.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerExecutionTestExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure.ServerFixtures; using TestServer; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerGlobalizationTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerGlobalizationTest.cs index 0dae5ec04342..c963a4f37f31 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerGlobalizationTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerGlobalizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestDefaultExceptionsBehavior.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestDefaultExceptionsBehavior.cs index 45a4c69d0ca9..2ba799a3bb9c 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestDefaultExceptionsBehavior.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestDefaultExceptionsBehavior.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestJsInvocationsTimeoutsBehavior.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestJsInvocationsTimeoutsBehavior.cs index 60fd6aaeef86..06b9cb361b28 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestJsInvocationsTimeoutsBehavior.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerInteropTestJsInvocationsTimeoutsBehavior.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using BasicTestApp; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerLocalizationTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerLocalizationTest.cs index 4246a592a4a9..c528e84b79a2 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerLocalizationTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerLocalizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/ServerReconnectionTest.cs b/src/Components/test/E2ETest/ServerExecutionTests/ServerReconnectionTest.cs index 6615244cd5b8..8b109f30f0bf 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/ServerReconnectionTest.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/ServerReconnectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading; diff --git a/src/Components/test/E2ETest/ServerExecutionTests/TestSubclasses.cs b/src/Components/test/E2ETest/ServerExecutionTests/TestSubclasses.cs index 6646b1f53751..6a9971a8a09c 100644 --- a/src/Components/test/E2ETest/ServerExecutionTests/TestSubclasses.cs +++ b/src/Components/test/E2ETest/ServerExecutionTests/TestSubclasses.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/TestJsonSerializerOptionsProvider.cs b/src/Components/test/E2ETest/TestJsonSerializerOptionsProvider.cs index 2f893e85ea1a..de0a5cadbc41 100644 --- a/src/Components/test/E2ETest/TestJsonSerializerOptionsProvider.cs +++ b/src/Components/test/E2ETest/TestJsonSerializerOptionsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; diff --git a/src/Components/test/E2ETest/Tests/AuthTest.cs b/src/Components/test/E2ETest/Tests/AuthTest.cs index 6e38c1d47107..5394b22168a6 100644 --- a/src/Components/test/E2ETest/Tests/AuthTest.cs +++ b/src/Components/test/E2ETest/Tests/AuthTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/BinaryHttpClientTest.cs b/src/Components/test/E2ETest/Tests/BinaryHttpClientTest.cs index b11e62c67651..b1bfa118e3e2 100644 --- a/src/Components/test/E2ETest/Tests/BinaryHttpClientTest.cs +++ b/src/Components/test/E2ETest/Tests/BinaryHttpClientTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/BindTest.cs b/src/Components/test/E2ETest/Tests/BindTest.cs index f47ab660b683..656405413d98 100644 --- a/src/Components/test/E2ETest/Tests/BindTest.cs +++ b/src/Components/test/E2ETest/Tests/BindTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/E2ETest/Tests/BootResourceCachingTest.cs b/src/Components/test/E2ETest/Tests/BootResourceCachingTest.cs index 27eabeffdcef..f6b8f2b53247 100644 --- a/src/Components/test/E2ETest/Tests/BootResourceCachingTest.cs +++ b/src/Components/test/E2ETest/Tests/BootResourceCachingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/CascadingValueTest.cs b/src/Components/test/E2ETest/Tests/CascadingValueTest.cs index 5b4ee56d03da..4cd84cde3dbb 100644 --- a/src/Components/test/E2ETest/Tests/CascadingValueTest.cs +++ b/src/Components/test/E2ETest/Tests/CascadingValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/CircuitTests.cs b/src/Components/test/E2ETest/Tests/CircuitTests.cs index 1c52fbb0576c..39ab552af5a5 100644 --- a/src/Components/test/E2ETest/Tests/CircuitTests.cs +++ b/src/Components/test/E2ETest/Tests/CircuitTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading; @@ -80,7 +80,7 @@ public void ComponentDisposeMethodThrowsExceptionTerminatesTheCircuit() [Fact] public void OnLocationChanged_ReportsErrorForExceptionInUserCode() { - Browser.MountTestComponent(); + Browser.MountTestComponent(); var targetButton = Browser.Exists(By.Id("navigate-to-page")); targetButton.Click(); diff --git a/src/Components/test/E2ETest/Tests/ClientRenderingMultpleComponentsTest.cs b/src/Components/test/E2ETest/Tests/ClientRenderingMultpleComponentsTest.cs index c55ce0bfe226..a92834e35e1a 100644 --- a/src/Components/test/E2ETest/Tests/ClientRenderingMultpleComponentsTest.cs +++ b/src/Components/test/E2ETest/Tests/ClientRenderingMultpleComponentsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/ClientSideHostingTest.cs b/src/Components/test/E2ETest/Tests/ClientSideHostingTest.cs index f54d2c3aab9f..dc78bb730fe3 100644 --- a/src/Components/test/E2ETest/Tests/ClientSideHostingTest.cs +++ b/src/Components/test/E2ETest/Tests/ClientSideHostingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/ComponentRenderingTest.cs b/src/Components/test/E2ETest/Tests/ComponentRenderingTest.cs index fd927a80efcb..89239e7f5f1e 100644 --- a/src/Components/test/E2ETest/Tests/ComponentRenderingTest.cs +++ b/src/Components/test/E2ETest/Tests/ComponentRenderingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/Tests/ComponentRenderingTestBase.cs b/src/Components/test/E2ETest/Tests/ComponentRenderingTestBase.cs index 67b2563ea22b..388a3c3763d6 100644 --- a/src/Components/test/E2ETest/Tests/ComponentRenderingTestBase.cs +++ b/src/Components/test/E2ETest/Tests/ComponentRenderingTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/DownloadAnchorTest.cs b/src/Components/test/E2ETest/Tests/DownloadAnchorTest.cs index f523921e07b7..a07278f05c3a 100644 --- a/src/Components/test/E2ETest/Tests/DownloadAnchorTest.cs +++ b/src/Components/test/E2ETest/Tests/DownloadAnchorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -27,7 +27,7 @@ public DownloadAnchorTest( ToggleExecutionModeServerFixture serverFixture, ITestOutputHelper output) : base(browserFixture, serverFixture.WithServerExecution(), output) - { + { } [Fact] diff --git a/src/Components/test/E2ETest/Tests/DynamicComponentRenderingTest.cs b/src/Components/test/E2ETest/Tests/DynamicComponentRenderingTest.cs index 7dcb8dd27e9a..04010269910d 100644 --- a/src/Components/test/E2ETest/Tests/DynamicComponentRenderingTest.cs +++ b/src/Components/test/E2ETest/Tests/DynamicComponentRenderingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/ErrorBoundaryTest.cs b/src/Components/test/E2ETest/Tests/ErrorBoundaryTest.cs index c2fa2980002b..53170e160837 100644 --- a/src/Components/test/E2ETest/Tests/ErrorBoundaryTest.cs +++ b/src/Components/test/E2ETest/Tests/ErrorBoundaryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/ErrorNotificationTest.cs b/src/Components/test/E2ETest/Tests/ErrorNotificationTest.cs index 1dedce23c1ed..e4314f533c9b 100644 --- a/src/Components/test/E2ETest/Tests/ErrorNotificationTest.cs +++ b/src/Components/test/E2ETest/Tests/ErrorNotificationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/EventBubblingTest.cs b/src/Components/test/E2ETest/Tests/EventBubblingTest.cs index 7c9d6465765c..115c0faf170f 100644 --- a/src/Components/test/E2ETest/Tests/EventBubblingTest.cs +++ b/src/Components/test/E2ETest/Tests/EventBubblingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/EventCallbackTest.cs b/src/Components/test/E2ETest/Tests/EventCallbackTest.cs index a985d1532210..907679d58ba8 100644 --- a/src/Components/test/E2ETest/Tests/EventCallbackTest.cs +++ b/src/Components/test/E2ETest/Tests/EventCallbackTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; diff --git a/src/Components/test/E2ETest/Tests/EventCustomArgsTest.cs b/src/Components/test/E2ETest/Tests/EventCustomArgsTest.cs index ad5ffcadde4e..a70c84379329 100644 --- a/src/Components/test/E2ETest/Tests/EventCustomArgsTest.cs +++ b/src/Components/test/E2ETest/Tests/EventCustomArgsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/EventTest.cs b/src/Components/test/E2ETest/Tests/EventTest.cs index 15f0593e8b81..2afaecd3b0f7 100644 --- a/src/Components/test/E2ETest/Tests/EventTest.cs +++ b/src/Components/test/E2ETest/Tests/EventTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; diff --git a/src/Components/test/E2ETest/Tests/FormsTest.cs b/src/Components/test/E2ETest/Tests/FormsTest.cs index 235000da0d1e..df8f3065e3bf 100644 --- a/src/Components/test/E2ETest/Tests/FormsTest.cs +++ b/src/Components/test/E2ETest/Tests/FormsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/GlobalizationTest.cs b/src/Components/test/E2ETest/Tests/GlobalizationTest.cs index 3a52a427484f..296155172baf 100644 --- a/src/Components/test/E2ETest/Tests/GlobalizationTest.cs +++ b/src/Components/test/E2ETest/Tests/GlobalizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/E2ETest/Tests/HeadModificationTest.cs b/src/Components/test/E2ETest/Tests/HeadModificationTest.cs index 327fa5a8e179..2ec264f99633 100644 --- a/src/Components/test/E2ETest/Tests/HeadModificationTest.cs +++ b/src/Components/test/E2ETest/Tests/HeadModificationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest; diff --git a/src/Components/test/E2ETest/Tests/HostedInAlternativeBasePathTest.cs b/src/Components/test/E2ETest/Tests/HostedInAlternativeBasePathTest.cs index 072ad27b28ed..1c31a4300825 100644 --- a/src/Components/test/E2ETest/Tests/HostedInAlternativeBasePathTest.cs +++ b/src/Components/test/E2ETest/Tests/HostedInAlternativeBasePathTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/Tests/HostedInAspNetTest.cs b/src/Components/test/E2ETest/Tests/HostedInAspNetTest.cs index dda8109fe65a..11710c5bbb62 100644 --- a/src/Components/test/E2ETest/Tests/HostedInAspNetTest.cs +++ b/src/Components/test/E2ETest/Tests/HostedInAspNetTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/Tests/HttpClientTest.cs b/src/Components/test/E2ETest/Tests/HttpClientTest.cs index 225d25be109f..5a19962b71ca 100644 --- a/src/Components/test/E2ETest/Tests/HttpClientTest.cs +++ b/src/Components/test/E2ETest/Tests/HttpClientTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/InputActionsTest.cs b/src/Components/test/E2ETest/Tests/InputActionsTest.cs index fc4a67b8db21..5382e1d32062 100644 --- a/src/Components/test/E2ETest/Tests/InputActionsTest.cs +++ b/src/Components/test/E2ETest/Tests/InputActionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using BasicTestApp.FormsTest; diff --git a/src/Components/test/E2ETest/Tests/InputFileTest.cs b/src/Components/test/E2ETest/Tests/InputFileTest.cs index 99d541ba9d2c..8c0dac0b0e23 100644 --- a/src/Components/test/E2ETest/Tests/InputFileTest.cs +++ b/src/Components/test/E2ETest/Tests/InputFileTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/E2ETest/Tests/InteropTest.cs b/src/Components/test/E2ETest/Tests/InteropTest.cs index e89bc7f2ab83..5181a5b99fac 100644 --- a/src/Components/test/E2ETest/Tests/InteropTest.cs +++ b/src/Components/test/E2ETest/Tests/InteropTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/JSRootComponentsTest.cs b/src/Components/test/E2ETest/Tests/JSRootComponentsTest.cs index 63e2b523fb55..21092f0677b3 100644 --- a/src/Components/test/E2ETest/Tests/JSRootComponentsTest.cs +++ b/src/Components/test/E2ETest/Tests/JSRootComponentsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; diff --git a/src/Components/test/E2ETest/Tests/JsonSerializationTest.cs b/src/Components/test/E2ETest/Tests/JsonSerializationTest.cs index 92f980b51ac4..d4de2c819848 100644 --- a/src/Components/test/E2ETest/Tests/JsonSerializationTest.cs +++ b/src/Components/test/E2ETest/Tests/JsonSerializationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; diff --git a/src/Components/test/E2ETest/Tests/KeyTest.cs b/src/Components/test/E2ETest/Tests/KeyTest.cs index 71dae5c29032..3ea074605102 100644 --- a/src/Components/test/E2ETest/Tests/KeyTest.cs +++ b/src/Components/test/E2ETest/Tests/KeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/MultipleHostedAppTest.cs b/src/Components/test/E2ETest/Tests/MultipleHostedAppTest.cs index 906b78791a51..1825344f292f 100644 --- a/src/Components/test/E2ETest/Tests/MultipleHostedAppTest.cs +++ b/src/Components/test/E2ETest/Tests/MultipleHostedAppTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/Tests/PerformanceTest.cs b/src/Components/test/E2ETest/Tests/PerformanceTest.cs index 82495418a01e..d097501c2204 100644 --- a/src/Components/test/E2ETest/Tests/PerformanceTest.cs +++ b/src/Components/test/E2ETest/Tests/PerformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/ProtectedBrowserStorageInjectionTest.cs b/src/Components/test/E2ETest/Tests/ProtectedBrowserStorageInjectionTest.cs index 7b86d06d7147..f15bc696af59 100644 --- a/src/Components/test/E2ETest/Tests/ProtectedBrowserStorageInjectionTest.cs +++ b/src/Components/test/E2ETest/Tests/ProtectedBrowserStorageInjectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/RoutingTest.cs b/src/Components/test/E2ETest/Tests/RoutingTest.cs index b97a1750c841..75cfa2f1e45f 100644 --- a/src/Components/test/E2ETest/Tests/RoutingTest.cs +++ b/src/Components/test/E2ETest/Tests/RoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/SaveStateTest.cs b/src/Components/test/E2ETest/Tests/SaveStateTest.cs index 3ff7098b96fe..76a991e1b42c 100644 --- a/src/Components/test/E2ETest/Tests/SaveStateTest.cs +++ b/src/Components/test/E2ETest/Tests/SaveStateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/Tests/SignalRClientTest.cs b/src/Components/test/E2ETest/Tests/SignalRClientTest.cs index c000269ea390..5c18c27d6b53 100644 --- a/src/Components/test/E2ETest/Tests/SignalRClientTest.cs +++ b/src/Components/test/E2ETest/Tests/SignalRClientTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs b/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs index 2bc38a1c1a23..7fdf52465abc 100644 --- a/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs +++ b/src/Components/test/E2ETest/Tests/StandaloneAppTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.E2ETest.Infrastructure; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures; diff --git a/src/Components/test/E2ETest/Tests/StartupErrorNotificationTest.cs b/src/Components/test/E2ETest/Tests/StartupErrorNotificationTest.cs index 7fb346c5fa03..e368e62f1e66 100644 --- a/src/Components/test/E2ETest/Tests/StartupErrorNotificationTest.cs +++ b/src/Components/test/E2ETest/Tests/StartupErrorNotificationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/SvgTest.cs b/src/Components/test/E2ETest/Tests/SvgTest.cs index 4765efc2a9dd..701f6e64f8bc 100644 --- a/src/Components/test/E2ETest/Tests/SvgTest.cs +++ b/src/Components/test/E2ETest/Tests/SvgTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/VirtualizationTest.cs b/src/Components/test/E2ETest/Tests/VirtualizationTest.cs index 1dc4201ba18a..e8dd8e3f8a79 100644 --- a/src/Components/test/E2ETest/Tests/VirtualizationTest.cs +++ b/src/Components/test/E2ETest/Tests/VirtualizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Linq; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyAuthenticationTests.cs b/src/Components/test/E2ETest/Tests/WebAssemblyAuthenticationTests.cs index b3c1d12accc0..2b084c404edc 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyAuthenticationTests.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyAuthenticationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationHostedTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationHostedTest.cs index 62941d7c66ed..e9039a1066d1 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationHostedTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationHostedTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationTest.cs index 107d86e51a3d..69df149b3496 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyConfigurationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyGlobalizationTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyGlobalizationTest.cs index e78d63607901..5d7e9bc4ac4d 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyGlobalizationTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyGlobalizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyICUShardingTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyICUShardingTest.cs index 704427cea0b9..291bb3e8d69f 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyICUShardingTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyICUShardingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs index 6cec37dfc6e4..aa5b2e38167b 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyLocalizationTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyLocalizationTest.cs index ea2994359542..0ad0e537c184 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyLocalizationTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyLocalizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicTestApp; using Microsoft.AspNetCore.Components.E2ETest.Infrastructure; diff --git a/src/Components/test/E2ETest/Tests/WebAssemblyLoggingTest.cs b/src/Components/test/E2ETest/Tests/WebAssemblyLoggingTest.cs index eef9388aa7e3..ef69e50f88a5 100644 --- a/src/Components/test/E2ETest/Tests/WebAssemblyLoggingTest.cs +++ b/src/Components/test/E2ETest/Tests/WebAssemblyLoggingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BasicTestApp; diff --git a/src/Components/test/E2ETest/package.json b/src/Components/test/E2ETest/package.json index 607937be210d..9c9676c98122 100644 --- a/src/Components/test/E2ETest/package.json +++ b/src/Components/test/E2ETest/package.json @@ -10,7 +10,7 @@ "sauce": "ts-node ./scripts/sauce.ts" }, "author": "", - "license": "Apache-2.0", + "license": "MIT", "dependencies": { "sauce-connect-launcher": "^1.3.1", "selenium-standalone": "^6.17.0" diff --git a/src/Components/test/E2ETestMigration/Infrastructure/PlaywrightTestBase.cs b/src/Components/test/E2ETestMigration/Infrastructure/PlaywrightTestBase.cs index 106d6b5c9941..af400580a761 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/PlaywrightTestBase.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/PlaywrightTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetEnvironment.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetEnvironment.cs index 54a76e303d2a..e53519a841be 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetEnvironment.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures { diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs index a4e476aa6cf7..c7f36123aca0 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/AspNetSiteServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs index c0b1c6d51a3e..76891c2be229 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/BasicTestAppServerSiteFixture.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures { diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/DevHostServerFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/DevHostServerFixture.cs index a08fad650e2b..19ae7ec1da98 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/DevHostServerFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/DevHostServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Hosting; using System.Collections.Generic; diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ServerFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ServerFixture.cs index b42cc6a7ea09..5ea329503a09 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ServerFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -62,7 +62,7 @@ public static string FindSampleOrTestSitePath(string projectName) } return path; } - + var projects = _projects.Value; if (projects.TryGetValue(projectName, out var dir)) { diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/StaticSiteServerFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/StaticSiteServerFixture.cs index c01d5c826434..c00345daf5a8 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/StaticSiteServerFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/StaticSiteServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs index 2088ddf53821..9297684479f7 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/ToggleExecutionModeServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/WebHostServerFixture.cs b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/WebHostServerFixture.cs index a29f47315284..7e63222edb0e 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/WebHostServerFixture.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/ServerFixtures/WebHostServerFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.AspNetCore.Hosting.Server.Features; diff --git a/src/Components/test/E2ETestMigration/Infrastructure/TestOutputLogger.cs b/src/Components/test/E2ETestMigration/Infrastructure/TestOutputLogger.cs index a4d67a231d20..732e9ebb094e 100644 --- a/src/Components/test/E2ETestMigration/Infrastructure/TestOutputLogger.cs +++ b/src/Components/test/E2ETestMigration/Infrastructure/TestOutputLogger.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.Extensions.Logging; diff --git a/src/Components/test/E2ETestMigration/TestJsonSerializerOptionsProvider.cs b/src/Components/test/E2ETestMigration/TestJsonSerializerOptionsProvider.cs index 2f893e85ea1a..de0a5cadbc41 100644 --- a/src/Components/test/E2ETestMigration/TestJsonSerializerOptionsProvider.cs +++ b/src/Components/test/E2ETestMigration/TestJsonSerializerOptionsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; diff --git a/src/Components/test/E2ETestMigration/Tests/BinaryHttpClientTest.cs b/src/Components/test/E2ETestMigration/Tests/BinaryHttpClientTest.cs index 8a4a683b1f73..56fee4c9ce3c 100644 --- a/src/Components/test/E2ETestMigration/Tests/BinaryHttpClientTest.cs +++ b/src/Components/test/E2ETestMigration/Tests/BinaryHttpClientTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/BasicTestApp/AuthTest/ClientSideAuthenticationStateData.cs b/src/Components/test/testassets/BasicTestApp/AuthTest/ClientSideAuthenticationStateData.cs index ad8253dd4013..e1d0dca90305 100644 --- a/src/Components/test/testassets/BasicTestApp/AuthTest/ClientSideAuthenticationStateData.cs +++ b/src/Components/test/testassets/BasicTestApp/AuthTest/ClientSideAuthenticationStateData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Components/test/testassets/BasicTestApp/AuthTest/ServerAuthenticationStateProvider.cs b/src/Components/test/testassets/BasicTestApp/AuthTest/ServerAuthenticationStateProvider.cs index 4f61a171b333..a00fc1b0bcee 100644 --- a/src/Components/test/testassets/BasicTestApp/AuthTest/ServerAuthenticationStateProvider.cs +++ b/src/Components/test/testassets/BasicTestApp/AuthTest/ServerAuthenticationStateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/BasicTestApp/BindMethods.cs b/src/Components/test/testassets/BasicTestApp/BindMethods.cs index 78ec6cdd356a..117962b9cae9 100644 --- a/src/Components/test/testassets/BasicTestApp/BindMethods.cs +++ b/src/Components/test/testassets/BasicTestApp/BindMethods.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 Microsoft.AspNetCore.Components { // This is a temporary workaround for the fact that public previews of VS look for diff --git a/src/Components/test/testassets/BasicTestApp/CascadingValueTest/CascadingValueTypes.cs b/src/Components/test/testassets/BasicTestApp/CascadingValueTest/CascadingValueTypes.cs index e9d08a06cde0..ffaa7c038d66 100644 --- a/src/Components/test/testassets/BasicTestApp/CascadingValueTest/CascadingValueTypes.cs +++ b/src/Components/test/testassets/BasicTestApp/CascadingValueTest/CascadingValueTypes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicTestApp.CascadingValueTest { diff --git a/src/Components/test/testassets/BasicTestApp/EventCustomArgsTypes.cs b/src/Components/test/testassets/BasicTestApp/EventCustomArgsTypes.cs index e2c06acc152a..505c5d2bae4c 100644 --- a/src/Components/test/testassets/BasicTestApp/EventCustomArgsTypes.cs +++ b/src/Components/test/testassets/BasicTestApp/EventCustomArgsTypes.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.AspNetCore.Components; using Microsoft.JSInterop; diff --git a/src/Components/test/testassets/BasicTestApp/FormsTest/CustomFieldCssClassProvider.cs b/src/Components/test/testassets/BasicTestApp/FormsTest/CustomFieldCssClassProvider.cs index bee221d307e9..9cbc501b2b9f 100644 --- a/src/Components/test/testassets/BasicTestApp/FormsTest/CustomFieldCssClassProvider.cs +++ b/src/Components/test/testassets/BasicTestApp/FormsTest/CustomFieldCssClassProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/ByteArrayInterop.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/ByteArrayInterop.cs index 9e835567e54b..ebf087246780 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/ByteArrayInterop.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/ByteArrayInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.JSInterop; diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/ComplexParameter.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/ComplexParameter.cs index 726baf24f26e..41238ac5c2a7 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/ComplexParameter.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/ComplexParameter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicTestApp.InteropTest { diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/InteropStruct.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/InteropStruct.cs index c003cb3f6b91..d61002d51083 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/InteropStruct.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/InteropStruct.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.Runtime.InteropServices; namespace BasicTestApp.InteropTest diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/JSStreamReferenceInterop.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/JSStreamReferenceInterop.cs index c47a07557f09..bc214161f6a6 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/JSStreamReferenceInterop.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/JSStreamReferenceInterop.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text.Json.Serialization; diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/JavaScriptInterop.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/JavaScriptInterop.cs index 55fc6e8fc679..52472bf64b36 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/JavaScriptInterop.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/JavaScriptInterop.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; @@ -434,7 +434,7 @@ public static string InvokeDisposedJSObjectReferenceException(IJSInProcessObject { jsObjectReference.Invoke("noop"); return "No exception thrown"; - } + } catch (JSException e) { return e.Message; @@ -448,7 +448,7 @@ public static async Task InvokeDisposedJSObjectReferenceExceptionAsync(I { await jsObjectReference.InvokeVoidAsync("noop"); return "No exception thrown"; - } + } catch (JSException e) { return e.Message; diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/Segment.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/Segment.cs index 09c9cf282e0b..05b863e95e82 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/Segment.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/Segment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicTestApp.InteropTest { diff --git a/src/Components/test/testassets/BasicTestApp/InteropTest/TestDTO.cs b/src/Components/test/testassets/BasicTestApp/InteropTest/TestDTO.cs index 04b3462456a1..4b6c456244ac 100644 --- a/src/Components/test/testassets/BasicTestApp/InteropTest/TestDTO.cs +++ b/src/Components/test/testassets/BasicTestApp/InteropTest/TestDTO.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicTestApp.InteropTest { diff --git a/src/Components/test/testassets/BasicTestApp/PrependMessageLoggerProvider.cs b/src/Components/test/testassets/BasicTestApp/PrependMessageLoggerProvider.cs index d339cde7915e..0de12de17e89 100644 --- a/src/Components/test/testassets/BasicTestApp/PrependMessageLoggerProvider.cs +++ b/src/Components/test/testassets/BasicTestApp/PrependMessageLoggerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/BasicTestApp/PreserveStateService.cs b/src/Components/test/testassets/BasicTestApp/PreserveStateService.cs index 6a0a5307c817..12b983faaeed 100644 --- a/src/Components/test/testassets/BasicTestApp/PreserveStateService.cs +++ b/src/Components/test/testassets/BasicTestApp/PreserveStateService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/BasicTestApp/Program.cs b/src/Components/test/testassets/BasicTestApp/Program.cs index 21df7c71e5f4..7127688e06da 100644 --- a/src/Components/test/testassets/BasicTestApp/Program.cs +++ b/src/Components/test/testassets/BasicTestApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/JSInterop.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/JSInterop.cs index 628e0a5dcab0..9d9439dd4cbf 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/JSInterop.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/JSInterop.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.JSInterop; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingAttachComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingAttachComponent.cs index 598ce7aadcac..2e7889345b9f 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingAttachComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingAttachComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingConstructorComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingConstructorComponent.cs index 0101296c761d..79914968077f 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingConstructorComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingConstructorComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingDisposeComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingDisposeComponent.cs index 1d52b03fa7fd..618d22a8976a 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingDisposeComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingDisposeComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderAsyncComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderAsyncComponent.cs index ab1c4547791c..b98e21ad4669 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderAsyncComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderAsyncComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderSyncComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderSyncComponent.cs index 3ddcd2ddf370..e84a2617dc63 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderSyncComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingOnAfterRenderSyncComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingRenderComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingRenderComponent.cs index 9dcb1056ec1a..69bfbcf90ce4 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingRenderComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingRenderComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersAsyncComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersAsyncComponent.cs index 09cd9269fbde..4cec31fccf53 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersAsyncComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersAsyncComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersSyncComponent.cs b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersSyncComponent.cs index 83f46d522aba..353fc00c5efc 100644 --- a/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersSyncComponent.cs +++ b/src/Components/test/testassets/BasicTestApp/ServerReliability/ThrowingSetParametersSyncComponent.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.Components; diff --git a/src/Components/test/testassets/BasicTestApp/TestJsonSerializerOptionsProvider.cs b/src/Components/test/testassets/BasicTestApp/TestJsonSerializerOptionsProvider.cs index 5dd50878fbfb..81c6aa8fe074 100644 --- a/src/Components/test/testassets/BasicTestApp/TestJsonSerializerOptionsProvider.cs +++ b/src/Components/test/testassets/BasicTestApp/TestJsonSerializerOptionsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; diff --git a/src/Components/test/testassets/ComponentsApp.App/WeatherForecast.cs b/src/Components/test/testassets/ComponentsApp.App/WeatherForecast.cs index e13884fac83a..9aa2e839c390 100644 --- a/src/Components/test/testassets/ComponentsApp.App/WeatherForecast.cs +++ b/src/Components/test/testassets/ComponentsApp.App/WeatherForecast.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace ComponentsApp { diff --git a/src/Components/test/testassets/ComponentsApp.App/WeatherForecastService.cs b/src/Components/test/testassets/ComponentsApp.App/WeatherForecastService.cs index 16808011bd83..c6efe67ac5c9 100644 --- a/src/Components/test/testassets/ComponentsApp.App/WeatherForecastService.cs +++ b/src/Components/test/testassets/ComponentsApp.App/WeatherForecastService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/ComponentsApp.Server/DefaultWeatherForecastService.cs b/src/Components/test/testassets/ComponentsApp.Server/DefaultWeatherForecastService.cs index c110daf3b649..1c41b28e8268 100644 --- a/src/Components/test/testassets/ComponentsApp.Server/DefaultWeatherForecastService.cs +++ b/src/Components/test/testassets/ComponentsApp.Server/DefaultWeatherForecastService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Components/test/testassets/ComponentsApp.Server/LoggingCircuitHandler.cs b/src/Components/test/testassets/ComponentsApp.Server/LoggingCircuitHandler.cs index 1a607aac6751..fabb12531737 100644 --- a/src/Components/test/testassets/ComponentsApp.Server/LoggingCircuitHandler.cs +++ b/src/Components/test/testassets/ComponentsApp.Server/LoggingCircuitHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/ComponentsApp.Server/Program.cs b/src/Components/test/testassets/ComponentsApp.Server/Program.cs index 20209d27db90..747c1c32b9ed 100644 --- a/src/Components/test/testassets/ComponentsApp.Server/Program.cs +++ b/src/Components/test/testassets/ComponentsApp.Server/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; using Microsoft.AspNetCore.Hosting; diff --git a/src/Components/test/testassets/ComponentsApp.Server/Startup.cs b/src/Components/test/testassets/ComponentsApp.Server/Startup.cs index 4afe6012d238..257721f0fbaf 100644 --- a/src/Components/test/testassets/ComponentsApp.Server/Startup.cs +++ b/src/Components/test/testassets/ComponentsApp.Server/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.Server.Circuits; diff --git a/src/Components/test/testassets/GlobalizationWasmApp/Program.cs b/src/Components/test/testassets/GlobalizationWasmApp/Program.cs index 025890394ff2..eeec5b34d652 100644 --- a/src/Components/test/testassets/GlobalizationWasmApp/Program.cs +++ b/src/Components/test/testassets/GlobalizationWasmApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/testassets/TestContentPackage/MyPrompt.cs b/src/Components/test/testassets/TestContentPackage/MyPrompt.cs index fa5ee44ecd30..b8d8801f34fe 100644 --- a/src/Components/test/testassets/TestContentPackage/MyPrompt.cs +++ b/src/Components/test/testassets/TestContentPackage/MyPrompt.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.JSInterop; using System.Threading.Tasks; diff --git a/src/Components/test/testassets/TestServer/AuthenticationStartup.cs b/src/Components/test/testassets/TestServer/AuthenticationStartup.cs index 61e81dff5dff..7232497f96b1 100644 --- a/src/Components/test/testassets/TestServer/AuthenticationStartup.cs +++ b/src/Components/test/testassets/TestServer/AuthenticationStartup.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.Globalization; using Microsoft.AspNetCore.Authentication.Cookies; diff --git a/src/Components/test/testassets/TestServer/ChatHub.cs b/src/Components/test/testassets/TestServer/ChatHub.cs index eaef0eb927a3..1f39a67ef9ff 100644 --- a/src/Components/test/testassets/TestServer/ChatHub.cs +++ b/src/Components/test/testassets/TestServer/ChatHub.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/TestServer/ClientStartup.cs b/src/Components/test/testassets/TestServer/ClientStartup.cs index b3a16334229b..3a179b7619d0 100644 --- a/src/Components/test/testassets/TestServer/ClientStartup.cs +++ b/src/Components/test/testassets/TestServer/ClientStartup.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.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; diff --git a/src/Components/test/testassets/TestServer/Controllers/CookieController.cs b/src/Components/test/testassets/TestServer/Controllers/CookieController.cs index 58a45a77f485..52490ad5b606 100644 --- a/src/Components/test/testassets/TestServer/Controllers/CookieController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/CookieController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Cors; diff --git a/src/Components/test/testassets/TestServer/Controllers/CultureController.cs b/src/Components/test/testassets/TestServer/Controllers/CultureController.cs index 4466bb59c352..735191d92863 100644 --- a/src/Components/test/testassets/TestServer/Controllers/CultureController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/CultureController.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.Text.Encodings.Web; using Microsoft.AspNetCore.Localization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Components/test/testassets/TestServer/Controllers/DataController.cs b/src/Components/test/testassets/TestServer/Controllers/DataController.cs index 1ae4fd6198d1..e38dffd4f43e 100644 --- a/src/Components/test/testassets/TestServer/Controllers/DataController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/DataController.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.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Cors; diff --git a/src/Components/test/testassets/TestServer/Controllers/DownloadController.cs b/src/Components/test/testassets/TestServer/Controllers/DownloadController.cs index a0a1ca9c3caa..03348ff63567 100644 --- a/src/Components/test/testassets/TestServer/Controllers/DownloadController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/DownloadController.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.IO; using System.Text; diff --git a/src/Components/test/testassets/TestServer/Controllers/GreetingController.cs b/src/Components/test/testassets/TestServer/Controllers/GreetingController.cs index 32835f896de8..dfd99eb8fe27 100644 --- a/src/Components/test/testassets/TestServer/Controllers/GreetingController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/GreetingController.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; namespace TestServer.Controllers { diff --git a/src/Components/test/testassets/TestServer/Controllers/PersonController.cs b/src/Components/test/testassets/TestServer/Controllers/PersonController.cs index 33d5d4e655fd..2d99e931d97e 100644 --- a/src/Components/test/testassets/TestServer/Controllers/PersonController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/PersonController.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.IO; using System.Text; diff --git a/src/Components/test/testassets/TestServer/Controllers/ReloadController.cs b/src/Components/test/testassets/TestServer/Controllers/ReloadController.cs index 162f4540099d..cf71bbed3666 100644 --- a/src/Components/test/testassets/TestServer/Controllers/ReloadController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/ReloadController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components.HotReload; using Microsoft.AspNetCore.Mvc; diff --git a/src/Components/test/testassets/TestServer/Controllers/UserController.cs b/src/Components/test/testassets/TestServer/Controllers/UserController.cs index a41e1f5ccd13..33f5f3ab684b 100644 --- a/src/Components/test/testassets/TestServer/Controllers/UserController.cs +++ b/src/Components/test/testassets/TestServer/Controllers/UserController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Components/test/testassets/TestServer/CorsStartup.cs b/src/Components/test/testassets/TestServer/CorsStartup.cs index df447c8d671e..6a4f14c0130f 100644 --- a/src/Components/test/testassets/TestServer/CorsStartup.cs +++ b/src/Components/test/testassets/TestServer/CorsStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Components/test/testassets/TestServer/DeferredComponentContentStartup.cs b/src/Components/test/testassets/TestServer/DeferredComponentContentStartup.cs index 536dcc7efe3b..a9b2bdb5d391 100644 --- a/src/Components/test/testassets/TestServer/DeferredComponentContentStartup.cs +++ b/src/Components/test/testassets/TestServer/DeferredComponentContentStartup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Authentication.Cookies; diff --git a/src/Components/test/testassets/TestServer/HotReloadStartup.cs b/src/Components/test/testassets/TestServer/HotReloadStartup.cs index ef34ff90e959..d9dcf184c783 100644 --- a/src/Components/test/testassets/TestServer/HotReloadStartup.cs +++ b/src/Components/test/testassets/TestServer/HotReloadStartup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/InternationalizationStartup.cs b/src/Components/test/testassets/TestServer/InternationalizationStartup.cs index ac2fa85effa1..5ddc5edc14ad 100644 --- a/src/Components/test/testassets/TestServer/InternationalizationStartup.cs +++ b/src/Components/test/testassets/TestServer/InternationalizationStartup.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.Threading.Tasks; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/MultipleComponents.cs b/src/Components/test/testassets/TestServer/MultipleComponents.cs index a965cbfd086b..82370b723053 100644 --- a/src/Components/test/testassets/TestServer/MultipleComponents.cs +++ b/src/Components/test/testassets/TestServer/MultipleComponents.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.Globalization; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/PrerenderedStartup.cs b/src/Components/test/testassets/TestServer/PrerenderedStartup.cs index 0a3e28bf3418..c4c10b25bfcb 100644 --- a/src/Components/test/testassets/TestServer/PrerenderedStartup.cs +++ b/src/Components/test/testassets/TestServer/PrerenderedStartup.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.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Components/test/testassets/TestServer/Program.cs b/src/Components/test/testassets/TestServer/Program.cs index e521651403bd..7efbd43325e4 100644 --- a/src/Components/test/testassets/TestServer/Program.cs +++ b/src/Components/test/testassets/TestServer/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.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/src/Components/test/testassets/TestServer/ResourceRequestLog.cs b/src/Components/test/testassets/TestServer/ResourceRequestLog.cs index c411cbb39264..a1f85cba7344 100644 --- a/src/Components/test/testassets/TestServer/ResourceRequestLog.cs +++ b/src/Components/test/testassets/TestServer/ResourceRequestLog.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/Components/test/testassets/TestServer/SaveState.cs b/src/Components/test/testassets/TestServer/SaveState.cs index 3873a0c0e63e..077ed610b244 100644 --- a/src/Components/test/testassets/TestServer/SaveState.cs +++ b/src/Components/test/testassets/TestServer/SaveState.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.Globalization; using BasicTestApp; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/ServerStartup.cs b/src/Components/test/testassets/TestServer/ServerStartup.cs index 7702611f5802..4911aa97496e 100644 --- a/src/Components/test/testassets/TestServer/ServerStartup.cs +++ b/src/Components/test/testassets/TestServer/ServerStartup.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.Globalization; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/Startup.cs b/src/Components/test/testassets/TestServer/Startup.cs index 23d927cb4a74..20f45ae2ffa8 100644 --- a/src/Components/test/testassets/TestServer/Startup.cs +++ b/src/Components/test/testassets/TestServer/Startup.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.Globalization; using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/StartupWithMapFallbackToClientSideBlazor.cs b/src/Components/test/testassets/TestServer/StartupWithMapFallbackToClientSideBlazor.cs index b11cbdfe59a4..a16c9293ab98 100644 --- a/src/Components/test/testassets/TestServer/StartupWithMapFallbackToClientSideBlazor.cs +++ b/src/Components/test/testassets/TestServer/StartupWithMapFallbackToClientSideBlazor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Builder; diff --git a/src/Components/test/testassets/TestServer/TestAppInfo.cs b/src/Components/test/testassets/TestServer/TestAppInfo.cs index cd1b05b3f020..fa1d21397261 100644 --- a/src/Components/test/testassets/TestServer/TestAppInfo.cs +++ b/src/Components/test/testassets/TestServer/TestAppInfo.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.Collections.Generic; namespace TestServer diff --git a/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationBuilderExtensions.cs b/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationBuilderExtensions.cs index e4c8dd58eea5..d90705322aa1 100644 --- a/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationBuilderExtensions.cs +++ b/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationBuilderExtensions.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.IO; using Microsoft.Extensions.Configuration.KeyPerFile; diff --git a/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationProvider.cs b/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationProvider.cs index f50a0a39faa9..c4f9649547cc 100644 --- a/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationProvider.cs +++ b/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationProvider.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.IO; diff --git a/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationSource.cs b/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationSource.cs index 2e61aa91b69b..2ddd07e9dc81 100644 --- a/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationSource.cs +++ b/src/Configuration.KeyPerFile/src/KeyPerFileConfigurationSource.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.IO; using Microsoft.Extensions.FileProviders; diff --git a/src/Configuration.KeyPerFile/test/ConfigurationProviderCommandLineTest.cs b/src/Configuration.KeyPerFile/test/ConfigurationProviderCommandLineTest.cs index 066aecf33756..06b58daf2146 100644 --- a/src/Configuration.KeyPerFile/test/ConfigurationProviderCommandLineTest.cs +++ b/src/Configuration.KeyPerFile/test/ConfigurationProviderCommandLineTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Configuration.KeyPerFile/test/ConfigurationProviderTestBase.cs b/src/Configuration.KeyPerFile/test/ConfigurationProviderTestBase.cs index 67cb20c6c380..191c2ef18642 100644 --- a/src/Configuration.KeyPerFile/test/ConfigurationProviderTestBase.cs +++ b/src/Configuration.KeyPerFile/test/ConfigurationProviderTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Configuration.KeyPerFile/test/KeyPerFileTests.cs b/src/Configuration.KeyPerFile/test/KeyPerFileTests.cs index 198db2507fb5..920f620b3986 100644 --- a/src/Configuration.KeyPerFile/test/KeyPerFileTests.cs +++ b/src/Configuration.KeyPerFile/test/KeyPerFileTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/Abstractions/src/CryptoUtil.cs b/src/DataProtection/Abstractions/src/CryptoUtil.cs index e3e361a3a8fa..2e1a3f323f7f 100644 --- a/src/DataProtection/Abstractions/src/CryptoUtil.cs +++ b/src/DataProtection/Abstractions/src/CryptoUtil.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Abstractions/src/DataProtectionCommonExtensions.cs b/src/DataProtection/Abstractions/src/DataProtectionCommonExtensions.cs index 3b7951fcf3a1..fe9029d5f566 100644 --- a/src/DataProtection/Abstractions/src/DataProtectionCommonExtensions.cs +++ b/src/DataProtection/Abstractions/src/DataProtectionCommonExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/Abstractions/src/Error.cs b/src/DataProtection/Abstractions/src/Error.cs index eba12d15c93f..8b74ce41a06b 100644 --- a/src/DataProtection/Abstractions/src/Error.cs +++ b/src/DataProtection/Abstractions/src/Error.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/Abstractions/src/IDataProtectionProvider.cs b/src/DataProtection/Abstractions/src/IDataProtectionProvider.cs index 02f772724bfc..d004c07538e5 100644 --- a/src/DataProtection/Abstractions/src/IDataProtectionProvider.cs +++ b/src/DataProtection/Abstractions/src/IDataProtectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection { diff --git a/src/DataProtection/Abstractions/src/IDataProtector.cs b/src/DataProtection/Abstractions/src/IDataProtector.cs index 1d9c8c394679..3dbb44184a1e 100644 --- a/src/DataProtection/Abstractions/src/IDataProtector.cs +++ b/src/DataProtection/Abstractions/src/IDataProtector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection { diff --git a/src/DataProtection/Abstractions/src/Infrastructure/IApplicationDiscriminator.cs b/src/DataProtection/Abstractions/src/Infrastructure/IApplicationDiscriminator.cs index 7186c57b63f0..d7e22e0a2262 100644 --- a/src/DataProtection/Abstractions/src/Infrastructure/IApplicationDiscriminator.cs +++ b/src/DataProtection/Abstractions/src/Infrastructure/IApplicationDiscriminator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/DataProtection/Abstractions/src/Properties/AssemblyInfo.cs b/src/DataProtection/Abstractions/src/Properties/AssemblyInfo.cs index f826749dff76..b4c43be6fe48 100644 --- a/src/DataProtection/Abstractions/src/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Abstractions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/Abstractions/test/DataProtectionCommonExtensionsTests.cs b/src/DataProtection/Abstractions/test/DataProtectionCommonExtensionsTests.cs index cfd4f3b41f08..6e274e90b77e 100644 --- a/src/DataProtection/Abstractions/test/DataProtectionCommonExtensionsTests.cs +++ b/src/DataProtection/Abstractions/test/DataProtectionCommonExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO.cs index 0c074b8280e9..930dca9167d7 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_KEY_LENGTHS_STRUCT.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_KEY_LENGTHS_STRUCT.cs index 0d4139018f2d..1d7a5f83bb69 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_KEY_LENGTHS_STRUCT.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCRYPT_KEY_LENGTHS_STRUCT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBuffer.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBuffer.cs index c091859729d0..cd41c2095c20 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBuffer.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBuffer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBufferDesc.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBufferDesc.cs index 8fd699643e71..c4875a24a21d 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBufferDesc.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptBufferDesc.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptEncryptFlags.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptEncryptFlags.cs index 81ae0105cc49..c83fdf869978 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptEncryptFlags.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptEncryptFlags.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptGenRandomFlags.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptGenRandomFlags.cs index ed20fec309c4..6e8baf666e91 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptGenRandomFlags.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptGenRandomFlags.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptKeyDerivationBufferType.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptKeyDerivationBufferType.cs index a68569e799cf..7696e0f36819 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptKeyDerivationBufferType.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptKeyDerivationBufferType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptUtil.cs b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptUtil.cs index de4b6c4e17fe..1b656ec38076 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/BCryptUtil.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/BCryptUtil.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/CachedAlgorithmHandles.cs b/src/DataProtection/Cryptography.Internal/src/Cng/CachedAlgorithmHandles.cs index 3647aaef5974..c7018dea976d 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/CachedAlgorithmHandles.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/CachedAlgorithmHandles.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.SafeHandles; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/NCryptEncryptFlags.cs b/src/DataProtection/Cryptography.Internal/src/Cng/NCryptEncryptFlags.cs index a0c1bc0fc413..c84442a418a4 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/NCryptEncryptFlags.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/NCryptEncryptFlags.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/Cng/OSVersionUtil.cs b/src/DataProtection/Cryptography.Internal/src/Cng/OSVersionUtil.cs index 937a9180f49a..fdabca0b94e9 100644 --- a/src/DataProtection/Cryptography.Internal/src/Cng/OSVersionUtil.cs +++ b/src/DataProtection/Cryptography.Internal/src/Cng/OSVersionUtil.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.SafeHandles; diff --git a/src/DataProtection/Cryptography.Internal/src/Constants.cs b/src/DataProtection/Cryptography.Internal/src/Constants.cs index 44b0568aa830..b1bf34235638 100644 --- a/src/DataProtection/Cryptography.Internal/src/Constants.cs +++ b/src/DataProtection/Cryptography.Internal/src/Constants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/CryptoUtil.cs b/src/DataProtection/Cryptography.Internal/src/CryptoUtil.cs index 2e2f07d61a63..e3e81739f9ca 100644 --- a/src/DataProtection/Cryptography.Internal/src/CryptoUtil.cs +++ b/src/DataProtection/Cryptography.Internal/src/CryptoUtil.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.Internal/src/DATA_BLOB.cs b/src/DataProtection/Cryptography.Internal/src/DATA_BLOB.cs index 3c307bebce96..f2348c157f41 100644 --- a/src/DataProtection/Cryptography.Internal/src/DATA_BLOB.cs +++ b/src/DataProtection/Cryptography.Internal/src/DATA_BLOB.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/Properties/AssemblyInfo.cs b/src/DataProtection/Cryptography.Internal/src/Properties/AssemblyInfo.cs index 825defe5117f..d8a08c46137c 100644 --- a/src/DataProtection/Cryptography.Internal/src/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Cryptography.Internal/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptAlgorithmHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptAlgorithmHandle.cs index 2377754cc069..de25a2ba7a48 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptAlgorithmHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptAlgorithmHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHandle.cs index 2f04fe9f443a..4088414e31bc 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Win32.SafeHandles; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHashHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHashHandle.cs index 2e5c76dafc2b..166f0d54bef9 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHashHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptHashHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Win32.SafeHandles; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptKeyHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptKeyHandle.cs index 6151b787dca0..5fc492280b5b 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptKeyHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/BCryptKeyHandle.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/LocalAllocHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/LocalAllocHandle.cs index 852c5d1594a6..8132727ded6e 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/LocalAllocHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/LocalAllocHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/NCryptDescriptorHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/NCryptDescriptorHandle.cs index bd6bc0bc9f6e..48a229f985b4 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/NCryptDescriptorHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/NCryptDescriptorHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Win32.SafeHandles; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/SafeLibraryHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/SafeLibraryHandle.cs index 5f721e92b2bb..964321354866 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/SafeLibraryHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/SafeLibraryHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/DataProtection/Cryptography.Internal/src/SafeHandles/SecureLocalAllocHandle.cs b/src/DataProtection/Cryptography.Internal/src/SafeHandles/SecureLocalAllocHandle.cs index 8baa92113bae..b88f63bdbe0a 100644 --- a/src/DataProtection/Cryptography.Internal/src/SafeHandles/SecureLocalAllocHandle.cs +++ b/src/DataProtection/Cryptography.Internal/src/SafeHandles/SecureLocalAllocHandle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/Cryptography.Internal/src/UnsafeBufferUtil.cs b/src/DataProtection/Cryptography.Internal/src/UnsafeBufferUtil.cs index e41c558fd6e5..66c7eabe659f 100644 --- a/src/DataProtection/Cryptography.Internal/src/UnsafeBufferUtil.cs +++ b/src/DataProtection/Cryptography.Internal/src/UnsafeBufferUtil.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/DataProtection/Cryptography.Internal/src/UnsafeNativeMethods.cs b/src/DataProtection/Cryptography.Internal/src/UnsafeNativeMethods.cs index 93b3884d0afa..ece22185854b 100644 --- a/src/DataProtection/Cryptography.Internal/src/UnsafeNativeMethods.cs +++ b/src/DataProtection/Cryptography.Internal/src/UnsafeNativeMethods.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.Internal/src/WeakReferenceHelpers.cs b/src/DataProtection/Cryptography.Internal/src/WeakReferenceHelpers.cs index e486cab99e9f..d13e461032d5 100644 --- a/src/DataProtection/Cryptography.Internal/src/WeakReferenceHelpers.cs +++ b/src/DataProtection/Cryptography.Internal/src/WeakReferenceHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_Tests.cs b/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_Tests.cs index 69dfcdfe03c5..b165fc8f64de 100644 --- a/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_Tests.cs +++ b/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_Tests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_KEY_LENGTHS_STRUCT_Tests.cs b/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_KEY_LENGTHS_STRUCT_Tests.cs index 34192eb7584e..8a6cd027524d 100644 --- a/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_KEY_LENGTHS_STRUCT_Tests.cs +++ b/src/DataProtection/Cryptography.Internal/test/Cng/BCRYPT_KEY_LENGTHS_STRUCT_Tests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.Internal; diff --git a/src/DataProtection/Cryptography.Internal/test/Cng/BCryptUtilTests.cs b/src/DataProtection/Cryptography.Internal/test/Cng/BCryptUtilTests.cs index d5f78e0d22e4..eeea73710a8b 100644 --- a/src/DataProtection/Cryptography.Internal/test/Cng/BCryptUtilTests.cs +++ b/src/DataProtection/Cryptography.Internal/test/Cng/BCryptUtilTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/Cryptography.Internal/test/Cng/CachedAlgorithmHandlesTests.cs b/src/DataProtection/Cryptography.Internal/test/Cng/CachedAlgorithmHandlesTests.cs index a591b08ccc11..b225fe95c177 100644 --- a/src/DataProtection/Cryptography.Internal/test/Cng/CachedAlgorithmHandlesTests.cs +++ b/src/DataProtection/Cryptography.Internal/test/Cng/CachedAlgorithmHandlesTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/Cryptography.Internal/test/CryptoUtilTests.cs b/src/DataProtection/Cryptography.Internal/test/CryptoUtilTests.cs index b911ab065a80..dff3f712362f 100644 --- a/src/DataProtection/Cryptography.Internal/test/CryptoUtilTests.cs +++ b/src/DataProtection/Cryptography.Internal/test/CryptoUtilTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/Cryptography.Internal/test/Properties/AssemblyInfo.cs b/src/DataProtection/Cryptography.Internal/test/Properties/AssemblyInfo.cs index 3adbc7af4e4e..ef544cb2e6ce 100644 --- a/src/DataProtection/Cryptography.Internal/test/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Cryptography.Internal/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/Cryptography.Internal/test/SafeHandles/SecureLocalAllocHandleTests.cs b/src/DataProtection/Cryptography.Internal/test/SafeHandles/SecureLocalAllocHandleTests.cs index cf5b8f9384ce..4a124d1e8d74 100644 --- a/src/DataProtection/Cryptography.Internal/test/SafeHandles/SecureLocalAllocHandleTests.cs +++ b/src/DataProtection/Cryptography.Internal/test/SafeHandles/SecureLocalAllocHandleTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/Cryptography.Internal/test/UnsafeBufferUtilTests.cs b/src/DataProtection/Cryptography.Internal/test/UnsafeBufferUtilTests.cs index 359835db7eee..28f0e9140768 100644 --- a/src/DataProtection/Cryptography.Internal/test/UnsafeBufferUtilTests.cs +++ b/src/DataProtection/Cryptography.Internal/test/UnsafeBufferUtilTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/DataProtection/Cryptography.Internal/test/WeakReferenceHelpersTests.cs b/src/DataProtection/Cryptography.Internal/test/WeakReferenceHelpersTests.cs index da66146b0728..5098a62b2fdc 100644 --- a/src/DataProtection/Cryptography.Internal/test/WeakReferenceHelpersTests.cs +++ b/src/DataProtection/Cryptography.Internal/test/WeakReferenceHelpersTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivation.cs b/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivation.cs index 67ff1ca420ae..9b73072d4f0f 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivation.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivation.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.KeyDerivation.PBKDF2; diff --git a/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivationPrf.cs b/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivationPrf.cs index 57e740f04b7e..eaf32feba36f 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivationPrf.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/KeyDerivationPrf.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Cryptography.KeyDerivation { diff --git a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/IPbkdf2Provider.cs b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/IPbkdf2Provider.cs index 8be8a5e80979..c9a8a54d88ce 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/IPbkdf2Provider.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/IPbkdf2Provider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/ManagedPbkdf2Provider.cs b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/ManagedPbkdf2Provider.cs index bf81ae65c598..68bdda75cbb3 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/ManagedPbkdf2Provider.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/ManagedPbkdf2Provider.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/NetCorePbkdf2Provider.cs b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/NetCorePbkdf2Provider.cs index 3c30b0559491..acac99a756f0 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/NetCorePbkdf2Provider.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/NetCorePbkdf2Provider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if NETCOREAPP using System; diff --git a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Pbkdf2Util.cs b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Pbkdf2Util.cs index 29019f641ff8..406aa27ce8d5 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Pbkdf2Util.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Pbkdf2Util.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Cryptography.Cng; diff --git a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win7Pbkdf2Provider.cs b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win7Pbkdf2Provider.cs index 492d4024e0e4..b72fa382eeb7 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win7Pbkdf2Provider.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win7Pbkdf2Provider.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win8Pbkdf2Provider.cs b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win8Pbkdf2Provider.cs index e03dfa359adb..0795a01ed937 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win8Pbkdf2Provider.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/PBKDF2/Win8Pbkdf2Provider.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/Cryptography.KeyDerivation/src/Properties/AssemblyInfo.cs b/src/DataProtection/Cryptography.KeyDerivation/src/Properties/AssemblyInfo.cs index 3c31a0762ed9..116904b386ca 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/src/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/Cryptography.KeyDerivation/test/Pbkdf2Tests.cs b/src/DataProtection/Cryptography.KeyDerivation/test/Pbkdf2Tests.cs index 0f088c1a513e..23ab1a754d00 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/test/Pbkdf2Tests.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/test/Pbkdf2Tests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/Cryptography.KeyDerivation/test/Properties/AssemblyInfo.cs b/src/DataProtection/Cryptography.KeyDerivation/test/Properties/AssemblyInfo.cs index 3adbc7af4e4e..ef544cb2e6ce 100644 --- a/src/DataProtection/Cryptography.KeyDerivation/test/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Cryptography.KeyDerivation/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/DataProtection/src/ActivatorExtensions.cs b/src/DataProtection/DataProtection/src/ActivatorExtensions.cs index a485958fc904..d65e7208ead1 100644 --- a/src/DataProtection/DataProtection/src/ActivatorExtensions.cs +++ b/src/DataProtection/DataProtection/src/ActivatorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/ApplyPolicyAttribute.cs b/src/DataProtection/DataProtection/src/ApplyPolicyAttribute.cs index f73a745b1e45..7bfbf9e9b229 100644 --- a/src/DataProtection/DataProtection/src/ApplyPolicyAttribute.cs +++ b/src/DataProtection/DataProtection/src/ApplyPolicyAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/ArraySegmentExtensions.cs b/src/DataProtection/DataProtection/src/ArraySegmentExtensions.cs index fe59387138a4..e5dc7d4d36a4 100644 --- a/src/DataProtection/DataProtection/src/ArraySegmentExtensions.cs +++ b/src/DataProtection/DataProtection/src/ArraySegmentExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AlgorithmAssert.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AlgorithmAssert.cs index cd3dd8432e52..da8a7ed00319 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AlgorithmAssert.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AlgorithmAssert.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorExtensions.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorExtensions.cs index 31f31a9a285d..acd10399e96e 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorExtensions.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorFactory.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorFactory.cs index 1b26683d558d..24b55de52706 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorFactory.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/AuthenticatedEncryptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactory.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactory.cs index 58cd9276c08b..cc4ff4751f55 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactory.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactory.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactory.cs index ef291eaf708d..99790cc21338 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactory.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AlgorithmConfiguration.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AlgorithmConfiguration.cs index 9ce578a62024..167b2ead5001 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AlgorithmConfiguration.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AlgorithmConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorConfiguration.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorConfiguration.cs index a421170c5d2a..ccad54650585 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorConfiguration.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptor.cs index f9dd2ca4f44f..701a19efa590 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializer.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializer.cs index 9747bb4e6ecd..3495311d187c 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializer.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfiguration.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfiguration.cs index d56d7582a12a..7181321e4bdb 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfiguration.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Versioning; using Microsoft.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptor.cs index b4e3cf87ff48..31db63e56395 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Versioning; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs index a715a9450dd3..55a8252b561c 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Versioning; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfiguration.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfiguration.cs index bfabc9bddbe4..b088cb3f8bd6 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfiguration.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Versioning; using Microsoft.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptor.cs index f80be820214f..7a38b3fbd98b 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Versioning; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs index ae891fe8d69c..ec07344ff590 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Versioning; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptor.cs index 617692958374..9f8efedd19ad 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptorDeserializer.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptorDeserializer.cs index c1db3bcc915e..3d9c9c701a44 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptorDeserializer.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IAuthenticatedEncryptorDescriptorDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IInternalAlgorithmConfiguration.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IInternalAlgorithmConfiguration.cs index ede736e99d93..b7dc4e22f1ba 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IInternalAlgorithmConfiguration.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/IInternalAlgorithmConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel { diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfiguration.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfiguration.cs index 38ecbb930e4f..1a0dcfe07986 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfiguration.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptor.cs index a1bc73b582c6..da5988c17557 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializer.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializer.cs index 264ca1932012..cdf54255c533 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializer.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/SecretExtensions.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/SecretExtensions.cs index d08e2918ec0e..b3b6cdd523dd 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/SecretExtensions.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/SecretExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlExtensions.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlExtensions.cs index ebae69ecb2b0..76e3142247c1 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlExtensions.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlSerializedDescriptorInfo.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlSerializedDescriptorInfo.cs index 1b935d8e15f8..c99194786d65 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlSerializedDescriptorInfo.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ConfigurationModel/XmlSerializedDescriptorInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/EncryptionAlgorithm.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/EncryptionAlgorithm.cs index d6fbf2802017..278f6b109a6c 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/EncryptionAlgorithm.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/EncryptionAlgorithm.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption { diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptor.cs index 5ec2fa8444cb..6c166da16e92 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptorFactory.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptorFactory.cs index 92af08466a18..9b117374ca63 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptorFactory.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IAuthenticatedEncryptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.KeyManagement; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IOptimizedAuthenticatedEncryptor.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IOptimizedAuthenticatedEncryptor.cs index 9d28c112210c..f959eb16ac4e 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IOptimizedAuthenticatedEncryptor.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/IOptimizedAuthenticatedEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactory.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactory.cs index d87b43557d43..5b06fac9b37b 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactory.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ValidationAlgorithm.cs b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ValidationAlgorithm.cs index 520cb707a475..83d1e68bb937 100644 --- a/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ValidationAlgorithm.cs +++ b/src/DataProtection/DataProtection/src/AuthenticatedEncryption/ValidationAlgorithm.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/BitHelpers.cs b/src/DataProtection/DataProtection/src/BitHelpers.cs index 092807d8d86a..887e684681c5 100644 --- a/src/DataProtection/DataProtection/src/BitHelpers.cs +++ b/src/DataProtection/DataProtection/src/BitHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/DataProtection/DataProtection/src/Cng/BCryptGenRandomImpl.cs b/src/DataProtection/DataProtection/src/Cng/BCryptGenRandomImpl.cs index 0852218e21a1..b9d94fdcd76e 100644 --- a/src/DataProtection/DataProtection/src/Cng/BCryptGenRandomImpl.cs +++ b/src/DataProtection/DataProtection/src/Cng/BCryptGenRandomImpl.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.Cng; diff --git a/src/DataProtection/DataProtection/src/Cng/CbcAuthenticatedEncryptor.cs b/src/DataProtection/DataProtection/src/Cng/CbcAuthenticatedEncryptor.cs index c102afd884d0..9f4a48bd8458 100644 --- a/src/DataProtection/DataProtection/src/Cng/CbcAuthenticatedEncryptor.cs +++ b/src/DataProtection/DataProtection/src/Cng/CbcAuthenticatedEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/Cng/CngGcmAuthenticatedEncryptor.cs b/src/DataProtection/DataProtection/src/Cng/CngGcmAuthenticatedEncryptor.cs index af510ac00b64..4ad817d164f5 100644 --- a/src/DataProtection/DataProtection/src/Cng/CngGcmAuthenticatedEncryptor.cs +++ b/src/DataProtection/DataProtection/src/Cng/CngGcmAuthenticatedEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Cryptography; using Microsoft.AspNetCore.Cryptography.Cng; diff --git a/src/DataProtection/DataProtection/src/Cng/DpapiSecretSerializerHelper.cs b/src/DataProtection/DataProtection/src/Cng/DpapiSecretSerializerHelper.cs index b59f812186c9..a7c12c51c490 100644 --- a/src/DataProtection/DataProtection/src/Cng/DpapiSecretSerializerHelper.cs +++ b/src/DataProtection/DataProtection/src/Cng/DpapiSecretSerializerHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/Cng/IBCryptGenRandom.cs b/src/DataProtection/DataProtection/src/Cng/IBCryptGenRandom.cs index e1cf9b7dbe74..459bce01c05d 100644 --- a/src/DataProtection/DataProtection/src/Cng/IBCryptGenRandom.cs +++ b/src/DataProtection/DataProtection/src/Cng/IBCryptGenRandom.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/Cng/Internal/CngAuthenticatedEncryptorBase.cs b/src/DataProtection/DataProtection/src/Cng/Internal/CngAuthenticatedEncryptorBase.cs index 9093b92aa25d..6d76842ae851 100644 --- a/src/DataProtection/DataProtection/src/Cng/Internal/CngAuthenticatedEncryptorBase.cs +++ b/src/DataProtection/DataProtection/src/Cng/Internal/CngAuthenticatedEncryptorBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.AuthenticatedEncryption; diff --git a/src/DataProtection/DataProtection/src/DataProtectionBuilderExtensions.cs b/src/DataProtection/DataProtection/src/DataProtectionBuilderExtensions.cs index bc10fc166e7e..65f3aabac442 100644 --- a/src/DataProtection/DataProtection/src/DataProtectionBuilderExtensions.cs +++ b/src/DataProtection/DataProtection/src/DataProtectionBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/DataProtection/DataProtection/src/DataProtectionOptions.cs b/src/DataProtection/DataProtection/src/DataProtectionOptions.cs index 68f05984c283..320e7fa6456c 100644 --- a/src/DataProtection/DataProtection/src/DataProtectionOptions.cs +++ b/src/DataProtection/DataProtection/src/DataProtectionOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/DataProtectionServiceCollectionExtensions.cs b/src/DataProtection/DataProtection/src/DataProtectionServiceCollectionExtensions.cs index e0709255442e..15b4c04913d4 100644 --- a/src/DataProtection/DataProtection/src/DataProtectionServiceCollectionExtensions.cs +++ b/src/DataProtection/DataProtection/src/DataProtectionServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/DataProtectionUtilityExtensions.cs b/src/DataProtection/DataProtection/src/DataProtectionUtilityExtensions.cs index 45af825a6cef..d59df6c81bfb 100644 --- a/src/DataProtection/DataProtection/src/DataProtectionUtilityExtensions.cs +++ b/src/DataProtection/DataProtection/src/DataProtectionUtilityExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/DataProtection/DataProtection/src/EphemeralDataProtectionProvider.cs b/src/DataProtection/DataProtection/src/EphemeralDataProtectionProvider.cs index dec0a19c5662..5e1d25f87550 100644 --- a/src/DataProtection/DataProtection/src/EphemeralDataProtectionProvider.cs +++ b/src/DataProtection/DataProtection/src/EphemeralDataProtectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/Error.cs b/src/DataProtection/DataProtection/src/Error.cs index e0d895319204..a6f5f53fa83c 100644 --- a/src/DataProtection/DataProtection/src/Error.cs +++ b/src/DataProtection/DataProtection/src/Error.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -85,7 +85,7 @@ public static CryptographicException ProtectionProvider_BadVersion() { return new CryptographicException(Resources.ProtectionProvider_BadVersion); } - + public static InvalidOperationException XmlKeyManager_DuplicateKey(Guid keyId) { var message = string.Format(CultureInfo.CurrentCulture, Resources.XmlKeyManager_DuplicateKey, keyId); diff --git a/src/DataProtection/DataProtection/src/IDataProtectionBuilder.cs b/src/DataProtection/DataProtection/src/IDataProtectionBuilder.cs index 68db854e74ea..1731735ee2f3 100644 --- a/src/DataProtection/DataProtection/src/IDataProtectionBuilder.cs +++ b/src/DataProtection/DataProtection/src/IDataProtectionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel; diff --git a/src/DataProtection/DataProtection/src/IPersistedDataProtector.cs b/src/DataProtection/DataProtection/src/IPersistedDataProtector.cs index 0e0310cd1ddc..e5181b388c7a 100644 --- a/src/DataProtection/DataProtection/src/IPersistedDataProtector.cs +++ b/src/DataProtection/DataProtection/src/IPersistedDataProtector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/IRegistryPolicyResolver.cs b/src/DataProtection/DataProtection/src/IRegistryPolicyResolver.cs index 937ad262c080..9668cbc609c3 100644 --- a/src/DataProtection/DataProtection/src/IRegistryPolicyResolver.cs +++ b/src/DataProtection/DataProtection/src/IRegistryPolicyResolver.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection { diff --git a/src/DataProtection/DataProtection/src/ISecret.cs b/src/DataProtection/DataProtection/src/ISecret.cs index 4010bc644540..80d90ebb27ce 100644 --- a/src/DataProtection/DataProtection/src/ISecret.cs +++ b/src/DataProtection/DataProtection/src/ISecret.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/Internal/ContainerUtils.cs b/src/DataProtection/DataProtection/src/Internal/ContainerUtils.cs index 2b263bfef36e..d27b6a070e27 100644 --- a/src/DataProtection/DataProtection/src/Internal/ContainerUtils.cs +++ b/src/DataProtection/DataProtection/src/Internal/ContainerUtils.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/Internal/DataProtectionBuilder.cs b/src/DataProtection/DataProtection/src/Internal/DataProtectionBuilder.cs index 53ec101992a7..d0f57e993f09 100644 --- a/src/DataProtection/DataProtection/src/Internal/DataProtectionBuilder.cs +++ b/src/DataProtection/DataProtection/src/Internal/DataProtectionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/DataProtection/DataProtection/src/Internal/DataProtectionHostedService.cs b/src/DataProtection/DataProtection/src/Internal/DataProtectionHostedService.cs index c31f56e05903..92856f50d740 100644 --- a/src/DataProtection/DataProtection/src/Internal/DataProtectionHostedService.cs +++ b/src/DataProtection/DataProtection/src/Internal/DataProtectionHostedService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/Internal/DataProtectionOptionsSetup.cs b/src/DataProtection/DataProtection/src/Internal/DataProtectionOptionsSetup.cs index d5e25b7586c6..701709582e55 100644 --- a/src/DataProtection/DataProtection/src/Internal/DataProtectionOptionsSetup.cs +++ b/src/DataProtection/DataProtection/src/Internal/DataProtectionOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/DataProtection/DataProtection/src/Internal/HostingApplicationDiscriminator.cs b/src/DataProtection/DataProtection/src/Internal/HostingApplicationDiscriminator.cs index cea933369ea8..940f1e06448b 100644 --- a/src/DataProtection/DataProtection/src/Internal/HostingApplicationDiscriminator.cs +++ b/src/DataProtection/DataProtection/src/Internal/HostingApplicationDiscriminator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.Infrastructure; using Microsoft.Extensions.Hosting; diff --git a/src/DataProtection/DataProtection/src/Internal/IActivator.cs b/src/DataProtection/DataProtection/src/Internal/IActivator.cs index 189e2ab3035e..e3bfb214166d 100644 --- a/src/DataProtection/DataProtection/src/Internal/IActivator.cs +++ b/src/DataProtection/DataProtection/src/Internal/IActivator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/Internal/KeyManagementOptionsSetup.cs b/src/DataProtection/DataProtection/src/Internal/KeyManagementOptionsSetup.cs index 4db5a0102441..f0bbc12aa866 100644 --- a/src/DataProtection/DataProtection/src/Internal/KeyManagementOptionsSetup.cs +++ b/src/DataProtection/DataProtection/src/Internal/KeyManagementOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.AuthenticatedEncryption; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/DefaultKeyResolver.cs b/src/DataProtection/DataProtection/src/KeyManagement/DefaultKeyResolver.cs index 366ade63624f..36b02e698b25 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/DefaultKeyResolver.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/DefaultKeyResolver.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/DeferredKey.cs b/src/DataProtection/DataProtection/src/KeyManagement/DeferredKey.cs index 3ec909e992bd..7a34d9713b02 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/DeferredKey.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/DeferredKey.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/IKey.cs b/src/DataProtection/DataProtection/src/KeyManagement/IKey.cs index 28f9fd62a138..05d73bbf8b73 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/IKey.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/IKey.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.AuthenticatedEncryption; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/IKeyEscrowSink.cs b/src/DataProtection/DataProtection/src/KeyManagement/IKeyEscrowSink.cs index 7ef5db38f398..08fae978cee9 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/IKeyEscrowSink.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/IKeyEscrowSink.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/IKeyManager.cs b/src/DataProtection/DataProtection/src/KeyManagement/IKeyManager.cs index 7f840803ecf4..2d0965158f71 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/IKeyManager.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/IKeyManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/CacheableKeyRing.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/CacheableKeyRing.cs index f63cb9889a8a..1f2b93c865ef 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/CacheableKeyRing.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/CacheableKeyRing.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/DefaultKeyResolution.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/DefaultKeyResolution.cs index b4c3b7bf2a67..99b19b2ddeed 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/DefaultKeyResolution.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/DefaultKeyResolution.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.AuthenticatedEncryption; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/ICacheableKeyRingProvider.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/ICacheableKeyRingProvider.cs index 2e677b3fa702..c840110274b9 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/ICacheableKeyRingProvider.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/ICacheableKeyRingProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IDefaultKeyResolver.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IDefaultKeyResolver.cs index f891d0d4fbfd..9f2bf8a53fc8 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IDefaultKeyResolver.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IDefaultKeyResolver.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IInternalXmlKeyManager.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IInternalXmlKeyManager.cs index 1433df932701..8a10bb12c0a5 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IInternalXmlKeyManager.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IInternalXmlKeyManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRing.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRing.cs index de701248bb8f..0c38472f0697 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRing.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRing.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.AuthenticatedEncryption; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRingProvider.cs b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRingProvider.cs index e16ccd80ebfa..96ec056ac634 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRingProvider.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Internal/IKeyRingProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection.KeyManagement.Internal { diff --git a/src/DataProtection/DataProtection/src/KeyManagement/Key.cs b/src/DataProtection/DataProtection/src/KeyManagement/Key.cs index 84569a8e1b22..b7f7ec786808 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/Key.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/Key.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyBase.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyBase.cs index 8c1dd15eeb8c..05fcf9656010 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyBase.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyEscrowServiceProviderExtensions.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyEscrowServiceProviderExtensions.cs index 3625604b4481..300bbec76492 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyEscrowServiceProviderExtensions.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyEscrowServiceProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyExtensions.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyExtensions.cs index 5cd05bdb9b5b..22769ded1a1a 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyExtensions.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyManagementOptions.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyManagementOptions.cs index 192c78aa4fc0..368ca6ba58f9 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyManagementOptions.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyManagementOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyRing.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyRing.cs index edb8927bf303..2335278abc11 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyRing.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyRing.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -36,7 +36,7 @@ public KeyRing(IKey defaultKey, IEnumerable allKeys) DefaultKeyId = defaultKey.KeyId; _defaultKeyHolder = _keyIdToKeyHolderMap[DefaultKeyId]; } - + public IAuthenticatedEncryptor? DefaultAuthenticatedEncryptor { get diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtectionProvider.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtectionProvider.cs index 76c66e57f526..582c7e7a8ea7 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtectionProvider.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.KeyManagement.Internal; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtector.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtector.cs index 2a9d64a82ab8..1fb262576b57 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtector.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtector.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/KeyRingProvider.cs b/src/DataProtection/DataProtection/src/KeyManagement/KeyRingProvider.cs index b7e1499929b8..a92a523f5900 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/KeyRingProvider.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/KeyRingProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs b/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs index a72735e13762..bb71aefce677 100644 --- a/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs +++ b/src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/LoggingExtensions.cs b/src/DataProtection/DataProtection/src/LoggingExtensions.cs index 15866671c11b..d1c984999f0c 100644 --- a/src/DataProtection/DataProtection/src/LoggingExtensions.cs +++ b/src/DataProtection/DataProtection/src/LoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/DataProtection/DataProtection/src/LoggingServiceProviderExtensions.cs b/src/DataProtection/DataProtection/src/LoggingServiceProviderExtensions.cs index fb3c6761ec76..1a0f75d67a2a 100644 --- a/src/DataProtection/DataProtection/src/LoggingServiceProviderExtensions.cs +++ b/src/DataProtection/DataProtection/src/LoggingServiceProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/DataProtection/DataProtection/src/Managed/AesGcmAuthenticatedEncryptor.cs b/src/DataProtection/DataProtection/src/Managed/AesGcmAuthenticatedEncryptor.cs index b4a9a92e94b0..64d19bc0d2d5 100644 --- a/src/DataProtection/DataProtection/src/Managed/AesGcmAuthenticatedEncryptor.cs +++ b/src/DataProtection/DataProtection/src/Managed/AesGcmAuthenticatedEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #if NETCOREAPP using System; diff --git a/src/DataProtection/DataProtection/src/Managed/HashAlgorithmExtensions.cs b/src/DataProtection/DataProtection/src/Managed/HashAlgorithmExtensions.cs index af854158ecf8..1662f240ad9b 100644 --- a/src/DataProtection/DataProtection/src/Managed/HashAlgorithmExtensions.cs +++ b/src/DataProtection/DataProtection/src/Managed/HashAlgorithmExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/Managed/IManagedGenRandom.cs b/src/DataProtection/DataProtection/src/Managed/IManagedGenRandom.cs index 1d08f1e7d89e..0bef60b55705 100644 --- a/src/DataProtection/DataProtection/src/Managed/IManagedGenRandom.cs +++ b/src/DataProtection/DataProtection/src/Managed/IManagedGenRandom.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/Managed/ManagedAuthenticatedEncryptor.cs b/src/DataProtection/DataProtection/src/Managed/ManagedAuthenticatedEncryptor.cs index 02d437940cda..1e09953c8dea 100644 --- a/src/DataProtection/DataProtection/src/Managed/ManagedAuthenticatedEncryptor.cs +++ b/src/DataProtection/DataProtection/src/Managed/ManagedAuthenticatedEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/DataProtection/src/Managed/ManagedGenRandomImpl.cs b/src/DataProtection/DataProtection/src/Managed/ManagedGenRandomImpl.cs index 34712759becc..5c7044b61cc1 100644 --- a/src/DataProtection/DataProtection/src/Managed/ManagedGenRandomImpl.cs +++ b/src/DataProtection/DataProtection/src/Managed/ManagedGenRandomImpl.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/Managed/SymmetricAlgorithmExtensions.cs b/src/DataProtection/DataProtection/src/Managed/SymmetricAlgorithmExtensions.cs index d411ce26c020..6b42ac423019 100644 --- a/src/DataProtection/DataProtection/src/Managed/SymmetricAlgorithmExtensions.cs +++ b/src/DataProtection/DataProtection/src/Managed/SymmetricAlgorithmExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/MemoryProtection.cs b/src/DataProtection/DataProtection/src/MemoryProtection.cs index cb3f08853681..4e4962f52687 100644 --- a/src/DataProtection/DataProtection/src/MemoryProtection.cs +++ b/src/DataProtection/DataProtection/src/MemoryProtection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/DataProtection/DataProtection/src/Properties/AssemblyInfo.cs b/src/DataProtection/DataProtection/src/Properties/AssemblyInfo.cs index 91ed1f1d5379..40685c09f18a 100644 --- a/src/DataProtection/DataProtection/src/Properties/AssemblyInfo.cs +++ b/src/DataProtection/DataProtection/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/DataProtection/src/RegistryPolicy.cs b/src/DataProtection/DataProtection/src/RegistryPolicy.cs index 907ff904642b..9b12cb4d5f24 100644 --- a/src/DataProtection/DataProtection/src/RegistryPolicy.cs +++ b/src/DataProtection/DataProtection/src/RegistryPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel; diff --git a/src/DataProtection/DataProtection/src/RegistryPolicyResolver.cs b/src/DataProtection/DataProtection/src/RegistryPolicyResolver.cs index 411869755ba1..c6988c48bafa 100644 --- a/src/DataProtection/DataProtection/src/RegistryPolicyResolver.cs +++ b/src/DataProtection/DataProtection/src/RegistryPolicyResolver.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/Repositories/DefaultKeyStorageDirectories.cs b/src/DataProtection/DataProtection/src/Repositories/DefaultKeyStorageDirectories.cs index 7a038b3bfabd..c917200279f2 100644 --- a/src/DataProtection/DataProtection/src/Repositories/DefaultKeyStorageDirectories.cs +++ b/src/DataProtection/DataProtection/src/Repositories/DefaultKeyStorageDirectories.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/DataProtection/DataProtection/src/Repositories/EphemeralXmlRepository.cs b/src/DataProtection/DataProtection/src/Repositories/EphemeralXmlRepository.cs index 17c7156b8d7c..eea900083b5f 100644 --- a/src/DataProtection/DataProtection/src/Repositories/EphemeralXmlRepository.cs +++ b/src/DataProtection/DataProtection/src/Repositories/EphemeralXmlRepository.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/Repositories/FileSystemXmlRepository.cs b/src/DataProtection/DataProtection/src/Repositories/FileSystemXmlRepository.cs index 5f40498717c5..e495f45e4725 100644 --- a/src/DataProtection/DataProtection/src/Repositories/FileSystemXmlRepository.cs +++ b/src/DataProtection/DataProtection/src/Repositories/FileSystemXmlRepository.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/Repositories/IDefaultKeyStorageDirectory.cs b/src/DataProtection/DataProtection/src/Repositories/IDefaultKeyStorageDirectory.cs index 809efdc6eea9..948131961574 100644 --- a/src/DataProtection/DataProtection/src/Repositories/IDefaultKeyStorageDirectory.cs +++ b/src/DataProtection/DataProtection/src/Repositories/IDefaultKeyStorageDirectory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; diff --git a/src/DataProtection/DataProtection/src/Repositories/IXmlRepository.cs b/src/DataProtection/DataProtection/src/Repositories/IXmlRepository.cs index d62422d55ee0..61a1170e0476 100644 --- a/src/DataProtection/DataProtection/src/Repositories/IXmlRepository.cs +++ b/src/DataProtection/DataProtection/src/Repositories/IXmlRepository.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/Repositories/RegistryXmlRepository.cs b/src/DataProtection/DataProtection/src/Repositories/RegistryXmlRepository.cs index 98ba16480696..73de0df46fc0 100644 --- a/src/DataProtection/DataProtection/src/Repositories/RegistryXmlRepository.cs +++ b/src/DataProtection/DataProtection/src/Repositories/RegistryXmlRepository.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/SP800_108/ISP800_108_CTR_HMACSHA512Provider.cs b/src/DataProtection/DataProtection/src/SP800_108/ISP800_108_CTR_HMACSHA512Provider.cs index f7e6aecdb1f8..d67216437edd 100644 --- a/src/DataProtection/DataProtection/src/SP800_108/ISP800_108_CTR_HMACSHA512Provider.cs +++ b/src/DataProtection/DataProtection/src/SP800_108/ISP800_108_CTR_HMACSHA512Provider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/SP800_108/ManagedSP800_108_CTR_HMACSHA512.cs b/src/DataProtection/DataProtection/src/SP800_108/ManagedSP800_108_CTR_HMACSHA512.cs index 8962e90a2bde..c90f3f4d99de 100644 --- a/src/DataProtection/DataProtection/src/SP800_108/ManagedSP800_108_CTR_HMACSHA512.cs +++ b/src/DataProtection/DataProtection/src/SP800_108/ManagedSP800_108_CTR_HMACSHA512.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Extensions.cs b/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Extensions.cs index d4fd290116ea..c1cafc882b98 100644 --- a/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Extensions.cs +++ b/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Extensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Util.cs b/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Util.cs index 41205af1c4b4..8de707840a2c 100644 --- a/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Util.cs +++ b/src/DataProtection/DataProtection/src/SP800_108/SP800_108_CTR_HMACSHA512Util.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/SP800_108/Win7SP800_108_CTR_HMACSHA512Provider.cs b/src/DataProtection/DataProtection/src/SP800_108/Win7SP800_108_CTR_HMACSHA512Provider.cs index 3cbf45cbd9f8..f4ad86e96b49 100644 --- a/src/DataProtection/DataProtection/src/SP800_108/Win7SP800_108_CTR_HMACSHA512Provider.cs +++ b/src/DataProtection/DataProtection/src/SP800_108/Win7SP800_108_CTR_HMACSHA512Provider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/SP800_108/Win8SP800_108_CTR_HMACSHA512Provider.cs b/src/DataProtection/DataProtection/src/SP800_108/Win8SP800_108_CTR_HMACSHA512Provider.cs index 7e4f0babc396..a49307d7d786 100644 --- a/src/DataProtection/DataProtection/src/SP800_108/Win8SP800_108_CTR_HMACSHA512Provider.cs +++ b/src/DataProtection/DataProtection/src/SP800_108/Win8SP800_108_CTR_HMACSHA512Provider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; @@ -50,7 +50,7 @@ public void DeriveKey(byte* pbLabel, uint cbLabel, byte* pbContext, uint cbConte bufferDesc.cBuffers = 3; bufferDesc.pBuffers = pBuffers; - // Finally, invoke the KDF + // Finally, invoke the KDF uint numBytesDerived; var ntstatus = UnsafeNativeMethods.BCryptKeyDerivation( hKey: _keyHandle, diff --git a/src/DataProtection/DataProtection/src/Secret.cs b/src/DataProtection/DataProtection/src/Secret.cs index dd5e330ac9cf..8c0206d6c9b3 100644 --- a/src/DataProtection/DataProtection/src/Secret.cs +++ b/src/DataProtection/DataProtection/src/Secret.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography; diff --git a/src/DataProtection/DataProtection/src/SimpleActivator.cs b/src/DataProtection/DataProtection/src/SimpleActivator.cs index 78a421e3d515..d6895ab0cfa5 100644 --- a/src/DataProtection/DataProtection/src/SimpleActivator.cs +++ b/src/DataProtection/DataProtection/src/SimpleActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.Internal; diff --git a/src/DataProtection/DataProtection/src/TypeExtensions.cs b/src/DataProtection/DataProtection/src/TypeExtensions.cs index 0e35c06a6b92..f0f0fd62eabb 100644 --- a/src/DataProtection/DataProtection/src/TypeExtensions.cs +++ b/src/DataProtection/DataProtection/src/TypeExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/DataProtection/DataProtection/src/TypeForwardingActivator.cs b/src/DataProtection/DataProtection/src/TypeForwardingActivator.cs index 381430e1b4eb..bf2cf5e70ad2 100644 --- a/src/DataProtection/DataProtection/src/TypeForwardingActivator.cs +++ b/src/DataProtection/DataProtection/src/TypeForwardingActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/XmlConstants.cs b/src/DataProtection/DataProtection/src/XmlConstants.cs index 9908e8e13884..5d0aaed8f6ac 100644 --- a/src/DataProtection/DataProtection/src/XmlConstants.cs +++ b/src/DataProtection/DataProtection/src/XmlConstants.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/CertificateResolver.cs b/src/DataProtection/DataProtection/src/XmlEncryption/CertificateResolver.cs index a5d2036c29b6..4b7becbb0c6b 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/CertificateResolver.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/CertificateResolver.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/CertificateXmlEncryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/CertificateXmlEncryptor.cs index 927f1bbdfbf0..0ec839e603b0 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/CertificateXmlEncryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/CertificateXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography.X509Certificates; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGProtectionDescriptorFlags.cs b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGProtectionDescriptorFlags.cs index e0d3fafe6217..84a8846dc586 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGProtectionDescriptorFlags.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGProtectionDescriptorFlags.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlDecryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlDecryptor.cs index baaedf3e5232..2d6938a3b8f6 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlDecryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlEncryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlEncryptor.cs index 85234a2e3e21..ff0e04e0270f 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlEncryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlDecryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlDecryptor.cs index 4d7a8922692d..7f668feb1d13 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlDecryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlEncryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlEncryptor.cs index cd842f1acd23..28023b282158 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlEncryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/DpapiXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Versioning; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlDecryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlDecryptor.cs index 2144e2ece62e..80133b11cfba 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlDecryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlInfo.cs b/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlInfo.cs index 17e2a01e4efd..701fc8eed79e 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlInfo.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/EncryptedXmlInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/ICertificateResolver.cs b/src/DataProtection/DataProtection/src/XmlEncryption/ICertificateResolver.cs index b6d35215b4f3..b887f0273927 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/ICertificateResolver.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/ICertificateResolver.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Cryptography.X509Certificates; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/IInternalCertificateXmlEncryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/IInternalCertificateXmlEncryptor.cs index ef9fe716485a..f9171b81169f 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/IInternalCertificateXmlEncryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/IInternalCertificateXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/IInternalEncryptedXmlDecryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/IInternalEncryptedXmlDecryptor.cs index 79fc0481ede2..dde406e1fbaf 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/IInternalEncryptedXmlDecryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/IInternalEncryptedXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography.Xml; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/IXmlDecryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/IXmlDecryptor.cs index 1ada323d21bf..23bb0421b8f2 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/IXmlDecryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/IXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/IXmlEncryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/IXmlEncryptor.cs index 40a87d1a8d8e..ba39015518c8 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/IXmlEncryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/IXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlDecryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlDecryptor.cs index a63c0f296390..8c2a4155625f 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlDecryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlEncryptor.cs b/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlEncryptor.cs index 03965b2a2bf1..1f7775f7b1ca 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlEncryptor.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/NullXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/XmlEncryptionExtensions.cs b/src/DataProtection/DataProtection/src/XmlEncryption/XmlEncryptionExtensions.cs index 567efab4e9e5..849881c7ef0a 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/XmlEncryptionExtensions.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/XmlEncryptionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/XmlEncryption/XmlKeyDecryptionOptions.cs b/src/DataProtection/DataProtection/src/XmlEncryption/XmlKeyDecryptionOptions.cs index 7e7b1c8e79cc..1476977c3b43 100644 --- a/src/DataProtection/DataProtection/src/XmlEncryption/XmlKeyDecryptionOptions.cs +++ b/src/DataProtection/DataProtection/src/XmlEncryption/XmlKeyDecryptionOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/src/XmlExtensions.cs b/src/DataProtection/DataProtection/src/XmlExtensions.cs index bc08eb2b3db7..6189340d1c1a 100644 --- a/src/DataProtection/DataProtection/src/XmlExtensions.cs +++ b/src/DataProtection/DataProtection/src/XmlExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/ActivatorTests.cs b/src/DataProtection/DataProtection/test/ActivatorTests.cs index a249162706e4..ae12904bdeae 100644 --- a/src/DataProtection/DataProtection/test/ActivatorTests.cs +++ b/src/DataProtection/DataProtection/test/ActivatorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.Internal; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactoryTest.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactoryTest.cs index 734f4ad4e059..dec08cb5024e 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactoryTest.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngCbcAuthenticatedEncryptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.AuthenticatedEncryption.ConfigurationModel; using Microsoft.AspNetCore.DataProtection.Cng; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactoryTest.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactoryTest.cs index ef6b3fa5663c..e0f8c203396d 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactoryTest.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/CngGcmAuthenticatedEncryptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.AuthenticatedEncryption.ConfigurationModel; using Microsoft.AspNetCore.DataProtection.Cng; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializerTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializerTests.cs index fb4c9189f4ac..677af27b9fbc 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializerTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorDeserializerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorTests.cs index 5983ab6d9c26..441f5c149f0c 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/AuthenticatedEncryptorDescriptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfigurationTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfigurationTests.cs index 9be301495ea9..8bb06561b36e 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfigurationTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorConfigurationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs index c56ec763d53d..5ade034439f6 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorTests.cs index 6e251e03e9fb..a7579478c014 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngCbcAuthenticatedEncryptorDescriptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfigurationTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfigurationTests.cs index e70460cf407a..883c1cc7d73d 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfigurationTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorConfigurationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs index dff9d40e634d..38bf6cc09fe2 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorTests.cs index 16fcfd2cd74d..5bedb879c424 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/CngGcmAuthenticatedEncryptorDescriptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfigurationTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfigurationTests.cs index 6dbc4b7fea72..b90cd5c338e4 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfigurationTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorConfigurationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs index 7e1f98c64b45..14594e18b49b 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorTests.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorTests.cs index 40be1899c1a8..bb9e848b663f 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorTests.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ConfigurationModel/ManagedAuthenticatedEncryptorDescriptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactoryTest.cs b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactoryTest.cs index ef5eae5d19ee..82b73155054b 100644 --- a/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactoryTest.cs +++ b/src/DataProtection/DataProtection/test/AuthenticatedEncryption/ManagedAuthenticatedEncryptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.AuthenticatedEncryption.ConfigurationModel; using Microsoft.AspNetCore.DataProtection.Cng; diff --git a/src/DataProtection/DataProtection/test/Cng/CbcAuthenticatedEncryptorTests.cs b/src/DataProtection/DataProtection/test/Cng/CbcAuthenticatedEncryptorTests.cs index c2c4b260e308..17ef7a92d7ae 100644 --- a/src/DataProtection/DataProtection/test/Cng/CbcAuthenticatedEncryptorTests.cs +++ b/src/DataProtection/DataProtection/test/Cng/CbcAuthenticatedEncryptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/Cng/CngAuthenticatedEncryptorBaseTests.cs b/src/DataProtection/DataProtection/test/Cng/CngAuthenticatedEncryptorBaseTests.cs index da29deb155f9..9843c73208a2 100644 --- a/src/DataProtection/DataProtection/test/Cng/CngAuthenticatedEncryptorBaseTests.cs +++ b/src/DataProtection/DataProtection/test/Cng/CngAuthenticatedEncryptorBaseTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.Test.Shared; diff --git a/src/DataProtection/DataProtection/test/Cng/GcmAuthenticatedEncryptorTests.cs b/src/DataProtection/DataProtection/test/Cng/GcmAuthenticatedEncryptorTests.cs index fa245d72cb47..cfe5a05a658e 100644 --- a/src/DataProtection/DataProtection/test/Cng/GcmAuthenticatedEncryptorTests.cs +++ b/src/DataProtection/DataProtection/test/Cng/GcmAuthenticatedEncryptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/ContainerUtilsTests.cs b/src/DataProtection/DataProtection/test/ContainerUtilsTests.cs index f9e97ea8ab9f..d3ad8c8157af 100644 --- a/src/DataProtection/DataProtection/test/ContainerUtilsTests.cs +++ b/src/DataProtection/DataProtection/test/ContainerUtilsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.DataProtection.Internal; diff --git a/src/DataProtection/DataProtection/test/DataProtectionUtilityExtensionsTests.cs b/src/DataProtection/DataProtection/test/DataProtectionUtilityExtensionsTests.cs index 868c70f1fe23..5948b222a17d 100644 --- a/src/DataProtection/DataProtection/test/DataProtectionUtilityExtensionsTests.cs +++ b/src/DataProtection/DataProtection/test/DataProtectionUtilityExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.Infrastructure; diff --git a/src/DataProtection/DataProtection/test/EphemeralDataProtectionProviderTests.cs b/src/DataProtection/DataProtection/test/EphemeralDataProtectionProviderTests.cs index d42fe2113ccc..c7195de0c33e 100644 --- a/src/DataProtection/DataProtection/test/EphemeralDataProtectionProviderTests.cs +++ b/src/DataProtection/DataProtection/test/EphemeralDataProtectionProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/test/HostingTests.cs b/src/DataProtection/DataProtection/test/HostingTests.cs index 19ea93ac45ac..9f70e32da443 100644 --- a/src/DataProtection/DataProtection/test/HostingTests.cs +++ b/src/DataProtection/DataProtection/test/HostingTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -97,7 +97,7 @@ public async Task StartupContinuesOnFailureToLoadKey() { await host.StartAsync(); } - + mockKeyRing.VerifyAll(); } diff --git a/src/DataProtection/DataProtection/test/Internal/KeyManagementOptionsSetupTest.cs b/src/DataProtection/DataProtection/test/Internal/KeyManagementOptionsSetupTest.cs index 1f6d8570d7d9..552469dba8eb 100644 --- a/src/DataProtection/DataProtection/test/Internal/KeyManagementOptionsSetupTest.cs +++ b/src/DataProtection/DataProtection/test/Internal/KeyManagementOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/CacheableKeyRingTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/CacheableKeyRingTests.cs index 27eaa3bf310f..353d93962fb4 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/CacheableKeyRingTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/CacheableKeyRingTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/DefaultKeyResolverTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/DefaultKeyResolverTests.cs index 46e9b5f99396..0b7993080bc2 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/DefaultKeyResolverTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/DefaultKeyResolverTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -262,7 +262,7 @@ private static IKey CreateKey(string activationDate, string expirationDate, stri { mockKey.Setup(o => o.CreateEncryptor()).Returns(Mock.Of()); } - + return mockKey.Object; } } diff --git a/src/DataProtection/DataProtection/test/KeyManagement/DeferredKeyTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/DeferredKeyTests.cs index 2a166564d04f..214025825329 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/DeferredKeyTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/DeferredKeyTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/KeyEscrowServiceProviderExtensionsTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/KeyEscrowServiceProviderExtensionsTests.cs index 8db64657db30..754194e11b85 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/KeyEscrowServiceProviderExtensionsTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/KeyEscrowServiceProviderExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/KeyRingBasedDataProtectorTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/KeyRingBasedDataProtectorTests.cs index 97476760acf1..d5f4d8dcc0f9 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/KeyRingBasedDataProtectorTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/KeyRingBasedDataProtectorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/KeyRingProviderTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/KeyRingProviderTests.cs index fd62d6a0280f..692599d94101 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/KeyRingProviderTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/KeyRingProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/KeyRingTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/KeyRingTests.cs index 177c7c5d63ac..31930ab2419e 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/KeyRingTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/KeyRingTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.AuthenticatedEncryption; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/KeyTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/KeyTests.cs index 6aa691723deb..6f8c6ad219e8 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/KeyTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/KeyTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel; diff --git a/src/DataProtection/DataProtection/test/KeyManagement/XmlKeyManagerTests.cs b/src/DataProtection/DataProtection/test/KeyManagement/XmlKeyManagerTests.cs index efb107feca72..0f5b9612f54b 100644 --- a/src/DataProtection/DataProtection/test/KeyManagement/XmlKeyManagerTests.cs +++ b/src/DataProtection/DataProtection/test/KeyManagement/XmlKeyManagerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/Managed/ManagedAuthenticatedEncryptorTests.cs b/src/DataProtection/DataProtection/test/Managed/ManagedAuthenticatedEncryptorTests.cs index a908c3e85ee9..8ae710351609 100644 --- a/src/DataProtection/DataProtection/test/Managed/ManagedAuthenticatedEncryptorTests.cs +++ b/src/DataProtection/DataProtection/test/Managed/ManagedAuthenticatedEncryptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/MockExtensions.cs b/src/DataProtection/DataProtection/test/MockExtensions.cs index 76f5dc94e6ee..d00951790866 100644 --- a/src/DataProtection/DataProtection/test/MockExtensions.cs +++ b/src/DataProtection/DataProtection/test/MockExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/Properties/AssemblyInfo.cs b/src/DataProtection/DataProtection/test/Properties/AssemblyInfo.cs index 3adbc7af4e4e..ef544cb2e6ce 100644 --- a/src/DataProtection/DataProtection/test/Properties/AssemblyInfo.cs +++ b/src/DataProtection/DataProtection/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/DataProtection/test/RegistryPolicyResolverTests.cs b/src/DataProtection/DataProtection/test/RegistryPolicyResolverTests.cs index 51759f3eb206..2ecb157ab496 100644 --- a/src/DataProtection/DataProtection/test/RegistryPolicyResolverTests.cs +++ b/src/DataProtection/DataProtection/test/RegistryPolicyResolverTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/Repositories/EphemeralXmlRepositoryTests.cs b/src/DataProtection/DataProtection/test/Repositories/EphemeralXmlRepositoryTests.cs index b90326741502..b4baefdb2334 100644 --- a/src/DataProtection/DataProtection/test/Repositories/EphemeralXmlRepositoryTests.cs +++ b/src/DataProtection/DataProtection/test/Repositories/EphemeralXmlRepositoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/Repositories/FileSystemXmlRepositoryTests.cs b/src/DataProtection/DataProtection/test/Repositories/FileSystemXmlRepositoryTests.cs index 8099f04c15c3..4a5fbd282bfd 100644 --- a/src/DataProtection/DataProtection/test/Repositories/FileSystemXmlRepositoryTests.cs +++ b/src/DataProtection/DataProtection/test/Repositories/FileSystemXmlRepositoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/DataProtection/test/Repositories/RegistryXmlRepositoryTests.cs b/src/DataProtection/DataProtection/test/Repositories/RegistryXmlRepositoryTests.cs index 47a94db5ecc2..25fe84bfeb27 100644 --- a/src/DataProtection/DataProtection/test/Repositories/RegistryXmlRepositoryTests.cs +++ b/src/DataProtection/DataProtection/test/Repositories/RegistryXmlRepositoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/SP800_108/SP800_108Tests.cs b/src/DataProtection/DataProtection/test/SP800_108/SP800_108Tests.cs index 6ae923cade33..f48f01c39c12 100644 --- a/src/DataProtection/DataProtection/test/SP800_108/SP800_108Tests.cs +++ b/src/DataProtection/DataProtection/test/SP800_108/SP800_108Tests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/test/SecretAssert.cs b/src/DataProtection/DataProtection/test/SecretAssert.cs index d3fb1cbc70c5..a866d75f283e 100644 --- a/src/DataProtection/DataProtection/test/SecretAssert.cs +++ b/src/DataProtection/DataProtection/test/SecretAssert.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/DataProtection/DataProtection/test/SecretTests.cs b/src/DataProtection/DataProtection/test/SecretTests.cs index b9342ad76539..e1d96b7bfb82 100644 --- a/src/DataProtection/DataProtection/test/SecretTests.cs +++ b/src/DataProtection/DataProtection/test/SecretTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/DataProtection/DataProtection/test/SequentialGenRandom.cs b/src/DataProtection/DataProtection/test/SequentialGenRandom.cs index c37462ef9784..7b60ab91d4fe 100644 --- a/src/DataProtection/DataProtection/test/SequentialGenRandom.cs +++ b/src/DataProtection/DataProtection/test/SequentialGenRandom.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection.Cng; diff --git a/src/DataProtection/DataProtection/test/ServiceCollectionTests.cs b/src/DataProtection/DataProtection/test/ServiceCollectionTests.cs index ad05973c0bc4..b7c3ec3a360b 100644 --- a/src/DataProtection/DataProtection/test/ServiceCollectionTests.cs +++ b/src/DataProtection/DataProtection/test/ServiceCollectionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/DataProtection/DataProtection/test/StringLoggerFactory.cs b/src/DataProtection/DataProtection/test/StringLoggerFactory.cs index 8d2b146b2798..942a41bbe125 100644 --- a/src/DataProtection/DataProtection/test/StringLoggerFactory.cs +++ b/src/DataProtection/DataProtection/test/StringLoggerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/DataProtection/test/TypeForwardingActivatorTests.cs b/src/DataProtection/DataProtection/test/TypeForwardingActivatorTests.cs index 4cc46c758483..d5ba4fe40ea2 100644 --- a/src/DataProtection/DataProtection/test/TypeForwardingActivatorTests.cs +++ b/src/DataProtection/DataProtection/test/TypeForwardingActivatorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/XmlAssert.cs b/src/DataProtection/DataProtection/test/XmlAssert.cs index d6febaa0b378..d4bc4f16e354 100644 --- a/src/DataProtection/DataProtection/test/XmlAssert.cs +++ b/src/DataProtection/DataProtection/test/XmlAssert.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/DataProtection/test/XmlEncryption/CertificateXmlEncryptionTests.cs b/src/DataProtection/DataProtection/test/XmlEncryption/CertificateXmlEncryptionTests.cs index 414f40a39cc5..fa938ed5bfc7 100644 --- a/src/DataProtection/DataProtection/test/XmlEncryption/CertificateXmlEncryptionTests.cs +++ b/src/DataProtection/DataProtection/test/XmlEncryption/CertificateXmlEncryptionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/DataProtection/test/XmlEncryption/DpapiNGXmlEncryptionTests.cs b/src/DataProtection/DataProtection/test/XmlEncryption/DpapiNGXmlEncryptionTests.cs index 1c7e3c40c7aa..bf567abd87ba 100644 --- a/src/DataProtection/DataProtection/test/XmlEncryption/DpapiNGXmlEncryptionTests.cs +++ b/src/DataProtection/DataProtection/test/XmlEncryption/DpapiNGXmlEncryptionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/XmlEncryption/DpapiXmlEncryptionTests.cs b/src/DataProtection/DataProtection/test/XmlEncryption/DpapiXmlEncryptionTests.cs index 22a6c3094736..91c9c3daab81 100644 --- a/src/DataProtection/DataProtection/test/XmlEncryption/DpapiXmlEncryptionTests.cs +++ b/src/DataProtection/DataProtection/test/XmlEncryption/DpapiXmlEncryptionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/XmlEncryption/EncryptedXmlDecryptorTests.cs b/src/DataProtection/DataProtection/test/XmlEncryption/EncryptedXmlDecryptorTests.cs index 5d3bb6943ae8..a63bc59e2bf1 100644 --- a/src/DataProtection/DataProtection/test/XmlEncryption/EncryptedXmlDecryptorTests.cs +++ b/src/DataProtection/DataProtection/test/XmlEncryption/EncryptedXmlDecryptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/DataProtection/test/XmlEncryption/NullXmlEncryptionTests.cs b/src/DataProtection/DataProtection/test/XmlEncryption/NullXmlEncryptionTests.cs index 8f4433d78c27..194e6f7ae4c8 100644 --- a/src/DataProtection/DataProtection/test/XmlEncryption/NullXmlEncryptionTests.cs +++ b/src/DataProtection/DataProtection/test/XmlEncryption/NullXmlEncryptionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/DataProtection/test/XmlEncryption/XmlEncryptionExtensionsTests.cs b/src/DataProtection/DataProtection/test/XmlEncryption/XmlEncryptionExtensionsTests.cs index 7abe4972df56..397d56bf337e 100644 --- a/src/DataProtection/DataProtection/test/XmlEncryption/XmlEncryptionExtensionsTests.cs +++ b/src/DataProtection/DataProtection/test/XmlEncryption/XmlEncryptionExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/EntityFrameworkCore/src/DataProtectionKey.cs b/src/DataProtection/EntityFrameworkCore/src/DataProtectionKey.cs index b59ee4f6c68f..c47015209308 100644 --- a/src/DataProtection/EntityFrameworkCore/src/DataProtectionKey.cs +++ b/src/DataProtection/EntityFrameworkCore/src/DataProtectionKey.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.DataProtection.EntityFrameworkCore { diff --git a/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreDataProtectionExtensions.cs b/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreDataProtectionExtensions.cs index ff24b58eb9d9..4f54b88277c2 100644 --- a/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreDataProtectionExtensions.cs +++ b/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreDataProtectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.EntityFrameworkCore; using Microsoft.AspNetCore.DataProtection.KeyManagement; diff --git a/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreXmlRepository.cs b/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreXmlRepository.cs index ec9efba809ed..b8d611c3f07b 100644 --- a/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreXmlRepository.cs +++ b/src/DataProtection/EntityFrameworkCore/src/EntityFrameworkCoreXmlRepository.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/EntityFrameworkCore/src/IDataProtectionKeyContext.cs b/src/DataProtection/EntityFrameworkCore/src/IDataProtectionKeyContext.cs index 39998d2a79cc..30ac76c5deda 100644 --- a/src/DataProtection/EntityFrameworkCore/src/IDataProtectionKeyContext.cs +++ b/src/DataProtection/EntityFrameworkCore/src/IDataProtectionKeyContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore; diff --git a/src/DataProtection/EntityFrameworkCore/src/LoggingExtensions.cs b/src/DataProtection/EntityFrameworkCore/src/LoggingExtensions.cs index 894d0a30511c..3b68e73e4fea 100644 --- a/src/DataProtection/EntityFrameworkCore/src/LoggingExtensions.cs +++ b/src/DataProtection/EntityFrameworkCore/src/LoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/EntityFrameworkCore/test/DataProtectionEntityFrameworkTests.cs b/src/DataProtection/EntityFrameworkCore/test/DataProtectionEntityFrameworkTests.cs index c298d8e64f2c..e40d2ad5fb28 100644 --- a/src/DataProtection/EntityFrameworkCore/test/DataProtectionEntityFrameworkTests.cs +++ b/src/DataProtection/EntityFrameworkCore/test/DataProtectionEntityFrameworkTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/EntityFrameworkCore/test/DataProtectionKeyContext.cs b/src/DataProtection/EntityFrameworkCore/test/DataProtectionKeyContext.cs index 96151de0bb02..2d5d50436c9d 100644 --- a/src/DataProtection/EntityFrameworkCore/test/DataProtectionKeyContext.cs +++ b/src/DataProtection/EntityFrameworkCore/test/DataProtectionKeyContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore; diff --git a/src/DataProtection/EntityFrameworkCore/test/EntityFrameworkCoreDataProtectionBuilderExtensionsTests.cs b/src/DataProtection/EntityFrameworkCore/test/EntityFrameworkCoreDataProtectionBuilderExtensionsTests.cs index 55b67d98e382..117d02cea1a8 100644 --- a/src/DataProtection/EntityFrameworkCore/test/EntityFrameworkCoreDataProtectionBuilderExtensionsTests.cs +++ b/src/DataProtection/EntityFrameworkCore/test/EntityFrameworkCoreDataProtectionBuilderExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.KeyManagement; using Microsoft.Extensions.DependencyInjection; diff --git a/src/DataProtection/Extensions/src/BitHelpers.cs b/src/DataProtection/Extensions/src/BitHelpers.cs index eb2063fbd8af..450973e972e7 100644 --- a/src/DataProtection/Extensions/src/BitHelpers.cs +++ b/src/DataProtection/Extensions/src/BitHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Extensions/src/DataProtectionAdvancedExtensions.cs b/src/DataProtection/Extensions/src/DataProtectionAdvancedExtensions.cs index 6e4c2aabac0e..281d480db5d4 100644 --- a/src/DataProtection/Extensions/src/DataProtectionAdvancedExtensions.cs +++ b/src/DataProtection/Extensions/src/DataProtectionAdvancedExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Extensions/src/DataProtectionProvider.cs b/src/DataProtection/Extensions/src/DataProtectionProvider.cs index 0ffd6d0d9653..536bbdd4f903 100644 --- a/src/DataProtection/Extensions/src/DataProtectionProvider.cs +++ b/src/DataProtection/Extensions/src/DataProtectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/Extensions/src/ITimeLimitedDataProtector.cs b/src/DataProtection/Extensions/src/ITimeLimitedDataProtector.cs index 71fa609f2128..275ac785b7d6 100644 --- a/src/DataProtection/Extensions/src/ITimeLimitedDataProtector.cs +++ b/src/DataProtection/Extensions/src/ITimeLimitedDataProtector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/DataProtection/Extensions/src/Properties/AssemblyInfo.cs b/src/DataProtection/Extensions/src/Properties/AssemblyInfo.cs index 19b899381509..6ed05a83b7ec 100644 --- a/src/DataProtection/Extensions/src/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Extensions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DataProtection/Extensions/src/TimeLimitedDataProtector.cs b/src/DataProtection/Extensions/src/TimeLimitedDataProtector.cs index 174176d143af..66aad0258441 100644 --- a/src/DataProtection/Extensions/src/TimeLimitedDataProtector.cs +++ b/src/DataProtection/Extensions/src/TimeLimitedDataProtector.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/Extensions/test/DataProtectionAdvancedExtensionsTests.cs b/src/DataProtection/Extensions/test/DataProtectionAdvancedExtensionsTests.cs index c98aff6c8f34..0e8a68464bb8 100644 --- a/src/DataProtection/Extensions/test/DataProtectionAdvancedExtensionsTests.cs +++ b/src/DataProtection/Extensions/test/DataProtectionAdvancedExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs b/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs index e2431a2fa8bf..31e69fcc2e17 100644 --- a/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs +++ b/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/Extensions/test/Properties/AssemblyInfo.cs b/src/DataProtection/Extensions/test/Properties/AssemblyInfo.cs index a613784a3270..9c0efd071db5 100644 --- a/src/DataProtection/Extensions/test/Properties/AssemblyInfo.cs +++ b/src/DataProtection/Extensions/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/DataProtection/Extensions/test/TimeLimitedDataProtectorTests.cs b/src/DataProtection/Extensions/test/TimeLimitedDataProtectorTests.cs index 47dfc26fd748..ac4d35524cb6 100644 --- a/src/DataProtection/Extensions/test/TimeLimitedDataProtectorTests.cs +++ b/src/DataProtection/Extensions/test/TimeLimitedDataProtectorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/DataProtection/Extensions/test/X509StoreIsAvailableAttribute.cs b/src/DataProtection/Extensions/test/X509StoreIsAvailableAttribute.cs index 28196fb747b8..387f8246eaa0 100644 --- a/src/DataProtection/Extensions/test/X509StoreIsAvailableAttribute.cs +++ b/src/DataProtection/Extensions/test/X509StoreIsAvailableAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography.X509Certificates; diff --git a/src/DataProtection/StackExchangeRedis/src/RedisDataProtectionBuilderExtensions.cs b/src/DataProtection/StackExchangeRedis/src/RedisDataProtectionBuilderExtensions.cs index ead1b37db565..2fe6db7cb542 100644 --- a/src/DataProtection/StackExchangeRedis/src/RedisDataProtectionBuilderExtensions.cs +++ b/src/DataProtection/StackExchangeRedis/src/RedisDataProtectionBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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 StackExchange.Redis; diff --git a/src/DataProtection/StackExchangeRedis/src/RedisXmlRepository.cs b/src/DataProtection/StackExchangeRedis/src/RedisXmlRepository.cs index 2665fd1408d3..a2a3495c0d2e 100644 --- a/src/DataProtection/StackExchangeRedis/src/RedisXmlRepository.cs +++ b/src/DataProtection/StackExchangeRedis/src/RedisXmlRepository.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/StackExchangeRedis/test/DataProtectionRedisTests.cs b/src/DataProtection/StackExchangeRedis/test/DataProtectionRedisTests.cs index 0a61c753f1a0..62d3d7530839 100644 --- a/src/DataProtection/StackExchangeRedis/test/DataProtectionRedisTests.cs +++ b/src/DataProtection/StackExchangeRedis/test/DataProtectionRedisTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/StackExchangeRedis/test/RedisDataProtectionBuilderExtensionsTest.cs b/src/DataProtection/StackExchangeRedis/test/RedisDataProtectionBuilderExtensionsTest.cs index 2b4c2865c310..ca2d1abac1b8 100644 --- a/src/DataProtection/StackExchangeRedis/test/RedisDataProtectionBuilderExtensionsTest.cs +++ b/src/DataProtection/StackExchangeRedis/test/RedisDataProtectionBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DataProtection.KeyManagement; using Microsoft.Extensions.DependencyInjection; diff --git a/src/DataProtection/StackExchangeRedis/test/TestRedisServer.cs b/src/DataProtection/StackExchangeRedis/test/TestRedisServer.cs index dfe369625a13..b4e4c68bdc4f 100644 --- a/src/DataProtection/StackExchangeRedis/test/TestRedisServer.cs +++ b/src/DataProtection/StackExchangeRedis/test/TestRedisServer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Configuration; using System; diff --git a/src/DataProtection/StackExchangeRedis/test/TestRedisServerIsAvailableAttribute.cs b/src/DataProtection/StackExchangeRedis/test/TestRedisServerIsAvailableAttribute.cs index 48b14bb708e0..938324fde05e 100644 --- a/src/DataProtection/StackExchangeRedis/test/TestRedisServerIsAvailableAttribute.cs +++ b/src/DataProtection/StackExchangeRedis/test/TestRedisServerIsAvailableAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using System; diff --git a/src/DataProtection/samples/CustomEncryptorSample/CustomBuilderExtensions.cs b/src/DataProtection/samples/CustomEncryptorSample/CustomBuilderExtensions.cs index faa99a4a5d42..8338ef349f88 100644 --- a/src/DataProtection/samples/CustomEncryptorSample/CustomBuilderExtensions.cs +++ b/src/DataProtection/samples/CustomEncryptorSample/CustomBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection; diff --git a/src/DataProtection/samples/CustomEncryptorSample/CustomXmlDecryptor.cs b/src/DataProtection/samples/CustomEncryptorSample/CustomXmlDecryptor.cs index a8925f12f613..9678da366840 100644 --- a/src/DataProtection/samples/CustomEncryptorSample/CustomXmlDecryptor.cs +++ b/src/DataProtection/samples/CustomEncryptorSample/CustomXmlDecryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DataProtection/samples/CustomEncryptorSample/CustomXmlEncryptor.cs b/src/DataProtection/samples/CustomEncryptorSample/CustomXmlEncryptor.cs index f6653f776a1e..cb5f97b87931 100644 --- a/src/DataProtection/samples/CustomEncryptorSample/CustomXmlEncryptor.cs +++ b/src/DataProtection/samples/CustomEncryptorSample/CustomXmlEncryptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml.Linq; diff --git a/src/DataProtection/samples/CustomEncryptorSample/Program.cs b/src/DataProtection/samples/CustomEncryptorSample/Program.cs index 9079aeee3fc4..6ac4bf5f0857 100644 --- a/src/DataProtection/samples/CustomEncryptorSample/Program.cs +++ b/src/DataProtection/samples/CustomEncryptorSample/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/samples/EntityFrameworkCoreSample/Migrations/20181219214311_AddDataProtectionKeys.cs b/src/DataProtection/samples/EntityFrameworkCoreSample/Migrations/20181219214311_AddDataProtectionKeys.cs index ac1f0ae29e92..099da691f85e 100644 --- a/src/DataProtection/samples/EntityFrameworkCoreSample/Migrations/20181219214311_AddDataProtectionKeys.cs +++ b/src/DataProtection/samples/EntityFrameworkCoreSample/Migrations/20181219214311_AddDataProtectionKeys.cs @@ -1,4 +1,7 @@ -using Microsoft.EntityFrameworkCore.Metadata; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace EntityFrameworkCoreSample.Migrations diff --git a/src/DataProtection/samples/EntityFrameworkCoreSample/Program.cs b/src/DataProtection/samples/EntityFrameworkCoreSample/Program.cs index 896fcf2b52a0..7a059b1736e1 100644 --- a/src/DataProtection/samples/EntityFrameworkCoreSample/Program.cs +++ b/src/DataProtection/samples/EntityFrameworkCoreSample/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection; diff --git a/src/DataProtection/samples/KeyManagementSample/Program.cs b/src/DataProtection/samples/KeyManagementSample/Program.cs index be128aa11c80..28a99204fd32 100644 --- a/src/DataProtection/samples/KeyManagementSample/Program.cs +++ b/src/DataProtection/samples/KeyManagementSample/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/samples/NonDISample/Program.cs b/src/DataProtection/samples/NonDISample/Program.cs index f9ccd92603bd..9754e84a62f4 100644 --- a/src/DataProtection/samples/NonDISample/Program.cs +++ b/src/DataProtection/samples/NonDISample/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DataProtection/samples/Redis/Program.cs b/src/DataProtection/samples/Redis/Program.cs index 57d910ae8f55..e9f7e5358c7f 100644 --- a/src/DataProtection/samples/Redis/Program.cs +++ b/src/DataProtection/samples/Redis/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.DataProtection; diff --git a/src/DataProtection/shared/src/EncodingUtil.cs b/src/DataProtection/shared/src/EncodingUtil.cs index 67b99eac3bd6..2ff96243a383 100644 --- a/src/DataProtection/shared/src/EncodingUtil.cs +++ b/src/DataProtection/shared/src/EncodingUtil.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/DataProtection/shared/src/ExceptionExtensions.cs b/src/DataProtection/shared/src/ExceptionExtensions.cs index f441935d13d4..df29ea9f725f 100644 --- a/src/DataProtection/shared/src/ExceptionExtensions.cs +++ b/src/DataProtection/shared/src/ExceptionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DataProtection/shared/test/ConditionalRunTestOnlyWindows8OrLaterAttribute.cs b/src/DataProtection/shared/test/ConditionalRunTestOnlyWindows8OrLaterAttribute.cs index 0311e43a1291..09c799e3e370 100644 --- a/src/DataProtection/shared/test/ConditionalRunTestOnlyWindows8OrLaterAttribute.cs +++ b/src/DataProtection/shared/test/ConditionalRunTestOnlyWindows8OrLaterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.Cng; diff --git a/src/DataProtection/shared/test/ConditionalRunTestOnlyWindowsAttribute.cs b/src/DataProtection/shared/test/ConditionalRunTestOnlyWindowsAttribute.cs index 28ff2c6d83c1..d6c6c9138fb7 100644 --- a/src/DataProtection/shared/test/ConditionalRunTestOnlyWindowsAttribute.cs +++ b/src/DataProtection/shared/test/ConditionalRunTestOnlyWindowsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cryptography.Cng; diff --git a/src/DataProtection/shared/test/ExceptionAssert2.cs b/src/DataProtection/shared/test/ExceptionAssert2.cs index ccc596b48cef..c568b3190f27 100644 --- a/src/DataProtection/shared/test/ExceptionAssert2.cs +++ b/src/DataProtection/shared/test/ExceptionAssert2.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/DefaultBuilder/samples/SampleApp/Program.cs b/src/DefaultBuilder/samples/SampleApp/Program.cs index 51a4e81a0ef6..97aff2994d10 100644 --- a/src/DefaultBuilder/samples/SampleApp/Program.cs +++ b/src/DefaultBuilder/samples/SampleApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore; diff --git a/src/DefaultBuilder/samples/SampleApp/Startup.cs b/src/DefaultBuilder/samples/SampleApp/Startup.cs index 3f68a6050c98..8480639eb378 100644 --- a/src/DefaultBuilder/samples/SampleApp/Startup.cs +++ b/src/DefaultBuilder/samples/SampleApp/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/src/BootstrapHostBuilder.cs b/src/DefaultBuilder/src/BootstrapHostBuilder.cs index 54f79059e228..34b680fbef38 100644 --- a/src/DefaultBuilder/src/BootstrapHostBuilder.cs +++ b/src/DefaultBuilder/src/BootstrapHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/src/ConfigureHostBuilder.cs b/src/DefaultBuilder/src/ConfigureHostBuilder.cs index a79242d4ddc3..53d2d778735e 100644 --- a/src/DefaultBuilder/src/ConfigureHostBuilder.cs +++ b/src/DefaultBuilder/src/ConfigureHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/src/ConfigureWebHostBuilder.cs b/src/DefaultBuilder/src/ConfigureWebHostBuilder.cs index ec0d06949b0e..664d764d5065 100644 --- a/src/DefaultBuilder/src/ConfigureWebHostBuilder.cs +++ b/src/DefaultBuilder/src/ConfigureWebHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/src/ForwardedHeadersStartupFilter.cs b/src/DefaultBuilder/src/ForwardedHeadersStartupFilter.cs index 513aa5acc1fc..68814230718e 100644 --- a/src/DefaultBuilder/src/ForwardedHeadersStartupFilter.cs +++ b/src/DefaultBuilder/src/ForwardedHeadersStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs b/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs index 4d523dead708..e8dbf833f5d7 100644 --- a/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs +++ b/src/DefaultBuilder/src/GenericHostBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; @@ -13,15 +13,15 @@ namespace Microsoft.Extensions.Hosting public static class GenericHostBuilderExtensions { /// - /// Configures a with defaults for hosting a web app. This should be called - /// before application specific configuration to avoid it overwriting provided services, configuration sources, + /// Configures a with defaults for hosting a web app. This should be called + /// before application specific configuration to avoid it overwriting provided services, configuration sources, /// environments, content root, etc. /// /// /// The following defaults are applied to the : /// /// use Kestrel as the web server and configure it using the application's configuration providers - /// configure to include static web assets from projects referenced by the entry assembly during development + /// configure to include static web assets from projects referenced by the entry assembly during development /// adds the HostFiltering middleware /// adds the ForwardedHeaders middleware if ASPNETCORE_FORWARDEDHEADERS_ENABLED=true, /// enable IIS integration diff --git a/src/DefaultBuilder/src/HostFilteringStartupFilter.cs b/src/DefaultBuilder/src/HostFilteringStartupFilter.cs index 56c6d9c34fe3..852897c08c1b 100644 --- a/src/DefaultBuilder/src/HostFilteringStartupFilter.cs +++ b/src/DefaultBuilder/src/HostFilteringStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/DefaultBuilder/src/Properties/AssemblyInfo.cs b/src/DefaultBuilder/src/Properties/AssemblyInfo.cs index 97ac339e54a9..b1222150b7bf 100644 --- a/src/DefaultBuilder/src/Properties/AssemblyInfo.cs +++ b/src/DefaultBuilder/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/DefaultBuilder/src/WebApplication.cs b/src/DefaultBuilder/src/WebApplication.cs index fa1f8db2c446..0e1c9bb046e0 100644 --- a/src/DefaultBuilder/src/WebApplication.cs +++ b/src/DefaultBuilder/src/WebApplication.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Hosting; diff --git a/src/DefaultBuilder/src/WebApplicationBuilder.cs b/src/DefaultBuilder/src/WebApplicationBuilder.cs index fba91218da63..f60cecc53e68 100644 --- a/src/DefaultBuilder/src/WebApplicationBuilder.cs +++ b/src/DefaultBuilder/src/WebApplicationBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Reflection; diff --git a/src/DefaultBuilder/src/WebHost.cs b/src/DefaultBuilder/src/WebHost.cs index 284c5a64a859..7514d85b7707 100644 --- a/src/DefaultBuilder/src/WebHost.cs +++ b/src/DefaultBuilder/src/WebHost.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DefaultBuilder/src/WebHostEnvironment.cs b/src/DefaultBuilder/src/WebHostEnvironment.cs index 323079642cf0..848dd00bd22c 100644 --- a/src/DefaultBuilder/src/WebHostEnvironment.cs +++ b/src/DefaultBuilder/src/WebHostEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebApplicationFunctionalTests.cs b/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebApplicationFunctionalTests.cs index abeb0f16661c..c86e98459ba8 100644 --- a/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebApplicationFunctionalTests.cs +++ b/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebApplicationFunctionalTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebHostFunctionalTests.cs b/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebHostFunctionalTests.cs index 309f4075aeb1..6dff1ffd0175 100644 --- a/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebHostFunctionalTests.cs +++ b/src/DefaultBuilder/test/Microsoft.AspNetCore.FunctionalTests/WebHostFunctionalTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs b/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs index 6784bdc13558..bb7e90bfd872 100644 --- a/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs +++ b/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebApplicationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using System.Diagnostics.Tracing; diff --git a/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostEnvironmentTests.cs b/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostEnvironmentTests.cs index d398b0d1a8e5..1d8d61f7c798 100644 --- a/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostEnvironmentTests.cs +++ b/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostEnvironmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -99,7 +99,7 @@ public void RelativePathsAreMappedToFullPaths() var relativeRootPath = "some-relative-path"; var relativeSubPath = "some-other-relative-path"; var fullContentRoot = Path.Combine(AppContext.BaseDirectory, relativeRootPath); - + // ContentRootPath is mapped relative to AppContext.BaseDirectory environment.ContentRootPath = relativeRootPath; Assert.Equal(fullContentRoot, environment.ContentRootPath); diff --git a/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostTests.cs b/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostTests.cs index ec0d57a0e47e..5a9b0bbae9a6 100644 --- a/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostTests.cs +++ b/src/DefaultBuilder/test/Microsoft.AspNetCore.Tests/WebHostTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/Program.cs b/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/Program.cs index 9a1e5bdfc5cf..19d57925a7b6 100644 --- a/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/Program.cs +++ b/src/DefaultBuilder/testassets/CreateDefaultBuilderApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore; diff --git a/src/DefaultBuilder/testassets/CreateDefaultBuilderOfTApp/Program.cs b/src/DefaultBuilder/testassets/CreateDefaultBuilderOfTApp/Program.cs index ee07f647daa4..90375c147ed1 100644 --- a/src/DefaultBuilder/testassets/CreateDefaultBuilderOfTApp/Program.cs +++ b/src/DefaultBuilder/testassets/CreateDefaultBuilderOfTApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore; diff --git a/src/DefaultBuilder/testassets/DependencyInjectionApp/Program.cs b/src/DefaultBuilder/testassets/DependencyInjectionApp/Program.cs index c8877442e5af..e79b61ac2c16 100644 --- a/src/DefaultBuilder/testassets/DependencyInjectionApp/Program.cs +++ b/src/DefaultBuilder/testassets/DependencyInjectionApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore; diff --git a/src/DefaultBuilder/testassets/StartRequestDelegateUrlApp/Program.cs b/src/DefaultBuilder/testassets/StartRequestDelegateUrlApp/Program.cs index 23069a53662b..b91947394869 100644 --- a/src/DefaultBuilder/testassets/StartRequestDelegateUrlApp/Program.cs +++ b/src/DefaultBuilder/testassets/StartRequestDelegateUrlApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/testassets/StartRouteBuilderUrlApp/Program.cs b/src/DefaultBuilder/testassets/StartRouteBuilderUrlApp/Program.cs index 2f59a81811e8..bd08928f802e 100644 --- a/src/DefaultBuilder/testassets/StartRouteBuilderUrlApp/Program.cs +++ b/src/DefaultBuilder/testassets/StartRouteBuilderUrlApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/DefaultBuilder/testassets/StartWithIApplicationBuilderUrlApp/Program.cs b/src/DefaultBuilder/testassets/StartWithIApplicationBuilderUrlApp/Program.cs index cf42cee87ffb..2ba8446a9604 100644 --- a/src/DefaultBuilder/testassets/StartWithIApplicationBuilderUrlApp/Program.cs +++ b/src/DefaultBuilder/testassets/StartWithIApplicationBuilderUrlApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Extensions/Features/src/FeatureCollection.cs b/src/Extensions/Features/src/FeatureCollection.cs index 7bde54632dfb..a081dd704db1 100644 --- a/src/Extensions/Features/src/FeatureCollection.cs +++ b/src/Extensions/Features/src/FeatureCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Extensions/Features/src/FeatureReference.cs b/src/Extensions/Features/src/FeatureReference.cs index 3cf22c1ffe79..85487f0187b4 100644 --- a/src/Extensions/Features/src/FeatureReference.cs +++ b/src/Extensions/Features/src/FeatureReference.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Extensions/Features/src/FeatureReferences.cs b/src/Extensions/Features/src/FeatureReferences.cs index 374fa614094b..7d35aad039e9 100644 --- a/src/Extensions/Features/src/FeatureReferences.cs +++ b/src/Extensions/Features/src/FeatureReferences.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; @@ -57,7 +57,7 @@ public void Initalize(IFeatureCollection collection, int revision) public int Revision { get; private set; } // cache is a public field because the code calling Fetch must - // be able to pass ref values that "dot through" the TCache struct memory, + // be able to pass ref values that "dot through" the TCache struct memory, // if it was a Property then that getter would return a copy of the memory // preventing the use of "ref" /// diff --git a/src/Extensions/Features/src/IFeatureCollection.cs b/src/Extensions/Features/src/IFeatureCollection.cs index ff1f3ec69676..e4e7ba80976b 100644 --- a/src/Extensions/Features/src/IFeatureCollection.cs +++ b/src/Extensions/Features/src/IFeatureCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Extensions/Features/test/FeatureCollectionTests.cs b/src/Extensions/Features/test/FeatureCollectionTests.cs index a09ad7cedfb4..ca806698b9a7 100644 --- a/src/Extensions/Features/test/FeatureCollectionTests.cs +++ b/src/Extensions/Features/test/FeatureCollectionTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Extensions/Features/test/IThing.cs b/src/Extensions/Features/test/IThing.cs index f5b0a1e1221a..cd715d37c96b 100644 --- a/src/Extensions/Features/test/IThing.cs +++ b/src/Extensions/Features/test/IThing.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Extensions/Features/test/Thing.cs b/src/Extensions/Features/test/Thing.cs index 27a2c0e2857e..591d0d4d8e12 100644 --- a/src/Extensions/Features/test/Thing.cs +++ b/src/Extensions/Features/test/Thing.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Features/JsonPatch/src/Adapters/AdapterFactory.cs b/src/Features/JsonPatch/src/Adapters/AdapterFactory.cs index b215a8f3f41f..2d98d22396e1 100644 --- a/src/Features/JsonPatch/src/Adapters/AdapterFactory.cs +++ b/src/Features/JsonPatch/src/Adapters/AdapterFactory.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.JsonPatch.Internal; +// 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.JsonPatch.Internal; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; using System; diff --git a/src/Features/JsonPatch/src/Adapters/IAdapterFactory.cs b/src/Features/JsonPatch/src/Adapters/IAdapterFactory.cs index 050c513cb4c1..95565c5126a0 100644 --- a/src/Features/JsonPatch/src/Adapters/IAdapterFactory.cs +++ b/src/Features/JsonPatch/src/Adapters/IAdapterFactory.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.JsonPatch.Internal; +// 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.JsonPatch.Internal; using Newtonsoft.Json.Serialization; using System; using System.Collections.Generic; diff --git a/src/Features/JsonPatch/src/Adapters/IObjectAdapter.cs b/src/Features/JsonPatch/src/Adapters/IObjectAdapter.cs index 0c15ce0ae606..a276e67cb7ef 100644 --- a/src/Features/JsonPatch/src/Adapters/IObjectAdapter.cs +++ b/src/Features/JsonPatch/src/Adapters/IObjectAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Operations; diff --git a/src/Features/JsonPatch/src/Adapters/IObjectAdapterWithTest.cs b/src/Features/JsonPatch/src/Adapters/IObjectAdapterWithTest.cs index e1b4ce795009..04208b36c486 100644 --- a/src/Features/JsonPatch/src/Adapters/IObjectAdapterWithTest.cs +++ b/src/Features/JsonPatch/src/Adapters/IObjectAdapterWithTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Operations; @@ -13,16 +13,16 @@ public interface IObjectAdapterWithTest : IObjectAdapter /// /// Using the "test" operation a value at the target location is compared for /// equality to a specified value. - /// - /// The operation object MUST contain a "value" member that specifies + /// + /// The operation object MUST contain a "value" member that specifies /// value to be compared to the target location's value. - /// - /// The target location MUST be equal to the "value" value for the + /// + /// The target location MUST be equal to the "value" value for the /// operation to be considered successful. - /// + /// /// For example: /// { "op": "test", "path": "/a/b/c", "value": "foo" } - /// + /// /// See RFC 6902 https://tools.ietf.org/html/rfc6902#page-7 /// /// The test operation. diff --git a/src/Features/JsonPatch/src/Adapters/ObjectAdapter.cs b/src/Features/JsonPatch/src/Adapters/ObjectAdapter.cs index daaded4e1bd5..95a7a87c9ce3 100644 --- a/src/Features/JsonPatch/src/Adapters/ObjectAdapter.cs +++ b/src/Features/JsonPatch/src/Adapters/ObjectAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch.Internal; diff --git a/src/Features/JsonPatch/src/Converters/JsonPatchDocumentConverter.cs b/src/Features/JsonPatch/src/Converters/JsonPatchDocumentConverter.cs index 4c2fa923f770..ac2c0bfb8d4b 100644 --- a/src/Features/JsonPatch/src/Converters/JsonPatchDocumentConverter.cs +++ b/src/Features/JsonPatch/src/Converters/JsonPatchDocumentConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -19,7 +19,7 @@ public override bool CanConvert(Type objectType) return true; } - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (objectType != typeof(JsonPatchDocument)) @@ -33,14 +33,14 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist { return null; } - + // load jObject var jObject = JArray.Load(reader); // Create target object for Json => list of operations var targetOperations = new List(); - // Create a new reader for this jObject, and set all properties + // Create a new reader for this jObject, and set all properties // to match the original reader. var jObjectReader = jObject.CreateReader(); jObjectReader.Culture = reader.Culture; @@ -51,7 +51,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist // Populate the object properties serializer.Populate(jObjectReader, targetOperations); - // container target: the JsonPatchDocument. + // container target: the JsonPatchDocument. var container = new JsonPatchDocument(targetOperations, DefaultContractResolver); return container; diff --git a/src/Features/JsonPatch/src/Converters/TypedJsonPatchDocumentConverter.cs b/src/Features/JsonPatch/src/Converters/TypedJsonPatchDocumentConverter.cs index b1a49e30e4ce..0e4e2b6216ee 100644 --- a/src/Features/JsonPatch/src/Converters/TypedJsonPatchDocumentConverter.cs +++ b/src/Features/JsonPatch/src/Converters/TypedJsonPatchDocumentConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/src/Exceptions/JsonPatchException.cs b/src/Features/JsonPatch/src/Exceptions/JsonPatchException.cs index 90e080575acd..d96ba8b7b397 100644 --- a/src/Features/JsonPatch/src/Exceptions/JsonPatchException.cs +++ b/src/Features/JsonPatch/src/Exceptions/JsonPatchException.cs @@ -1,16 +1,16 @@ -// 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. +// 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.AspNetCore.JsonPatch.Operations; namespace Microsoft.AspNetCore.JsonPatch.Exceptions { - public class JsonPatchException : Exception + public class JsonPatchException : Exception { public Operation FailedOperation { get; private set; } public object AffectedObject { get; private set; } - + public JsonPatchException() { @@ -25,14 +25,14 @@ public JsonPatchException(JsonPatchError jsonPatchError, Exception innerExceptio } public JsonPatchException(JsonPatchError jsonPatchError) - : this(jsonPatchError, null) + : this(jsonPatchError, null) { - } + } public JsonPatchException(string message, Exception innerException) : base (message, innerException) { - + } } } \ No newline at end of file diff --git a/src/Features/JsonPatch/src/Helpers/GetValueResult.cs b/src/Features/JsonPatch/src/Helpers/GetValueResult.cs index 8e6cd3d60dca..65435195ff57 100644 --- a/src/Features/JsonPatch/src/Helpers/GetValueResult.cs +++ b/src/Features/JsonPatch/src/Helpers/GetValueResult.cs @@ -1,12 +1,12 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch.Helpers { /// /// Return value for the helper method used by Copy/Move. Needed to ensure we can make a different - /// decision in the calling method when the value is null because it cannot be fetched (HasError = true) - /// versus when it actually is null (much like why RemovedPropertyTypeResult is used for returning + /// decision in the calling method when the value is null because it cannot be fetched (HasError = true) + /// versus when it actually is null (much like why RemovedPropertyTypeResult is used for returning /// type in the Remove operation). /// public class GetValueResult diff --git a/src/Features/JsonPatch/src/Helpers/JsonPatchProperty.cs b/src/Features/JsonPatch/src/Helpers/JsonPatchProperty.cs index 041b0104acab..01a5b9f80755 100644 --- a/src/Features/JsonPatch/src/Helpers/JsonPatchProperty.cs +++ b/src/Features/JsonPatch/src/Helpers/JsonPatchProperty.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Newtonsoft.Json.Serialization; diff --git a/src/Features/JsonPatch/src/IJsonPatchDocument.cs b/src/Features/JsonPatch/src/IJsonPatchDocument.cs index fc5f5bd4d104..856ce1b405d8 100644 --- a/src/Features/JsonPatch/src/IJsonPatchDocument.cs +++ b/src/Features/JsonPatch/src/IJsonPatchDocument.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Operations; using System.Collections.Generic; diff --git a/src/Features/JsonPatch/src/Internal/ConversionResult.cs b/src/Features/JsonPatch/src/Internal/ConversionResult.cs index cf602ebf0ec0..ba31d7a892c6 100644 --- a/src/Features/JsonPatch/src/Internal/ConversionResult.cs +++ b/src/Features/JsonPatch/src/Internal/ConversionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch.Internal { diff --git a/src/Features/JsonPatch/src/Internal/ConversionResultProvider.cs b/src/Features/JsonPatch/src/Internal/ConversionResultProvider.cs index 992d2bb8aa6a..1f9893d5808d 100644 --- a/src/Features/JsonPatch/src/Internal/ConversionResultProvider.cs +++ b/src/Features/JsonPatch/src/Internal/ConversionResultProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Features/JsonPatch/src/Internal/DictionaryAdapterOfTU.cs b/src/Features/JsonPatch/src/Internal/DictionaryAdapterOfTU.cs index 382b600b1509..1b8c24bd5535 100644 --- a/src/Features/JsonPatch/src/Internal/DictionaryAdapterOfTU.cs +++ b/src/Features/JsonPatch/src/Internal/DictionaryAdapterOfTU.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Newtonsoft.Json; diff --git a/src/Features/JsonPatch/src/Internal/DynamicObjectAdapter.cs b/src/Features/JsonPatch/src/Internal/DynamicObjectAdapter.cs index 8da1f683ac7e..a17c725d7640 100644 --- a/src/Features/JsonPatch/src/Internal/DynamicObjectAdapter.cs +++ b/src/Features/JsonPatch/src/Internal/DynamicObjectAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/src/Internal/ErrorReporter.cs b/src/Features/JsonPatch/src/Internal/ErrorReporter.cs index 76b55a6144b2..8ef00706175c 100644 --- a/src/Features/JsonPatch/src/Internal/ErrorReporter.cs +++ b/src/Features/JsonPatch/src/Internal/ErrorReporter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch.Exceptions; diff --git a/src/Features/JsonPatch/src/Internal/IAdapter.cs b/src/Features/JsonPatch/src/Internal/IAdapter.cs index 061b9a37bd75..a9537623e6b7 100644 --- a/src/Features/JsonPatch/src/Internal/IAdapter.cs +++ b/src/Features/JsonPatch/src/Internal/IAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Newtonsoft.Json.Serialization; diff --git a/src/Features/JsonPatch/src/Internal/JObjectAdapter.cs b/src/Features/JsonPatch/src/Internal/JObjectAdapter.cs index 559b59c1b4b7..b6da1267c3e0 100644 --- a/src/Features/JsonPatch/src/Internal/JObjectAdapter.cs +++ b/src/Features/JsonPatch/src/Internal/JObjectAdapter.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.JsonPatch.Internal; +// 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.JsonPatch.Internal; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; diff --git a/src/Features/JsonPatch/src/Internal/ListAdapter.cs b/src/Features/JsonPatch/src/Internal/ListAdapter.cs index 58c95580c8e1..7f390df098da 100644 --- a/src/Features/JsonPatch/src/Internal/ListAdapter.cs +++ b/src/Features/JsonPatch/src/Internal/ListAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/src/Internal/ObjectVisitor.cs b/src/Features/JsonPatch/src/Internal/ObjectVisitor.cs index dfeb2b921dbd..1025b62554e2 100644 --- a/src/Features/JsonPatch/src/Internal/ObjectVisitor.cs +++ b/src/Features/JsonPatch/src/Internal/ObjectVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch.Adapters; diff --git a/src/Features/JsonPatch/src/Internal/ParsedPath.cs b/src/Features/JsonPatch/src/Internal/ParsedPath.cs index 1d7b1326e68c..b344fc8c203d 100644 --- a/src/Features/JsonPatch/src/Internal/ParsedPath.cs +++ b/src/Features/JsonPatch/src/Internal/ParsedPath.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Exceptions; using System; diff --git a/src/Features/JsonPatch/src/Internal/PathHelpers.cs b/src/Features/JsonPatch/src/Internal/PathHelpers.cs index f0afedb60e77..a50a0567deb8 100644 --- a/src/Features/JsonPatch/src/Internal/PathHelpers.cs +++ b/src/Features/JsonPatch/src/Internal/PathHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Exceptions; using System; @@ -16,7 +16,7 @@ internal static string ValidateAndNormalizePath(string path) if (path.Contains("//")) { - throw new JsonPatchException(Resources.FormatInvalidValueForPath(path), null); + throw new JsonPatchException(Resources.FormatInvalidValueForPath(path), null); } if (!path.StartsWith("/", StringComparison.Ordinal)) diff --git a/src/Features/JsonPatch/src/Internal/PocoAdapter.cs b/src/Features/JsonPatch/src/Internal/PocoAdapter.cs index 8ad538b8a2ec..df55e666846d 100644 --- a/src/Features/JsonPatch/src/Internal/PocoAdapter.cs +++ b/src/Features/JsonPatch/src/Internal/PocoAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/src/JsonPatchDocument.cs b/src/Features/JsonPatch/src/JsonPatchDocument.cs index 58debbea5155..a719e333f406 100644 --- a/src/Features/JsonPatch/src/JsonPatchDocument.cs +++ b/src/Features/JsonPatch/src/JsonPatchDocument.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs b/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs index 157953ea0333..5206f72936b8 100644 --- a/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs +++ b/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/src/JsonPatchError.cs b/src/Features/JsonPatch/src/JsonPatchError.cs index a49af7a4e2fc..821d911e909b 100644 --- a/src/Features/JsonPatch/src/JsonPatchError.cs +++ b/src/Features/JsonPatch/src/JsonPatchError.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch.Operations; diff --git a/src/Features/JsonPatch/src/Operations/Operation.cs b/src/Features/JsonPatch/src/Operations/Operation.cs index 690ade47766b..1af772bf3949 100644 --- a/src/Features/JsonPatch/src/Operations/Operation.cs +++ b/src/Features/JsonPatch/src/Operations/Operation.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch.Adapters; diff --git a/src/Features/JsonPatch/src/Operations/OperationBase.cs b/src/Features/JsonPatch/src/Operations/OperationBase.cs index e629e2308dd3..74cf1eef1998 100644 --- a/src/Features/JsonPatch/src/Operations/OperationBase.cs +++ b/src/Features/JsonPatch/src/Operations/OperationBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Newtonsoft.Json; diff --git a/src/Features/JsonPatch/src/Operations/OperationOfT.cs b/src/Features/JsonPatch/src/Operations/OperationOfT.cs index bd13528775b6..9fc49e9d861c 100644 --- a/src/Features/JsonPatch/src/Operations/OperationOfT.cs +++ b/src/Features/JsonPatch/src/Operations/OperationOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch.Adapters; diff --git a/src/Features/JsonPatch/src/Operations/OperationType.cs b/src/Features/JsonPatch/src/Operations/OperationType.cs index 725646df3a8f..387c568c36d7 100644 --- a/src/Features/JsonPatch/src/Operations/OperationType.cs +++ b/src/Features/JsonPatch/src/Operations/OperationType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch.Operations { diff --git a/src/Features/JsonPatch/src/Properties/AssemblyInfo.cs b/src/Features/JsonPatch/src/Properties/AssemblyInfo.cs index 11fa956b64a9..0e0f685b7fbc 100644 --- a/src/Features/JsonPatch/src/Properties/AssemblyInfo.cs +++ b/src/Features/JsonPatch/src/Properties/AssemblyInfo.cs @@ -1,6 +1,6 @@  -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Features/JsonPatch/test/Adapters/AdapterFactoryTests.cs b/src/Features/JsonPatch/test/Adapters/AdapterFactoryTests.cs index 1e961c29e91b..ad4b012b9fe2 100644 --- a/src/Features/JsonPatch/test/Adapters/AdapterFactoryTests.cs +++ b/src/Features/JsonPatch/test/Adapters/AdapterFactoryTests.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.JsonPatch.Adapters; +// 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.JsonPatch.Adapters; using Microsoft.AspNetCore.JsonPatch.Internal; using Moq; using Newtonsoft.Json.Serialization; diff --git a/src/Features/JsonPatch/test/Adapters/TestDynamicObject.cs b/src/Features/JsonPatch/test/Adapters/TestDynamicObject.cs index 08371f25c6a4..4b7464c2aa33 100644 --- a/src/Features/JsonPatch/test/Adapters/TestDynamicObject.cs +++ b/src/Features/JsonPatch/test/Adapters/TestDynamicObject.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.Dynamic; using System.Text; diff --git a/src/Features/JsonPatch/test/CustomNamingStrategyTests.cs b/src/Features/JsonPatch/test/CustomNamingStrategyTests.cs index ebc45874d967..09fc0e757bae 100644 --- a/src/Features/JsonPatch/test/CustomNamingStrategyTests.cs +++ b/src/Features/JsonPatch/test/CustomNamingStrategyTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Dynamic; diff --git a/src/Features/JsonPatch/test/IntegrationTests/AnonymousObjectIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/AnonymousObjectIntegrationTest.cs index 6ab884254674..23fc4e94182b 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/AnonymousObjectIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/AnonymousObjectIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Exceptions; using Xunit; diff --git a/src/Features/JsonPatch/test/IntegrationTests/DictionaryIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/DictionaryIntegrationTest.cs index da990e3e8cb2..8023d10b0e53 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/DictionaryIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/DictionaryIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.JsonPatch.Exceptions; diff --git a/src/Features/JsonPatch/test/IntegrationTests/DynamicObjectIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/DynamicObjectIntegrationTest.cs index ec15951a85c0..5b450d00a067 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/DynamicObjectIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/DynamicObjectIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.JsonPatch.Exceptions; diff --git a/src/Features/JsonPatch/test/IntegrationTests/ExpandoObjectIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/ExpandoObjectIntegrationTest.cs index ba625f021796..1573a444e17c 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/ExpandoObjectIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/ExpandoObjectIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/test/IntegrationTests/HeterogenousCollectionTests.cs b/src/Features/JsonPatch/test/IntegrationTests/HeterogenousCollectionTests.cs index 786a76d74ad3..48b6be497e20 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/HeterogenousCollectionTests.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/HeterogenousCollectionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/test/IntegrationTests/ListIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/ListIntegrationTest.cs index 5e261ea08ba2..1ba20013a234 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/ListIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/ListIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/Features/JsonPatch/test/IntegrationTests/NestedObjectIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/NestedObjectIntegrationTest.cs index b811555265db..20fb6d409a36 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/NestedObjectIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/NestedObjectIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Dynamic; diff --git a/src/Features/JsonPatch/test/IntegrationTests/SimpleObjectIntegrationTest.cs b/src/Features/JsonPatch/test/IntegrationTests/SimpleObjectIntegrationTest.cs index d98e6ffdb687..96777aadcf2c 100644 --- a/src/Features/JsonPatch/test/IntegrationTests/SimpleObjectIntegrationTest.cs +++ b/src/Features/JsonPatch/test/IntegrationTests/SimpleObjectIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Dynamic; diff --git a/src/Features/JsonPatch/test/Internal/DictionaryAdapterTest.cs b/src/Features/JsonPatch/test/Internal/DictionaryAdapterTest.cs index e055009b8274..026e9bb38dd7 100644 --- a/src/Features/JsonPatch/test/Internal/DictionaryAdapterTest.cs +++ b/src/Features/JsonPatch/test/Internal/DictionaryAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/test/Internal/DynamicObjectAdapterTest.cs b/src/Features/JsonPatch/test/Internal/DynamicObjectAdapterTest.cs index 9d5eb2595ce8..9748015ad05a 100644 --- a/src/Features/JsonPatch/test/Internal/DynamicObjectAdapterTest.cs +++ b/src/Features/JsonPatch/test/Internal/DynamicObjectAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Newtonsoft.Json.Serialization; @@ -255,7 +255,7 @@ public void TryTest_DoesNotThrowException_IfTestSuccessful() [Fact] public void TryTest_ThrowsJsonPatchException_IfTestFails() { - // Arrange + // Arrange var adapter = new DynamicObjectAdapter(); dynamic target = new DynamicTestObject(); target.NewProperty = "Joana"; diff --git a/src/Features/JsonPatch/test/Internal/ListAdapterTest.cs b/src/Features/JsonPatch/test/Internal/ListAdapterTest.cs index 822acd13f45c..8649d051d485 100644 --- a/src/Features/JsonPatch/test/Internal/ListAdapterTest.cs +++ b/src/Features/JsonPatch/test/Internal/ListAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Features/JsonPatch/test/Internal/ObjectVisitorTest.cs b/src/Features/JsonPatch/test/Internal/ObjectVisitorTest.cs index 5a936bebdc0b..a5e7f0f7fe49 100644 --- a/src/Features/JsonPatch/test/Internal/ObjectVisitorTest.cs +++ b/src/Features/JsonPatch/test/Internal/ObjectVisitorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Dynamic; diff --git a/src/Features/JsonPatch/test/Internal/ParsedPathTests.cs b/src/Features/JsonPatch/test/Internal/ParsedPathTests.cs index c23abcdb5e62..160071991d0f 100644 --- a/src/Features/JsonPatch/test/Internal/ParsedPathTests.cs +++ b/src/Features/JsonPatch/test/Internal/ParsedPathTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Exceptions; using Xunit; diff --git a/src/Features/JsonPatch/test/Internal/PocoAdapterTest.cs b/src/Features/JsonPatch/test/Internal/PocoAdapterTest.cs index 9a31ea11a847..0e77d492fdd7 100644 --- a/src/Features/JsonPatch/test/Internal/PocoAdapterTest.cs +++ b/src/Features/JsonPatch/test/Internal/PocoAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Newtonsoft.Json.Serialization; using Xunit; @@ -214,7 +214,7 @@ public void TryTest_DoesNotThrowException_IfTestSuccessful() [Fact] public void TryTest_ThrowsJsonPatchException_IfTestFails() { - // Arrange + // Arrange var adapter = new PocoAdapter(); var contractResolver = new DefaultContractResolver(); var model = new Customer diff --git a/src/Features/JsonPatch/test/JsonPatchDocumentGetPathTest.cs b/src/Features/JsonPatch/test/JsonPatchDocumentGetPathTest.cs index 266202c7a54e..cfbc03a7f27d 100644 --- a/src/Features/JsonPatch/test/JsonPatchDocumentGetPathTest.cs +++ b/src/Features/JsonPatch/test/JsonPatchDocumentGetPathTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/test/JsonPatchDocumentJObjectTest.cs b/src/Features/JsonPatch/test/JsonPatchDocumentJObjectTest.cs index 267f1cb57113..f71ac0c54829 100644 --- a/src/Features/JsonPatch/test/JsonPatchDocumentJObjectTest.cs +++ b/src/Features/JsonPatch/test/JsonPatchDocumentJObjectTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Dynamic; diff --git a/src/Features/JsonPatch/test/JsonPatchDocumentJsonPropertyAttributeTest.cs b/src/Features/JsonPatch/test/JsonPatchDocumentJsonPropertyAttributeTest.cs index a9c3d8500b53..cb95a40dc489 100644 --- a/src/Features/JsonPatch/test/JsonPatchDocumentJsonPropertyAttributeTest.cs +++ b/src/Features/JsonPatch/test/JsonPatchDocumentJsonPropertyAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Newtonsoft.Json; diff --git a/src/Features/JsonPatch/test/JsonPatchDocumentTest.cs b/src/Features/JsonPatch/test/JsonPatchDocumentTest.cs index 197e514cee01..b34c797502cf 100644 --- a/src/Features/JsonPatch/test/JsonPatchDocumentTest.cs +++ b/src/Features/JsonPatch/test/JsonPatchDocumentTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JsonPatch.Exceptions; using Newtonsoft.Json; diff --git a/src/Features/JsonPatch/test/OperationBaseTests.cs b/src/Features/JsonPatch/test/OperationBaseTests.cs index 955344404fba..b8a617f523a6 100644 --- a/src/Features/JsonPatch/test/OperationBaseTests.cs +++ b/src/Features/JsonPatch/test/OperationBaseTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Features/JsonPatch/test/TestErrorLogger.cs b/src/Features/JsonPatch/test/TestErrorLogger.cs index 2cd6a4453e40..019f173e765f 100644 --- a/src/Features/JsonPatch/test/TestErrorLogger.cs +++ b/src/Features/JsonPatch/test/TestErrorLogger.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch { diff --git a/src/Features/JsonPatch/test/TestObjectModels/Customer.cs b/src/Features/JsonPatch/test/TestObjectModels/Customer.cs index c8a5aa22b1aa..c1ba57f5d9b6 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/Customer.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/Customer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch.Internal { diff --git a/src/Features/JsonPatch/test/TestObjectModels/DynamicTestObject.cs b/src/Features/JsonPatch/test/TestObjectModels/DynamicTestObject.cs index 94ecf1685dd6..badee34ff5da 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/DynamicTestObject.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/DynamicTestObject.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Dynamic; diff --git a/src/Features/JsonPatch/test/TestObjectModels/HeterogenousCollection.cs b/src/Features/JsonPatch/test/TestObjectModels/HeterogenousCollection.cs index 3348f217ed8e..370338b0eeec 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/HeterogenousCollection.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/HeterogenousCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Features/JsonPatch/test/TestObjectModels/InheritedObject.cs b/src/Features/JsonPatch/test/TestObjectModels/InheritedObject.cs index 37b8a10dc9e5..a9c76a4c5c3b 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/InheritedObject.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/InheritedObject.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch { diff --git a/src/Features/JsonPatch/test/TestObjectModels/NestedObject.cs b/src/Features/JsonPatch/test/TestObjectModels/NestedObject.cs index 1b42d0d7ef7b..7835b5ddce92 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/NestedObject.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/NestedObject.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.JsonPatch { diff --git a/src/Features/JsonPatch/test/TestObjectModels/ObjectWithJObject.cs b/src/Features/JsonPatch/test/TestObjectModels/ObjectWithJObject.cs index 188ca034d2cc..f3aefc18b368 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/ObjectWithJObject.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/ObjectWithJObject.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 Newtonsoft.Json.Linq; namespace Microsoft.AspNetCore.JsonPatch diff --git a/src/Features/JsonPatch/test/TestObjectModels/SimpleObject.cs b/src/Features/JsonPatch/test/TestObjectModels/SimpleObject.cs index 651a91bdcfb5..87692a8893f4 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/SimpleObject.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/SimpleObject.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Features/JsonPatch/test/TestObjectModels/SimpleObjectWithNestedObject.cs b/src/Features/JsonPatch/test/TestObjectModels/SimpleObjectWithNestedObject.cs index 4d7c0e2bd828..c6c07d44fd88 100644 --- a/src/Features/JsonPatch/test/TestObjectModels/SimpleObjectWithNestedObject.cs +++ b/src/Features/JsonPatch/test/TestObjectModels/SimpleObjectWithNestedObject.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Features/JsonPatch/test/WriteOnceDynamicTestObject.cs b/src/Features/JsonPatch/test/WriteOnceDynamicTestObject.cs index 769ddcc154f4..8810e3753fde 100644 --- a/src/Features/JsonPatch/test/WriteOnceDynamicTestObject.cs +++ b/src/Features/JsonPatch/test/WriteOnceDynamicTestObject.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/src/EmbeddedFileProvider.cs b/src/FileProviders/Embedded/src/EmbeddedFileProvider.cs index 5d5202d15e7e..f4cf2cf3c21a 100644 --- a/src/FileProviders/Embedded/src/EmbeddedFileProvider.cs +++ b/src/FileProviders/Embedded/src/EmbeddedFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/src/EmbeddedResourceFileInfo.cs b/src/FileProviders/Embedded/src/EmbeddedResourceFileInfo.cs index 6467baabd014..fd781c079a4d 100644 --- a/src/FileProviders/Embedded/src/EmbeddedResourceFileInfo.cs +++ b/src/FileProviders/Embedded/src/EmbeddedResourceFileInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/FileProviders/Embedded/src/EnumerableDirectoryContents.cs b/src/FileProviders/Embedded/src/EnumerableDirectoryContents.cs index 012723eba631..2e18454765a0 100644 --- a/src/FileProviders/Embedded/src/EnumerableDirectoryContents.cs +++ b/src/FileProviders/Embedded/src/EnumerableDirectoryContents.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/src/Manifest/EmbeddedFilesManifest.cs b/src/FileProviders/Embedded/src/Manifest/EmbeddedFilesManifest.cs index 601dfd1dd2f3..6b678735d8b5 100644 --- a/src/FileProviders/Embedded/src/Manifest/EmbeddedFilesManifest.cs +++ b/src/FileProviders/Embedded/src/Manifest/EmbeddedFilesManifest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/FileProviders/Embedded/src/Manifest/ManifestDirectory.cs b/src/FileProviders/Embedded/src/Manifest/ManifestDirectory.cs index 42bec313ef01..5c0da3d816a9 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestDirectory.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestDirectory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryContents.cs b/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryContents.cs index 58f893c96ba8..ca6bdc5d6422 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryContents.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryContents.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryInfo.cs b/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryInfo.cs index 9a702b667fa3..f5e831c7c3c0 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryInfo.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestDirectoryInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestEntry.cs b/src/FileProviders/Embedded/src/Manifest/ManifestEntry.cs index cbe0dac30faf..05206caefcaa 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestEntry.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestEntry.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; @@ -28,7 +28,7 @@ protected internal virtual void SetParent(ManifestDirectory directory) Parent = directory; } - + public abstract ManifestEntry Traverse(StringSegment segment); } } diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestFile.cs b/src/FileProviders/Embedded/src/Manifest/ManifestFile.cs index 6dd89d34917a..384ab0aa1e8a 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestFile.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestFileInfo.cs b/src/FileProviders/Embedded/src/Manifest/ManifestFileInfo.cs index 462a7ea795e4..ccb34a3ac992 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestFileInfo.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestFileInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestParser.cs b/src/FileProviders/Embedded/src/Manifest/ManifestParser.cs index adb4f2a59bb9..3dc969ae54b7 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestParser.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestRootDirectory.cs b/src/FileProviders/Embedded/src/Manifest/ManifestRootDirectory.cs index b759ecefb793..b9688093b269 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestRootDirectory.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestRootDirectory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.FileProviders.Embedded.Manifest { diff --git a/src/FileProviders/Embedded/src/Manifest/ManifestSinkDirectory.cs b/src/FileProviders/Embedded/src/Manifest/ManifestSinkDirectory.cs index bdab05618787..0116d2549c04 100644 --- a/src/FileProviders/Embedded/src/Manifest/ManifestSinkDirectory.cs +++ b/src/FileProviders/Embedded/src/Manifest/ManifestSinkDirectory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; diff --git a/src/FileProviders/Embedded/src/ManifestEmbeddedFileProvider.cs b/src/FileProviders/Embedded/src/ManifestEmbeddedFileProvider.cs index f639a2a812c1..9f2fd0020075 100644 --- a/src/FileProviders/Embedded/src/ManifestEmbeddedFileProvider.cs +++ b/src/FileProviders/Embedded/src/ManifestEmbeddedFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/FileProviders/Embedded/test/EmbeddedFileProviderTests.cs b/src/FileProviders/Embedded/test/EmbeddedFileProviderTests.cs index 061256417d46..9c3be6ea600b 100644 --- a/src/FileProviders/Embedded/test/EmbeddedFileProviderTests.cs +++ b/src/FileProviders/Embedded/test/EmbeddedFileProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/test/FileInfoComparer.cs b/src/FileProviders/Embedded/test/FileInfoComparer.cs index 1b4b69b4c1fb..86180e3bb514 100644 --- a/src/FileProviders/Embedded/test/FileInfoComparer.cs +++ b/src/FileProviders/Embedded/test/FileInfoComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Embedded/test/Manifest/EmbeddedFilesManifestTests.cs b/src/FileProviders/Embedded/test/Manifest/EmbeddedFilesManifestTests.cs index 107491d34a7d..3fac28c41e36 100644 --- a/src/FileProviders/Embedded/test/Manifest/EmbeddedFilesManifestTests.cs +++ b/src/FileProviders/Embedded/test/Manifest/EmbeddedFilesManifestTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/FileProviders/Embedded/test/Manifest/ManifestEntryTests.cs b/src/FileProviders/Embedded/test/Manifest/ManifestEntryTests.cs index dc1a7e1cdda2..4c945911bf2e 100644 --- a/src/FileProviders/Embedded/test/Manifest/ManifestEntryTests.cs +++ b/src/FileProviders/Embedded/test/Manifest/ManifestEntryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/FileProviders/Embedded/test/Manifest/ManifestParserTests.cs b/src/FileProviders/Embedded/test/Manifest/ManifestParserTests.cs index e4edc8bde0e4..13171dee8463 100644 --- a/src/FileProviders/Embedded/test/Manifest/ManifestParserTests.cs +++ b/src/FileProviders/Embedded/test/Manifest/ManifestParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/FileProviders/Embedded/test/Manifest/TestEntry.cs b/src/FileProviders/Embedded/test/Manifest/TestEntry.cs index aaaf881469f9..8a5547b7aee3 100644 --- a/src/FileProviders/Embedded/test/Manifest/TestEntry.cs +++ b/src/FileProviders/Embedded/test/Manifest/TestEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/FileProviders/Embedded/test/ManifestEmbeddedFileProviderTests.cs b/src/FileProviders/Embedded/test/ManifestEmbeddedFileProviderTests.cs index a973c9df003f..faa0feb6f2cd 100644 --- a/src/FileProviders/Embedded/test/ManifestEmbeddedFileProviderTests.cs +++ b/src/FileProviders/Embedded/test/ManifestEmbeddedFileProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -395,7 +395,7 @@ public void Contructor_CanScopeManifestToAFolder() Assert.False(jqueryValidate.IsDirectory); Assert.Equal("jquery.validate.js", jqueryValidate.Name); Assert.Null(jqueryValidate.PhysicalPath); - Assert.Equal(0, jqueryValidate.Length); + Assert.Equal(0, jqueryValidate.Length); } [Theory] diff --git a/src/FileProviders/Embedded/test/TestAssembly.cs b/src/FileProviders/Embedded/test/TestAssembly.cs index 4917bd60ed0a..c886be0018fe 100644 --- a/src/FileProviders/Embedded/test/TestAssembly.cs +++ b/src/FileProviders/Embedded/test/TestAssembly.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/FileProviders/Embedded/test/TestFileInfo.cs b/src/FileProviders/Embedded/test/TestFileInfo.cs index d410a3b5e782..564df1b83863 100644 --- a/src/FileProviders/Embedded/test/TestFileInfo.cs +++ b/src/FileProviders/Embedded/test/TestFileInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/FileProviders/Manifest.MSBuildTask/src/EmbeddedItem.cs b/src/FileProviders/Manifest.MSBuildTask/src/EmbeddedItem.cs index c2dbd58ed222..1826379e599f 100644 --- a/src/FileProviders/Manifest.MSBuildTask/src/EmbeddedItem.cs +++ b/src/FileProviders/Manifest.MSBuildTask/src/EmbeddedItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/FileProviders/Manifest.MSBuildTask/src/Entry.cs b/src/FileProviders/Manifest.MSBuildTask/src/Entry.cs index 93f4c0d277f2..4bee51306079 100644 --- a/src/FileProviders/Manifest.MSBuildTask/src/Entry.cs +++ b/src/FileProviders/Manifest.MSBuildTask/src/Entry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Manifest.MSBuildTask/src/GenerateEmbeddedResourcesManifest.cs b/src/FileProviders/Manifest.MSBuildTask/src/GenerateEmbeddedResourcesManifest.cs index 3a62d3d5e341..c975e0a55298 100644 --- a/src/FileProviders/Manifest.MSBuildTask/src/GenerateEmbeddedResourcesManifest.cs +++ b/src/FileProviders/Manifest.MSBuildTask/src/GenerateEmbeddedResourcesManifest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/FileProviders/Manifest.MSBuildTask/src/Manifest.cs b/src/FileProviders/Manifest.MSBuildTask/src/Manifest.cs index 162a4a93e491..9b54e2d39c9a 100644 --- a/src/FileProviders/Manifest.MSBuildTask/src/Manifest.cs +++ b/src/FileProviders/Manifest.MSBuildTask/src/Manifest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/FileProviders/Manifest.MSBuildTask/test/GenerateEmbeddedResourcesManifestTest.cs b/src/FileProviders/Manifest.MSBuildTask/test/GenerateEmbeddedResourcesManifestTest.cs index 260d15f7f71c..85263ad32676 100644 --- a/src/FileProviders/Manifest.MSBuildTask/test/GenerateEmbeddedResourcesManifestTest.cs +++ b/src/FileProviders/Manifest.MSBuildTask/test/GenerateEmbeddedResourcesManifestTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/FileProviders/Manifest.MSBuildTask/test/SetExtensions.cs b/src/FileProviders/Manifest.MSBuildTask/test/SetExtensions.cs index 0a80b7fb76dd..f8cc94146225 100644 --- a/src/FileProviders/Manifest.MSBuildTask/test/SetExtensions.cs +++ b/src/FileProviders/Manifest.MSBuildTask/test/SetExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.FileProviders.Embedded.Manifest.Task { diff --git a/src/Framework/test/AssertEx.cs b/src/Framework/test/AssertEx.cs index c68147c1f6ca..1dbad9c5b972 100644 --- a/src/Framework/test/AssertEx.cs +++ b/src/Framework/test/AssertEx.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Xunit.Sdk; diff --git a/src/Framework/test/SharedFxTests.cs b/src/Framework/test/SharedFxTests.cs index af296b5a08a6..82b33a620d26 100644 --- a/src/Framework/test/SharedFxTests.cs +++ b/src/Framework/test/SharedFxTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Framework/test/TargetingPackTests.cs b/src/Framework/test/TargetingPackTests.cs index 99b43ca08ee3..fd244b466367 100644 --- a/src/Framework/test/TargetingPackTests.cs +++ b/src/Framework/test/TargetingPackTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Framework/test/TestData.cs b/src/Framework/test/TestData.cs index c4ba7fe19969..e86f8876472c 100644 --- a/src/Framework/test/TestData.cs +++ b/src/Framework/test/TestData.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Framework/test/TestDataAttribute.cs b/src/Framework/test/TestDataAttribute.cs index 68085e680703..14eb2f313dde 100644 --- a/src/Framework/test/TestDataAttribute.cs +++ b/src/Framework/test/TestDataAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Grpc/test/InteropTests/Helpers/ClientProcess.cs b/src/Grpc/test/InteropTests/Helpers/ClientProcess.cs index ec095eb3f863..824136e929dd 100644 --- a/src/Grpc/test/InteropTests/Helpers/ClientProcess.cs +++ b/src/Grpc/test/InteropTests/Helpers/ClientProcess.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Grpc/test/InteropTests/Helpers/WebsiteProcess.cs b/src/Grpc/test/InteropTests/Helpers/WebsiteProcess.cs index 7018fb5bdce2..4993962497c3 100644 --- a/src/Grpc/test/InteropTests/Helpers/WebsiteProcess.cs +++ b/src/Grpc/test/InteropTests/Helpers/WebsiteProcess.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Grpc/test/InteropTests/InteropTests.cs b/src/Grpc/test/InteropTests/InteropTests.cs index 8e4437b66f4c..816b436f4ecb 100644 --- a/src/Grpc/test/InteropTests/InteropTests.cs +++ b/src/Grpc/test/InteropTests/InteropTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Grpc/test/testassets/.editorconfig b/src/Grpc/test/testassets/.editorconfig new file mode 100644 index 000000000000..81723c72ab4a --- /dev/null +++ b/src/Grpc/test/testassets/.editorconfig @@ -0,0 +1,3 @@ +[*.{cs,vb}] +# IDE0073: File header +dotnet_diagnostic.IDE0073.severity = none \ No newline at end of file diff --git a/src/HealthChecks/Abstractions/src/HealthCheckContext.cs b/src/HealthChecks/Abstractions/src/HealthCheckContext.cs index fd5b77e5be3e..2dfa0961e9e4 100644 --- a/src/HealthChecks/Abstractions/src/HealthCheckContext.cs +++ b/src/HealthChecks/Abstractions/src/HealthCheckContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Diagnostics.HealthChecks { diff --git a/src/HealthChecks/Abstractions/src/HealthCheckRegistration.cs b/src/HealthChecks/Abstractions/src/HealthCheckRegistration.cs index b7f662645daf..617069b3b37a 100644 --- a/src/HealthChecks/Abstractions/src/HealthCheckRegistration.cs +++ b/src/HealthChecks/Abstractions/src/HealthCheckRegistration.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/Abstractions/src/HealthCheckResult.cs b/src/HealthChecks/Abstractions/src/HealthCheckResult.cs index 16aca7558623..b141252f5988 100644 --- a/src/HealthChecks/Abstractions/src/HealthCheckResult.cs +++ b/src/HealthChecks/Abstractions/src/HealthCheckResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/Abstractions/src/HealthReport.cs b/src/HealthChecks/Abstractions/src/HealthReport.cs index aace74286d3a..0bdbca592524 100644 --- a/src/HealthChecks/Abstractions/src/HealthReport.cs +++ b/src/HealthChecks/Abstractions/src/HealthReport.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/Abstractions/src/HealthReportEntry.cs b/src/HealthChecks/Abstractions/src/HealthReportEntry.cs index 0622fd1b47fe..fef6dd5bc7db 100644 --- a/src/HealthChecks/Abstractions/src/HealthReportEntry.cs +++ b/src/HealthChecks/Abstractions/src/HealthReportEntry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/Abstractions/src/HealthStatus.cs b/src/HealthChecks/Abstractions/src/HealthStatus.cs index 61b76d54fa19..aaf1256e4f3a 100644 --- a/src/HealthChecks/Abstractions/src/HealthStatus.cs +++ b/src/HealthChecks/Abstractions/src/HealthStatus.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Diagnostics.HealthChecks { diff --git a/src/HealthChecks/Abstractions/src/IHealthCheck.cs b/src/HealthChecks/Abstractions/src/IHealthCheck.cs index 1b69953b67c6..c722fd4dd420 100644 --- a/src/HealthChecks/Abstractions/src/IHealthCheck.cs +++ b/src/HealthChecks/Abstractions/src/IHealthCheck.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/HealthChecks/Abstractions/src/IHealthCheckPublisher.cs b/src/HealthChecks/Abstractions/src/IHealthCheckPublisher.cs index f1809c4bb893..2bfb9c8e7e37 100644 --- a/src/HealthChecks/Abstractions/src/IHealthCheckPublisher.cs +++ b/src/HealthChecks/Abstractions/src/IHealthCheckPublisher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs b/src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs index a8abfdbcd5ab..95569a25dda6 100644 --- a/src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs +++ b/src/HealthChecks/HealthChecks/src/DefaultHealthCheckService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/src/DelegateHealthCheck.cs b/src/HealthChecks/HealthChecks/src/DelegateHealthCheck.cs index 94069fd7d154..9ca87a09bb3b 100644 --- a/src/HealthChecks/HealthChecks/src/DelegateHealthCheck.cs +++ b/src/HealthChecks/HealthChecks/src/DelegateHealthCheck.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthCheckServiceCollectionExtensions.cs b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthCheckServiceCollectionExtensions.cs index 91ffa59449e3..1aba42fbc895 100644 --- a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthCheckServiceCollectionExtensions.cs +++ b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthCheckServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Diagnostics.HealthChecks; diff --git a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilder.cs b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilder.cs index 231dd5171721..02d0b738143f 100644 --- a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilder.cs +++ b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Diagnostics.HealthChecks; @@ -14,7 +14,7 @@ public HealthChecksBuilder(IServiceCollection services) } public IServiceCollection Services { get; } - + public IHealthChecksBuilder Add(HealthCheckRegistration registration) { if (registration == null) diff --git a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderAddCheckExtensions.cs b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderAddCheckExtensions.cs index c9ecfc49abc0..d22f9db78540 100644 --- a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderAddCheckExtensions.cs +++ b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderAddCheckExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderDelegateExtensions.cs b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderDelegateExtensions.cs index 3abe442567b0..4ccf10157462 100644 --- a/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderDelegateExtensions.cs +++ b/src/HealthChecks/HealthChecks/src/DependencyInjection/HealthChecksBuilderDelegateExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/src/DependencyInjection/IHealthChecksBuilder.cs b/src/HealthChecks/HealthChecks/src/DependencyInjection/IHealthChecksBuilder.cs index eb78293f87c4..4beed648f76f 100644 --- a/src/HealthChecks/HealthChecks/src/DependencyInjection/IHealthChecksBuilder.cs +++ b/src/HealthChecks/HealthChecks/src/DependencyInjection/IHealthChecksBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Diagnostics.HealthChecks; diff --git a/src/HealthChecks/HealthChecks/src/HealthCheckLogScope.cs b/src/HealthChecks/HealthChecks/src/HealthCheckLogScope.cs index c7ef3ff5bd2d..f415d9114153 100644 --- a/src/HealthChecks/HealthChecks/src/HealthCheckLogScope.cs +++ b/src/HealthChecks/HealthChecks/src/HealthCheckLogScope.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/src/HealthCheckPublisherHostedService.cs b/src/HealthChecks/HealthChecks/src/HealthCheckPublisherHostedService.cs index 4f5aa29c2779..37e0e0d9ee43 100644 --- a/src/HealthChecks/HealthChecks/src/HealthCheckPublisherHostedService.cs +++ b/src/HealthChecks/HealthChecks/src/HealthCheckPublisherHostedService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/src/HealthCheckPublisherOptions.cs b/src/HealthChecks/HealthChecks/src/HealthCheckPublisherOptions.cs index 19021810cce4..0b77b874a28f 100644 --- a/src/HealthChecks/HealthChecks/src/HealthCheckPublisherOptions.cs +++ b/src/HealthChecks/HealthChecks/src/HealthCheckPublisherOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -23,7 +23,7 @@ public HealthCheckPublisherOptions() } /// - /// Gets or sets the initial delay applied after the application starts before executing + /// Gets or sets the initial delay applied after the application starts before executing /// instances. The delay is applied once at startup, and does /// not apply to subsequent iterations. The default value is 5 seconds. /// @@ -78,7 +78,7 @@ public TimeSpan Period public Func? Predicate { get; set; } /// - /// Gets or sets the timeout for executing the health checks an all + /// Gets or sets the timeout for executing the health checks an all /// instances. Use to execute with no timeout. /// The default value is 30 seconds. /// diff --git a/src/HealthChecks/HealthChecks/src/HealthCheckService.cs b/src/HealthChecks/HealthChecks/src/HealthCheckService.cs index 480935045923..e02d0f960a7f 100644 --- a/src/HealthChecks/HealthChecks/src/HealthCheckService.cs +++ b/src/HealthChecks/HealthChecks/src/HealthCheckService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; @@ -10,17 +10,17 @@ namespace Microsoft.Extensions.Diagnostics.HealthChecks { /// - /// A service which can be used to check the status of instances + /// A service which can be used to check the status of instances /// registered in the application. /// /// /// /// The default implementation of is registered in the dependency - /// injection container as a singleton service by calling + /// injection container as a singleton service by calling /// . /// /// - /// The returned by + /// The returned by /// /// provides a convenience API for registering health checks. /// diff --git a/src/HealthChecks/HealthChecks/src/HealthCheckServiceOptions.cs b/src/HealthChecks/HealthChecks/src/HealthCheckServiceOptions.cs index b8dfdb9b40e0..c7f2b8a19e1c 100644 --- a/src/HealthChecks/HealthChecks/src/HealthCheckServiceOptions.cs +++ b/src/HealthChecks/HealthChecks/src/HealthCheckServiceOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/HealthChecks/HealthChecks/test/DefaultHealthCheckServiceTest.cs b/src/HealthChecks/HealthChecks/test/DefaultHealthCheckServiceTest.cs index 36beed21037e..87bcc1d2daee 100644 --- a/src/HealthChecks/HealthChecks/test/DefaultHealthCheckServiceTest.cs +++ b/src/HealthChecks/HealthChecks/test/DefaultHealthCheckServiceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/test/DependencyInjection/HealthChecksBuilderTest.cs b/src/HealthChecks/HealthChecks/test/DependencyInjection/HealthChecksBuilderTest.cs index 4235f152a289..0922ab2fb7e1 100644 --- a/src/HealthChecks/HealthChecks/test/DependencyInjection/HealthChecksBuilderTest.cs +++ b/src/HealthChecks/HealthChecks/test/DependencyInjection/HealthChecksBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/HealthChecks/HealthChecks/test/DependencyInjection/ServiceCollectionExtensionsTest.cs b/src/HealthChecks/HealthChecks/test/DependencyInjection/ServiceCollectionExtensionsTest.cs index c715ce88338a..b8d06c6dd0ba 100644 --- a/src/HealthChecks/HealthChecks/test/DependencyInjection/ServiceCollectionExtensionsTest.cs +++ b/src/HealthChecks/HealthChecks/test/DependencyInjection/ServiceCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading; diff --git a/src/HealthChecks/HealthChecks/test/HealthCheckPublisherHostedServiceTest.cs b/src/HealthChecks/HealthChecks/test/HealthCheckPublisherHostedServiceTest.cs index 9182da6ffe65..3a37316313d5 100644 --- a/src/HealthChecks/HealthChecks/test/HealthCheckPublisherHostedServiceTest.cs +++ b/src/HealthChecks/HealthChecks/test/HealthCheckPublisherHostedServiceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/HealthChecks/HealthChecks/test/HealthReportTest.cs b/src/HealthChecks/HealthChecks/test/HealthReportTest.cs index 3a33cafc9678..e7ad4eab2463 100644 --- a/src/HealthChecks/HealthChecks/test/HealthReportTest.cs +++ b/src/HealthChecks/HealthChecks/test/HealthReportTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Abstractions/src/EnvironmentName.cs b/src/Hosting/Abstractions/src/EnvironmentName.cs index c881a52b3cdf..f092fe490db4 100644 --- a/src/Hosting/Abstractions/src/EnvironmentName.cs +++ b/src/Hosting/Abstractions/src/EnvironmentName.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting { diff --git a/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs b/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs index b89e0d6263c0..3dde95f3af9b 100644 --- a/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs +++ b/src/Hosting/Abstractions/src/HostingAbstractionsWebHostBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Hosting/Abstractions/src/HostingEnvironmentExtensions.cs b/src/Hosting/Abstractions/src/HostingEnvironmentExtensions.cs index 5a3149bcb34a..019db0b34be5 100644 --- a/src/Hosting/Abstractions/src/HostingEnvironmentExtensions.cs +++ b/src/Hosting/Abstractions/src/HostingEnvironmentExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Hosting/Abstractions/src/HostingStartupAttribute.cs b/src/Hosting/Abstractions/src/HostingStartupAttribute.cs index eb179ae2891f..3fc076bd2d5c 100644 --- a/src/Hosting/Abstractions/src/HostingStartupAttribute.cs +++ b/src/Hosting/Abstractions/src/HostingStartupAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; @@ -33,7 +33,7 @@ public HostingStartupAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMe } /// - /// The implementation of that should be loaded when + /// The implementation of that should be loaded when /// starting an application. /// [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] diff --git a/src/Hosting/Abstractions/src/IApplicationLifetime.cs b/src/Hosting/Abstractions/src/IApplicationLifetime.cs index 38f3eb43c4a7..92e895864023 100644 --- a/src/Hosting/Abstractions/src/IApplicationLifetime.cs +++ b/src/Hosting/Abstractions/src/IApplicationLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Hosting/Abstractions/src/IHostingEnvironment.cs b/src/Hosting/Abstractions/src/IHostingEnvironment.cs index 18133a7f7e58..5d0828840a41 100644 --- a/src/Hosting/Abstractions/src/IHostingEnvironment.cs +++ b/src/Hosting/Abstractions/src/IHostingEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.FileProviders; diff --git a/src/Hosting/Abstractions/src/IHostingStartup.cs b/src/Hosting/Abstractions/src/IHostingStartup.cs index e65ed18fb63f..250b0d2b75b4 100644 --- a/src/Hosting/Abstractions/src/IHostingStartup.cs +++ b/src/Hosting/Abstractions/src/IHostingStartup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Hosting/Abstractions/src/IStartup.cs b/src/Hosting/Abstractions/src/IStartup.cs index 3ccd7e513070..485139b3e44c 100644 --- a/src/Hosting/Abstractions/src/IStartup.cs +++ b/src/Hosting/Abstractions/src/IStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Abstractions/src/IStartupConfigureContainerFilter.cs b/src/Hosting/Abstractions/src/IStartupConfigureContainerFilter.cs index 6866fc6f3644..fc7ad7de1e2c 100644 --- a/src/Hosting/Abstractions/src/IStartupConfigureContainerFilter.cs +++ b/src/Hosting/Abstractions/src/IStartupConfigureContainerFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Hosting/Abstractions/src/IStartupConfigureServicesFilter.cs b/src/Hosting/Abstractions/src/IStartupConfigureServicesFilter.cs index ee04264cf617..56d1e97cb412 100644 --- a/src/Hosting/Abstractions/src/IStartupConfigureServicesFilter.cs +++ b/src/Hosting/Abstractions/src/IStartupConfigureServicesFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Hosting/Abstractions/src/IStartupFilter.cs b/src/Hosting/Abstractions/src/IStartupFilter.cs index b6f6bf3ac170..5bb6132d5d3a 100644 --- a/src/Hosting/Abstractions/src/IStartupFilter.cs +++ b/src/Hosting/Abstractions/src/IStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Abstractions/src/IWebHost.cs b/src/Hosting/Abstractions/src/IWebHost.cs index a9f84eecdcba..b41ee34c741f 100644 --- a/src/Hosting/Abstractions/src/IWebHost.cs +++ b/src/Hosting/Abstractions/src/IWebHost.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Abstractions/src/IWebHostBuilder.cs b/src/Hosting/Abstractions/src/IWebHostBuilder.cs index 1e67c11ad8c2..e980413819ed 100644 --- a/src/Hosting/Abstractions/src/IWebHostBuilder.cs +++ b/src/Hosting/Abstractions/src/IWebHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Configuration; diff --git a/src/Hosting/Abstractions/src/IWebHostEnvironment.cs b/src/Hosting/Abstractions/src/IWebHostEnvironment.cs index d07103fe2dbd..b1cc2f8b2994 100644 --- a/src/Hosting/Abstractions/src/IWebHostEnvironment.cs +++ b/src/Hosting/Abstractions/src/IWebHostEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Hosting; diff --git a/src/Hosting/Abstractions/src/WebHostBuilderContext.cs b/src/Hosting/Abstractions/src/WebHostBuilderContext.cs index 3f874154db12..db35357c5cc3 100644 --- a/src/Hosting/Abstractions/src/WebHostBuilderContext.cs +++ b/src/Hosting/Abstractions/src/WebHostBuilderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Configuration; diff --git a/src/Hosting/Abstractions/src/WebHostDefaults.cs b/src/Hosting/Abstractions/src/WebHostDefaults.cs index 3e5fc5d537ec..8886104748d5 100644 --- a/src/Hosting/Abstractions/src/WebHostDefaults.cs +++ b/src/Hosting/Abstractions/src/WebHostDefaults.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting { diff --git a/src/Hosting/Hosting/src/Builder/ApplicationBuilderFactory.cs b/src/Hosting/Hosting/src/Builder/ApplicationBuilderFactory.cs index c801c9efb9cb..724784534d4e 100644 --- a/src/Hosting/Hosting/src/Builder/ApplicationBuilderFactory.cs +++ b/src/Hosting/Hosting/src/Builder/ApplicationBuilderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/Builder/IApplicationBuilderFactory.cs b/src/Hosting/Hosting/src/Builder/IApplicationBuilderFactory.cs index 06f84af29d9f..621241b00469 100644 --- a/src/Hosting/Hosting/src/Builder/IApplicationBuilderFactory.cs +++ b/src/Hosting/Hosting/src/Builder/IApplicationBuilderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/GenericHost/GenericWebHostApplicationLifetime.cs b/src/Hosting/Hosting/src/GenericHost/GenericWebHostApplicationLifetime.cs index d1609fe77160..dda1b01acc80 100644 --- a/src/Hosting/Hosting/src/GenericHost/GenericWebHostApplicationLifetime.cs +++ b/src/Hosting/Hosting/src/GenericHost/GenericWebHostApplicationLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using Microsoft.Extensions.Hosting; diff --git a/src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs b/src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs index db385520c1f4..dec70133de4b 100644 --- a/src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs +++ b/src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/GenericHost/GenericWebHostServiceOptions.cs b/src/Hosting/Hosting/src/GenericHost/GenericWebHostServiceOptions.cs index b3f7b51d47ea..f1c09cc344fe 100644 --- a/src/Hosting/Hosting/src/GenericHost/GenericWebHostServiceOptions.cs +++ b/src/Hosting/Hosting/src/GenericHost/GenericWebHostServiceOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/src/GenericHost/GenericWebHostedService.cs b/src/Hosting/Hosting/src/GenericHost/GenericWebHostedService.cs index 15fa43e9b4c6..57f4c8e00873 100644 --- a/src/Hosting/Hosting/src/GenericHost/GenericWebHostedService.cs +++ b/src/Hosting/Hosting/src/GenericHost/GenericWebHostedService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/GenericHost/HostingStartupWebHostBuilder.cs b/src/Hosting/Hosting/src/GenericHost/HostingStartupWebHostBuilder.cs index ea7b69454503..e73cb7d3145b 100644 --- a/src/Hosting/Hosting/src/GenericHost/HostingStartupWebHostBuilder.cs +++ b/src/Hosting/Hosting/src/GenericHost/HostingStartupWebHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Hosting { - // We use this type to capture calls to the IWebHostBuilder so the we can properly order calls to + // We use this type to capture calls to the IWebHostBuilder so the we can properly order calls to // to GenericHostWebHostBuilder. internal class HostingStartupWebHostBuilder : IWebHostBuilder, ISupportsStartup, ISupportsUseDefaultServiceProvider { diff --git a/src/Hosting/Hosting/src/GenericHost/ISupportsStartup.cs b/src/Hosting/Hosting/src/GenericHost/ISupportsStartup.cs index 360c3da631d4..019fff2c9758 100644 --- a/src/Hosting/Hosting/src/GenericHost/ISupportsStartup.cs +++ b/src/Hosting/Hosting/src/GenericHost/ISupportsStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Hosting/Hosting/src/GenericHost/ISupportsUseDefaultServiceProvider.cs b/src/Hosting/Hosting/src/GenericHost/ISupportsUseDefaultServiceProvider.cs index 4500e9408fce..395365adb756 100644 --- a/src/Hosting/Hosting/src/GenericHost/ISupportsUseDefaultServiceProvider.cs +++ b/src/Hosting/Hosting/src/GenericHost/ISupportsUseDefaultServiceProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Hosting/Hosting/src/GenericHostWebHostBuilderExtensions.cs b/src/Hosting/Hosting/src/GenericHostWebHostBuilderExtensions.cs index 9c01854ce30a..578fd23432d0 100644 --- a/src/Hosting/Hosting/src/GenericHostWebHostBuilderExtensions.cs +++ b/src/Hosting/Hosting/src/GenericHostWebHostBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Hosting/Hosting/src/Http/DefaultHttpContextFactory.cs b/src/Hosting/Hosting/src/Http/DefaultHttpContextFactory.cs index 6ee37986e8ad..075be9b05b8b 100644 --- a/src/Hosting/Hosting/src/Http/DefaultHttpContextFactory.cs +++ b/src/Hosting/Hosting/src/Http/DefaultHttpContextFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/Internal/ActivityFeature.cs b/src/Hosting/Hosting/src/Internal/ActivityFeature.cs index b0ca3f7210d2..60c2f0a395e0 100644 --- a/src/Hosting/Hosting/src/Internal/ActivityFeature.cs +++ b/src/Hosting/Hosting/src/Internal/ActivityFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; diff --git a/src/Hosting/Hosting/src/Internal/ApplicationLifetime.cs b/src/Hosting/Hosting/src/Internal/ApplicationLifetime.cs index 8ed017c054f5..8d5e92d29f26 100644 --- a/src/Hosting/Hosting/src/Internal/ApplicationLifetime.cs +++ b/src/Hosting/Hosting/src/Internal/ApplicationLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -49,8 +49,8 @@ public ApplicationLifetime(ILogger logger) /// public void StopApplication() { - // Lock on CTS to synchronize multiple calls to StopApplication. This guarantees that the first call - // to StopApplication and its callbacks run to completion before subsequent calls to StopApplication, + // Lock on CTS to synchronize multiple calls to StopApplication. This guarantees that the first call + // to StopApplication and its callbacks run to completion before subsequent calls to StopApplication, // which will no-op since the first call already requested cancellation, get a chance to execute. lock (_stoppingSource) { diff --git a/src/Hosting/Hosting/src/Internal/ConfigureBuilder.cs b/src/Hosting/Hosting/src/Internal/ConfigureBuilder.cs index b3086afeafc7..016ce79a55a9 100644 --- a/src/Hosting/Hosting/src/Internal/ConfigureBuilder.cs +++ b/src/Hosting/Hosting/src/Internal/ConfigureBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Hosting/Hosting/src/Internal/ConfigureContainerBuilder.cs b/src/Hosting/Hosting/src/Internal/ConfigureContainerBuilder.cs index 6dc53ad8ad35..c3230a3f74c3 100644 --- a/src/Hosting/Hosting/src/Internal/ConfigureContainerBuilder.cs +++ b/src/Hosting/Hosting/src/Internal/ConfigureContainerBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Hosting/src/Internal/ConfigureServicesBuilder.cs b/src/Hosting/Hosting/src/Internal/ConfigureServicesBuilder.cs index 71fbe133938e..a24390126163 100644 --- a/src/Hosting/Hosting/src/Internal/ConfigureServicesBuilder.cs +++ b/src/Hosting/Hosting/src/Internal/ConfigureServicesBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/ErrorPageBuilder.cs b/src/Hosting/Hosting/src/Internal/ErrorPageBuilder.cs index 0920be4d5e37..7c4c34ebaab9 100644 --- a/src/Hosting/Hosting/src/Internal/ErrorPageBuilder.cs +++ b/src/Hosting/Hosting/src/Internal/ErrorPageBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/HostedServiceExecutor.cs b/src/Hosting/Hosting/src/Internal/HostedServiceExecutor.cs index 744410e98a09..2a8e80018c8e 100644 --- a/src/Hosting/Hosting/src/Internal/HostedServiceExecutor.cs +++ b/src/Hosting/Hosting/src/Internal/HostedServiceExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/HostingApplication.cs b/src/Hosting/Hosting/src/Internal/HostingApplication.cs index e51b9d2495df..10809ca7a7f3 100644 --- a/src/Hosting/Hosting/src/Internal/HostingApplication.cs +++ b/src/Hosting/Hosting/src/Internal/HostingApplication.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs b/src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs index 277375852606..595267f3f831 100644 --- a/src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs +++ b/src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -292,7 +292,7 @@ private static void RecordRequestStartEventLog(HttpContext httpContext) }, out var requestId, out var traceState); - + if (!string.IsNullOrEmpty(requestId)) { activity.SetParentId(requestId); diff --git a/src/Hosting/Hosting/src/Internal/HostingEnvironment.cs b/src/Hosting/Hosting/src/Internal/HostingEnvironment.cs index 38a374dd57a7..16b27a2fb971 100644 --- a/src/Hosting/Hosting/src/Internal/HostingEnvironment.cs +++ b/src/Hosting/Hosting/src/Internal/HostingEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.FileProviders; diff --git a/src/Hosting/Hosting/src/Internal/HostingEnvironmentExtensions.cs b/src/Hosting/Hosting/src/Internal/HostingEnvironmentExtensions.cs index 2b8b316f279f..71608d2db7de 100644 --- a/src/Hosting/Hosting/src/Internal/HostingEnvironmentExtensions.cs +++ b/src/Hosting/Hosting/src/Internal/HostingEnvironmentExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/Hosting/src/Internal/HostingEventSource.cs b/src/Hosting/Hosting/src/Internal/HostingEventSource.cs index afd9b8bec10b..2eea77849ca2 100644 --- a/src/Hosting/Hosting/src/Internal/HostingEventSource.cs +++ b/src/Hosting/Hosting/src/Internal/HostingEventSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Tracing; diff --git a/src/Hosting/Hosting/src/Internal/HostingLoggerExtensions.cs b/src/Hosting/Hosting/src/Internal/HostingLoggerExtensions.cs index ded55bafde37..6b9f76239f1c 100644 --- a/src/Hosting/Hosting/src/Internal/HostingLoggerExtensions.cs +++ b/src/Hosting/Hosting/src/Internal/HostingLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Hosting/Hosting/src/Internal/HostingRequestFinishedLog.cs b/src/Hosting/Hosting/src/Internal/HostingRequestFinishedLog.cs index 8525182e3095..6a7bcaa85c2f 100644 --- a/src/Hosting/Hosting/src/Internal/HostingRequestFinishedLog.cs +++ b/src/Hosting/Hosting/src/Internal/HostingRequestFinishedLog.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/HostingRequestStartingLog.cs b/src/Hosting/Hosting/src/Internal/HostingRequestStartingLog.cs index c39ec7edd6e9..52f80584ecce 100644 --- a/src/Hosting/Hosting/src/Internal/HostingRequestStartingLog.cs +++ b/src/Hosting/Hosting/src/Internal/HostingRequestStartingLog.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/LoggerEventIds.cs b/src/Hosting/Hosting/src/Internal/LoggerEventIds.cs index 916eeae6a2d8..9306d816c57f 100644 --- a/src/Hosting/Hosting/src/Internal/LoggerEventIds.cs +++ b/src/Hosting/Hosting/src/Internal/LoggerEventIds.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting { diff --git a/src/Hosting/Hosting/src/Internal/MethodInfoExtensions.cs b/src/Hosting/Hosting/src/Internal/MethodInfoExtensions.cs index 32e480374a42..0c433bc459da 100644 --- a/src/Hosting/Hosting/src/Internal/MethodInfoExtensions.cs +++ b/src/Hosting/Hosting/src/Internal/MethodInfoExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; diff --git a/src/Hosting/Hosting/src/Internal/ServiceCollectionExtensions.cs b/src/Hosting/Hosting/src/Internal/ServiceCollectionExtensions.cs index fca61bc4b14d..b89f78c56f4c 100644 --- a/src/Hosting/Hosting/src/Internal/ServiceCollectionExtensions.cs +++ b/src/Hosting/Hosting/src/Internal/ServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; diff --git a/src/Hosting/Hosting/src/Internal/StartupLinkerOptions.cs b/src/Hosting/Hosting/src/Internal/StartupLinkerOptions.cs index 44ce693c3163..7a847c68cd62 100644 --- a/src/Hosting/Hosting/src/Internal/StartupLinkerOptions.cs +++ b/src/Hosting/Hosting/src/Internal/StartupLinkerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Hosting/Hosting/src/Internal/StartupLoader.cs b/src/Hosting/Hosting/src/Internal/StartupLoader.cs index 7d0b59a79f5b..893b7b951f05 100644 --- a/src/Hosting/Hosting/src/Internal/StartupLoader.cs +++ b/src/Hosting/Hosting/src/Internal/StartupLoader.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/StartupMethods.cs b/src/Hosting/Hosting/src/Internal/StartupMethods.cs index 79a179815767..0350974d9e33 100644 --- a/src/Hosting/Hosting/src/Internal/StartupMethods.cs +++ b/src/Hosting/Hosting/src/Internal/StartupMethods.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Hosting/src/Internal/WebHost.cs b/src/Hosting/Hosting/src/Internal/WebHost.cs index 42552aa93373..ca52bd1f400b 100644 --- a/src/Hosting/Hosting/src/Internal/WebHost.cs +++ b/src/Hosting/Hosting/src/Internal/WebHost.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/WebHostLifetime.cs b/src/Hosting/Hosting/src/Internal/WebHostLifetime.cs index f613ae66fef5..498082ac8a0c 100644 --- a/src/Hosting/Hosting/src/Internal/WebHostLifetime.cs +++ b/src/Hosting/Hosting/src/Internal/WebHostLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/WebHostOptions.cs b/src/Hosting/Hosting/src/Internal/WebHostOptions.cs index 0cb60de9ae1d..03311e8c021f 100644 --- a/src/Hosting/Hosting/src/Internal/WebHostOptions.cs +++ b/src/Hosting/Hosting/src/Internal/WebHostOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/Internal/WebHostUtilities.cs b/src/Hosting/Hosting/src/Internal/WebHostUtilities.cs index da24912337ef..c58620b31427 100644 --- a/src/Hosting/Hosting/src/Internal/WebHostUtilities.cs +++ b/src/Hosting/Hosting/src/Internal/WebHostUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Configuration; diff --git a/src/Hosting/Hosting/src/Properties/AssemblyInfo.cs b/src/Hosting/Hosting/src/Properties/AssemblyInfo.cs index 39703dc79d2a..7d61e8efa7f3 100644 --- a/src/Hosting/Hosting/src/Properties/AssemblyInfo.cs +++ b/src/Hosting/Hosting/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Hosting/Hosting/src/Server/Features/ServerAddressesFeature.cs b/src/Hosting/Hosting/src/Server/Features/ServerAddressesFeature.cs index 6c87643bc6ae..f9a263b192db 100644 --- a/src/Hosting/Hosting/src/Server/Features/ServerAddressesFeature.cs +++ b/src/Hosting/Hosting/src/Server/Features/ServerAddressesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/Startup/ConventionBasedStartup.cs b/src/Hosting/Hosting/src/Startup/ConventionBasedStartup.cs index 85f43594aa7d..8438274b83d6 100644 --- a/src/Hosting/Hosting/src/Startup/ConventionBasedStartup.cs +++ b/src/Hosting/Hosting/src/Startup/ConventionBasedStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; @@ -17,7 +17,7 @@ public ConventionBasedStartup(StartupMethods methods) { _methods = methods; } - + public void Configure(IApplicationBuilder app) { try diff --git a/src/Hosting/Hosting/src/Startup/DelegateStartup.cs b/src/Hosting/Hosting/src/Startup/DelegateStartup.cs index dfc1317ece00..043bd0076370 100644 --- a/src/Hosting/Hosting/src/Startup/DelegateStartup.cs +++ b/src/Hosting/Hosting/src/Startup/DelegateStartup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/Startup/StartupBase.cs b/src/Hosting/Hosting/src/Startup/StartupBase.cs index 7f6abb1a03c8..38859985174c 100644 --- a/src/Hosting/Hosting/src/Startup/StartupBase.cs +++ b/src/Hosting/Hosting/src/Startup/StartupBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsFileProvider.cs b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsFileProvider.cs index 4cf84f3ed7d4..5785be53803c 100644 --- a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsFileProvider.cs +++ b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs index 6b9ee360d4bb..bca5f7b47657 100644 --- a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs +++ b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsReader.cs b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsReader.cs index 42f154536947..6f1bae0b6824 100644 --- a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsReader.cs +++ b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/src/WebHostBuilder.cs b/src/Hosting/Hosting/src/WebHostBuilder.cs index 5628110df244..22e767695395 100644 --- a/src/Hosting/Hosting/src/WebHostBuilder.cs +++ b/src/Hosting/Hosting/src/WebHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/WebHostBuilderExtensions.cs b/src/Hosting/Hosting/src/WebHostBuilderExtensions.cs index 5bbe24874cb7..314626964e48 100644 --- a/src/Hosting/Hosting/src/WebHostBuilderExtensions.cs +++ b/src/Hosting/Hosting/src/WebHostBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/src/WebHostBuilderOptions.cs b/src/Hosting/Hosting/src/WebHostBuilderOptions.cs index 7739c97f193c..f734a507c59e 100644 --- a/src/Hosting/Hosting/src/WebHostBuilderOptions.cs +++ b/src/Hosting/Hosting/src/WebHostBuilderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Hosting { diff --git a/src/Hosting/Hosting/src/WebHostExtensions.cs b/src/Hosting/Hosting/src/WebHostExtensions.cs index 57b83d2221e5..863338939f72 100644 --- a/src/Hosting/Hosting/src/WebHostExtensions.cs +++ b/src/Hosting/Hosting/src/WebHostExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Hosting/Hosting/test/ConfigureBuilderTests.cs b/src/Hosting/Hosting/test/ConfigureBuilderTests.cs index 260aa7fb1bc6..03cbba033007 100644 --- a/src/Hosting/Hosting/test/ConfigureBuilderTests.cs +++ b/src/Hosting/Hosting/test/ConfigureBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Hosting/Hosting/test/Fakes/CustomLoggerFactory.cs b/src/Hosting/Hosting/test/Fakes/CustomLoggerFactory.cs index 9fa7cf2151ee..7fa39c45755a 100644 --- a/src/Hosting/Hosting/test/Fakes/CustomLoggerFactory.cs +++ b/src/Hosting/Hosting/test/Fakes/CustomLoggerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/Fakes/FakeOptions.cs b/src/Hosting/Hosting/test/Fakes/FakeOptions.cs index c4ffaa799d80..fde2ea69290d 100644 --- a/src/Hosting/Hosting/test/Fakes/FakeOptions.cs +++ b/src/Hosting/Hosting/test/Fakes/FakeOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/FakeService.cs b/src/Hosting/Hosting/test/Fakes/FakeService.cs index 3bf3e6ce38ba..38013f977e02 100644 --- a/src/Hosting/Hosting/test/Fakes/FakeService.cs +++ b/src/Hosting/Hosting/test/Fakes/FakeService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Hosting/Hosting/test/Fakes/GenericWebHost.cs b/src/Hosting/Hosting/test/Fakes/GenericWebHost.cs index d61ce147a7d5..bee992d7df19 100644 --- a/src/Hosting/Hosting/test/Fakes/GenericWebHost.cs +++ b/src/Hosting/Hosting/test/Fakes/GenericWebHost.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/Fakes/GenericWebHostBuilderWrapper.cs b/src/Hosting/Hosting/test/Fakes/GenericWebHostBuilderWrapper.cs index a8660bedd57e..4f44a4d351b7 100644 --- a/src/Hosting/Hosting/test/Fakes/GenericWebHostBuilderWrapper.cs +++ b/src/Hosting/Hosting/test/Fakes/GenericWebHostBuilderWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/IFactoryService.cs b/src/Hosting/Hosting/test/Fakes/IFactoryService.cs index 5b78e046e16e..397fc7e7bbf4 100644 --- a/src/Hosting/Hosting/test/Fakes/IFactoryService.cs +++ b/src/Hosting/Hosting/test/Fakes/IFactoryService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/IFakeEveryService.cs b/src/Hosting/Hosting/test/Fakes/IFakeEveryService.cs index 2cc7a00701be..5f276526dfbc 100644 --- a/src/Hosting/Hosting/test/Fakes/IFakeEveryService.cs +++ b/src/Hosting/Hosting/test/Fakes/IFakeEveryService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/IFakeScopedService.cs b/src/Hosting/Hosting/test/Fakes/IFakeScopedService.cs index 77c53e596b40..3bcce9ddde8e 100644 --- a/src/Hosting/Hosting/test/Fakes/IFakeScopedService.cs +++ b/src/Hosting/Hosting/test/Fakes/IFakeScopedService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/IFakeService.cs b/src/Hosting/Hosting/test/Fakes/IFakeService.cs index 73fca3bab1bf..4cce4f08fbc9 100644 --- a/src/Hosting/Hosting/test/Fakes/IFakeService.cs +++ b/src/Hosting/Hosting/test/Fakes/IFakeService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/IFakeServiceInstance.cs b/src/Hosting/Hosting/test/Fakes/IFakeServiceInstance.cs index 0225a6789fd7..5f88d4e21bf4 100644 --- a/src/Hosting/Hosting/test/Fakes/IFakeServiceInstance.cs +++ b/src/Hosting/Hosting/test/Fakes/IFakeServiceInstance.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/IFakeSingletonService.cs b/src/Hosting/Hosting/test/Fakes/IFakeSingletonService.cs index 938730599946..e2e1db5be568 100644 --- a/src/Hosting/Hosting/test/Fakes/IFakeSingletonService.cs +++ b/src/Hosting/Hosting/test/Fakes/IFakeSingletonService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/IFakeStartupCallback.cs b/src/Hosting/Hosting/test/Fakes/IFakeStartupCallback.cs index 8e345a1020d7..a0b553a7526c 100644 --- a/src/Hosting/Hosting/test/Fakes/IFakeStartupCallback.cs +++ b/src/Hosting/Hosting/test/Fakes/IFakeStartupCallback.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/INonexistentService.cs b/src/Hosting/Hosting/test/Fakes/INonexistentService.cs index 5090051fd6ec..1c91d1dc3f57 100644 --- a/src/Hosting/Hosting/test/Fakes/INonexistentService.cs +++ b/src/Hosting/Hosting/test/Fakes/INonexistentService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/Startup.cs b/src/Hosting/Hosting/test/Fakes/Startup.cs index 2abe4a4b223d..af54aeb4ef21 100644 --- a/src/Hosting/Hosting/test/Fakes/Startup.cs +++ b/src/Hosting/Hosting/test/Fakes/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Fakes/StartupBase.cs b/src/Hosting/Hosting/test/Fakes/StartupBase.cs index 82dd2c7cb6e2..0267d966d9a8 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupBase.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Fakes/StartupBoom.cs b/src/Hosting/Hosting/test/Fakes/StartupBoom.cs index 2b629896bc54..8e8767fe6d04 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupBoom.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupBoom.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Fakes { diff --git a/src/Hosting/Hosting/test/Fakes/StartupCaseInsensitive.cs b/src/Hosting/Hosting/test/Fakes/StartupCaseInsensitive.cs index 0c85ad54133c..71ecf94b9162 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupCaseInsensitive.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupCaseInsensitive.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 Microsoft.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupConfigureServicesThrows.cs b/src/Hosting/Hosting/test/Fakes/StartupConfigureServicesThrows.cs index 895fa654e9e3..ac8d98081d45 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupConfigureServicesThrows.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupConfigureServicesThrows.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupConfigureThrows.cs b/src/Hosting/Hosting/test/Fakes/StartupConfigureThrows.cs index 1d9fa8ef37b3..059cd70e3d59 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupConfigureThrows.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupConfigureThrows.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupCtorThrows.cs b/src/Hosting/Hosting/test/Fakes/StartupCtorThrows.cs index b7c1f223d323..0c6a27e2bb4a 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupCtorThrows.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupCtorThrows.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupNoServices.cs b/src/Hosting/Hosting/test/Fakes/StartupNoServices.cs index 93e054fbc6e1..4cec4210a402 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupNoServices.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupNoServices.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/Fakes/StartupNoServicesNoInterface.cs b/src/Hosting/Hosting/test/Fakes/StartupNoServicesNoInterface.cs index d97cee737ae8..58f047714ac2 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupNoServicesNoInterface.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupNoServicesNoInterface.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 Microsoft.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupPrivateConfigure.cs b/src/Hosting/Hosting/test/Fakes/StartupPrivateConfigure.cs index e421ba08c739..0286ebbe9489 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupPrivateConfigure.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupPrivateConfigure.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; @@ -11,7 +11,7 @@ public class StartupPrivateConfigure public StartupPrivateConfigure() { } - + public void ConfigureServices(IServiceCollection services) { diff --git a/src/Hosting/Hosting/test/Fakes/StartupStaticCtorThrows.cs b/src/Hosting/Hosting/test/Fakes/StartupStaticCtorThrows.cs index c9164fa98ff7..83cab18eacbe 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupStaticCtorThrows.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupStaticCtorThrows.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupThrowTypeLoadException.cs b/src/Hosting/Hosting/test/Fakes/StartupThrowTypeLoadException.cs index b3cbd602259c..c0f5e4322fcf 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupThrowTypeLoadException.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupThrowTypeLoadException.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -11,7 +11,7 @@ public class StartupThrowTypeLoadException { public StartupThrowTypeLoadException() { - // For this exception, the error page should contain details of the LoaderExceptions + // For this exception, the error page should contain details of the LoaderExceptions throw new ReflectionTypeLoadException( classes: new Type[] { GetType() }, exceptions: new Exception[] { new FileNotFoundException("Message from the LoaderException") }, diff --git a/src/Hosting/Hosting/test/Fakes/StartupTwoConfigureServices.cs b/src/Hosting/Hosting/test/Fakes/StartupTwoConfigureServices.cs index e7c1be78f927..1732936c327d 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupTwoConfigureServices.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupTwoConfigureServices.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Fakes/StartupTwoConfigures.cs b/src/Hosting/Hosting/test/Fakes/StartupTwoConfigures.cs index ce4132ac1366..93fc38fcdc8f 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupTwoConfigures.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupTwoConfigures.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithBuiltConfigureServices.cs b/src/Hosting/Hosting/test/Fakes/StartupWithBuiltConfigureServices.cs index 9a61d46ef4ff..0f21e48b63e2 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithBuiltConfigureServices.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithBuiltConfigureServices.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.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServices.cs b/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServices.cs index 4c397fe8bdd6..47450a1a2b16 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServices.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServices.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.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServicesNotResolved.cs b/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServicesNotResolved.cs index bff10f94421b..2de85055e8a8 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServicesNotResolved.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithConfigureServicesNotResolved.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithHostingEnvironment.cs b/src/Hosting/Hosting/test/Fakes/StartupWithHostingEnvironment.cs index cdd3cc7ac368..031a4f143bde 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithHostingEnvironment.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithHostingEnvironment.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.Hosting; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithILoggerFactory.cs b/src/Hosting/Hosting/test/Fakes/StartupWithILoggerFactory.cs index ad596e254616..c43aedac3d1b 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithILoggerFactory.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithILoggerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithScopedServices.cs b/src/Hosting/Hosting/test/Fakes/StartupWithScopedServices.cs index 985f920473fe..82311dd47a46 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithScopedServices.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithScopedServices.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 Microsoft.AspNetCore.Builder; diff --git a/src/Hosting/Hosting/test/Fakes/StartupWithServices.cs b/src/Hosting/Hosting/test/Fakes/StartupWithServices.cs index 7056b37d687f..b0f9b36fedfc 100644 --- a/src/Hosting/Hosting/test/Fakes/StartupWithServices.cs +++ b/src/Hosting/Hosting/test/Fakes/StartupWithServices.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/GenericWebHostBuilderTests.cs b/src/Hosting/Hosting/test/GenericWebHostBuilderTests.cs index 7ac55b1aecb3..61dc881e7ef4 100644 --- a/src/Hosting/Hosting/test/GenericWebHostBuilderTests.cs +++ b/src/Hosting/Hosting/test/GenericWebHostBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Configuration; diff --git a/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs b/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs index 85ea78c2647b..5a827baa1f9b 100644 --- a/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs +++ b/src/Hosting/Hosting/test/HostingApplicationDiagnosticsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/HostingApplicationTests.cs b/src/Hosting/Hosting/test/HostingApplicationTests.cs index 7bafdf05b16a..776d19ddce8b 100644 --- a/src/Hosting/Hosting/test/HostingApplicationTests.cs +++ b/src/Hosting/Hosting/test/HostingApplicationTests.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; using System.Collections.Generic; diff --git a/src/Hosting/Hosting/test/HostingEnvironmentExtensionsTests.cs b/src/Hosting/Hosting/test/HostingEnvironmentExtensionsTests.cs index 3e80eb2d1279..745586ebc81c 100644 --- a/src/Hosting/Hosting/test/HostingEnvironmentExtensionsTests.cs +++ b/src/Hosting/Hosting/test/HostingEnvironmentExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.Extensions.Configuration; diff --git a/src/Hosting/Hosting/test/Http/DefaultHttpContextFactoryTests.cs b/src/Hosting/Hosting/test/Http/DefaultHttpContextFactoryTests.cs index 761b1226308c..b5501082d33d 100644 --- a/src/Hosting/Hosting/test/Http/DefaultHttpContextFactoryTests.cs +++ b/src/Hosting/Hosting/test/Http/DefaultHttpContextFactoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Hosting/Hosting/test/Internal/AsyncEnumerableExtensions.cs b/src/Hosting/Hosting/test/Internal/AsyncEnumerableExtensions.cs index c51ab06bbed7..0dadd7338011 100644 --- a/src/Hosting/Hosting/test/Internal/AsyncEnumerableExtensions.cs +++ b/src/Hosting/Hosting/test/Internal/AsyncEnumerableExtensions.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.Text; using System.Threading; diff --git a/src/Hosting/Hosting/test/Internal/HostingEventSourceTests.cs b/src/Hosting/Hosting/test/Internal/HostingEventSourceTests.cs index 855b6a016038..a271742f6e9a 100644 --- a/src/Hosting/Hosting/test/Internal/HostingEventSourceTests.cs +++ b/src/Hosting/Hosting/test/Internal/HostingEventSourceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/Internal/HostingRequestStartLogTests.cs b/src/Hosting/Hosting/test/Internal/HostingRequestStartLogTests.cs index e2fe48b59dc3..898f07797e16 100644 --- a/src/Hosting/Hosting/test/Internal/HostingRequestStartLogTests.cs +++ b/src/Hosting/Hosting/test/Internal/HostingRequestStartLogTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Moq; diff --git a/src/Hosting/Hosting/test/Internal/MyBadContainerFactory.cs b/src/Hosting/Hosting/test/Internal/MyBadContainerFactory.cs index 058abc894a8c..9ddf4e2f3be3 100644 --- a/src/Hosting/Hosting/test/Internal/MyBadContainerFactory.cs +++ b/src/Hosting/Hosting/test/Internal/MyBadContainerFactory.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.Linq; using System.Threading.Tasks; diff --git a/src/Hosting/Hosting/test/Internal/MyContainer.cs b/src/Hosting/Hosting/test/Internal/MyContainer.cs index 5fbffaad1b8c..4917553d0904 100644 --- a/src/Hosting/Hosting/test/Internal/MyContainer.cs +++ b/src/Hosting/Hosting/test/Internal/MyContainer.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.Linq; using System.Threading.Tasks; diff --git a/src/Hosting/Hosting/test/Internal/MyContainerFactory.cs b/src/Hosting/Hosting/test/Internal/MyContainerFactory.cs index 06a1ad614b31..ef5cea0f7f29 100644 --- a/src/Hosting/Hosting/test/Internal/MyContainerFactory.cs +++ b/src/Hosting/Hosting/test/Internal/MyContainerFactory.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.Linq; using System.Threading.Tasks; diff --git a/src/Hosting/Hosting/test/StartupManagerTests.cs b/src/Hosting/Hosting/test/StartupManagerTests.cs index a9562a5b8a07..0d73f3dc7854 100644 --- a/src/Hosting/Hosting/test/StartupManagerTests.cs +++ b/src/Hosting/Hosting/test/StartupManagerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsFileProviderTests.cs b/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsFileProviderTests.cs index a33f94ebaa94..fa13a43c4979 100644 --- a/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsFileProviderTests.cs +++ b/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsFileProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsLoaderTests.cs b/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsLoaderTests.cs index a7ce4f6812e1..6f9d0e7051c8 100644 --- a/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsLoaderTests.cs +++ b/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsLoaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsReaderTests.cs b/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsReaderTests.cs index 81562a96183d..c7d68fdc9500 100644 --- a/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsReaderTests.cs +++ b/src/Hosting/Hosting/test/StaticWebAssets/StaticWebAssetsReaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/Hosting/test/WebHostBuilderTests.cs b/src/Hosting/Hosting/test/WebHostBuilderTests.cs index 752b56b1b7a9..a3e1b96d5985 100644 --- a/src/Hosting/Hosting/test/WebHostBuilderTests.cs +++ b/src/Hosting/Hosting/test/WebHostBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/WebHostConfigurationsTests.cs b/src/Hosting/Hosting/test/WebHostConfigurationsTests.cs index afc9060af9b1..e37578f079ed 100644 --- a/src/Hosting/Hosting/test/WebHostConfigurationsTests.cs +++ b/src/Hosting/Hosting/test/WebHostConfigurationsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.Configuration; diff --git a/src/Hosting/Hosting/test/WebHostTests.AsyncDisposable.cs b/src/Hosting/Hosting/test/WebHostTests.AsyncDisposable.cs index 565e17691cb7..595b07e2cd84 100644 --- a/src/Hosting/Hosting/test/WebHostTests.AsyncDisposable.cs +++ b/src/Hosting/Hosting/test/WebHostTests.AsyncDisposable.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Hosting/test/WebHostTests.cs b/src/Hosting/Hosting/test/WebHostTests.cs index 08f2849a7f88..e0519016ada0 100644 --- a/src/Hosting/Hosting/test/WebHostTests.cs +++ b/src/Hosting/Hosting/test/WebHostTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.Abstractions/src/Features/IServerAddressesFeature.cs b/src/Hosting/Server.Abstractions/src/Features/IServerAddressesFeature.cs index 10f222932dca..fe3860a68f4e 100644 --- a/src/Hosting/Server.Abstractions/src/Features/IServerAddressesFeature.cs +++ b/src/Hosting/Server.Abstractions/src/Features/IServerAddressesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Hosting/Server.Abstractions/src/IHostContextContainer.cs b/src/Hosting/Server.Abstractions/src/IHostContextContainer.cs index ff79c0d0cca5..a364e872f370 100644 --- a/src/Hosting/Server.Abstractions/src/IHostContextContainer.cs +++ b/src/Hosting/Server.Abstractions/src/IHostContextContainer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Server.Abstractions { diff --git a/src/Hosting/Server.Abstractions/src/IHttpApplication.cs b/src/Hosting/Server.Abstractions/src/IHttpApplication.cs index 635eacad9872..e6ca18b57d86 100644 --- a/src/Hosting/Server.Abstractions/src/IHttpApplication.cs +++ b/src/Hosting/Server.Abstractions/src/IHttpApplication.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.Abstractions/src/IServer.cs b/src/Hosting/Server.Abstractions/src/IServer.cs index 78d0f5a32e62..3cef2835c0ca 100644 --- a/src/Hosting/Server.Abstractions/src/IServer.cs +++ b/src/Hosting/Server.Abstractions/src/IServer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.Abstractions/src/IServerIntegratedAuth.cs b/src/Hosting/Server.Abstractions/src/IServerIntegratedAuth.cs index d099656ac47e..9594aee224e5 100644 --- a/src/Hosting/Server.Abstractions/src/IServerIntegratedAuth.cs +++ b/src/Hosting/Server.Abstractions/src/IServerIntegratedAuth.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Server { diff --git a/src/Hosting/Server.Abstractions/src/ServerIntegratedAuth.cs b/src/Hosting/Server.Abstractions/src/ServerIntegratedAuth.cs index 547dff5c95ff..4583dd6f53a5 100644 --- a/src/Hosting/Server.Abstractions/src/ServerIntegratedAuth.cs +++ b/src/Hosting/Server.Abstractions/src/ServerIntegratedAuth.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Server { diff --git a/src/Hosting/Server.IntegrationTesting/src/ApplicationPublisher.cs b/src/Hosting/Server.IntegrationTesting/src/ApplicationPublisher.cs index df03c9487026..36045ca21bc2 100644 --- a/src/Hosting/Server.IntegrationTesting/src/ApplicationPublisher.cs +++ b/src/Hosting/Server.IntegrationTesting/src/ApplicationPublisher.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Server.IntegrationTesting/src/CachingApplicationPublisher.cs b/src/Hosting/Server.IntegrationTesting/src/CachingApplicationPublisher.cs index e32d8e22dba6..13719e79953a 100644 --- a/src/Hosting/Server.IntegrationTesting/src/CachingApplicationPublisher.cs +++ b/src/Hosting/Server.IntegrationTesting/src/CachingApplicationPublisher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/ApplicationType.cs b/src/Hosting/Server.IntegrationTesting/src/Common/ApplicationType.cs index 3a8afeb94dea..72b1b01c5c25 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/ApplicationType.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/ApplicationType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Server.IntegrationTesting { diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentParameters.cs b/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentParameters.cs index b9bcea4c6394..ff4891789a61 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentParameters.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentParameters.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentResult.cs b/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentResult.cs index 6aed1f4d64aa..2d3f1c43de57 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentResult.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/DeploymentResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/DotNetCommands.cs b/src/Hosting/Server.IntegrationTesting/src/Common/DotNetCommands.cs index 8c93ff3977cd..38b0dab0656d 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/DotNetCommands.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/DotNetCommands.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/HostingModel.cs b/src/Hosting/Server.IntegrationTesting/src/Common/HostingModel.cs index e1608bba809c..318f0f5e2c25 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/HostingModel.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/HostingModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Server.IntegrationTesting { diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/LoggingHandler.cs b/src/Hosting/Server.IntegrationTesting/src/Common/LoggingHandler.cs index 002e5c78bb20..3f5a64a5d0c2 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/LoggingHandler.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/LoggingHandler.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.Net.Http; using System.Threading; using System.Threading.Tasks; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/ProcessLoggingExtensions.cs b/src/Hosting/Server.IntegrationTesting/src/Common/ProcessLoggingExtensions.cs index 8d7d20bc1e97..03e2ff0b602b 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/ProcessLoggingExtensions.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/ProcessLoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/RetryHelper.cs b/src/Hosting/Server.IntegrationTesting/src/Common/RetryHelper.cs index 75ac9f6f4104..9bc9eb1ebf04 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/RetryHelper.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/RetryHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeArchitecture.cs b/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeArchitecture.cs index 1e9c868b4bb0..f1a27f0ee1c9 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeArchitecture.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeArchitecture.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Server.IntegrationTesting { diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeFlavor.cs b/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeFlavor.cs index 3d65f0eacaa9..753533b8e79f 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeFlavor.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/RuntimeFlavor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Server.IntegrationTesting { diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/ServerType.cs b/src/Hosting/Server.IntegrationTesting/src/Common/ServerType.cs index ac84d0225fd7..c713b8ecbc1e 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/ServerType.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/ServerType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Server.IntegrationTesting { diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/TestPortHelper.cs b/src/Hosting/Server.IntegrationTesting/src/Common/TestPortHelper.cs index b8688dec04d2..78afa705a30a 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/TestPortHelper.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/TestPortHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -17,7 +17,7 @@ public static class TestPortHelper // a recently assigned port instead of incrementing, which causes flaky tests with AddressInUse // exceptions. This method should only be used when the application itself cannot use // dynamic port "0" (e.g. IISExpress). Most functional tests using raw Kestrel - // (with status messages enabled) should directly bind to dynamic port "0" and scrape + // (with status messages enabled) should directly bind to dynamic port "0" and scrape // the assigned port from the status message, which should be 100% reliable since the port // is bound once and never released. public static int GetNextPort() diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/TestUriHelper.cs b/src/Hosting/Server.IntegrationTesting/src/Common/TestUriHelper.cs index 4899fbea4f92..f5a5342841e4 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/TestUriHelper.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/TestUriHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Server.IntegrationTesting/src/Common/TestUrlHelper.cs b/src/Hosting/Server.IntegrationTesting/src/Common/TestUrlHelper.cs index f03321eba630..f9ca335f6586 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/TestUrlHelper.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/TestUrlHelper.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Server.IntegrationTesting.Common +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Server.IntegrationTesting.Common { // Public for use in other test projects public static class TestUrlHelper diff --git a/src/Hosting/Server.IntegrationTesting/src/Common/Tfm.cs b/src/Hosting/Server.IntegrationTesting/src/Common/Tfm.cs index 599ce6ab9799..6c8e0b81d388 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Common/Tfm.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Common/Tfm.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs index 5aa7c1190840..ae8d171169d7 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployerFactory.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployerFactory.cs index 8d5799faf040..0645ed23ce9e 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployerFactory.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/ApplicationDeployerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Hosting/Server.IntegrationTesting/src/Deployers/NginxDeployer.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/NginxDeployer.cs index 0ba4df14c83f..19f6a83e4508 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/NginxDeployer.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/NginxDeployer.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeployer.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeployer.cs index f33b285d63b8..15e0a781d797 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeployer.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeployer.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeploymentParameters.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeploymentParameters.cs index 61d3a49325fd..35809b167ca4 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeploymentParameters.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemoteWindowsDeploymentParameters.cs @@ -1,5 +1,5 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// See License.txt in the project root for license information +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Server.IntegrationTesting { diff --git a/src/Hosting/Server.IntegrationTesting/src/Deployers/SelfHostDeployer.cs b/src/Hosting/Server.IntegrationTesting/src/Deployers/SelfHostDeployer.cs index 0bc6940736af..7acf196b4a75 100644 --- a/src/Hosting/Server.IntegrationTesting/src/Deployers/SelfHostDeployer.cs +++ b/src/Hosting/Server.IntegrationTesting/src/Deployers/SelfHostDeployer.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/Server.IntegrationTesting/src/ProcessHelpers.cs b/src/Hosting/Server.IntegrationTesting/src/ProcessHelpers.cs index c00b6c2b4c0e..60d06ac9a543 100644 --- a/src/Hosting/Server.IntegrationTesting/src/ProcessHelpers.cs +++ b/src/Hosting/Server.IntegrationTesting/src/ProcessHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Hosting/Server.IntegrationTesting/src/PublishedApplication.cs b/src/Hosting/Server.IntegrationTesting/src/PublishedApplication.cs index 3913a7e90824..7aeab8a9ce55 100644 --- a/src/Hosting/Server.IntegrationTesting/src/PublishedApplication.cs +++ b/src/Hosting/Server.IntegrationTesting/src/PublishedApplication.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/Server.IntegrationTesting/src/TestMatrix.cs b/src/Hosting/Server.IntegrationTesting/src/TestMatrix.cs index de17dfc35b4a..71c06aaadd4f 100644 --- a/src/Hosting/Server.IntegrationTesting/src/TestMatrix.cs +++ b/src/Hosting/Server.IntegrationTesting/src/TestMatrix.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/Server.IntegrationTesting/src/TestVariant.cs b/src/Hosting/Server.IntegrationTesting/src/TestVariant.cs index 2d4aeaef48f2..b07793032761 100644 --- a/src/Hosting/Server.IntegrationTesting/src/TestVariant.cs +++ b/src/Hosting/Server.IntegrationTesting/src/TestVariant.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit.Abstractions; diff --git a/src/Hosting/Server.IntegrationTesting/src/xunit/IISExpressAncmSchema.cs b/src/Hosting/Server.IntegrationTesting/src/xunit/IISExpressAncmSchema.cs index 79d45951ef96..9d215c6298f0 100644 --- a/src/Hosting/Server.IntegrationTesting/src/xunit/IISExpressAncmSchema.cs +++ b/src/Hosting/Server.IntegrationTesting/src/xunit/IISExpressAncmSchema.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfEnvironmentVariableNotEnabled.cs b/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfEnvironmentVariableNotEnabled.cs index dad8ea3037c8..41be0202510f 100644 --- a/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfEnvironmentVariableNotEnabled.cs +++ b/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfEnvironmentVariableNotEnabled.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfIISExpressSchemaMissingInProcessAttribute.cs b/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfIISExpressSchemaMissingInProcessAttribute.cs index 321b2f7de046..b541117e534a 100644 --- a/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfIISExpressSchemaMissingInProcessAttribute.cs +++ b/src/Hosting/Server.IntegrationTesting/src/xunit/SkipIfIISExpressSchemaMissingInProcessAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/Hosting/Server.IntegrationTesting/src/xunit/SkipOn32BitOSAttribute.cs b/src/Hosting/Server.IntegrationTesting/src/xunit/SkipOn32BitOSAttribute.cs index 0557a7dada08..aefe4c9c51cf 100644 --- a/src/Hosting/Server.IntegrationTesting/src/xunit/SkipOn32BitOSAttribute.cs +++ b/src/Hosting/Server.IntegrationTesting/src/xunit/SkipOn32BitOSAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.InteropServices; diff --git a/src/Hosting/TestHost/src/ApplicationWrapper.cs b/src/Hosting/TestHost/src/ApplicationWrapper.cs index 4107c1f1dd86..9af2f6cbb73c 100644 --- a/src/Hosting/TestHost/src/ApplicationWrapper.cs +++ b/src/Hosting/TestHost/src/ApplicationWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/src/AsyncStreamWrapper.cs b/src/Hosting/TestHost/src/AsyncStreamWrapper.cs index f6e4bb6a511f..03496510204f 100644 --- a/src/Hosting/TestHost/src/AsyncStreamWrapper.cs +++ b/src/Hosting/TestHost/src/AsyncStreamWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/src/ClientHandler.cs b/src/Hosting/TestHost/src/ClientHandler.cs index ce22b44e6856..f873e7e22a12 100644 --- a/src/Hosting/TestHost/src/ClientHandler.cs +++ b/src/Hosting/TestHost/src/ClientHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/src/HostBuilderTestServerExtensions.cs b/src/Hosting/TestHost/src/HostBuilderTestServerExtensions.cs index 718b3355013f..5939e416d2cd 100644 --- a/src/Hosting/TestHost/src/HostBuilderTestServerExtensions.cs +++ b/src/Hosting/TestHost/src/HostBuilderTestServerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Hosting/TestHost/src/HttpContextBuilder.cs b/src/Hosting/TestHost/src/HttpContextBuilder.cs index 87040931b411..a5b612696c9b 100644 --- a/src/Hosting/TestHost/src/HttpContextBuilder.cs +++ b/src/Hosting/TestHost/src/HttpContextBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -16,7 +16,7 @@ internal class HttpContextBuilder : IHttpBodyControlFeature, IHttpResetFeature private readonly ApplicationWrapper _application; private readonly bool _preserveExecutionContext; private readonly HttpContext _httpContext; - + private readonly TaskCompletionSource _responseTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); private readonly ResponseBodyReaderStream _responseReaderStream; private readonly ResponseBodyPipeWriter _responsePipeWriter; diff --git a/src/Hosting/TestHost/src/HttpResetTestException.cs b/src/Hosting/TestHost/src/HttpResetTestException.cs index 2b2258511ef2..7c1867d45c8a 100644 --- a/src/Hosting/TestHost/src/HttpResetTestException.cs +++ b/src/Hosting/TestHost/src/HttpResetTestException.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Hosting/TestHost/src/NoopHostLifetime.cs b/src/Hosting/TestHost/src/NoopHostLifetime.cs index a449babaae7e..4b0e93a8277d 100644 --- a/src/Hosting/TestHost/src/NoopHostLifetime.cs +++ b/src/Hosting/TestHost/src/NoopHostLifetime.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Hosting/TestHost/src/Properties/AssemblyInfo.cs b/src/Hosting/TestHost/src/Properties/AssemblyInfo.cs index 5e17a096e780..3d16657a04e3 100644 --- a/src/Hosting/TestHost/src/Properties/AssemblyInfo.cs +++ b/src/Hosting/TestHost/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/src/Hosting/TestHost/src/RequestBodyDetectionFeature.cs b/src/Hosting/TestHost/src/RequestBodyDetectionFeature.cs index 1b9b019073c9..411cbd2f5290 100644 --- a/src/Hosting/TestHost/src/RequestBodyDetectionFeature.cs +++ b/src/Hosting/TestHost/src/RequestBodyDetectionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; diff --git a/src/Hosting/TestHost/src/RequestBuilder.cs b/src/Hosting/TestHost/src/RequestBuilder.cs index 579ba66906cc..9149ce7234f2 100644 --- a/src/Hosting/TestHost/src/RequestBuilder.cs +++ b/src/Hosting/TestHost/src/RequestBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/src/RequestFeature.cs b/src/Hosting/TestHost/src/RequestFeature.cs index fcf080b66ed3..e60ded907f89 100644 --- a/src/Hosting/TestHost/src/RequestFeature.cs +++ b/src/Hosting/TestHost/src/RequestFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Http; diff --git a/src/Hosting/TestHost/src/RequestLifetimeFeature.cs b/src/Hosting/TestHost/src/RequestLifetimeFeature.cs index be6daf86a1b7..335234cd37bb 100644 --- a/src/Hosting/TestHost/src/RequestLifetimeFeature.cs +++ b/src/Hosting/TestHost/src/RequestLifetimeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/src/ResponseBodyPipeWriter.cs b/src/Hosting/TestHost/src/ResponseBodyPipeWriter.cs index 628d855d5bf0..f8a7fe321e10 100644 --- a/src/Hosting/TestHost/src/ResponseBodyPipeWriter.cs +++ b/src/Hosting/TestHost/src/ResponseBodyPipeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Contracts; diff --git a/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs b/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs index c4799a1690b4..b715ee0229f1 100644 --- a/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs +++ b/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Hosting/TestHost/src/ResponseBodyWriterStream.cs b/src/Hosting/TestHost/src/ResponseBodyWriterStream.cs index 2be73e0650c7..cf975395f77f 100644 --- a/src/Hosting/TestHost/src/ResponseBodyWriterStream.cs +++ b/src/Hosting/TestHost/src/ResponseBodyWriterStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/src/ResponseFeature.cs b/src/Hosting/TestHost/src/ResponseFeature.cs index 6e3fbe64fd58..bcc450a2e711 100644 --- a/src/Hosting/TestHost/src/ResponseFeature.cs +++ b/src/Hosting/TestHost/src/ResponseFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/src/ResponseTrailersFeature.cs b/src/Hosting/TestHost/src/ResponseTrailersFeature.cs index 12460d0c019a..67b868faedcb 100644 --- a/src/Hosting/TestHost/src/ResponseTrailersFeature.cs +++ b/src/Hosting/TestHost/src/ResponseTrailersFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Hosting/TestHost/src/TestServer.cs b/src/Hosting/TestHost/src/TestServer.cs index cd4898af1ee0..b061065bc4a5 100644 --- a/src/Hosting/TestHost/src/TestServer.cs +++ b/src/Hosting/TestHost/src/TestServer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/src/TestServerOptions.cs b/src/Hosting/TestHost/src/TestServerOptions.cs index 40cc2e903d4b..b8e40a52a135 100644 --- a/src/Hosting/TestHost/src/TestServerOptions.cs +++ b/src/Hosting/TestHost/src/TestServerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/src/TestWebSocket.cs b/src/Hosting/TestHost/src/TestWebSocket.cs index 3d17b24be64f..7068603db66d 100644 --- a/src/Hosting/TestHost/src/TestWebSocket.cs +++ b/src/Hosting/TestHost/src/TestWebSocket.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/src/UpgradeFeature.cs b/src/Hosting/TestHost/src/UpgradeFeature.cs index 15cdb031ad36..ef48d912dc6e 100644 --- a/src/Hosting/TestHost/src/UpgradeFeature.cs +++ b/src/Hosting/TestHost/src/UpgradeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/src/WebHostBuilderExtensions.cs b/src/Hosting/TestHost/src/WebHostBuilderExtensions.cs index 675d1e6cf725..ff5983247ae5 100644 --- a/src/Hosting/TestHost/src/WebHostBuilderExtensions.cs +++ b/src/Hosting/TestHost/src/WebHostBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Hosting/TestHost/src/WebHostBuilderFactory.cs b/src/Hosting/TestHost/src/WebHostBuilderFactory.cs index 41d6ebc91ac0..c2202e7cfbb9 100644 --- a/src/Hosting/TestHost/src/WebHostBuilderFactory.cs +++ b/src/Hosting/TestHost/src/WebHostBuilderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Hosting; diff --git a/src/Hosting/TestHost/src/WebSocketClient.cs b/src/Hosting/TestHost/src/WebSocketClient.cs index 4b0f45c9059b..cdda2f73009c 100644 --- a/src/Hosting/TestHost/src/WebSocketClient.cs +++ b/src/Hosting/TestHost/src/WebSocketClient.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/test/ClientHandlerTests.cs b/src/Hosting/TestHost/test/ClientHandlerTests.cs index f98a28dc4d77..382d3dd11f14 100644 --- a/src/Hosting/TestHost/test/ClientHandlerTests.cs +++ b/src/Hosting/TestHost/test/ClientHandlerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/test/HttpContextBuilderTests.cs b/src/Hosting/TestHost/test/HttpContextBuilderTests.cs index 2ed9e8f02a08..cd34b7431b03 100644 --- a/src/Hosting/TestHost/test/HttpContextBuilderTests.cs +++ b/src/Hosting/TestHost/test/HttpContextBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/test/RequestBuilderTests.cs b/src/Hosting/TestHost/test/RequestBuilderTests.cs index 01714f8d74ec..f1509eccf09b 100644 --- a/src/Hosting/TestHost/test/RequestBuilderTests.cs +++ b/src/Hosting/TestHost/test/RequestBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Xunit; diff --git a/src/Hosting/TestHost/test/RequestLifetimeTests.cs b/src/Hosting/TestHost/test/RequestLifetimeTests.cs index f76f4cb5b2b3..240cee699455 100644 --- a/src/Hosting/TestHost/test/RequestLifetimeTests.cs +++ b/src/Hosting/TestHost/test/RequestLifetimeTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/test/ResponseBodyTests.cs b/src/Hosting/TestHost/test/ResponseBodyTests.cs index 114172d42a07..8c0c572d81da 100644 --- a/src/Hosting/TestHost/test/ResponseBodyTests.cs +++ b/src/Hosting/TestHost/test/ResponseBodyTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/test/ResponseFeatureTests.cs b/src/Hosting/TestHost/test/ResponseFeatureTests.cs index cea2f6121485..266ef60a2899 100644 --- a/src/Hosting/TestHost/test/ResponseFeatureTests.cs +++ b/src/Hosting/TestHost/test/ResponseFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/test/ResponseResetTests.cs b/src/Hosting/TestHost/test/ResponseResetTests.cs index cc7599497b39..0b939b8bfa38 100644 --- a/src/Hosting/TestHost/test/ResponseResetTests.cs +++ b/src/Hosting/TestHost/test/ResponseResetTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/test/TestClientTests.cs b/src/Hosting/TestHost/test/TestClientTests.cs index 59c961d6bcfa..de904a1aac3e 100644 --- a/src/Hosting/TestHost/test/TestClientTests.cs +++ b/src/Hosting/TestHost/test/TestClientTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/TestHost/test/TestServerTests.cs b/src/Hosting/TestHost/test/TestServerTests.cs index 6a00e4851b7f..0af588338b1e 100644 --- a/src/Hosting/TestHost/test/TestServerTests.cs +++ b/src/Hosting/TestHost/test/TestServerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -358,7 +358,7 @@ public async Task TestServerConstructorSetOptions() { webBuilder .UseTestServer(options => - { + { options.AllowSynchronousIO = true; options.PreserveExecutionContext = true; options.BaseAddress = baseAddress; diff --git a/src/Hosting/TestHost/test/Utilities.cs b/src/Hosting/TestHost/test/Utilities.cs index 7f4a99416a14..038901fd9000 100644 --- a/src/Hosting/TestHost/test/Utilities.cs +++ b/src/Hosting/TestHost/test/Utilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/TestHost/test/WebSocketClientTests.cs b/src/Hosting/TestHost/test/WebSocketClientTests.cs index acb3960c5154..9d6ca45c3361 100644 --- a/src/Hosting/TestHost/test/WebSocketClientTests.cs +++ b/src/Hosting/TestHost/test/WebSocketClientTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/WindowsServices/src/Properties/AssemblyInfo.cs b/src/Hosting/WindowsServices/src/Properties/AssemblyInfo.cs index 6e6ee3ba7f2e..ac47284e22c6 100644 --- a/src/Hosting/WindowsServices/src/Properties/AssemblyInfo.cs +++ b/src/Hosting/WindowsServices/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Runtime.Versioning; diff --git a/src/Hosting/WindowsServices/src/WebHostService.cs b/src/Hosting/WindowsServices/src/WebHostService.cs index 450ab0c669f5..f6d1a2b708d0 100644 --- a/src/Hosting/WindowsServices/src/WebHostService.cs +++ b/src/Hosting/WindowsServices/src/WebHostService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Hosting/WindowsServices/src/WebHostWindowsServiceExtensions.cs b/src/Hosting/WindowsServices/src/WebHostWindowsServiceExtensions.cs index 9e657fbe3e3b..240cc00335da 100644 --- a/src/Hosting/WindowsServices/src/WebHostWindowsServiceExtensions.cs +++ b/src/Hosting/WindowsServices/src/WebHostWindowsServiceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ServiceProcess; @@ -22,11 +22,11 @@ public static class WebHostWindowsServiceExtensions /// public static void Main(string[] args) /// { /// var config = WebHostConfiguration.GetDefault(args); - /// + /// /// var host = new WebHostBuilder() /// .UseConfiguration(config) /// .Build(); - /// + /// /// // This call will block until the service is stopped. /// host.RunAsService(); /// } diff --git a/src/Hosting/WindowsServices/test/Properties/AssemblyInfo.cs b/src/Hosting/WindowsServices/test/Properties/AssemblyInfo.cs index fe8e681ca7b4..e9ccb596e426 100644 --- a/src/Hosting/WindowsServices/test/Properties/AssemblyInfo.cs +++ b/src/Hosting/WindowsServices/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Hosting/WindowsServices/test/WebHostServiceTests.cs b/src/Hosting/WindowsServices/test/WebHostServiceTests.cs index 933c12a13899..8769369895a3 100644 --- a/src/Hosting/WindowsServices/test/WebHostServiceTests.cs +++ b/src/Hosting/WindowsServices/test/WebHostServiceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ServiceProcess; diff --git a/src/Hosting/samples/GenericWebHost/Program.cs b/src/Hosting/samples/GenericWebHost/Program.cs index 34eb0faa216b..e5cb71ce01b4 100644 --- a/src/Hosting/samples/GenericWebHost/Program.cs +++ b/src/Hosting/samples/GenericWebHost/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.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; diff --git a/src/Hosting/samples/SampleStartups/StartupBlockingOnStart.cs b/src/Hosting/samples/SampleStartups/StartupBlockingOnStart.cs index fda2dffae36f..3e75d4e23be4 100644 --- a/src/Hosting/samples/SampleStartups/StartupBlockingOnStart.cs +++ b/src/Hosting/samples/SampleStartups/StartupBlockingOnStart.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/src/Hosting/samples/SampleStartups/StartupConfigureAddresses.cs b/src/Hosting/samples/SampleStartups/StartupConfigureAddresses.cs index 123fb56e4672..d0aca7acfeb4 100644 --- a/src/Hosting/samples/SampleStartups/StartupConfigureAddresses.cs +++ b/src/Hosting/samples/SampleStartups/StartupConfigureAddresses.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.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Hosting/samples/SampleStartups/StartupExternallyControlled.cs b/src/Hosting/samples/SampleStartups/StartupExternallyControlled.cs index 8a8523bdb9ae..5a340fc909a5 100644 --- a/src/Hosting/samples/SampleStartups/StartupExternallyControlled.cs +++ b/src/Hosting/samples/SampleStartups/StartupExternallyControlled.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/Hosting/samples/SampleStartups/StartupFullControl.cs b/src/Hosting/samples/SampleStartups/StartupFullControl.cs index 035efb5d1dff..bfff85421578 100644 --- a/src/Hosting/samples/SampleStartups/StartupFullControl.cs +++ b/src/Hosting/samples/SampleStartups/StartupFullControl.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.IO; using System.Threading.Tasks; diff --git a/src/Hosting/samples/SampleStartups/StartupHelloWorld.cs b/src/Hosting/samples/SampleStartups/StartupHelloWorld.cs index 0af69a7bd16d..436070f2a06e 100644 --- a/src/Hosting/samples/SampleStartups/StartupHelloWorld.cs +++ b/src/Hosting/samples/SampleStartups/StartupHelloWorld.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.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Hosting/samples/SampleStartups/StartupInjection.cs b/src/Hosting/samples/SampleStartups/StartupInjection.cs index 88703a81773b..7f406422626a 100644 --- a/src/Hosting/samples/SampleStartups/StartupInjection.cs +++ b/src/Hosting/samples/SampleStartups/StartupInjection.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/src/Hosting/test/FunctionalTests/LinkedApplicationTests.cs b/src/Hosting/test/FunctionalTests/LinkedApplicationTests.cs index 42016a6ebc30..6ba9811c3fd9 100644 --- a/src/Hosting/test/FunctionalTests/LinkedApplicationTests.cs +++ b/src/Hosting/test/FunctionalTests/LinkedApplicationTests.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.IO; diff --git a/src/Hosting/test/FunctionalTests/Properties/AssemblyInfo.cs b/src/Hosting/test/FunctionalTests/Properties/AssemblyInfo.cs index a82d7bc1e5c5..9401ee44e389 100644 --- a/src/Hosting/test/FunctionalTests/Properties/AssemblyInfo.cs +++ b/src/Hosting/test/FunctionalTests/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Hosting/test/FunctionalTests/ShutdownTests.cs b/src/Hosting/test/FunctionalTests/ShutdownTests.cs index 108f459c0f1d..f514fa4541df 100644 --- a/src/Hosting/test/FunctionalTests/ShutdownTests.cs +++ b/src/Hosting/test/FunctionalTests/ShutdownTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Hosting/test/FunctionalTests/WebHostBuilderTests.cs b/src/Hosting/test/FunctionalTests/WebHostBuilderTests.cs index a35714d7abd2..0a77f994e0e7 100644 --- a/src/Hosting/test/FunctionalTests/WebHostBuilderTests.cs +++ b/src/Hosting/test/FunctionalTests/WebHostBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Hosting/test/testassets/BasicLinkedApp/Program.cs b/src/Hosting/test/testassets/BasicLinkedApp/Program.cs index ff215847b507..3629afbba7a2 100644 --- a/src/Hosting/test/testassets/BasicLinkedApp/Program.cs +++ b/src/Hosting/test/testassets/BasicLinkedApp/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Hosting/test/testassets/BasicLinkedApp/Startup.cs b/src/Hosting/test/testassets/BasicLinkedApp/Startup.cs index d899b5352be2..fe1253d3bdbf 100644 --- a/src/Hosting/test/testassets/BasicLinkedApp/Startup.cs +++ b/src/Hosting/test/testassets/BasicLinkedApp/Startup.cs @@ -1,4 +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.AspNetCore.Builder; using Microsoft.AspNetCore.Http; diff --git a/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Program.cs b/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Program.cs index 4db38cff4ac8..75167125631b 100644 --- a/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Program.cs +++ b/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Startup.cs b/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Startup.cs index 9f4e27223ced..a41d80931f79 100644 --- a/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Startup.cs +++ b/src/Hosting/test/testassets/IStartupInjectionAssemblyName/Startup.cs @@ -1,4 +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.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/Program.cs b/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/Program.cs index 36056bff4821..c9d5e8ebaf4f 100644 --- a/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/Program.cs +++ b/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/StartupShutdown.cs b/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/StartupShutdown.cs index 1c24852b65c5..6d93746be0f2 100644 --- a/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/StartupShutdown.cs +++ b/src/Hosting/test/testassets/Microsoft.AspNetCore.Hosting.TestSites/StartupShutdown.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Hosting/test/testassets/TestStartupAssembly1/TestHostingStartup1.cs b/src/Hosting/test/testassets/TestStartupAssembly1/TestHostingStartup1.cs index 737825fa9645..96af080adc15 100644 --- a/src/Hosting/test/testassets/TestStartupAssembly1/TestHostingStartup1.cs +++ b/src/Hosting/test/testassets/TestStartupAssembly1/TestHostingStartup1.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Hosting; diff --git a/src/Html.Abstractions/src/HtmlContentBuilder.cs b/src/Html.Abstractions/src/HtmlContentBuilder.cs index c5836cfb60e7..e5570e998971 100644 --- a/src/Html.Abstractions/src/HtmlContentBuilder.cs +++ b/src/Html.Abstractions/src/HtmlContentBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Html.Abstractions/src/HtmlContentBuilderExtensions.cs b/src/Html.Abstractions/src/HtmlContentBuilderExtensions.cs index 8ed9f45195d2..f636c88235c4 100644 --- a/src/Html.Abstractions/src/HtmlContentBuilderExtensions.cs +++ b/src/Html.Abstractions/src/HtmlContentBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Html.Abstractions/src/HtmlFormattableString.cs b/src/Html.Abstractions/src/HtmlFormattableString.cs index 04754746e31e..305586e33374 100644 --- a/src/Html.Abstractions/src/HtmlFormattableString.cs +++ b/src/Html.Abstractions/src/HtmlFormattableString.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Html.Abstractions/src/HtmlString.cs b/src/Html.Abstractions/src/HtmlString.cs index 888ba4497352..55b0fe920c48 100644 --- a/src/Html.Abstractions/src/HtmlString.cs +++ b/src/Html.Abstractions/src/HtmlString.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Html.Abstractions/src/IHtmlContent.cs b/src/Html.Abstractions/src/IHtmlContent.cs index 2e9a0f19e2df..eff645123c2f 100644 --- a/src/Html.Abstractions/src/IHtmlContent.cs +++ b/src/Html.Abstractions/src/IHtmlContent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text.Encodings.Web; diff --git a/src/Html.Abstractions/src/IHtmlContentBuilder.cs b/src/Html.Abstractions/src/IHtmlContentBuilder.cs index 912fe442aa3e..038f7f8510da 100644 --- a/src/Html.Abstractions/src/IHtmlContentBuilder.cs +++ b/src/Html.Abstractions/src/IHtmlContentBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Html { diff --git a/src/Html.Abstractions/src/IHtmlContentContainer.cs b/src/Html.Abstractions/src/IHtmlContentContainer.cs index f17811433c10..7a42c7918c5b 100644 --- a/src/Html.Abstractions/src/IHtmlContentContainer.cs +++ b/src/Html.Abstractions/src/IHtmlContentContainer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Html { diff --git a/src/Html.Abstractions/src/Properties/AssemblyInfo.cs b/src/Html.Abstractions/src/Properties/AssemblyInfo.cs index cb0b47442c8e..0ab047321d3e 100644 --- a/src/Html.Abstractions/src/Properties/AssemblyInfo.cs +++ b/src/Html.Abstractions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using System.Resources; diff --git a/src/Html.Abstractions/test/HtmlContentBuilderExtensionsTest.cs b/src/Html.Abstractions/test/HtmlContentBuilderExtensionsTest.cs index 5fc4a8d03b48..9b02583507c9 100644 --- a/src/Html.Abstractions/test/HtmlContentBuilderExtensionsTest.cs +++ b/src/Html.Abstractions/test/HtmlContentBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Html.Abstractions/test/HtmlContentBuilderTest.cs b/src/Html.Abstractions/test/HtmlContentBuilderTest.cs index 22823375dc73..986daa2aa10f 100644 --- a/src/Html.Abstractions/test/HtmlContentBuilderTest.cs +++ b/src/Html.Abstractions/test/HtmlContentBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Html.Abstractions/test/HtmlFormattableStringTest.cs b/src/Html.Abstractions/test/HtmlFormattableStringTest.cs index bc4be7c1064c..27034d365a07 100644 --- a/src/Html.Abstractions/test/HtmlFormattableStringTest.cs +++ b/src/Html.Abstractions/test/HtmlFormattableStringTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticateResult.cs b/src/Http/Authentication.Abstractions/src/AuthenticateResult.cs index 5bb29e85899f..6b8b05f76d08 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticateResult.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticateResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationHttpContextExtensions.cs b/src/Http/Authentication.Abstractions/src/AuthenticationHttpContextExtensions.cs index d102bf11eaf6..e9d09e7e9dbd 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationHttpContextExtensions.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationHttpContextExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationOptions.cs b/src/Http/Authentication.Abstractions/src/AuthenticationOptions.cs index 2bf6327af05e..a1c5d08e5525 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationOptions.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationProperties.cs b/src/Http/Authentication.Abstractions/src/AuthenticationProperties.cs index 383ace3de04c..976adb147495 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationProperties.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationProperties.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationScheme.cs b/src/Http/Authentication.Abstractions/src/AuthenticationScheme.cs index 4aaa864a7431..6a067d894967 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationScheme.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationScheme.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationSchemeBuilder.cs b/src/Http/Authentication.Abstractions/src/AuthenticationSchemeBuilder.cs index 0b36756b0cd0..ad35625f5ec8 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationSchemeBuilder.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationSchemeBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationTicket.cs b/src/Http/Authentication.Abstractions/src/AuthenticationTicket.cs index 11d0d327dcd0..79c4913a309d 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationTicket.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationTicket.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; @@ -34,7 +34,7 @@ public AuthenticationTicket(ClaimsPrincipal principal, AuthenticationProperties? /// /// the that represents the authenticated user. /// the authentication scheme that was responsible for this ticket. - public AuthenticationTicket(ClaimsPrincipal principal, string authenticationScheme) + public AuthenticationTicket(ClaimsPrincipal principal, string authenticationScheme) : this(principal, properties: null, authenticationScheme: authenticationScheme) { } diff --git a/src/Http/Authentication.Abstractions/src/AuthenticationToken.cs b/src/Http/Authentication.Abstractions/src/AuthenticationToken.cs index f03a1c965fc4..2ba7a5bd3502 100644 --- a/src/Http/Authentication.Abstractions/src/AuthenticationToken.cs +++ b/src/Http/Authentication.Abstractions/src/AuthenticationToken.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Authentication diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticateResultFeature.cs b/src/Http/Authentication.Abstractions/src/IAuthenticateResultFeature.cs index 1d9ad0034446..6f5e264ac0f2 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticateResultFeature.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticateResultFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features.Authentication; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationFeature.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationFeature.cs index 43e5a13b4947..9b71da47ce02 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationFeature.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationHandler.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationHandler.cs index 9a3de57c8e2d..ad2816be0f1a 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationHandler.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationHandlerProvider.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationHandlerProvider.cs index cbf8e8691d67..127216180b27 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationHandlerProvider.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationHandlerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationRequestHandler.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationRequestHandler.cs index 6e8a8da10d39..de0ef1a755aa 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationRequestHandler.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationRequestHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationSchemeProvider.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationSchemeProvider.cs index fc7027f3d8fb..cac9dc97364e 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationSchemeProvider.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationSchemeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; @@ -66,13 +66,13 @@ public interface IAuthenticationSchemeProvider Task GetDefaultSignOutSchemeAsync(); /// - /// Registers a scheme for use by . + /// Registers a scheme for use by . /// /// The scheme. void AddScheme(AuthenticationScheme scheme); /// - /// Registers a scheme for use by . + /// Registers a scheme for use by . /// /// The scheme. /// true if the scheme was added successfully. diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationService.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationService.cs index 334ffbbf671f..b83e44efd1cf 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationService.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationSignInHandler.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationSignInHandler.cs index 753434cf476b..da767ef7c4b3 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationSignInHandler.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationSignInHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Http/Authentication.Abstractions/src/IAuthenticationSignOutHandler.cs b/src/Http/Authentication.Abstractions/src/IAuthenticationSignOutHandler.cs index b6866308aa78..68f8dc36f20b 100644 --- a/src/Http/Authentication.Abstractions/src/IAuthenticationSignOutHandler.cs +++ b/src/Http/Authentication.Abstractions/src/IAuthenticationSignOutHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Authentication.Abstractions/src/IClaimsTransformation.cs b/src/Http/Authentication.Abstractions/src/IClaimsTransformation.cs index 0193d957838c..664d5ec00675 100644 --- a/src/Http/Authentication.Abstractions/src/IClaimsTransformation.cs +++ b/src/Http/Authentication.Abstractions/src/IClaimsTransformation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Authentication public interface IClaimsTransformation { /// - /// Provides a central transformation point to change the specified principal. + /// Provides a central transformation point to change the specified principal. /// Note: this will be run on each AuthenticateAsync call, so its safer to /// return a new ClaimsPrincipal if your transformation is not idempotent. /// diff --git a/src/Http/Authentication.Abstractions/src/TokenExtensions.cs b/src/Http/Authentication.Abstractions/src/TokenExtensions.cs index 63b9f3e324e1..ec8504bfafc4 100644 --- a/src/Http/Authentication.Abstractions/src/TokenExtensions.cs +++ b/src/Http/Authentication.Abstractions/src/TokenExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Authentication.Core/src/AuthenticationCoreServiceCollectionExtensions.cs b/src/Http/Authentication.Core/src/AuthenticationCoreServiceCollectionExtensions.cs index fdf85a9b4569..4af2730a1b1c 100644 --- a/src/Http/Authentication.Core/src/AuthenticationCoreServiceCollectionExtensions.cs +++ b/src/Http/Authentication.Core/src/AuthenticationCoreServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authentication; diff --git a/src/Http/Authentication.Core/src/AuthenticationFeature.cs b/src/Http/Authentication.Core/src/AuthenticationFeature.cs index 3282cbf4671f..1dc87f9da107 100644 --- a/src/Http/Authentication.Core/src/AuthenticationFeature.cs +++ b/src/Http/Authentication.Core/src/AuthenticationFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Authentication.Core/src/AuthenticationHandlerProvider.cs b/src/Http/Authentication.Core/src/AuthenticationHandlerProvider.cs index 7441ace71834..b2720b03c78d 100644 --- a/src/Http/Authentication.Core/src/AuthenticationHandlerProvider.cs +++ b/src/Http/Authentication.Core/src/AuthenticationHandlerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Authentication.Core/src/AuthenticationSchemeProvider.cs b/src/Http/Authentication.Core/src/AuthenticationSchemeProvider.cs index 813caeb58986..cefbd900d73d 100644 --- a/src/Http/Authentication.Core/src/AuthenticationSchemeProvider.cs +++ b/src/Http/Authentication.Core/src/AuthenticationSchemeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -130,7 +130,7 @@ public virtual Task> GetRequestHandlerSchemesA => Task.FromResult(_requestHandlersCopy); /// - /// Registers a scheme for use by . + /// Registers a scheme for use by . /// /// The scheme. /// true if the scheme was added successfully. @@ -158,7 +158,7 @@ public virtual bool TryAddScheme(AuthenticationScheme scheme) } /// - /// Registers a scheme for use by . + /// Registers a scheme for use by . /// /// The scheme. public virtual void AddScheme(AuthenticationScheme scheme) diff --git a/src/Http/Authentication.Core/src/AuthenticationService.cs b/src/Http/Authentication.Core/src/AuthenticationService.cs index 61a11b47a4a1..9e691585e506 100644 --- a/src/Http/Authentication.Core/src/AuthenticationService.cs +++ b/src/Http/Authentication.Core/src/AuthenticationService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Authentication.Core/src/NoopClaimsTransformation.cs b/src/Http/Authentication.Core/src/NoopClaimsTransformation.cs index 83c488fe421b..68510f8a69bf 100644 --- a/src/Http/Authentication.Core/src/NoopClaimsTransformation.cs +++ b/src/Http/Authentication.Core/src/NoopClaimsTransformation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Http/Authentication.Core/test/AuthenticationPropertiesTests.cs b/src/Http/Authentication.Core/test/AuthenticationPropertiesTests.cs index f69c988fd362..725803873cc8 100644 --- a/src/Http/Authentication.Core/test/AuthenticationPropertiesTests.cs +++ b/src/Http/Authentication.Core/test/AuthenticationPropertiesTests.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/Http/Authentication.Core/test/AuthenticationSchemeProviderTests.cs b/src/Http/Authentication.Core/test/AuthenticationSchemeProviderTests.cs index d60cd58a7b83..dca13ea3b02f 100644 --- a/src/Http/Authentication.Core/test/AuthenticationSchemeProviderTests.cs +++ b/src/Http/Authentication.Core/test/AuthenticationSchemeProviderTests.cs @@ -1,6 +1,6 @@ -// 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. +// 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; diff --git a/src/Http/Authentication.Core/test/AuthenticationServiceTests.cs b/src/Http/Authentication.Core/test/AuthenticationServiceTests.cs index 6f0045f22503..72b4bf94e205 100644 --- a/src/Http/Authentication.Core/test/AuthenticationServiceTests.cs +++ b/src/Http/Authentication.Core/test/AuthenticationServiceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Http/Authentication.Core/test/AuthenticationTicketTests.cs b/src/Http/Authentication.Core/test/AuthenticationTicketTests.cs index b89c2c8a52d0..0c6260c421ee 100644 --- a/src/Http/Authentication.Core/test/AuthenticationTicketTests.cs +++ b/src/Http/Authentication.Core/test/AuthenticationTicketTests.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.Collections.Generic; using System.Security.Claims; using Xunit; diff --git a/src/Http/Authentication.Core/test/TokenExtensionTests.cs b/src/Http/Authentication.Core/test/TokenExtensionTests.cs index 639dda2908fa..aac27e22bbc0 100644 --- a/src/Http/Authentication.Core/test/TokenExtensionTests.cs +++ b/src/Http/Authentication.Core/test/TokenExtensionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/BaseHeaderParser.cs b/src/Http/Headers/src/BaseHeaderParser.cs index ddfc0289e3c9..fd5ea9bd10a2 100644 --- a/src/Http/Headers/src/BaseHeaderParser.cs +++ b/src/Http/Headers/src/BaseHeaderParser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Http/Headers/src/CacheControlHeaderValue.cs b/src/Http/Headers/src/CacheControlHeaderValue.cs index a8313d3f949b..3082fa552491 100644 --- a/src/Http/Headers/src/CacheControlHeaderValue.cs +++ b/src/Http/Headers/src/CacheControlHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/ContentDispositionHeaderValue.cs b/src/Http/Headers/src/ContentDispositionHeaderValue.cs index ed2a2c8826ac..1cf3b0824233 100644 --- a/src/Http/Headers/src/ContentDispositionHeaderValue.cs +++ b/src/Http/Headers/src/ContentDispositionHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/Headers/src/ContentDispositionHeaderValueIdentityExtensions.cs b/src/Http/Headers/src/ContentDispositionHeaderValueIdentityExtensions.cs index 9ef74baa0c11..c713b7b005f1 100644 --- a/src/Http/Headers/src/ContentDispositionHeaderValueIdentityExtensions.cs +++ b/src/Http/Headers/src/ContentDispositionHeaderValueIdentityExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; diff --git a/src/Http/Headers/src/ContentRangeHeaderValue.cs b/src/Http/Headers/src/ContentRangeHeaderValue.cs index bc75ca470b45..4a58c36d602c 100644 --- a/src/Http/Headers/src/ContentRangeHeaderValue.cs +++ b/src/Http/Headers/src/ContentRangeHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Headers/src/CookieHeaderParser.cs b/src/Http/Headers/src/CookieHeaderParser.cs index cb05706921cc..00f473b31eea 100644 --- a/src/Http/Headers/src/CookieHeaderParser.cs +++ b/src/Http/Headers/src/CookieHeaderParser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Http/Headers/src/CookieHeaderValue.cs b/src/Http/Headers/src/CookieHeaderValue.cs index cee9a5bd3c11..d89321a0f813 100644 --- a/src/Http/Headers/src/CookieHeaderValue.cs +++ b/src/Http/Headers/src/CookieHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/EntityTagHeaderValue.cs b/src/Http/Headers/src/EntityTagHeaderValue.cs index 79fe03a4403b..51555c6a4021 100644 --- a/src/Http/Headers/src/EntityTagHeaderValue.cs +++ b/src/Http/Headers/src/EntityTagHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/GenericHeaderParser.cs b/src/Http/Headers/src/GenericHeaderParser.cs index c2231b4e0ced..ac3cdd44c5c5 100644 --- a/src/Http/Headers/src/GenericHeaderParser.cs +++ b/src/Http/Headers/src/GenericHeaderParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; diff --git a/src/Http/Headers/src/HeaderNames.cs b/src/Http/Headers/src/HeaderNames.cs index 2528c481cd6f..7d92ae000410 100644 --- a/src/Http/Headers/src/HeaderNames.cs +++ b/src/Http/Headers/src/HeaderNames.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Net.Http.Headers { diff --git a/src/Http/Headers/src/HeaderQuality.cs b/src/Http/Headers/src/HeaderQuality.cs index 1818d79833c5..497733e9aee5 100644 --- a/src/Http/Headers/src/HeaderQuality.cs +++ b/src/Http/Headers/src/HeaderQuality.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Net.Http.Headers { diff --git a/src/Http/Headers/src/HeaderUtilities.cs b/src/Http/Headers/src/HeaderUtilities.cs index a2acf31537d7..a5ae18a922c5 100644 --- a/src/Http/Headers/src/HeaderUtilities.cs +++ b/src/Http/Headers/src/HeaderUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/HttpHeaderParser.cs b/src/Http/Headers/src/HttpHeaderParser.cs index 5e549f89c219..eb654fca3fcc 100644 --- a/src/Http/Headers/src/HttpHeaderParser.cs +++ b/src/Http/Headers/src/HttpHeaderParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/MediaTypeHeaderValue.cs b/src/Http/Headers/src/MediaTypeHeaderValue.cs index 3dd35d32f2c1..53aea7d72411 100644 --- a/src/Http/Headers/src/MediaTypeHeaderValue.cs +++ b/src/Http/Headers/src/MediaTypeHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/MediaTypeHeaderValueComparer.cs b/src/Http/Headers/src/MediaTypeHeaderValueComparer.cs index 579146c2c4d4..d5f25cc68fa7 100644 --- a/src/Http/Headers/src/MediaTypeHeaderValueComparer.cs +++ b/src/Http/Headers/src/MediaTypeHeaderValueComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/NameValueHeaderValue.cs b/src/Http/Headers/src/NameValueHeaderValue.cs index bf8b735f1913..86988652a071 100644 --- a/src/Http/Headers/src/NameValueHeaderValue.cs +++ b/src/Http/Headers/src/NameValueHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/ObjectCollection.cs b/src/Http/Headers/src/ObjectCollection.cs index c322802440cf..a8edc0498cf9 100644 --- a/src/Http/Headers/src/ObjectCollection.cs +++ b/src/Http/Headers/src/ObjectCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/Properties/AssemblyInfo.cs b/src/Http/Headers/src/Properties/AssemblyInfo.cs index c876def487f0..d23b4e6682a8 100644 --- a/src/Http/Headers/src/Properties/AssemblyInfo.cs +++ b/src/Http/Headers/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Http/Headers/src/RangeConditionHeaderValue.cs b/src/Http/Headers/src/RangeConditionHeaderValue.cs index cf721dea477d..a26aef88739d 100644 --- a/src/Http/Headers/src/RangeConditionHeaderValue.cs +++ b/src/Http/Headers/src/RangeConditionHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Headers/src/RangeHeaderValue.cs b/src/Http/Headers/src/RangeHeaderValue.cs index 3f9d3f401a36..6270722f4638 100644 --- a/src/Http/Headers/src/RangeHeaderValue.cs +++ b/src/Http/Headers/src/RangeHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/RangeItemHeaderValue.cs b/src/Http/Headers/src/RangeItemHeaderValue.cs index 1aa323b3d53a..7f5f1da44176 100644 --- a/src/Http/Headers/src/RangeItemHeaderValue.cs +++ b/src/Http/Headers/src/RangeItemHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/SameSiteMode.cs b/src/Http/Headers/src/SameSiteMode.cs index 70e5fd3b2c12..8b5904880dc1 100644 --- a/src/Http/Headers/src/SameSiteMode.cs +++ b/src/Http/Headers/src/SameSiteMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Net.Http.Headers { diff --git a/src/Http/Headers/src/SetCookieHeaderValue.cs b/src/Http/Headers/src/SetCookieHeaderValue.cs index 5b1b17e7dfbd..cd5b42420348 100644 --- a/src/Http/Headers/src/SetCookieHeaderValue.cs +++ b/src/Http/Headers/src/SetCookieHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/StringWithQualityHeaderValue.cs b/src/Http/Headers/src/StringWithQualityHeaderValue.cs index a65500cadea7..6c1879421777 100644 --- a/src/Http/Headers/src/StringWithQualityHeaderValue.cs +++ b/src/Http/Headers/src/StringWithQualityHeaderValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/src/StringWithQualityHeaderValueComparer.cs b/src/Http/Headers/src/StringWithQualityHeaderValueComparer.cs index 62d983d8571f..9d3cc91e09f3 100644 --- a/src/Http/Headers/src/StringWithQualityHeaderValueComparer.cs +++ b/src/Http/Headers/src/StringWithQualityHeaderValueComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/CacheControlHeaderValueTest.cs b/src/Http/Headers/test/CacheControlHeaderValueTest.cs index 90dac1e65364..bd40a63345f7 100644 --- a/src/Http/Headers/test/CacheControlHeaderValueTest.cs +++ b/src/Http/Headers/test/CacheControlHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -229,7 +229,7 @@ public void GetHashCode_CompareCollectionFieldsSet_MatchExpectation() cacheControl1.NoCacheHeaders.Add("PLACEHOLDER1"); CompareHashCodes(cacheControl1, cacheControl2, true); - // Since NoCache and Private generate different hash codes, even if NoCacheHeaders and PrivateHeaders + // Since NoCache and Private generate different hash codes, even if NoCacheHeaders and PrivateHeaders // have the same values, the hash code will be different. cacheControl3.Private = true; cacheControl3.PrivateHeaders.Add("PLACEHOLDER2"); diff --git a/src/Http/Headers/test/ContentDispositionHeaderValueTest.cs b/src/Http/Headers/test/ContentDispositionHeaderValueTest.cs index d76b0ee3618a..c0c45133de9f 100644 --- a/src/Http/Headers/test/ContentDispositionHeaderValueTest.cs +++ b/src/Http/Headers/test/ContentDispositionHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/ContentRangeHeaderValueTest.cs b/src/Http/Headers/test/ContentRangeHeaderValueTest.cs index 061cabd4a64f..bbb545687863 100644 --- a/src/Http/Headers/test/ContentRangeHeaderValueTest.cs +++ b/src/Http/Headers/test/ContentRangeHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/Headers/test/CookieHeaderValueTest.cs b/src/Http/Headers/test/CookieHeaderValueTest.cs index 4d13310fe719..67466caac3fb 100644 --- a/src/Http/Headers/test/CookieHeaderValueTest.cs +++ b/src/Http/Headers/test/CookieHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -314,7 +314,7 @@ public void CookieHeaderValue_ParseStrictList_ThrowsForAnyInvalidValues( [MemberData(nameof(ListWithInvalidCookieHeaderDataSet))] public void CookieHeaderValue_TryParseStrictList_FailsForAnyInvalidValues( #pragma warning disable xUnit1026 // Theory methods should use all of their parameters - IList cookies, + IList cookies, #pragma warning restore xUnit1026 // Theory methods should use all of their parameters string[] input) { diff --git a/src/Http/Headers/test/DateParserTest.cs b/src/Http/Headers/test/DateParserTest.cs index 9801a5f5017d..be168e35b25d 100644 --- a/src/Http/Headers/test/DateParserTest.cs +++ b/src/Http/Headers/test/DateParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/EntityTagHeaderValueTest.cs b/src/Http/Headers/test/EntityTagHeaderValueTest.cs index 7320b09128a9..fefb5d5ab88e 100644 --- a/src/Http/Headers/test/EntityTagHeaderValueTest.cs +++ b/src/Http/Headers/test/EntityTagHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/HeaderUtilitiesTest.cs b/src/Http/Headers/test/HeaderUtilitiesTest.cs index 848190b02e7b..a467bcaf77ad 100644 --- a/src/Http/Headers/test/HeaderUtilitiesTest.cs +++ b/src/Http/Headers/test/HeaderUtilitiesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Headers/test/MediaTypeHeaderValueComparerTests.cs b/src/Http/Headers/test/MediaTypeHeaderValueComparerTests.cs index 3ce2702ec676..e0e4fc37264c 100644 --- a/src/Http/Headers/test/MediaTypeHeaderValueComparerTests.cs +++ b/src/Http/Headers/test/MediaTypeHeaderValueComparerTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Headers/test/MediaTypeHeaderValueTest.cs b/src/Http/Headers/test/MediaTypeHeaderValueTest.cs index 8a67a2dec90d..faf69d24aa61 100644 --- a/src/Http/Headers/test/MediaTypeHeaderValueTest.cs +++ b/src/Http/Headers/test/MediaTypeHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/NameValueHeaderValueTest.cs b/src/Http/Headers/test/NameValueHeaderValueTest.cs index 99f276ab6201..d12de484a3a4 100644 --- a/src/Http/Headers/test/NameValueHeaderValueTest.cs +++ b/src/Http/Headers/test/NameValueHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/RangeConditionHeaderValueTest.cs b/src/Http/Headers/test/RangeConditionHeaderValueTest.cs index 58ddda041dc8..24f7a3a7fd32 100644 --- a/src/Http/Headers/test/RangeConditionHeaderValueTest.cs +++ b/src/Http/Headers/test/RangeConditionHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/Headers/test/RangeHeaderValueTest.cs b/src/Http/Headers/test/RangeHeaderValueTest.cs index 48b4b4214668..908e23b3f554 100644 --- a/src/Http/Headers/test/RangeHeaderValueTest.cs +++ b/src/Http/Headers/test/RangeHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/RangeItemHeaderValueTest.cs b/src/Http/Headers/test/RangeItemHeaderValueTest.cs index 300b0ced5667..2522c81841cd 100644 --- a/src/Http/Headers/test/RangeItemHeaderValueTest.cs +++ b/src/Http/Headers/test/RangeItemHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/SetCookieHeaderValueTest.cs b/src/Http/Headers/test/SetCookieHeaderValueTest.cs index a6fcac5ac6d6..ae4ac05b91c5 100644 --- a/src/Http/Headers/test/SetCookieHeaderValueTest.cs +++ b/src/Http/Headers/test/SetCookieHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Headers/test/StringWithQualityHeaderValueComparerTest.cs b/src/Http/Headers/test/StringWithQualityHeaderValueComparerTest.cs index 8cda48eef341..12e5da6bec2c 100644 --- a/src/Http/Headers/test/StringWithQualityHeaderValueComparerTest.cs +++ b/src/Http/Headers/test/StringWithQualityHeaderValueComparerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Headers/test/StringWithQualityHeaderValueTest.cs b/src/Http/Headers/test/StringWithQualityHeaderValueTest.cs index f124b0bfd0bc..bf9770d3b6bf 100644 --- a/src/Http/Headers/test/StringWithQualityHeaderValueTest.cs +++ b/src/Http/Headers/test/StringWithQualityHeaderValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/perf/Microbenchmarks/AssemblyInfo.cs b/src/Http/Http.Abstractions/perf/Microbenchmarks/AssemblyInfo.cs index 32248e0d1b0a..09f49228e9e6 100644 --- a/src/Http/Http.Abstractions/perf/Microbenchmarks/AssemblyInfo.cs +++ b/src/Http/Http.Abstractions/perf/Microbenchmarks/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Http/Http.Abstractions/perf/Microbenchmarks/GetHeaderSplitBenchmark.cs b/src/Http/Http.Abstractions/perf/Microbenchmarks/GetHeaderSplitBenchmark.cs index 54f3beb6d9f5..8f1c7b2e8f59 100644 --- a/src/Http/Http.Abstractions/perf/Microbenchmarks/GetHeaderSplitBenchmark.cs +++ b/src/Http/Http.Abstractions/perf/Microbenchmarks/GetHeaderSplitBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/perf/Microbenchmarks/PathStringBenchmark.cs b/src/Http/Http.Abstractions/perf/Microbenchmarks/PathStringBenchmark.cs index 7716deadf9c6..143644c0fc83 100644 --- a/src/Http/Http.Abstractions/perf/Microbenchmarks/PathStringBenchmark.cs +++ b/src/Http/Http.Abstractions/perf/Microbenchmarks/PathStringBenchmark.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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Http.Abstractions/src/BadHttpRequestException.cs b/src/Http/Http.Abstractions/src/BadHttpRequestException.cs index 1e8a0bf09640..b1d466b95f2c 100644 --- a/src/Http/Http.Abstractions/src/BadHttpRequestException.cs +++ b/src/Http/Http.Abstractions/src/BadHttpRequestException.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.IO; diff --git a/src/Http/Http.Abstractions/src/ConnectionInfo.cs b/src/Http/Http.Abstractions/src/ConnectionInfo.cs index 0d310d969c69..9327c58c20da 100644 --- a/src/Http/Http.Abstractions/src/ConnectionInfo.cs +++ b/src/Http/Http.Abstractions/src/ConnectionInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Security.Cryptography.X509Certificates; diff --git a/src/Http/Http.Abstractions/src/CookieBuilder.cs b/src/Http/Http.Abstractions/src/CookieBuilder.cs index 456bc05e99d1..e92e2ffaa82c 100644 --- a/src/Http/Http.Abstractions/src/CookieBuilder.cs +++ b/src/Http/Http.Abstractions/src/CookieBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Abstractions; diff --git a/src/Http/Http.Abstractions/src/CookieSecurePolicy.cs b/src/Http/Http.Abstractions/src/CookieSecurePolicy.cs index 475e3f61296b..eec5f18dd098 100644 --- a/src/Http/Http.Abstractions/src/CookieSecurePolicy.cs +++ b/src/Http/Http.Abstractions/src/CookieSecurePolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { @@ -9,10 +9,10 @@ namespace Microsoft.AspNetCore.Http public enum CookieSecurePolicy { /// - /// If the URI that provides the cookie is HTTPS, then the cookie will only be returned to the server on - /// subsequent HTTPS requests. Otherwise if the URI that provides the cookie is HTTP, then the cookie will + /// If the URI that provides the cookie is HTTPS, then the cookie will only be returned to the server on + /// subsequent HTTPS requests. Otherwise if the URI that provides the cookie is HTTP, then the cookie will /// be returned to the server on all HTTP and HTTPS requests. This value ensures - /// HTTPS for all authenticated requests on deployed servers, and also supports HTTP for localhost development + /// HTTPS for all authenticated requests on deployed servers, and also supports HTTP for localhost development /// and for servers that do not have HTTPS support. /// SameAsRequest, diff --git a/src/Http/Http.Abstractions/src/Extensions/EndpointBuilder.cs b/src/Http/Http.Abstractions/src/Extensions/EndpointBuilder.cs index 470bb5031f84..448b80c08718 100644 --- a/src/Http/Http.Abstractions/src/Extensions/EndpointBuilder.cs +++ b/src/Http/Http.Abstractions/src/Extensions/EndpointBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/HeaderDictionaryExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/HeaderDictionaryExtensions.cs index 0cb648032c58..192b072bee17 100644 --- a/src/Http/Http.Abstractions/src/Extensions/HeaderDictionaryExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/HeaderDictionaryExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs index 6e218d2c14aa..1e0ec65c519d 100644 --- a/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/HttpResponseWritingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Http.Abstractions/src/Extensions/IEndpointConventionBuilder.cs b/src/Http/Http.Abstractions/src/Extensions/IEndpointConventionBuilder.cs index f98a99dfd6c6..e8053aa5ac4c 100644 --- a/src/Http/Http.Abstractions/src/Extensions/IEndpointConventionBuilder.cs +++ b/src/Http/Http.Abstractions/src/Extensions/IEndpointConventionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Abstractions/src/Extensions/MapExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/MapExtensions.cs index a74a883b20be..ac1d558a9ccb 100644 --- a/src/Http/Http.Abstractions/src/Extensions/MapExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/MapExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/MapMiddleware.cs b/src/Http/Http.Abstractions/src/Extensions/MapMiddleware.cs index 64fcc157b689..35b25f40e62b 100644 --- a/src/Http/Http.Abstractions/src/Extensions/MapMiddleware.cs +++ b/src/Http/Http.Abstractions/src/Extensions/MapMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Extensions/MapOptions.cs b/src/Http/Http.Abstractions/src/Extensions/MapOptions.cs index 61c1e8d9a4fd..efc50a64b3b9 100644 --- a/src/Http/Http.Abstractions/src/Extensions/MapOptions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/MapOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/MapWhenExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/MapWhenExtensions.cs index 946379df26f2..d58a697ab6d3 100644 --- a/src/Http/Http.Abstractions/src/Extensions/MapWhenExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/MapWhenExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/MapWhenMiddleware.cs b/src/Http/Http.Abstractions/src/Extensions/MapWhenMiddleware.cs index 8f7cd24dbead..97640556968c 100644 --- a/src/Http/Http.Abstractions/src/Extensions/MapWhenMiddleware.cs +++ b/src/Http/Http.Abstractions/src/Extensions/MapWhenMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Extensions/MapWhenOptions.cs b/src/Http/Http.Abstractions/src/Extensions/MapWhenOptions.cs index 3696306962de..237a54b650f3 100644 --- a/src/Http/Http.Abstractions/src/Extensions/MapWhenOptions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/MapWhenOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/RequestTrailerExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/RequestTrailerExtensions.cs index 6ffeb2eebc8f..bd48fc837807 100644 --- a/src/Http/Http.Abstractions/src/Extensions/RequestTrailerExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/RequestTrailerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Http/Http.Abstractions/src/Extensions/ResponseTrailerExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/ResponseTrailerExtensions.cs index d2c01717e74e..704cce33894d 100644 --- a/src/Http/Http.Abstractions/src/Extensions/ResponseTrailerExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/ResponseTrailerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Http/Http.Abstractions/src/Extensions/RunExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/RunExtensions.cs index 112404306427..f4687b897232 100644 --- a/src/Http/Http.Abstractions/src/Extensions/RunExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/RunExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/UseExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/UseExtensions.cs index a16093337c48..4e0b1a578404 100644 --- a/src/Http/Http.Abstractions/src/Extensions/UseExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/UseExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Extensions/UseMiddlewareExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/UseMiddlewareExtensions.cs index 2cd3cd9f240c..d6b4e2d944a9 100644 --- a/src/Http/Http.Abstractions/src/Extensions/UseMiddlewareExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/UseMiddlewareExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Http.Abstractions/src/Extensions/UsePathBaseExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/UsePathBaseExtensions.cs index 482f2f481fe7..0bdf4fcfed97 100644 --- a/src/Http/Http.Abstractions/src/Extensions/UsePathBaseExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/UsePathBaseExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Http.Abstractions/src/Extensions/UsePathBaseMiddleware.cs b/src/Http/Http.Abstractions/src/Extensions/UsePathBaseMiddleware.cs index adff7b163804..34ffc5738d40 100644 --- a/src/Http/Http.Abstractions/src/Extensions/UsePathBaseMiddleware.cs +++ b/src/Http/Http.Abstractions/src/Extensions/UsePathBaseMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Extensions/UseWhenExtensions.cs b/src/Http/Http.Abstractions/src/Extensions/UseWhenExtensions.cs index f506c41c8941..03117f32ef7b 100644 --- a/src/Http/Http.Abstractions/src/Extensions/UseWhenExtensions.cs +++ b/src/Http/Http.Abstractions/src/Extensions/UseWhenExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -45,7 +45,7 @@ public static IApplicationBuilder UseWhen(this IApplicationBuilder app, Predicat return app.Use(main => { - // This is called only when the main application builder + // This is called only when the main application builder // is built, not per request. branchBuilder.Run(main); var branch = branchBuilder.Build(); diff --git a/src/Http/Http.Abstractions/src/FragmentString.cs b/src/Http/Http.Abstractions/src/FragmentString.cs index a38aca637b8e..531e3c16be79 100644 --- a/src/Http/Http.Abstractions/src/FragmentString.cs +++ b/src/Http/Http.Abstractions/src/FragmentString.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Abstractions/src/HostString.cs b/src/Http/Http.Abstractions/src/HostString.cs index 41aff8847823..f476689f90e8 100644 --- a/src/Http/Http.Abstractions/src/HostString.cs +++ b/src/Http/Http.Abstractions/src/HostString.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/HttpContext.cs b/src/Http/Http.Abstractions/src/HttpContext.cs index 17448e07012b..d22918023446 100644 --- a/src/Http/Http.Abstractions/src/HttpContext.cs +++ b/src/Http/Http.Abstractions/src/HttpContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/HttpMethods.cs b/src/Http/Http.Abstractions/src/HttpMethods.cs index 90055730d63a..b832792255aa 100644 --- a/src/Http/Http.Abstractions/src/HttpMethods.cs +++ b/src/Http/Http.Abstractions/src/HttpMethods.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Abstractions/src/HttpProtocol.cs b/src/Http/Http.Abstractions/src/HttpProtocol.cs index 941bd6bce75e..b21dee762d1e 100644 --- a/src/Http/Http.Abstractions/src/HttpProtocol.cs +++ b/src/Http/Http.Abstractions/src/HttpProtocol.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Abstractions/src/HttpRequest.cs b/src/Http/Http.Abstractions/src/HttpRequest.cs index 189fdc739b01..c0f78134eac6 100644 --- a/src/Http/Http.Abstractions/src/HttpRequest.cs +++ b/src/Http/Http.Abstractions/src/HttpRequest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Abstractions/src/HttpResponse.cs b/src/Http/Http.Abstractions/src/HttpResponse.cs index a773a15a1b38..8dcb50703bbf 100644 --- a/src/Http/Http.Abstractions/src/HttpResponse.cs +++ b/src/Http/Http.Abstractions/src/HttpResponse.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Abstractions/src/IApplicationBuilder.cs b/src/Http/Http.Abstractions/src/IApplicationBuilder.cs index be3a06c2b3ea..0b57f157207a 100644 --- a/src/Http/Http.Abstractions/src/IApplicationBuilder.cs +++ b/src/Http/Http.Abstractions/src/IApplicationBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/ICorsMetadata.cs b/src/Http/Http.Abstractions/src/ICorsMetadata.cs index 98c48b43c864..727561663fab 100644 --- a/src/Http/Http.Abstractions/src/ICorsMetadata.cs +++ b/src/Http/Http.Abstractions/src/ICorsMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Cors.Infrastructure { diff --git a/src/Http/Http.Abstractions/src/IHttpContextAccessor.cs b/src/Http/Http.Abstractions/src/IHttpContextAccessor.cs index 9171cc003f29..171146ccafc6 100644 --- a/src/Http/Http.Abstractions/src/IHttpContextAccessor.cs +++ b/src/Http/Http.Abstractions/src/IHttpContextAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http.Abstractions/src/IHttpContextFactory.cs b/src/Http/Http.Abstractions/src/IHttpContextFactory.cs index 4a7372421974..4bc4ab7a17e8 100644 --- a/src/Http/Http.Abstractions/src/IHttpContextFactory.cs +++ b/src/Http/Http.Abstractions/src/IHttpContextFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; diff --git a/src/Http/Http.Abstractions/src/IMiddleware.cs b/src/Http/Http.Abstractions/src/IMiddleware.cs index f92527f3f5e1..9320c5e78261 100644 --- a/src/Http/Http.Abstractions/src/IMiddleware.cs +++ b/src/Http/Http.Abstractions/src/IMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Http.Abstractions/src/IMiddlewareFactory.cs b/src/Http/Http.Abstractions/src/IMiddlewareFactory.cs index 91a8a5a3d1f0..82a0dc0203fc 100644 --- a/src/Http/Http.Abstractions/src/IMiddlewareFactory.cs +++ b/src/Http/Http.Abstractions/src/IMiddlewareFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Abstractions/src/IResult.cs b/src/Http/Http.Abstractions/src/IResult.cs index a6c20a6ebded..ce83c591b49c 100644 --- a/src/Http/Http.Abstractions/src/IResult.cs +++ b/src/Http/Http.Abstractions/src/IResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Http.Abstractions/src/Internal/HeaderSegment.cs b/src/Http/Http.Abstractions/src/Internal/HeaderSegment.cs index 00bf3e8cf295..b81d26a6204b 100644 --- a/src/Http/Http.Abstractions/src/Internal/HeaderSegment.cs +++ b/src/Http/Http.Abstractions/src/Internal/HeaderSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; diff --git a/src/Http/Http.Abstractions/src/Internal/HeaderSegmentCollection.cs b/src/Http/Http.Abstractions/src/Internal/HeaderSegmentCollection.cs index e06ae7b01245..433d7d35e28f 100644 --- a/src/Http/Http.Abstractions/src/Internal/HeaderSegmentCollection.cs +++ b/src/Http/Http.Abstractions/src/Internal/HeaderSegmentCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Internal/HostStringHelper.cs b/src/Http/Http.Abstractions/src/Internal/HostStringHelper.cs index 9e42e1294458..55e1cfee72e7 100644 --- a/src/Http/Http.Abstractions/src/Internal/HostStringHelper.cs +++ b/src/Http/Http.Abstractions/src/Internal/HostStringHelper.cs @@ -1,13 +1,13 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { internal class HostStringHelper { // Allowed Characters: - // A-Z, a-z, 0-9, ., - // -, %, [, ], : + // A-Z, a-z, 0-9, ., + // -, %, [, ], : // Above for IPV6 private static readonly bool[] SafeHostStringChars = { false, false, false, false, false, false, false, false, // 0x00 - 0x07 diff --git a/src/Http/Http.Abstractions/src/Internal/ParsingHelpers.cs b/src/Http/Http.Abstractions/src/Internal/ParsingHelpers.cs index f5254acb7a2a..3f5181d2b699 100644 --- a/src/Http/Http.Abstractions/src/Internal/ParsingHelpers.cs +++ b/src/Http/Http.Abstractions/src/Internal/ParsingHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Internal/PathStringHelper.cs b/src/Http/Http.Abstractions/src/Internal/PathStringHelper.cs index 64a0e45c1925..02fca45dda73 100644 --- a/src/Http/Http.Abstractions/src/Internal/PathStringHelper.cs +++ b/src/Http/Http.Abstractions/src/Internal/PathStringHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Runtime.CompilerServices; diff --git a/src/Http/Http.Abstractions/src/Metadata/IFromBodyMetadata.cs b/src/Http/Http.Abstractions/src/Metadata/IFromBodyMetadata.cs index 878ec45dcc8a..8654c25d94a2 100644 --- a/src/Http/Http.Abstractions/src/Metadata/IFromBodyMetadata.cs +++ b/src/Http/Http.Abstractions/src/Metadata/IFromBodyMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Metadata { diff --git a/src/Http/Http.Abstractions/src/Metadata/IFromHeaderMetadata.cs b/src/Http/Http.Abstractions/src/Metadata/IFromHeaderMetadata.cs index 474daf9ed5bd..2efde288093b 100644 --- a/src/Http/Http.Abstractions/src/Metadata/IFromHeaderMetadata.cs +++ b/src/Http/Http.Abstractions/src/Metadata/IFromHeaderMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Metadata { diff --git a/src/Http/Http.Abstractions/src/Metadata/IFromQueryMetadata.cs b/src/Http/Http.Abstractions/src/Metadata/IFromQueryMetadata.cs index 303f70c8ed3e..0afaa0b7468f 100644 --- a/src/Http/Http.Abstractions/src/Metadata/IFromQueryMetadata.cs +++ b/src/Http/Http.Abstractions/src/Metadata/IFromQueryMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Metadata { diff --git a/src/Http/Http.Abstractions/src/Metadata/IFromRouteMetadata.cs b/src/Http/Http.Abstractions/src/Metadata/IFromRouteMetadata.cs index 66b24e5284e9..4f3b45ba24b1 100644 --- a/src/Http/Http.Abstractions/src/Metadata/IFromRouteMetadata.cs +++ b/src/Http/Http.Abstractions/src/Metadata/IFromRouteMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Metadata { diff --git a/src/Http/Http.Abstractions/src/Metadata/IFromServiceMetadata.cs b/src/Http/Http.Abstractions/src/Metadata/IFromServiceMetadata.cs index 92c1e2ad6758..6a995dec2e62 100644 --- a/src/Http/Http.Abstractions/src/Metadata/IFromServiceMetadata.cs +++ b/src/Http/Http.Abstractions/src/Metadata/IFromServiceMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Metadata { diff --git a/src/Http/Http.Abstractions/src/PathString.cs b/src/Http/Http.Abstractions/src/PathString.cs index b610beef9a9c..fbcaa2bb87cd 100644 --- a/src/Http/Http.Abstractions/src/PathString.cs +++ b/src/Http/Http.Abstractions/src/PathString.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Http/Http.Abstractions/src/Properties/AssemblyInfo.cs b/src/Http/Http.Abstractions/src/Properties/AssemblyInfo.cs index 2bdc2a912f18..fdd273b42bf4 100644 --- a/src/Http/Http.Abstractions/src/Properties/AssemblyInfo.cs +++ b/src/Http/Http.Abstractions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Http/Http.Abstractions/src/QueryString.cs b/src/Http/Http.Abstractions/src/QueryString.cs index cbed153f7894..5f03accd7772 100644 --- a/src/Http/Http.Abstractions/src/QueryString.cs +++ b/src/Http/Http.Abstractions/src/QueryString.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/RequestDelegate.cs b/src/Http/Http.Abstractions/src/RequestDelegate.cs index aecf353b29d8..ad4254bd1b52 100644 --- a/src/Http/Http.Abstractions/src/RequestDelegate.cs +++ b/src/Http/Http.Abstractions/src/RequestDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Http.Abstractions/src/Routing/Endpoint.cs b/src/Http/Http.Abstractions/src/Routing/Endpoint.cs index 34d4a0928af8..bf1e2fa076cb 100644 --- a/src/Http/Http.Abstractions/src/Routing/Endpoint.cs +++ b/src/Http/Http.Abstractions/src/Routing/Endpoint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http.Abstractions/src/Routing/EndpointHttpContextExtensions.cs b/src/Http/Http.Abstractions/src/Routing/EndpointHttpContextExtensions.cs index 3eea0541f4b9..2c03bde3d388 100644 --- a/src/Http/Http.Abstractions/src/Routing/EndpointHttpContextExtensions.cs +++ b/src/Http/Http.Abstractions/src/Routing/EndpointHttpContextExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Http/Http.Abstractions/src/Routing/EndpointMetadataCollection.cs b/src/Http/Http.Abstractions/src/Routing/EndpointMetadataCollection.cs index 5aa8f85a88da..bab598ec6d44 100644 --- a/src/Http/Http.Abstractions/src/Routing/EndpointMetadataCollection.cs +++ b/src/Http/Http.Abstractions/src/Routing/EndpointMetadataCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/Routing/IEndpointFeature.cs b/src/Http/Http.Abstractions/src/Routing/IEndpointFeature.cs index d8c1f1e7dba2..c7e0da501967 100644 --- a/src/Http/Http.Abstractions/src/Routing/IEndpointFeature.cs +++ b/src/Http/Http.Abstractions/src/Routing/IEndpointFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Abstractions/src/Routing/IRouteValuesFeature.cs b/src/Http/Http.Abstractions/src/Routing/IRouteValuesFeature.cs index 3fbc90b6ad87..686c3b56c5e6 100644 --- a/src/Http/Http.Abstractions/src/Routing/IRouteValuesFeature.cs +++ b/src/Http/Http.Abstractions/src/Routing/IRouteValuesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing; diff --git a/src/Http/Http.Abstractions/src/Routing/RouteValueDictionary.cs b/src/Http/Http.Abstractions/src/Routing/RouteValueDictionary.cs index ba4c95d0ac46..37b92913e512 100644 --- a/src/Http/Http.Abstractions/src/Routing/RouteValueDictionary.cs +++ b/src/Http/Http.Abstractions/src/Routing/RouteValueDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/src/StatusCodes.cs b/src/Http/Http.Abstractions/src/StatusCodes.cs index b61d03efd23a..99a47f9f2221 100644 --- a/src/Http/Http.Abstractions/src/StatusCodes.cs +++ b/src/Http/Http.Abstractions/src/StatusCodes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http.Abstractions/src/WebSocketManager.cs b/src/Http/Http.Abstractions/src/WebSocketManager.cs index 79fd84bc184c..14725d698d1d 100644 --- a/src/Http/Http.Abstractions/src/WebSocketManager.cs +++ b/src/Http/Http.Abstractions/src/WebSocketManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/CookieBuilderTests.cs b/src/Http/Http.Abstractions/test/CookieBuilderTests.cs index dd540ccc1ba0..6b545c18dd67 100644 --- a/src/Http/Http.Abstractions/test/CookieBuilderTests.cs +++ b/src/Http/Http.Abstractions/test/CookieBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/Http.Abstractions/test/EndpointHttpContextExtensionsTests.cs b/src/Http/Http.Abstractions/test/EndpointHttpContextExtensionsTests.cs index c0392a828394..247a9e880b09 100644 --- a/src/Http/Http.Abstractions/test/EndpointHttpContextExtensionsTests.cs +++ b/src/Http/Http.Abstractions/test/EndpointHttpContextExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/EndpointMetadataCollectionTests.cs b/src/Http/Http.Abstractions/test/EndpointMetadataCollectionTests.cs index a657b9335266..1cc65f79e406 100644 --- a/src/Http/Http.Abstractions/test/EndpointMetadataCollectionTests.cs +++ b/src/Http/Http.Abstractions/test/EndpointMetadataCollectionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/FragmentStringTests.cs b/src/Http/Http.Abstractions/test/FragmentStringTests.cs index 4f5fe20916ca..370f5b92f958 100644 --- a/src/Http/Http.Abstractions/test/FragmentStringTests.cs +++ b/src/Http/Http.Abstractions/test/FragmentStringTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http.Abstractions/test/HostStringTest.cs b/src/Http/Http.Abstractions/test/HostStringTest.cs index 85820f8ffcae..c672ccfc80f3 100644 --- a/src/Http/Http.Abstractions/test/HostStringTest.cs +++ b/src/Http/Http.Abstractions/test/HostStringTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/Http/Http.Abstractions/test/HttpMethodslTests.cs b/src/Http/Http.Abstractions/test/HttpMethodslTests.cs index 60e8d1f1f4d1..10c8e32a996c 100644 --- a/src/Http/Http.Abstractions/test/HttpMethodslTests.cs +++ b/src/Http/Http.Abstractions/test/HttpMethodslTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/HttpProtocolTests.cs b/src/Http/Http.Abstractions/test/HttpProtocolTests.cs index a3fd96299997..a73ce04e7fde 100644 --- a/src/Http/Http.Abstractions/test/HttpProtocolTests.cs +++ b/src/Http/Http.Abstractions/test/HttpProtocolTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/Http.Abstractions/test/HttpResponseWritingExtensionsTests.cs b/src/Http/Http.Abstractions/test/HttpResponseWritingExtensionsTests.cs index bdbb48375e66..6f47fa57d176 100644 --- a/src/Http/Http.Abstractions/test/HttpResponseWritingExtensionsTests.cs +++ b/src/Http/Http.Abstractions/test/HttpResponseWritingExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Abstractions/test/MapPathMiddlewareTests.cs b/src/Http/Http.Abstractions/test/MapPathMiddlewareTests.cs index 5c1673f9548b..44262efa9327 100644 --- a/src/Http/Http.Abstractions/test/MapPathMiddlewareTests.cs +++ b/src/Http/Http.Abstractions/test/MapPathMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/MapPredicateMiddlewareTests.cs b/src/Http/Http.Abstractions/test/MapPredicateMiddlewareTests.cs index c83bb47bcc1d..5f1a18904381 100644 --- a/src/Http/Http.Abstractions/test/MapPredicateMiddlewareTests.cs +++ b/src/Http/Http.Abstractions/test/MapPredicateMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/PathStringTests.cs b/src/Http/Http.Abstractions/test/PathStringTests.cs index 11cc3e01a8e8..ca53a3014ecb 100644 --- a/src/Http/Http.Abstractions/test/PathStringTests.cs +++ b/src/Http/Http.Abstractions/test/PathStringTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/QueryStringTests.cs b/src/Http/Http.Abstractions/test/QueryStringTests.cs index d4bb0d77d688..1025f7a7d9a9 100644 --- a/src/Http/Http.Abstractions/test/QueryStringTests.cs +++ b/src/Http/Http.Abstractions/test/QueryStringTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/RouteValueDictionaryTests.cs b/src/Http/Http.Abstractions/test/RouteValueDictionaryTests.cs index 8d861b6dff11..a9cff69dcafe 100644 --- a/src/Http/Http.Abstractions/test/RouteValueDictionaryTests.cs +++ b/src/Http/Http.Abstractions/test/RouteValueDictionaryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/UseExtensionsTests.cs b/src/Http/Http.Abstractions/test/UseExtensionsTests.cs index 559a6149ecbc..2fe3563e1f10 100644 --- a/src/Http/Http.Abstractions/test/UseExtensionsTests.cs +++ b/src/Http/Http.Abstractions/test/UseExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/UseMiddlewareTest.cs b/src/Http/Http.Abstractions/test/UseMiddlewareTest.cs index b51db76cdb8b..0c89b00e3244 100644 --- a/src/Http/Http.Abstractions/test/UseMiddlewareTest.cs +++ b/src/Http/Http.Abstractions/test/UseMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/UsePathBaseExtensionsTests.cs b/src/Http/Http.Abstractions/test/UsePathBaseExtensionsTests.cs index f5724d28bc22..a5511ef0c18b 100644 --- a/src/Http/Http.Abstractions/test/UsePathBaseExtensionsTests.cs +++ b/src/Http/Http.Abstractions/test/UsePathBaseExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Abstractions/test/UseWhenExtensionsTests.cs b/src/Http/Http.Abstractions/test/UseWhenExtensionsTests.cs index 478e592b7f85..8b46e07b8328 100644 --- a/src/Http/Http.Abstractions/test/UseWhenExtensionsTests.cs +++ b/src/Http/Http.Abstractions/test/UseWhenExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/src/HeaderDictionaryTypeExtensions.cs b/src/Http/Http.Extensions/src/HeaderDictionaryTypeExtensions.cs index 736f8607047e..6398078edc81 100644 --- a/src/Http/Http.Extensions/src/HeaderDictionaryTypeExtensions.cs +++ b/src/Http/Http.Extensions/src/HeaderDictionaryTypeExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/src/HttpContextServerVariableExtensions.cs b/src/Http/Http.Extensions/src/HttpContextServerVariableExtensions.cs index 90650071121d..cefd005da20f 100644 --- a/src/Http/Http.Extensions/src/HttpContextServerVariableExtensions.cs +++ b/src/Http/Http.Extensions/src/HttpContextServerVariableExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; diff --git a/src/Http/Http.Extensions/src/HttpRequestJsonExtensions.cs b/src/Http/Http.Extensions/src/HttpRequestJsonExtensions.cs index 473d365c3009..e2adc83d7128 100644 --- a/src/Http/Http.Extensions/src/HttpRequestJsonExtensions.cs +++ b/src/Http/Http.Extensions/src/HttpRequestJsonExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Http.Extensions/src/HttpRequestMultipartExtensions.cs b/src/Http/Http.Extensions/src/HttpRequestMultipartExtensions.cs index cc018d0c3950..17236850fcee 100644 --- a/src/Http/Http.Extensions/src/HttpRequestMultipartExtensions.cs +++ b/src/Http/Http.Extensions/src/HttpRequestMultipartExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Net.Http.Headers; diff --git a/src/Http/Http.Extensions/src/HttpResponseJsonExtensions.cs b/src/Http/Http.Extensions/src/HttpResponseJsonExtensions.cs index 85bc34e6b2f5..c36740385e55 100644 --- a/src/Http/Http.Extensions/src/HttpResponseJsonExtensions.cs +++ b/src/Http/Http.Extensions/src/HttpResponseJsonExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Http.Extensions/src/HttpValidationProblemDetails.cs b/src/Http/Http.Extensions/src/HttpValidationProblemDetails.cs index 24f9d87bedd2..be1543d91653 100644 --- a/src/Http/Http.Extensions/src/HttpValidationProblemDetails.cs +++ b/src/Http/Http.Extensions/src/HttpValidationProblemDetails.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json.Serialization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Http/Http.Extensions/src/JsonConstants.cs b/src/Http/Http.Extensions/src/JsonConstants.cs index a905119bff88..4f66d5228e48 100644 --- a/src/Http/Http.Extensions/src/JsonConstants.cs +++ b/src/Http/Http.Extensions/src/JsonConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http.Extensions/src/JsonOptions.cs b/src/Http/Http.Extensions/src/JsonOptions.cs index 586e33c7a059..2fa2cc87c5f9 100644 --- a/src/Http/Http.Extensions/src/JsonOptions.cs +++ b/src/Http/Http.Extensions/src/JsonOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Encodings.Web; using System.Text.Json; diff --git a/src/Http/Http.Extensions/src/ProblemDetails.cs b/src/Http/Http.Extensions/src/ProblemDetails.cs index 83b7ca89a2fb..d04ea9f4293e 100644 --- a/src/Http/Http.Extensions/src/ProblemDetails.cs +++ b/src/Http/Http.Extensions/src/ProblemDetails.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json.Serialization; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Http.Extensions/src/Properties/AssemblyInfo.cs b/src/Http/Http.Extensions/src/Properties/AssemblyInfo.cs index f5c2638e6462..f7cd6ab89feb 100644 --- a/src/Http/Http.Extensions/src/Properties/AssemblyInfo.cs +++ b/src/Http/Http.Extensions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Http/Http.Extensions/src/QueryBuilder.cs b/src/Http/Http.Extensions/src/QueryBuilder.cs index 3fb899efdf61..065bc7cf80a4 100644 --- a/src/Http/Http.Extensions/src/QueryBuilder.cs +++ b/src/Http/Http.Extensions/src/QueryBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Http/Http.Extensions/src/RequestDelegateFactory.cs b/src/Http/Http.Extensions/src/RequestDelegateFactory.cs index 7c2c9bc4f3d9..03be58ea4203 100644 --- a/src/Http/Http.Extensions/src/RequestDelegateFactory.cs +++ b/src/Http/Http.Extensions/src/RequestDelegateFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -736,7 +736,7 @@ private static Task ExecuteTaskOfString(Task task, HttpContext httpCont SetPlaintextContentType(httpContext); EnsureRequestTaskNotNull(task); - + static async Task ExecuteAwaited(Task task, HttpContext httpContext) { await httpContext.Response.WriteAsync(await task); diff --git a/src/Http/Http.Extensions/src/RequestDelegateFactoryOptions.cs b/src/Http/Http.Extensions/src/RequestDelegateFactoryOptions.cs index cf87ef3738b7..6aabd425a1fd 100644 --- a/src/Http/Http.Extensions/src/RequestDelegateFactoryOptions.cs +++ b/src/Http/Http.Extensions/src/RequestDelegateFactoryOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http.Extensions/src/RequestHeaders.cs b/src/Http/Http.Extensions/src/RequestHeaders.cs index 32ac934074a9..24c578a5fdf1 100644 --- a/src/Http/Http.Extensions/src/RequestHeaders.cs +++ b/src/Http/Http.Extensions/src/RequestHeaders.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/src/ResponseExtensions.cs b/src/Http/Http.Extensions/src/ResponseExtensions.cs index a8503b83e484..4a3607625ca6 100644 --- a/src/Http/Http.Extensions/src/ResponseExtensions.cs +++ b/src/Http/Http.Extensions/src/ResponseExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Http/Http.Extensions/src/ResponseHeaders.cs b/src/Http/Http.Extensions/src/ResponseHeaders.cs index 0150706d8cef..d5f72dcf6ab7 100644 --- a/src/Http/Http.Extensions/src/ResponseHeaders.cs +++ b/src/Http/Http.Extensions/src/ResponseHeaders.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/src/SendFileResponseExtensions.cs b/src/Http/Http.Extensions/src/SendFileResponseExtensions.cs index a888c096112d..dffc20d347b9 100644 --- a/src/Http/Http.Extensions/src/SendFileResponseExtensions.cs +++ b/src/Http/Http.Extensions/src/SendFileResponseExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Http.Extensions/src/SessionExtensions.cs b/src/Http/Http.Extensions/src/SessionExtensions.cs index e26a98fad01b..f9ecc61a97da 100644 --- a/src/Http/Http.Extensions/src/SessionExtensions.cs +++ b/src/Http/Http.Extensions/src/SessionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; diff --git a/src/Http/Http.Extensions/src/StreamCopyOperation.cs b/src/Http/Http.Extensions/src/StreamCopyOperation.cs index 47b522523f8c..b68148947154 100644 --- a/src/Http/Http.Extensions/src/StreamCopyOperation.cs +++ b/src/Http/Http.Extensions/src/StreamCopyOperation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading; diff --git a/src/Http/Http.Extensions/src/UriHelper.cs b/src/Http/Http.Extensions/src/UriHelper.cs index 47148121284b..16a921dfec0d 100644 --- a/src/Http/Http.Extensions/src/UriHelper.cs +++ b/src/Http/Http.Extensions/src/UriHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs b/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs index 5686c05a667b..e413a49d2117 100644 --- a/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs +++ b/src/Http/Http.Extensions/test/HeaderDictionaryTypeExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/test/HttpRequestExtensionsTests.cs b/src/Http/Http.Extensions/test/HttpRequestExtensionsTests.cs index 99866fb5d1df..deb8d80456cd 100644 --- a/src/Http/Http.Extensions/test/HttpRequestExtensionsTests.cs +++ b/src/Http/Http.Extensions/test/HttpRequestExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http.Extensions/test/HttpRequestJsonExtensionsTests.cs b/src/Http/Http.Extensions/test/HttpRequestJsonExtensionsTests.cs index 60a58b912195..af97e404128a 100644 --- a/src/Http/Http.Extensions/test/HttpRequestJsonExtensionsTests.cs +++ b/src/Http/Http.Extensions/test/HttpRequestJsonExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/test/HttpResponseJsonExtensionsTests.cs b/src/Http/Http.Extensions/test/HttpResponseJsonExtensionsTests.cs index d0118166b084..6571716ec2bb 100644 --- a/src/Http/Http.Extensions/test/HttpResponseJsonExtensionsTests.cs +++ b/src/Http/Http.Extensions/test/HttpResponseJsonExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Extensions/test/HttpValidationProblemDetailsJsonConverterTest.cs b/src/Http/Http.Extensions/test/HttpValidationProblemDetailsJsonConverterTest.cs index 1260942069c2..3e987c3b2c5b 100644 --- a/src/Http/Http.Extensions/test/HttpValidationProblemDetailsJsonConverterTest.cs +++ b/src/Http/Http.Extensions/test/HttpValidationProblemDetailsJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Text; diff --git a/src/Http/Http.Extensions/test/ProblemDetailsJsonConverterTest.cs b/src/Http/Http.Extensions/test/ProblemDetailsJsonConverterTest.cs index 8c50db9556de..94feff570ea9 100644 --- a/src/Http/Http.Extensions/test/ProblemDetailsJsonConverterTest.cs +++ b/src/Http/Http.Extensions/test/ProblemDetailsJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text; diff --git a/src/Http/Http.Extensions/test/QueryBuilderTests.cs b/src/Http/Http.Extensions/test/QueryBuilderTests.cs index c2517c45d463..3b00142adb9e 100644 --- a/src/Http/Http.Extensions/test/QueryBuilderTests.cs +++ b/src/Http/Http.Extensions/test/QueryBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Extensions/test/RequestDelegateFactoryTests.cs b/src/Http/Http.Extensions/test/RequestDelegateFactoryTests.cs index eaf0c96a8bfb..8156083bdbc2 100644 --- a/src/Http/Http.Extensions/test/RequestDelegateFactoryTests.cs +++ b/src/Http/Http.Extensions/test/RequestDelegateFactoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Http.Extensions/test/ResponseExtensionTests.cs b/src/Http/Http.Extensions/test/ResponseExtensionTests.cs index 576db15b6b01..ac3570068bb3 100644 --- a/src/Http/Http.Extensions/test/ResponseExtensionTests.cs +++ b/src/Http/Http.Extensions/test/ResponseExtensionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Extensions/test/SendFileResponseExtensionsTests.cs b/src/Http/Http.Extensions/test/SendFileResponseExtensionsTests.cs index 54e22811c0b1..2e3ecdbddf33 100644 --- a/src/Http/Http.Extensions/test/SendFileResponseExtensionsTests.cs +++ b/src/Http/Http.Extensions/test/SendFileResponseExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Extensions/test/TestStream.cs b/src/Http/Http.Extensions/test/TestStream.cs index fb9b4e52a7a8..6590f2349914 100644 --- a/src/Http/Http.Extensions/test/TestStream.cs +++ b/src/Http/Http.Extensions/test/TestStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Extensions/test/TryParseMethodCacheTests.cs b/src/Http/Http.Extensions/test/TryParseMethodCacheTests.cs index 63058c0b8167..4586d9bd6c65 100644 --- a/src/Http/Http.Extensions/test/TryParseMethodCacheTests.cs +++ b/src/Http/Http.Extensions/test/TryParseMethodCacheTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Http.Extensions/test/UriHelperTests.cs b/src/Http/Http.Extensions/test/UriHelperTests.cs index 018123f89f25..a5a6b9819f91 100644 --- a/src/Http/Http.Extensions/test/UriHelperTests.cs +++ b/src/Http/Http.Extensions/test/UriHelperTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; @@ -128,11 +128,11 @@ public void GetDisplayUrlFromRequest(string pathBase) [InlineData("http://[1080:0:0:0:8:800:200C:417A]/index.html", "http", "[1080:0:0:0:8:800:200C:417A]", "/index.html", "", "")] [InlineData("http://example.com///", "http", "example.com", "///", "", "")] public void FromAbsoluteUriParsingChecks( - string uri, - string expectedScheme, - string expectedHost, - string expectedPath, - string expectedQuery, + string uri, + string expectedScheme, + string expectedHost, + string expectedPath, + string expectedQuery, string expectedFragment) { string scheme = null; diff --git a/src/Http/Http.Features/src/Authentication/IHttpAuthenticationFeature.cs b/src/Http/Http.Features/src/Authentication/IHttpAuthenticationFeature.cs index 8c1f6d2b479a..55bd77898d56 100644 --- a/src/Http/Http.Features/src/Authentication/IHttpAuthenticationFeature.cs +++ b/src/Http/Http.Features/src/Authentication/IHttpAuthenticationFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; diff --git a/src/Http/Http.Features/src/CookieOptions.cs b/src/Http/Http.Features/src/CookieOptions.cs index 74512d23609a..e663b546067d 100644 --- a/src/Http/Http.Features/src/CookieOptions.cs +++ b/src/Http/Http.Features/src/CookieOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Features/src/HttpsCompressionMode.cs b/src/Http/Http.Features/src/HttpsCompressionMode.cs index 0ed2bcc2d686..e3932cacf4d0 100644 --- a/src/Http/Http.Features/src/HttpsCompressionMode.cs +++ b/src/Http/Http.Features/src/HttpsCompressionMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IFormCollection.cs b/src/Http/Http.Features/src/IFormCollection.cs index 237d311ae801..0d3d17264c25 100644 --- a/src/Http/Http.Features/src/IFormCollection.cs +++ b/src/Http/Http.Features/src/IFormCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.Primitives; diff --git a/src/Http/Http.Features/src/IFormFeature.cs b/src/Http/Http.Features/src/IFormFeature.cs index 50284fc394c0..8782c7470ad7 100644 --- a/src/Http/Http.Features/src/IFormFeature.cs +++ b/src/Http/Http.Features/src/IFormFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Http/Http.Features/src/IFormFile.cs b/src/Http/Http.Features/src/IFormFile.cs index f52e71bfee16..ef95e56e124a 100644 --- a/src/Http/Http.Features/src/IFormFile.cs +++ b/src/Http/Http.Features/src/IFormFile.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading; diff --git a/src/Http/Http.Features/src/IFormFileCollection.cs b/src/Http/Http.Features/src/IFormFileCollection.cs index b3501768366a..dd05b2592188 100644 --- a/src/Http/Http.Features/src/IFormFileCollection.cs +++ b/src/Http/Http.Features/src/IFormFileCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Http.Features/src/IHeaderDictionary.Keyed.cs b/src/Http/Http.Features/src/IHeaderDictionary.Keyed.cs index fd98c8ae4d1d..5455e2ad93cf 100644 --- a/src/Http/Http.Features/src/IHeaderDictionary.Keyed.cs +++ b/src/Http/Http.Features/src/IHeaderDictionary.Keyed.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; using Microsoft.Net.Http.Headers; diff --git a/src/Http/Http.Features/src/IHeaderDictionary.cs b/src/Http/Http.Features/src/IHeaderDictionary.cs index 8762f532a108..8bf46a105209 100644 --- a/src/Http/Http.Features/src/IHeaderDictionary.cs +++ b/src/Http/Http.Features/src/IHeaderDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.Primitives; diff --git a/src/Http/Http.Features/src/IHttpBodyControlFeature.cs b/src/Http/Http.Features/src/IHttpBodyControlFeature.cs index 3f61be97882c..c00031778965 100644 --- a/src/Http/Http.Features/src/IHttpBodyControlFeature.cs +++ b/src/Http/Http.Features/src/IHttpBodyControlFeature.cs @@ -1,15 +1,15 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { /// - /// Controls the IO behavior for the and + /// Controls the IO behavior for the and /// public interface IHttpBodyControlFeature { /// - /// Gets or sets a value that controls whether synchronous IO is allowed for the and + /// Gets or sets a value that controls whether synchronous IO is allowed for the and /// bool AllowSynchronousIO { get; set; } } diff --git a/src/Http/Http.Features/src/IHttpConnectionFeature.cs b/src/Http/Http.Features/src/IHttpConnectionFeature.cs index 551b750a276e..2a260df3ee43 100644 --- a/src/Http/Http.Features/src/IHttpConnectionFeature.cs +++ b/src/Http/Http.Features/src/IHttpConnectionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; diff --git a/src/Http/Http.Features/src/IHttpMaxRequestBodySizeFeature.cs b/src/Http/Http.Features/src/IHttpMaxRequestBodySizeFeature.cs index c02000c72afa..2f0af2db5d32 100644 --- a/src/Http/Http.Features/src/IHttpMaxRequestBodySizeFeature.cs +++ b/src/Http/Http.Features/src/IHttpMaxRequestBodySizeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IHttpRequestBodyDetectionFeature.cs b/src/Http/Http.Features/src/IHttpRequestBodyDetectionFeature.cs index c44ef1074a9a..15eed7172248 100644 --- a/src/Http/Http.Features/src/IHttpRequestBodyDetectionFeature.cs +++ b/src/Http/Http.Features/src/IHttpRequestBodyDetectionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IHttpRequestFeature.cs b/src/Http/Http.Features/src/IHttpRequestFeature.cs index c108cdf0e1fc..7f2e93babaab 100644 --- a/src/Http/Http.Features/src/IHttpRequestFeature.cs +++ b/src/Http/Http.Features/src/IHttpRequestFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; diff --git a/src/Http/Http.Features/src/IHttpRequestIdentifierFeature.cs b/src/Http/Http.Features/src/IHttpRequestIdentifierFeature.cs index 2ba2d81a14d3..34464b2b1a8e 100644 --- a/src/Http/Http.Features/src/IHttpRequestIdentifierFeature.cs +++ b/src/Http/Http.Features/src/IHttpRequestIdentifierFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IHttpRequestLifetimeFeature.cs b/src/Http/Http.Features/src/IHttpRequestLifetimeFeature.cs index 7020442a7c36..263b68b021c0 100644 --- a/src/Http/Http.Features/src/IHttpRequestLifetimeFeature.cs +++ b/src/Http/Http.Features/src/IHttpRequestLifetimeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Http/Http.Features/src/IHttpRequestTrailersFeature.cs b/src/Http/Http.Features/src/IHttpRequestTrailersFeature.cs index 19706e9e4ec9..daf65eddbc9e 100644 --- a/src/Http/Http.Features/src/IHttpRequestTrailersFeature.cs +++ b/src/Http/Http.Features/src/IHttpRequestTrailersFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Features/src/IHttpResetFeature.cs b/src/Http/Http.Features/src/IHttpResetFeature.cs index 8a08ebe32a59..8e3bfe2df803 100644 --- a/src/Http/Http.Features/src/IHttpResetFeature.cs +++ b/src/Http/Http.Features/src/IHttpResetFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IHttpResponseBodyFeature.cs b/src/Http/Http.Features/src/IHttpResponseBodyFeature.cs index 12beff23f51f..3c0f9370de7f 100644 --- a/src/Http/Http.Features/src/IHttpResponseBodyFeature.cs +++ b/src/Http/Http.Features/src/IHttpResponseBodyFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.IO.Pipelines; diff --git a/src/Http/Http.Features/src/IHttpResponseFeature.cs b/src/Http/Http.Features/src/IHttpResponseFeature.cs index 513ddfb4e886..dc759f610622 100644 --- a/src/Http/Http.Features/src/IHttpResponseFeature.cs +++ b/src/Http/Http.Features/src/IHttpResponseFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Features/src/IHttpResponseTrailersFeature.cs b/src/Http/Http.Features/src/IHttpResponseTrailersFeature.cs index 8a78d8f22385..c1d97bcbb017 100644 --- a/src/Http/Http.Features/src/IHttpResponseTrailersFeature.cs +++ b/src/Http/Http.Features/src/IHttpResponseTrailersFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IHttpUpgradeFeature.cs b/src/Http/Http.Features/src/IHttpUpgradeFeature.cs index 99cd0591edaf..b1476d6bd374 100644 --- a/src/Http/Http.Features/src/IHttpUpgradeFeature.cs +++ b/src/Http/Http.Features/src/IHttpUpgradeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/Http/Http.Features/src/IHttpWebSocketFeature.cs b/src/Http/Http.Features/src/IHttpWebSocketFeature.cs index 3bc6ad0e68bb..68a394449d31 100644 --- a/src/Http/Http.Features/src/IHttpWebSocketFeature.cs +++ b/src/Http/Http.Features/src/IHttpWebSocketFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.WebSockets; using System.Threading.Tasks; diff --git a/src/Http/Http.Features/src/IHttpsCompressionFeature.cs b/src/Http/Http.Features/src/IHttpsCompressionFeature.cs index 04b05bfaf584..73dd2f59425c 100644 --- a/src/Http/Http.Features/src/IHttpsCompressionFeature.cs +++ b/src/Http/Http.Features/src/IHttpsCompressionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IItemsFeature.cs b/src/Http/Http.Features/src/IItemsFeature.cs index bd2357679a64..ef760c6503b0 100644 --- a/src/Http/Http.Features/src/IItemsFeature.cs +++ b/src/Http/Http.Features/src/IItemsFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Http.Features/src/IQueryCollection.cs b/src/Http/Http.Features/src/IQueryCollection.cs index 5d45ad249360..47dd5705709b 100644 --- a/src/Http/Http.Features/src/IQueryCollection.cs +++ b/src/Http/Http.Features/src/IQueryCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.Primitives; diff --git a/src/Http/Http.Features/src/IQueryFeature.cs b/src/Http/Http.Features/src/IQueryFeature.cs index 687ab7313c1c..9b9eb96eac31 100644 --- a/src/Http/Http.Features/src/IQueryFeature.cs +++ b/src/Http/Http.Features/src/IQueryFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IRequestBodyPipeFeature.cs b/src/Http/Http.Features/src/IRequestBodyPipeFeature.cs index bf300bd81244..506f15e8b52b 100644 --- a/src/Http/Http.Features/src/IRequestBodyPipeFeature.cs +++ b/src/Http/Http.Features/src/IRequestBodyPipeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO.Pipelines; diff --git a/src/Http/Http.Features/src/IRequestCookieCollection.cs b/src/Http/Http.Features/src/IRequestCookieCollection.cs index 2d29830bb093..9e77610a3339 100644 --- a/src/Http/Http.Features/src/IRequestCookieCollection.cs +++ b/src/Http/Http.Features/src/IRequestCookieCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Http/Http.Features/src/IRequestCookiesFeature.cs b/src/Http/Http.Features/src/IRequestCookiesFeature.cs index a5ee124e788e..b4afd39db2ea 100644 --- a/src/Http/Http.Features/src/IRequestCookiesFeature.cs +++ b/src/Http/Http.Features/src/IRequestCookiesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IResponseCookies.cs b/src/Http/Http.Features/src/IResponseCookies.cs index 6f09401d8d89..1f2a65f2fc5f 100644 --- a/src/Http/Http.Features/src/IResponseCookies.cs +++ b/src/Http/Http.Features/src/IResponseCookies.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Features/src/IResponseCookiesFeature.cs b/src/Http/Http.Features/src/IResponseCookiesFeature.cs index 7ce10418400d..ff8de1eac9e6 100644 --- a/src/Http/Http.Features/src/IResponseCookiesFeature.cs +++ b/src/Http/Http.Features/src/IResponseCookiesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IServerVariablesFeature.cs b/src/Http/Http.Features/src/IServerVariablesFeature.cs index f9442bddc6f3..b25ac6ec1b2c 100644 --- a/src/Http/Http.Features/src/IServerVariablesFeature.cs +++ b/src/Http/Http.Features/src/IServerVariablesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/IServiceProvidersFeature.cs b/src/Http/Http.Features/src/IServiceProvidersFeature.cs index 1e03bd421b2a..b53c2f9dc732 100644 --- a/src/Http/Http.Features/src/IServiceProvidersFeature.cs +++ b/src/Http/Http.Features/src/IServiceProvidersFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Features/src/ISession.cs b/src/Http/Http.Features/src/ISession.cs index c5ea1c229d0c..0b7a83c5bad8 100644 --- a/src/Http/Http.Features/src/ISession.cs +++ b/src/Http/Http.Features/src/ISession.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Http/Http.Features/src/ISessionFeature.cs b/src/Http/Http.Features/src/ISessionFeature.cs index 05f1eb7dd057..7867124b3836 100644 --- a/src/Http/Http.Features/src/ISessionFeature.cs +++ b/src/Http/Http.Features/src/ISessionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/ITlsConnectionFeature.cs b/src/Http/Http.Features/src/ITlsConnectionFeature.cs index c5bd1a3bb54c..05502345d594 100644 --- a/src/Http/Http.Features/src/ITlsConnectionFeature.cs +++ b/src/Http/Http.Features/src/ITlsConnectionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Cryptography.X509Certificates; using System.Threading; diff --git a/src/Http/Http.Features/src/ITlsTokenBindingFeature.cs b/src/Http/Http.Features/src/ITlsTokenBindingFeature.cs index d63333dd0a83..4918e5029af0 100644 --- a/src/Http/Http.Features/src/ITlsTokenBindingFeature.cs +++ b/src/Http/Http.Features/src/ITlsTokenBindingFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/ITrackingConsentFeature.cs b/src/Http/Http.Features/src/ITrackingConsentFeature.cs index e7fbeaeaf338..60cf627949c0 100644 --- a/src/Http/Http.Features/src/ITrackingConsentFeature.cs +++ b/src/Http/Http.Features/src/ITrackingConsentFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http.Features/src/Properties/AssemblyInfo.cs b/src/Http/Http.Features/src/Properties/AssemblyInfo.cs index 43fe8a8367f6..c9f6f9358d5b 100644 --- a/src/Http/Http.Features/src/Properties/AssemblyInfo.cs +++ b/src/Http/Http.Features/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Http/Http.Features/src/SameSiteMode.cs b/src/Http/Http.Features/src/SameSiteMode.cs index c9a11143976b..9c8b03d16598 100644 --- a/src/Http/Http.Features/src/SameSiteMode.cs +++ b/src/Http/Http.Features/src/SameSiteMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http.Features/src/WebSocketAcceptContext.cs b/src/Http/Http.Features/src/WebSocketAcceptContext.cs index 4096c1228855..3942221f968e 100644 --- a/src/Http/Http.Features/src/WebSocketAcceptContext.cs +++ b/src/Http/Http.Features/src/WebSocketAcceptContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.WebSockets; diff --git a/src/Http/Http.Results/src/AcceptedAtRouteResult.cs b/src/Http/Http.Results/src/AcceptedAtRouteResult.cs index 007a2e5f39c6..e35d06a4fb00 100644 --- a/src/Http/Http.Results/src/AcceptedAtRouteResult.cs +++ b/src/Http/Http.Results/src/AcceptedAtRouteResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Http.Results/src/AcceptedResult.cs b/src/Http/Http.Results/src/AcceptedResult.cs index 9725a0d4a90a..9ef66d936c38 100644 --- a/src/Http/Http.Results/src/AcceptedResult.cs +++ b/src/Http/Http.Results/src/AcceptedResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Results/src/BadRequestObjectResult.cs b/src/Http/Http.Results/src/BadRequestObjectResult.cs index 2599ec549c6c..bdad2f4f0fbd 100644 --- a/src/Http/Http.Results/src/BadRequestObjectResult.cs +++ b/src/Http/Http.Results/src/BadRequestObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/ChallengeResult.cs b/src/Http/Http.Results/src/ChallengeResult.cs index e3614755e937..b9c15cfedd17 100644 --- a/src/Http/Http.Results/src/ChallengeResult.cs +++ b/src/Http/Http.Results/src/ChallengeResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/src/ConflictObjectResult.cs b/src/Http/Http.Results/src/ConflictObjectResult.cs index 7e5d8faed423..9a90eb7bc0c2 100644 --- a/src/Http/Http.Results/src/ConflictObjectResult.cs +++ b/src/Http/Http.Results/src/ConflictObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/ContentResult.cs b/src/Http/Http.Results/src/ContentResult.cs index 12f1ceb24f36..347c823d7699 100644 --- a/src/Http/Http.Results/src/ContentResult.cs +++ b/src/Http/Http.Results/src/ContentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using System.Threading.Tasks; diff --git a/src/Http/Http.Results/src/CreatedAtRouteResult.cs b/src/Http/Http.Results/src/CreatedAtRouteResult.cs index e2c7ec5a5790..e561e3243549 100644 --- a/src/Http/Http.Results/src/CreatedAtRouteResult.cs +++ b/src/Http/Http.Results/src/CreatedAtRouteResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Http/Http.Results/src/CreatedResult.cs b/src/Http/Http.Results/src/CreatedResult.cs index 71655a443946..b5b2d04bbffc 100644 --- a/src/Http/Http.Results/src/CreatedResult.cs +++ b/src/Http/Http.Results/src/CreatedResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http.Results/src/FileContentResult.cs b/src/Http/Http.Results/src/FileContentResult.cs index d2867edd2b1e..04c341a18b97 100644 --- a/src/Http/Http.Results/src/FileContentResult.cs +++ b/src/Http/Http.Results/src/FileContentResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Internal; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Http.Results/src/FileResult.cs b/src/Http/Http.Results/src/FileResult.cs index 1b5cf7abdf33..d6a4afea79dd 100644 --- a/src/Http/Http.Results/src/FileResult.cs +++ b/src/Http/Http.Results/src/FileResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.Extensions.Logging; diff --git a/src/Http/Http.Results/src/FileStreamResult.cs b/src/Http/Http.Results/src/FileStreamResult.cs index f40ee94bab85..aa69a1db367b 100644 --- a/src/Http/Http.Results/src/FileStreamResult.cs +++ b/src/Http/Http.Results/src/FileStreamResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Internal; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Http.Results/src/ForbidResult.cs b/src/Http/Http.Results/src/ForbidResult.cs index 9a22b6240d3b..9c87eb65a158 100644 --- a/src/Http/Http.Results/src/ForbidResult.cs +++ b/src/Http/Http.Results/src/ForbidResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/src/JsonResult.cs b/src/Http/Http.Results/src/JsonResult.cs index 597048c2b627..59e7f9cba4e1 100644 --- a/src/Http/Http.Results/src/JsonResult.cs +++ b/src/Http/Http.Results/src/JsonResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using System.Threading.Tasks; diff --git a/src/Http/Http.Results/src/LocalRedirectResult.cs b/src/Http/Http.Results/src/LocalRedirectResult.cs index 51aa27568b2e..d7a2efb9ece6 100644 --- a/src/Http/Http.Results/src/LocalRedirectResult.cs +++ b/src/Http/Http.Results/src/LocalRedirectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/src/NoContentResult.cs b/src/Http/Http.Results/src/NoContentResult.cs index 120ce546ef09..7b143e857887 100644 --- a/src/Http/Http.Results/src/NoContentResult.cs +++ b/src/Http/Http.Results/src/NoContentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/NotFoundObjectResult.cs b/src/Http/Http.Results/src/NotFoundObjectResult.cs index fbda773257c0..2588567c54a3 100644 --- a/src/Http/Http.Results/src/NotFoundObjectResult.cs +++ b/src/Http/Http.Results/src/NotFoundObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/ObjectResult.cs b/src/Http/Http.Results/src/ObjectResult.cs index 661162013fde..1b5768247413 100644 --- a/src/Http/Http.Results/src/ObjectResult.cs +++ b/src/Http/Http.Results/src/ObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Extensions; using Microsoft.AspNetCore.Mvc; diff --git a/src/Http/Http.Results/src/OkObjectResult.cs b/src/Http/Http.Results/src/OkObjectResult.cs index f7ec6e9603bc..830beadac2d6 100644 --- a/src/Http/Http.Results/src/OkObjectResult.cs +++ b/src/Http/Http.Results/src/OkObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/PhysicalFileResult.cs b/src/Http/Http.Results/src/PhysicalFileResult.cs index a891319546d2..af01f4bd43ac 100644 --- a/src/Http/Http.Results/src/PhysicalFileResult.cs +++ b/src/Http/Http.Results/src/PhysicalFileResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Internal; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Http.Results/src/RedirectResult.cs b/src/Http/Http.Results/src/RedirectResult.cs index 1ea822318ada..ac4c3ea2dde8 100644 --- a/src/Http/Http.Results/src/RedirectResult.cs +++ b/src/Http/Http.Results/src/RedirectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/src/RedirectToRouteResult.cs b/src/Http/Http.Results/src/RedirectToRouteResult.cs index 11711b1d8cb0..e531a118372c 100644 --- a/src/Http/Http.Results/src/RedirectToRouteResult.cs +++ b/src/Http/Http.Results/src/RedirectToRouteResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/src/Results.cs b/src/Http/Http.Results/src/Results.cs index 993aea6d6a5c..4ba49f98e494 100644 --- a/src/Http/Http.Results/src/Results.cs +++ b/src/Http/Http.Results/src/Results.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Text; @@ -377,7 +377,7 @@ public static IResult Redirect(string url, bool permanent = false, bool preserve /// The created for the response. public static IResult LocalRedirect(string localUrl, bool permanent = false, bool preserveMethod = false) => new LocalRedirectResult(localUrl, permanent, preserveMethod); - + /// /// Redirects to the specified route. /// diff --git a/src/Http/Http.Results/src/SignInResult.cs b/src/Http/Http.Results/src/SignInResult.cs index 3e42c7d35137..3efa8919d50f 100644 --- a/src/Http/Http.Results/src/SignInResult.cs +++ b/src/Http/Http.Results/src/SignInResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Http/Http.Results/src/SignOutResult.cs b/src/Http/Http.Results/src/SignOutResult.cs index 6601a9eb1ed5..6698aa71e407 100644 --- a/src/Http/Http.Results/src/SignOutResult.cs +++ b/src/Http/Http.Results/src/SignOutResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/src/StatusCodeResult.cs b/src/Http/Http.Results/src/StatusCodeResult.cs index 0c8684928446..0a7c171f51d5 100644 --- a/src/Http/Http.Results/src/StatusCodeResult.cs +++ b/src/Http/Http.Results/src/StatusCodeResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Http.Results/src/UnauthorizedResult.cs b/src/Http/Http.Results/src/UnauthorizedResult.cs index ddf3b032e00e..fd2135362e43 100644 --- a/src/Http/Http.Results/src/UnauthorizedResult.cs +++ b/src/Http/Http.Results/src/UnauthorizedResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/UnprocessableEntityObjectResult.cs b/src/Http/Http.Results/src/UnprocessableEntityObjectResult.cs index d188da672a78..3be9fa3608c9 100644 --- a/src/Http/Http.Results/src/UnprocessableEntityObjectResult.cs +++ b/src/Http/Http.Results/src/UnprocessableEntityObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Result { diff --git a/src/Http/Http.Results/src/VirtualFileResult.cs b/src/Http/Http.Results/src/VirtualFileResult.cs index 242454ca8f10..b5cb0bc9e42b 100644 --- a/src/Http/Http.Results/src/VirtualFileResult.cs +++ b/src/Http/Http.Results/src/VirtualFileResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Hosting; diff --git a/src/Http/Http.Results/test/AcceptedAtRouteResultTests.cs b/src/Http/Http.Results/test/AcceptedAtRouteResultTests.cs index cca95a941621..c2f1e3133943 100644 --- a/src/Http/Http.Results/test/AcceptedAtRouteResultTests.cs +++ b/src/Http/Http.Results/test/AcceptedAtRouteResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/test/AcceptedResultTests.cs b/src/Http/Http.Results/test/AcceptedResultTests.cs index 7ba7d9c8bc0c..bb54726153b5 100644 --- a/src/Http/Http.Results/test/AcceptedResultTests.cs +++ b/src/Http/Http.Results/test/AcceptedResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Results/test/BadRequestObjectResultTests.cs b/src/Http/Http.Results/test/BadRequestObjectResultTests.cs index 6fb262fa1847..7c3c57be3123 100644 --- a/src/Http/Http.Results/test/BadRequestObjectResultTests.cs +++ b/src/Http/Http.Results/test/BadRequestObjectResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http.Results/test/ChallengeResultTest.cs b/src/Http/Http.Results/test/ChallengeResultTest.cs index caecfc3d548c..672d3b34ae4c 100644 --- a/src/Http/Http.Results/test/ChallengeResultTest.cs +++ b/src/Http/Http.Results/test/ChallengeResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; @@ -42,7 +42,7 @@ public async Task ChallengeResult_ExecuteAsync_NoSchemes() // Assert auth.Verify(c => c.ChallengeAsync(httpContext, null, null), Times.Exactly(1)); } - + private static DefaultHttpContext GetHttpContext(Mock auth) { var httpContext = new DefaultHttpContext(); diff --git a/src/Http/Http.Results/test/ConflictObjectResultTest.cs b/src/Http/Http.Results/test/ConflictObjectResultTest.cs index 9be97df49de4..fba55eecce0c 100644 --- a/src/Http/Http.Results/test/ConflictObjectResultTest.cs +++ b/src/Http/Http.Results/test/ConflictObjectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http.Results/test/ContentResultTest.cs b/src/Http/Http.Results/test/ContentResultTest.cs index d67688276342..1f50e0001a0b 100644 --- a/src/Http/Http.Results/test/ContentResultTest.cs +++ b/src/Http/Http.Results/test/ContentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text; diff --git a/src/Http/Http.Results/test/CreatedAtRouteResultTests.cs b/src/Http/Http.Results/test/CreatedAtRouteResultTests.cs index ad6d0e7430c4..7f4cd28dd9c3 100644 --- a/src/Http/Http.Results/test/CreatedAtRouteResultTests.cs +++ b/src/Http/Http.Results/test/CreatedAtRouteResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/test/CreatedResultTest.cs b/src/Http/Http.Results/test/CreatedResultTest.cs index efe27830b3a4..28f4868e8f32 100644 --- a/src/Http/Http.Results/test/CreatedResultTest.cs +++ b/src/Http/Http.Results/test/CreatedResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Results/test/FileContentResultTest.cs b/src/Http/Http.Results/test/FileContentResultTest.cs index 1822cb08bc29..6a2205c2b2a0 100644 --- a/src/Http/Http.Results/test/FileContentResultTest.cs +++ b/src/Http/Http.Results/test/FileContentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/test/FileStreamResultTest.cs b/src/Http/Http.Results/test/FileStreamResultTest.cs index d7e712d7a53e..fca9982ac3af 100644 --- a/src/Http/Http.Results/test/FileStreamResultTest.cs +++ b/src/Http/Http.Results/test/FileStreamResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Results/test/ForbidResultTest.cs b/src/Http/Http.Results/test/ForbidResultTest.cs index 4ce720564892..f123d384693c 100644 --- a/src/Http/Http.Results/test/ForbidResultTest.cs +++ b/src/Http/Http.Results/test/ForbidResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; @@ -25,7 +25,7 @@ public async Task ExecuteResultAsync_InvokesForbidAsyncOnAuthenticationService() .Verifiable(); var httpContext = GetHttpContext(auth.Object); var result = new ForbidResult("", null); - + // Act await result.ExecuteAsync(httpContext); diff --git a/src/Http/Http.Results/test/LocalRedirectResultTest.cs b/src/Http/Http.Results/test/LocalRedirectResultTest.cs index 283148da985c..d059f50540f2 100644 --- a/src/Http/Http.Results/test/LocalRedirectResultTest.cs +++ b/src/Http/Http.Results/test/LocalRedirectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/test/NotFoundObjectResultTest.cs b/src/Http/Http.Results/test/NotFoundObjectResultTest.cs index be09b3660270..af6387f9faa8 100644 --- a/src/Http/Http.Results/test/NotFoundObjectResultTest.cs +++ b/src/Http/Http.Results/test/NotFoundObjectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Results/test/ObjectResultTests.cs b/src/Http/Http.Results/test/ObjectResultTests.cs index c82b5780cccf..849708dc3334 100644 --- a/src/Http/Http.Results/test/ObjectResultTests.cs +++ b/src/Http/Http.Results/test/ObjectResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using System.Text.Json; diff --git a/src/Http/Http.Results/test/OkObjectResultTest.cs b/src/Http/Http.Results/test/OkObjectResultTest.cs index 5ba062ed8dd8..39b7f47db752 100644 --- a/src/Http/Http.Results/test/OkObjectResultTest.cs +++ b/src/Http/Http.Results/test/OkObjectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http.Results/test/PhysicalFileResultTest.cs b/src/Http/Http.Results/test/PhysicalFileResultTest.cs index bf1fdd1b4654..1a99d1aa93eb 100644 --- a/src/Http/Http.Results/test/PhysicalFileResultTest.cs +++ b/src/Http/Http.Results/test/PhysicalFileResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/test/RedirectResultTest.cs b/src/Http/Http.Results/test/RedirectResultTest.cs index 907d32e53d0c..2b0567e12abd 100644 --- a/src/Http/Http.Results/test/RedirectResultTest.cs +++ b/src/Http/Http.Results/test/RedirectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Internal; using Xunit; diff --git a/src/Http/Http.Results/test/RedirectToRouteResultTest.cs b/src/Http/Http.Results/test/RedirectToRouteResultTest.cs index 3b43e65f301d..b2e2e9c05a1f 100644 --- a/src/Http/Http.Results/test/RedirectToRouteResultTest.cs +++ b/src/Http/Http.Results/test/RedirectToRouteResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http.Results/test/SignInResultTest.cs b/src/Http/Http.Results/test/SignInResultTest.cs index 0930081fc2ba..2de4d09df7b9 100644 --- a/src/Http/Http.Results/test/SignInResultTest.cs +++ b/src/Http/Http.Results/test/SignInResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; @@ -27,7 +27,7 @@ public async Task ExecuteAsync_InvokesSignInAsyncOnAuthenticationManager() var httpContext = GetHttpContext(auth.Object); var result = new SignInResult("", principal, null); - + // Act await result.ExecuteAsync(httpContext); diff --git a/src/Http/Http.Results/test/SignOutResultTest.cs b/src/Http/Http.Results/test/SignOutResultTest.cs index 47f4baaca5fc..055ee046371a 100644 --- a/src/Http/Http.Results/test/SignOutResultTest.cs +++ b/src/Http/Http.Results/test/SignOutResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Http/Http.Results/test/StatusCodeResultTests.cs b/src/Http/Http.Results/test/StatusCodeResultTests.cs index f7ae16da5e17..bc32a64ae454 100644 --- a/src/Http/Http.Results/test/StatusCodeResultTests.cs +++ b/src/Http/Http.Results/test/StatusCodeResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; diff --git a/src/Http/Http.Results/test/TestLinkGenerator.cs b/src/Http/Http.Results/test/TestLinkGenerator.cs index fbe401fe1bc7..ec026e13a79f 100644 --- a/src/Http/Http.Results/test/TestLinkGenerator.cs +++ b/src/Http/Http.Results/test/TestLinkGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Http/Http.Results/test/UnauthorizedResultTests.cs b/src/Http/Http.Results/test/UnauthorizedResultTests.cs index 5d825bb0d7fc..f4050fe6e400 100644 --- a/src/Http/Http.Results/test/UnauthorizedResultTests.cs +++ b/src/Http/Http.Results/test/UnauthorizedResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http.Results/test/UnprocessableEntityObjectResultTests.cs b/src/Http/Http.Results/test/UnprocessableEntityObjectResultTests.cs index 057a8ce3b3c8..1d5b68413abf 100644 --- a/src/Http/Http.Results/test/UnprocessableEntityObjectResultTests.cs +++ b/src/Http/Http.Results/test/UnprocessableEntityObjectResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http.Results/test/VirtualFileResultTest.cs b/src/Http/Http.Results/test/VirtualFileResultTest.cs index 51bb3c703086..e38ed10778cb 100644 --- a/src/Http/Http.Results/test/VirtualFileResultTest.cs +++ b/src/Http/Http.Results/test/VirtualFileResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/perf/Microbenchmarks/AdaptiveCapacityDictionaryBenchmark.cs b/src/Http/Http/perf/Microbenchmarks/AdaptiveCapacityDictionaryBenchmark.cs index fd7a2e06db2a..1cf5d3f344dd 100644 --- a/src/Http/Http/perf/Microbenchmarks/AdaptiveCapacityDictionaryBenchmark.cs +++ b/src/Http/Http/perf/Microbenchmarks/AdaptiveCapacityDictionaryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/perf/Microbenchmarks/HeaderUtilitiesBenchmark.cs b/src/Http/Http/perf/Microbenchmarks/HeaderUtilitiesBenchmark.cs index 566ae6e9876a..05b3a8a46e28 100644 --- a/src/Http/Http/perf/Microbenchmarks/HeaderUtilitiesBenchmark.cs +++ b/src/Http/Http/perf/Microbenchmarks/HeaderUtilitiesBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Http/perf/Microbenchmarks/Properties/AssemblyInfo.cs b/src/Http/Http/perf/Microbenchmarks/Properties/AssemblyInfo.cs index 2efc4cb5fb87..39d1350a5ed8 100644 --- a/src/Http/Http/perf/Microbenchmarks/Properties/AssemblyInfo.cs +++ b/src/Http/Http/perf/Microbenchmarks/Properties/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] \ No newline at end of file diff --git a/src/Http/Http/perf/Microbenchmarks/QueryCollectionBenchmarks.cs b/src/Http/Http/perf/Microbenchmarks/QueryCollectionBenchmarks.cs index cc165ee1e430..c7368a2c88dd 100644 --- a/src/Http/Http/perf/Microbenchmarks/QueryCollectionBenchmarks.cs +++ b/src/Http/Http/perf/Microbenchmarks/QueryCollectionBenchmarks.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; diff --git a/src/Http/Http/perf/Microbenchmarks/RequestCookieCollectionBenchmarks.cs b/src/Http/Http/perf/Microbenchmarks/RequestCookieCollectionBenchmarks.cs index 41aea5de4e60..219a07788661 100644 --- a/src/Http/Http/perf/Microbenchmarks/RequestCookieCollectionBenchmarks.cs +++ b/src/Http/Http/perf/Microbenchmarks/RequestCookieCollectionBenchmarks.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using Microsoft.Extensions.Primitives; diff --git a/src/Http/Http/perf/Microbenchmarks/RouteValueDictionaryBenchmark.cs b/src/Http/Http/perf/Microbenchmarks/RouteValueDictionaryBenchmark.cs index f1bc86c68a75..2ea18befdaaf 100644 --- a/src/Http/Http/perf/Microbenchmarks/RouteValueDictionaryBenchmark.cs +++ b/src/Http/Http/perf/Microbenchmarks/RouteValueDictionaryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Http/src/BindingAddress.cs b/src/Http/Http/src/BindingAddress.cs index b5cee37e404e..6a5a135d6a95 100644 --- a/src/Http/Http/src/BindingAddress.cs +++ b/src/Http/Http/src/BindingAddress.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Http/src/Builder/ApplicationBuilder.cs b/src/Http/Http/src/Builder/ApplicationBuilder.cs index 030970425832..ae70aed02143 100644 --- a/src/Http/Http/src/Builder/ApplicationBuilder.cs +++ b/src/Http/Http/src/Builder/ApplicationBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/DefaultHttpContext.cs b/src/Http/Http/src/DefaultHttpContext.cs index a7b5eae6146f..01afc2d26cae 100644 --- a/src/Http/Http/src/DefaultHttpContext.cs +++ b/src/Http/Http/src/DefaultHttpContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Http { /// - /// Represents an implementation of the HTTP Context class. + /// Represents an implementation of the HTTP Context class. /// public sealed class DefaultHttpContext : HttpContext { @@ -101,15 +101,15 @@ public void Uninitialize() /// Gets or set the for this instance. /// /// - /// + /// /// public FormOptions FormOptions { get; set; } = default!; /// /// Gets or sets the for this instance. /// - /// - /// + /// + /// /// public IServiceScopeFactory ServiceScopeFactory { get; set; } = default!; diff --git a/src/Http/Http/src/Extensions/HttpRequestRewindExtensions.cs b/src/Http/Http/src/Extensions/HttpRequestRewindExtensions.cs index e26a820dd108..5f077c2deb8f 100644 --- a/src/Http/Http/src/Extensions/HttpRequestRewindExtensions.cs +++ b/src/Http/Http/src/Extensions/HttpRequestRewindExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http { diff --git a/src/Http/Http/src/Features/Authentication/HttpAuthenticationFeature.cs b/src/Http/Http/src/Features/Authentication/HttpAuthenticationFeature.cs index 78a711680b84..d5f28ca62a1c 100644 --- a/src/Http/Http/src/Features/Authentication/HttpAuthenticationFeature.cs +++ b/src/Http/Http/src/Features/Authentication/HttpAuthenticationFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; diff --git a/src/Http/Http/src/Features/DefaultConnectionLifetimeNotificationFeature.cs b/src/Http/Http/src/Features/DefaultConnectionLifetimeNotificationFeature.cs index 19958c164d3a..d7042cf99084 100644 --- a/src/Http/Http/src/Features/DefaultConnectionLifetimeNotificationFeature.cs +++ b/src/Http/Http/src/Features/DefaultConnectionLifetimeNotificationFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using Microsoft.AspNetCore.Connections.Features; @@ -14,7 +14,7 @@ internal sealed class DefaultConnectionLifetimeNotificationFeature : IConnection private readonly IHttpResponseFeature? _httpResponseFeature; /// - /// + /// /// /// public DefaultConnectionLifetimeNotificationFeature(IHttpResponseFeature? httpResponseFeature) diff --git a/src/Http/Http/src/Features/DefaultSessionFeature.cs b/src/Http/Http/src/Features/DefaultSessionFeature.cs index f9924d7641d8..4ed6c1a9797c 100644 --- a/src/Http/Http/src/Features/DefaultSessionFeature.cs +++ b/src/Http/Http/src/Features/DefaultSessionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Features { diff --git a/src/Http/Http/src/Features/FormFeature.cs b/src/Http/Http/src/Features/FormFeature.cs index 213fd88a5db9..19f5924da0fc 100644 --- a/src/Http/Http/src/Features/FormFeature.cs +++ b/src/Http/Http/src/Features/FormFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Http/src/Features/FormOptions.cs b/src/Http/Http/src/Features/FormOptions.cs index d3281e88d160..60628c66a457 100644 --- a/src/Http/Http/src/Features/FormOptions.cs +++ b/src/Http/Http/src/Features/FormOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.WebUtilities; diff --git a/src/Http/Http/src/Features/HttpConnectionFeature.cs b/src/Http/Http/src/Features/HttpConnectionFeature.cs index 4dd3d73400ea..4268e401b64d 100644 --- a/src/Http/Http/src/Features/HttpConnectionFeature.cs +++ b/src/Http/Http/src/Features/HttpConnectionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; diff --git a/src/Http/Http/src/Features/HttpRequestFeature.cs b/src/Http/Http/src/Features/HttpRequestFeature.cs index 6d116d4eb0b1..2882014c3902 100644 --- a/src/Http/Http/src/Features/HttpRequestFeature.cs +++ b/src/Http/Http/src/Features/HttpRequestFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; diff --git a/src/Http/Http/src/Features/HttpRequestIdentifierFeature.cs b/src/Http/Http/src/Features/HttpRequestIdentifierFeature.cs index 649eec7bd90d..3cf0cb094f27 100644 --- a/src/Http/Http/src/Features/HttpRequestIdentifierFeature.cs +++ b/src/Http/Http/src/Features/HttpRequestIdentifierFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Features/HttpRequestLifetimeFeature.cs b/src/Http/Http/src/Features/HttpRequestLifetimeFeature.cs index 1d2ece9246a8..6775f134fd01 100644 --- a/src/Http/Http/src/Features/HttpRequestLifetimeFeature.cs +++ b/src/Http/Http/src/Features/HttpRequestLifetimeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Http/Http/src/Features/HttpResponseFeature.cs b/src/Http/Http/src/Features/HttpResponseFeature.cs index 0467d2cde710..fd21362f2f3a 100644 --- a/src/Http/Http/src/Features/HttpResponseFeature.cs +++ b/src/Http/Http/src/Features/HttpResponseFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/Features/IHttpActivityFeature.cs b/src/Http/Http/src/Features/IHttpActivityFeature.cs index 706314b14306..0ec4bd223fa4 100644 --- a/src/Http/Http/src/Features/IHttpActivityFeature.cs +++ b/src/Http/Http/src/Features/IHttpActivityFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Features/ItemsFeature.cs b/src/Http/Http/src/Features/ItemsFeature.cs index 9e64cdc22360..5a4e1f28f6c2 100644 --- a/src/Http/Http/src/Features/ItemsFeature.cs +++ b/src/Http/Http/src/Features/ItemsFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Http/src/Features/QueryFeature.cs b/src/Http/Http/src/Features/QueryFeature.cs index 91b77e63a682..66c0bfa03052 100644 --- a/src/Http/Http/src/Features/QueryFeature.cs +++ b/src/Http/Http/src/Features/QueryFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Features/RequestBodyPipeFeature.cs b/src/Http/Http/src/Features/RequestBodyPipeFeature.cs index 08db861a862a..a9aa3e8db5f1 100644 --- a/src/Http/Http/src/Features/RequestBodyPipeFeature.cs +++ b/src/Http/Http/src/Features/RequestBodyPipeFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/Features/RequestCookiesFeature.cs b/src/Http/Http/src/Features/RequestCookiesFeature.cs index c3458fd94db7..6adb9a2c6299 100644 --- a/src/Http/Http/src/Features/RequestCookiesFeature.cs +++ b/src/Http/Http/src/Features/RequestCookiesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Features/RequestServicesFeature.cs b/src/Http/Http/src/Features/RequestServicesFeature.cs index eb9bc3b1c421..b670170c6e07 100644 --- a/src/Http/Http/src/Features/RequestServicesFeature.cs +++ b/src/Http/Http/src/Features/RequestServicesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Features/ResponseCookiesFeature.cs b/src/Http/Http/src/Features/ResponseCookiesFeature.cs index e8dade0a5cfa..8e4da199feb0 100644 --- a/src/Http/Http/src/Features/ResponseCookiesFeature.cs +++ b/src/Http/Http/src/Features/ResponseCookiesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Http/Http/src/Features/RouteValuesFeature.cs b/src/Http/Http/src/Features/RouteValuesFeature.cs index 1abde0a5e62e..bca9a66c5468 100644 --- a/src/Http/Http/src/Features/RouteValuesFeature.cs +++ b/src/Http/Http/src/Features/RouteValuesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing; diff --git a/src/Http/Http/src/Features/ServiceProvidersFeature.cs b/src/Http/Http/src/Features/ServiceProvidersFeature.cs index b9f972ca2bd9..ee92def94ae0 100644 --- a/src/Http/Http/src/Features/ServiceProvidersFeature.cs +++ b/src/Http/Http/src/Features/ServiceProvidersFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Http/src/Features/TlsConnectionFeature.cs b/src/Http/Http/src/Features/TlsConnectionFeature.cs index 42912aeb508b..a11afe3881b8 100644 --- a/src/Http/Http/src/Features/TlsConnectionFeature.cs +++ b/src/Http/Http/src/Features/TlsConnectionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Cryptography.X509Certificates; using System.Threading; diff --git a/src/Http/Http/src/FormCollection.cs b/src/Http/Http/src/FormCollection.cs index 8dec9be3ab6e..2ec522f7aa35 100644 --- a/src/Http/Http/src/FormCollection.cs +++ b/src/Http/Http/src/FormCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/FormFile.cs b/src/Http/Http/src/FormFile.cs index a70350954278..daacf2bdaad5 100644 --- a/src/Http/Http/src/FormFile.cs +++ b/src/Http/Http/src/FormFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/FormFileCollection.cs b/src/Http/Http/src/FormFileCollection.cs index afabe7ceb850..0e3e460e9194 100644 --- a/src/Http/Http/src/FormFileCollection.cs +++ b/src/Http/Http/src/FormFileCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/HeaderDictionary.cs b/src/Http/Http/src/HeaderDictionary.cs index 3664e748bf04..4cda2646ba21 100644 --- a/src/Http/Http/src/HeaderDictionary.cs +++ b/src/Http/Http/src/HeaderDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/HttpContextAccessor.cs b/src/Http/Http/src/HttpContextAccessor.cs index 6bdb99f30b53..08c43d44d2f1 100644 --- a/src/Http/Http/src/HttpContextAccessor.cs +++ b/src/Http/Http/src/HttpContextAccessor.cs @@ -1,12 +1,12 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; namespace Microsoft.AspNetCore.Http { /// - /// Provides an implementation of based on the current execution context. + /// Provides an implementation of based on the current execution context. /// public class HttpContextAccessor : IHttpContextAccessor { diff --git a/src/Http/Http/src/HttpServiceCollectionExtensions.cs b/src/Http/Http/src/HttpServiceCollectionExtensions.cs index cccfe6d4e6f1..22b2800d800c 100644 --- a/src/Http/Http/src/HttpServiceCollectionExtensions.cs +++ b/src/Http/Http/src/HttpServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Http/src/Internal/BufferingHelper.cs b/src/Http/Http/src/Internal/BufferingHelper.cs index 31414d394016..db224aed8e8c 100644 --- a/src/Http/Http/src/Internal/BufferingHelper.cs +++ b/src/Http/Http/src/Internal/BufferingHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Internal; diff --git a/src/Http/Http/src/Internal/DefaultConnectionInfo.cs b/src/Http/Http/src/Internal/DefaultConnectionInfo.cs index 32cc822beead..7aeb898644de 100644 --- a/src/Http/Http/src/Internal/DefaultConnectionInfo.cs +++ b/src/Http/Http/src/Internal/DefaultConnectionInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Internal/DefaultHttpRequest.cs b/src/Http/Http/src/Internal/DefaultHttpRequest.cs index 2dd5468fc453..7476e30ec860 100644 --- a/src/Http/Http/src/Internal/DefaultHttpRequest.cs +++ b/src/Http/Http/src/Internal/DefaultHttpRequest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/Internal/DefaultHttpResponse.cs b/src/Http/Http/src/Internal/DefaultHttpResponse.cs index 51accfc1e3a8..0913930a8139 100644 --- a/src/Http/Http/src/Internal/DefaultHttpResponse.cs +++ b/src/Http/Http/src/Internal/DefaultHttpResponse.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/Internal/DefaultWebSocketManager.cs b/src/Http/Http/src/Internal/DefaultWebSocketManager.cs index 51bbd84bf353..3263655f4c81 100644 --- a/src/Http/Http/src/Internal/DefaultWebSocketManager.cs +++ b/src/Http/Http/src/Internal/DefaultWebSocketManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Internal/ItemsDictionary.cs b/src/Http/Http/src/Internal/ItemsDictionary.cs index eda357038e21..2ad6a2d3aa33 100644 --- a/src/Http/Http/src/Internal/ItemsDictionary.cs +++ b/src/Http/Http/src/Internal/ItemsDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Http/Http/src/Internal/ReferenceReadStream.cs b/src/Http/Http/src/Internal/ReferenceReadStream.cs index aaf89ccfb960..a68658c0d88b 100644 --- a/src/Http/Http/src/Internal/ReferenceReadStream.cs +++ b/src/Http/Http/src/Internal/ReferenceReadStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/Internal/RequestCookieCollection.cs b/src/Http/Http/src/Internal/RequestCookieCollection.cs index b9036c5572da..290194007370 100644 --- a/src/Http/Http/src/Internal/RequestCookieCollection.cs +++ b/src/Http/Http/src/Internal/RequestCookieCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/Internal/ResponseCookies.cs b/src/Http/Http/src/Internal/ResponseCookies.cs index 50afb6dd95ef..bc4f6edae7a7 100644 --- a/src/Http/Http/src/Internal/ResponseCookies.cs +++ b/src/Http/Http/src/Internal/ResponseCookies.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/MiddlewareFactory.cs b/src/Http/Http/src/MiddlewareFactory.cs index 555cceb0cbd9..c1b28f4feb79 100644 --- a/src/Http/Http/src/MiddlewareFactory.cs +++ b/src/Http/Http/src/MiddlewareFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Http/Http/src/Properties/AssemblyInfo.cs b/src/Http/Http/src/Properties/AssemblyInfo.cs index 21cadcc624da..986020126a7d 100644 --- a/src/Http/Http/src/Properties/AssemblyInfo.cs +++ b/src/Http/Http/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.Http.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Http/Http/src/QueryCollection.cs b/src/Http/Http/src/QueryCollection.cs index f2eb11ab2265..41328aa3eeed 100644 --- a/src/Http/Http/src/QueryCollection.cs +++ b/src/Http/Http/src/QueryCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/QueryCollectionInternal.cs b/src/Http/Http/src/QueryCollectionInternal.cs index 3ca061c1491b..fa553fad8b00 100644 --- a/src/Http/Http/src/QueryCollectionInternal.cs +++ b/src/Http/Http/src/QueryCollectionInternal.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Http/Http/src/RequestFormReaderExtensions.cs b/src/Http/Http/src/RequestFormReaderExtensions.cs index 2d7de356ff13..e1cd0946506d 100644 --- a/src/Http/Http/src/RequestFormReaderExtensions.cs +++ b/src/Http/Http/src/RequestFormReaderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/src/SendFileFallback.cs b/src/Http/Http/src/SendFileFallback.cs index 7e7ce0707d16..67c2910149d9 100644 --- a/src/Http/Http/src/SendFileFallback.cs +++ b/src/Http/Http/src/SendFileFallback.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/src/StreamResponseBodyFeature.cs b/src/Http/Http/src/StreamResponseBodyFeature.cs index 275b143a43c8..74c42cebabe9 100644 --- a/src/Http/Http/src/StreamResponseBodyFeature.cs +++ b/src/Http/Http/src/StreamResponseBodyFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/test/ApplicationBuilderTests.cs b/src/Http/Http/test/ApplicationBuilderTests.cs index 215e4b920b3e..bde96e5b5b2a 100644 --- a/src/Http/Http/test/ApplicationBuilderTests.cs +++ b/src/Http/Http/test/ApplicationBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/BindingAddressTests.cs b/src/Http/Http/test/BindingAddressTests.cs index b130bcd2df40..edf5b1e04420 100644 --- a/src/Http/Http/test/BindingAddressTests.cs +++ b/src/Http/Http/test/BindingAddressTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/Http/Http/test/DefaultHttpContextTests.cs b/src/Http/Http/test/DefaultHttpContextTests.cs index cc59786cdda7..ce59fa804361 100644 --- a/src/Http/Http/test/DefaultHttpContextTests.cs +++ b/src/Http/Http/test/DefaultHttpContextTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/Features/FakeResponseFeature.cs b/src/Http/Http/test/Features/FakeResponseFeature.cs index 43a7acab583f..854d745ffc18 100644 --- a/src/Http/Http/test/Features/FakeResponseFeature.cs +++ b/src/Http/Http/test/Features/FakeResponseFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/Features/FormFeatureTests.cs b/src/Http/Http/test/Features/FormFeatureTests.cs index f57ed454b72d..9426ce6dd1b2 100644 --- a/src/Http/Http/test/Features/FormFeatureTests.cs +++ b/src/Http/Http/test/Features/FormFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -110,13 +110,13 @@ public async Task ReadFormAsync_SimpleData_ReplacePipeReader_ReturnsParsedFormCo Assert.Equal("bar", formCollection["foo"]); Assert.Equal("2", formCollection["baz"]); - // Cached + // Cached formFeature = context.Features.Get(); Assert.NotNull(formFeature); Assert.NotNull(formFeature.Form); Assert.Same(formFeature.Form, formCollection); - // Cleanup + // Cleanup await responseFeature.CompleteAsync(); } diff --git a/src/Http/Http/test/Features/HttpRequestIdentifierFeatureTests.cs b/src/Http/Http/test/Features/HttpRequestIdentifierFeatureTests.cs index 7b17028cdfdf..4d148f17d8b2 100644 --- a/src/Http/Http/test/Features/HttpRequestIdentifierFeatureTests.cs +++ b/src/Http/Http/test/Features/HttpRequestIdentifierFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Http/test/Features/NonSeekableReadStream.cs b/src/Http/Http/test/Features/NonSeekableReadStream.cs index 859ef12196f0..39cc8f5a25f6 100644 --- a/src/Http/Http/test/Features/NonSeekableReadStream.cs +++ b/src/Http/Http/test/Features/NonSeekableReadStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/test/Features/QueryFeatureTests.cs b/src/Http/Http/test/Features/QueryFeatureTests.cs index 321dc8bda3cd..bf6fdd6a477c 100644 --- a/src/Http/Http/test/Features/QueryFeatureTests.cs +++ b/src/Http/Http/test/Features/QueryFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Xunit; diff --git a/src/Http/Http/test/Features/RequestBodyPipeFeatureTests.cs b/src/Http/Http/test/Features/RequestBodyPipeFeatureTests.cs index 27d74ac8b7ef..fac9f760270a 100644 --- a/src/Http/Http/test/Features/RequestBodyPipeFeatureTests.cs +++ b/src/Http/Http/test/Features/RequestBodyPipeFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.IO; diff --git a/src/Http/Http/test/Features/StreamResponseBodyFeatureTests.cs b/src/Http/Http/test/Features/StreamResponseBodyFeatureTests.cs index 0e6c2a4ea90c..afc8ff452012 100644 --- a/src/Http/Http/test/Features/StreamResponseBodyFeatureTests.cs +++ b/src/Http/Http/test/Features/StreamResponseBodyFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.IO; diff --git a/src/Http/Http/test/HeaderDictionaryTests.cs b/src/Http/Http/test/HeaderDictionaryTests.cs index e9cf32ebe374..f4fc5f776eb7 100644 --- a/src/Http/Http/test/HeaderDictionaryTests.cs +++ b/src/Http/Http/test/HeaderDictionaryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/HttpContextAccessorTests.cs b/src/Http/Http/test/HttpContextAccessorTests.cs index c224a66a7dc2..9cce44917172 100644 --- a/src/Http/Http/test/HttpContextAccessorTests.cs +++ b/src/Http/Http/test/HttpContextAccessorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/HttpServiceCollectionExtensionsTests.cs b/src/Http/Http/test/HttpServiceCollectionExtensionsTests.cs index a317e993460b..2f06064f926b 100644 --- a/src/Http/Http/test/HttpServiceCollectionExtensionsTests.cs +++ b/src/Http/Http/test/HttpServiceCollectionExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Http/Http/test/Internal/DefaultHttpRequestTests.cs b/src/Http/Http/test/Internal/DefaultHttpRequestTests.cs index ddd17f143d93..2475f87b230d 100644 --- a/src/Http/Http/test/Internal/DefaultHttpRequestTests.cs +++ b/src/Http/Http/test/Internal/DefaultHttpRequestTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/Internal/DefaultHttpResponseTests.cs b/src/Http/Http/test/Internal/DefaultHttpResponseTests.cs index 989146d6a5ef..f061e4615331 100644 --- a/src/Http/Http/test/Internal/DefaultHttpResponseTests.cs +++ b/src/Http/Http/test/Internal/DefaultHttpResponseTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/Internal/ItemsDictionaryTests.cs b/src/Http/Http/test/Internal/ItemsDictionaryTests.cs index d8319c1c436c..2ae8b618528b 100644 --- a/src/Http/Http/test/Internal/ItemsDictionaryTests.cs +++ b/src/Http/Http/test/Internal/ItemsDictionaryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Http/test/Internal/ReferenceReadStreamTests.cs b/src/Http/Http/test/Internal/ReferenceReadStreamTests.cs index bce99b413302..256cdeb81da5 100644 --- a/src/Http/Http/test/Internal/ReferenceReadStreamTests.cs +++ b/src/Http/Http/test/Internal/ReferenceReadStreamTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Http/test/RequestCookiesCollectionTests.cs b/src/Http/Http/test/RequestCookiesCollectionTests.cs index 1e886bc2f3cf..0b90f1312033 100644 --- a/src/Http/Http/test/RequestCookiesCollectionTests.cs +++ b/src/Http/Http/test/RequestCookiesCollectionTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.Extensions.Primitives; diff --git a/src/Http/Http/test/ResponseCookiesTest.cs b/src/Http/Http/test/ResponseCookiesTest.cs index 9d520fe95f4c..b29657567b35 100644 --- a/src/Http/Http/test/ResponseCookiesTest.cs +++ b/src/Http/Http/test/ResponseCookiesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Metadata/src/IAllowAnonymous.cs b/src/Http/Metadata/src/IAllowAnonymous.cs index 1ea1cf5d0616..ab48cb3dbf20 100644 --- a/src/Http/Metadata/src/IAllowAnonymous.cs +++ b/src/Http/Metadata/src/IAllowAnonymous.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Authorization { diff --git a/src/Http/Metadata/src/IAuthorizeData.cs b/src/Http/Metadata/src/IAuthorizeData.cs index 3aa738bf0009..13b586f9f503 100644 --- a/src/Http/Metadata/src/IAuthorizeData.cs +++ b/src/Http/Metadata/src/IAuthorizeData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Authorization { diff --git a/src/Http/Owin/src/DictionaryStringArrayWrapper.cs b/src/Http/Owin/src/DictionaryStringArrayWrapper.cs index c4bb38f38636..732078d517bc 100644 --- a/src/Http/Owin/src/DictionaryStringArrayWrapper.cs +++ b/src/Http/Owin/src/DictionaryStringArrayWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Http/Owin/src/DictionaryStringValuesWrapper.cs b/src/Http/Owin/src/DictionaryStringValuesWrapper.cs index c590a86789f1..6c3ae812099c 100644 --- a/src/Http/Owin/src/DictionaryStringValuesWrapper.cs +++ b/src/Http/Owin/src/DictionaryStringValuesWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Http/Owin/src/IOwinEnvironmentFeature.cs b/src/Http/Owin/src/IOwinEnvironmentFeature.cs index 3d0326e406fc..0d33392a8fb9 100644 --- a/src/Http/Owin/src/IOwinEnvironmentFeature.cs +++ b/src/Http/Owin/src/IOwinEnvironmentFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Owin/src/OwinConstants.cs b/src/Http/Owin/src/OwinConstants.cs index 4234b65aa685..1c6aa5167c19 100644 --- a/src/Http/Owin/src/OwinConstants.cs +++ b/src/Http/Owin/src/OwinConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Owin { diff --git a/src/Http/Owin/src/OwinEnvironment.cs b/src/Http/Owin/src/OwinEnvironment.cs index 5b307879ebe7..1edaad58197f 100644 --- a/src/Http/Owin/src/OwinEnvironment.cs +++ b/src/Http/Owin/src/OwinEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/src/OwinEnvironmentFeature.cs b/src/Http/Owin/src/OwinEnvironmentFeature.cs index 240e7d328d5b..9419f30b041e 100644 --- a/src/Http/Owin/src/OwinEnvironmentFeature.cs +++ b/src/Http/Owin/src/OwinEnvironmentFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Owin/src/OwinExtensions.cs b/src/Http/Owin/src/OwinExtensions.cs index 15962c642198..ffafb199112d 100644 --- a/src/Http/Owin/src/OwinExtensions.cs +++ b/src/Http/Owin/src/OwinExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/src/OwinFeatureCollection.cs b/src/Http/Owin/src/OwinFeatureCollection.cs index 364d8462e32f..2bfba7923280 100644 --- a/src/Http/Owin/src/OwinFeatureCollection.cs +++ b/src/Http/Owin/src/OwinFeatureCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/src/Utilities.cs b/src/Http/Owin/src/Utilities.cs index b65cae78a9fc..6a1b268faf1c 100644 --- a/src/Http/Owin/src/Utilities.cs +++ b/src/Http/Owin/src/Utilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptAdapter.cs b/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptAdapter.cs index 5129be046c1e..16a1916ecbea 100644 --- a/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptAdapter.cs +++ b/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptContext.cs b/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptContext.cs index d5d8d775ec7c..c255a4cfc93a 100644 --- a/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptContext.cs +++ b/src/Http/Owin/src/WebSockets/OwinWebSocketAcceptContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Owin/src/WebSockets/OwinWebSocketAdapter.cs b/src/Http/Owin/src/WebSockets/OwinWebSocketAdapter.cs index 95e7081b4159..0adb7cdce003 100644 --- a/src/Http/Owin/src/WebSockets/OwinWebSocketAdapter.cs +++ b/src/Http/Owin/src/WebSockets/OwinWebSocketAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/Owin/src/WebSockets/WebSocketAcceptAdapter.cs b/src/Http/Owin/src/WebSockets/WebSocketAcceptAdapter.cs index 195d8e963a82..f167313f10e1 100644 --- a/src/Http/Owin/src/WebSockets/WebSocketAcceptAdapter.cs +++ b/src/Http/Owin/src/WebSockets/WebSocketAcceptAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/src/WebSockets/WebSocketAdapter.cs b/src/Http/Owin/src/WebSockets/WebSocketAdapter.cs index f04d35a64c18..792aa83b29f3 100644 --- a/src/Http/Owin/src/WebSockets/WebSocketAdapter.cs +++ b/src/Http/Owin/src/WebSockets/WebSocketAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -124,8 +124,8 @@ internal async Task CleanupAsync() { switch (_webSocket.State) { - case WebSocketState.Closed: // Closed gracefully, no action needed. - case WebSocketState.Aborted: // Closed abortively, no action needed. + case WebSocketState.Closed: // Closed gracefully, no action needed. + case WebSocketState.Aborted: // Closed abortively, no action needed. break; case WebSocketState.CloseReceived: // Echo what the client said, if anything. diff --git a/src/Http/Owin/test/OwinEnvironmentTests.cs b/src/Http/Owin/test/OwinEnvironmentTests.cs index 58538c7f8412..dcdeb847e1ef 100644 --- a/src/Http/Owin/test/OwinEnvironmentTests.cs +++ b/src/Http/Owin/test/OwinEnvironmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Http/Owin/test/OwinExtensionTests.cs b/src/Http/Owin/test/OwinExtensionTests.cs index 26dbd963e710..9bb1d3f038ff 100644 --- a/src/Http/Owin/test/OwinExtensionTests.cs +++ b/src/Http/Owin/test/OwinExtensionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Owin/test/OwinFeatureCollectionTests.cs b/src/Http/Owin/test/OwinFeatureCollectionTests.cs index b2755961c83e..b956960d1c69 100644 --- a/src/Http/Owin/test/OwinFeatureCollectionTests.cs +++ b/src/Http/Owin/test/OwinFeatureCollectionTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing.Abstractions/src/IOutboundParameterTransformer.cs b/src/Http/Routing.Abstractions/src/IOutboundParameterTransformer.cs index 057528abaccc..c882fac76263 100644 --- a/src/Http/Routing.Abstractions/src/IOutboundParameterTransformer.cs +++ b/src/Http/Routing.Abstractions/src/IOutboundParameterTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing.Abstractions/src/IParameterPolicy.cs b/src/Http/Routing.Abstractions/src/IParameterPolicy.cs index 75af7b28302c..25a16dadd91c 100644 --- a/src/Http/Routing.Abstractions/src/IParameterPolicy.cs +++ b/src/Http/Routing.Abstractions/src/IParameterPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing.Abstractions/src/IRouteConstraint.cs b/src/Http/Routing.Abstractions/src/IRouteConstraint.cs index 37ea18c67230..a259a1841081 100644 --- a/src/Http/Routing.Abstractions/src/IRouteConstraint.cs +++ b/src/Http/Routing.Abstractions/src/IRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing.Abstractions/src/IRouteHandler.cs b/src/Http/Routing.Abstractions/src/IRouteHandler.cs index e00022c6ceb0..44d33eddfec7 100644 --- a/src/Http/Routing.Abstractions/src/IRouteHandler.cs +++ b/src/Http/Routing.Abstractions/src/IRouteHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing.Abstractions/src/IRouter.cs b/src/Http/Routing.Abstractions/src/IRouter.cs index ebd750ff2f7b..d86455546ec6 100644 --- a/src/Http/Routing.Abstractions/src/IRouter.cs +++ b/src/Http/Routing.Abstractions/src/IRouter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Routing.Abstractions/src/IRoutingFeature.cs b/src/Http/Routing.Abstractions/src/IRoutingFeature.cs index 882199a32d09..9a4f84e56bfe 100644 --- a/src/Http/Routing.Abstractions/src/IRoutingFeature.cs +++ b/src/Http/Routing.Abstractions/src/IRoutingFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing.Abstractions/src/LinkGenerator.cs b/src/Http/Routing.Abstractions/src/LinkGenerator.cs index fe89708f770d..88a4361ce9a3 100644 --- a/src/Http/Routing.Abstractions/src/LinkGenerator.cs +++ b/src/Http/Routing.Abstractions/src/LinkGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing.Abstractions/src/LinkOptions.cs b/src/Http/Routing.Abstractions/src/LinkOptions.cs index 5d63756d23d2..1c7e5f216526 100644 --- a/src/Http/Routing.Abstractions/src/LinkOptions.cs +++ b/src/Http/Routing.Abstractions/src/LinkOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing.Abstractions/src/Properties/AssemblyInfo.cs b/src/Http/Routing.Abstractions/src/Properties/AssemblyInfo.cs index fc9a32648f8d..e4f36f04ec6c 100644 --- a/src/Http/Routing.Abstractions/src/Properties/AssemblyInfo.cs +++ b/src/Http/Routing.Abstractions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Routing; diff --git a/src/Http/Routing.Abstractions/src/RouteContext.cs b/src/Http/Routing.Abstractions/src/RouteContext.cs index 21b8d7e0c2ba..5bf51a0a0063 100644 --- a/src/Http/Routing.Abstractions/src/RouteContext.cs +++ b/src/Http/Routing.Abstractions/src/RouteContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing.Abstractions/src/RouteData.cs b/src/Http/Routing.Abstractions/src/RouteData.cs index ef3febdc4672..3cd807f85fb0 100644 --- a/src/Http/Routing.Abstractions/src/RouteData.cs +++ b/src/Http/Routing.Abstractions/src/RouteData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -160,7 +160,7 @@ public RouteDataSnapshot PushState(IRouter? router, RouteValueDictionary? values var snapshot = new RouteDataSnapshot( this, - _dataTokens?.Count > 0 ? new RouteValueDictionary(_dataTokens) : null, + _dataTokens?.Count > 0 ? new RouteValueDictionary(_dataTokens) : null, routers, _values?.Count > 0 ? new RouteValueDictionary(_values) : null); diff --git a/src/Http/Routing.Abstractions/src/RouteDirection.cs b/src/Http/Routing.Abstractions/src/RouteDirection.cs index f19ac2b4ecc6..cc98d09d6bb1 100644 --- a/src/Http/Routing.Abstractions/src/RouteDirection.cs +++ b/src/Http/Routing.Abstractions/src/RouteDirection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing.Abstractions/src/RoutingHttpContextExtensions.cs b/src/Http/Routing.Abstractions/src/RoutingHttpContextExtensions.cs index ca5e69c91341..64b0e6437295 100644 --- a/src/Http/Routing.Abstractions/src/RoutingHttpContextExtensions.cs +++ b/src/Http/Routing.Abstractions/src/RoutingHttpContextExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing.Abstractions/src/VirtualPathContext.cs b/src/Http/Routing.Abstractions/src/VirtualPathContext.cs index a1483d1b9b34..a296a048ce51 100644 --- a/src/Http/Routing.Abstractions/src/VirtualPathContext.cs +++ b/src/Http/Routing.Abstractions/src/VirtualPathContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing.Abstractions/src/VirtualPathData.cs b/src/Http/Routing.Abstractions/src/VirtualPathData.cs index d6a2db12323a..a2f042ce58d5 100644 --- a/src/Http/Routing.Abstractions/src/VirtualPathData.cs +++ b/src/Http/Routing.Abstractions/src/VirtualPathData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing.Abstractions/test/RouteDataTest.cs b/src/Http/Routing.Abstractions/test/RouteDataTest.cs index b8eac36c7e29..8b1da0edf8b9 100644 --- a/src/Http/Routing.Abstractions/test/RouteDataTest.cs +++ b/src/Http/Routing.Abstractions/test/RouteDataTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Moq; using Xunit; @@ -88,7 +88,7 @@ public void RouteData_PushStateAndRestore_NullRouteValueNotSet() // Act var snapshot = routeData.PushState( - null, + null, new RouteValueDictionary(new { bleh = (string)null }), new RouteValueDictionary()); snapshot.Restore(); diff --git a/src/Http/Routing.Abstractions/test/VirtualPathDataTests.cs b/src/Http/Routing.Abstractions/test/VirtualPathDataTests.cs index c21de9ba328e..5312fdd52eaf 100644 --- a/src/Http/Routing.Abstractions/test/VirtualPathDataTests.cs +++ b/src/Http/Routing.Abstractions/test/VirtualPathDataTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Moq; using Xunit; diff --git a/src/Http/Routing/perf/Microbenchmarks/EndpointMetadataCollectionBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/EndpointMetadataCollectionBenchmark.cs index 015fa5d0d651..8c67f50f2e2d 100644 --- a/src/Http/Routing/perf/Microbenchmarks/EndpointMetadataCollectionBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/EndpointMetadataCollectionBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/EndpointRoutingBenchmarkBase.cs b/src/Http/Routing/perf/Microbenchmarks/EndpointRoutingBenchmarkBase.cs index e57a3a9dc5f4..eb2961b370c5 100644 --- a/src/Http/Routing/perf/Microbenchmarks/EndpointRoutingBenchmarkBase.cs +++ b/src/Http/Routing/perf/Microbenchmarks/EndpointRoutingBenchmarkBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.cs index 32e05549c28c..826002361f3a 100644 --- a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.generated.cs b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.generated.cs index 2da180b1d211..b577070a84bf 100644 --- a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.generated.cs +++ b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/LinkGenerationGithubBenchmark.generated.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteRouteValuesAddressSchemeBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteRouteValuesAddressSchemeBenchmark.cs index d6295f890ed5..016780f1f4d7 100644 --- a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteRouteValuesAddressSchemeBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteRouteValuesAddressSchemeBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithConstraintsBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithConstraintsBenchmark.cs index 204966e46d77..7c2f7a227390 100644 --- a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithConstraintsBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithConstraintsBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithNoParametersBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithNoParametersBenchmark.cs index 6b46a5acfe98..a6f19e276c6a 100644 --- a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithNoParametersBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithNoParametersBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithParametersBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithParametersBenchmark.cs index 6037924e9aa1..4a7a0b5ee977 100644 --- a/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithParametersBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/LinkGeneration/SingleRouteWithParametersBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerBenchmarkBase.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerBenchmarkBase.cs index e7470f690f34..e70c950edad6 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerBenchmarkBase.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerBenchmarkBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerEmptyBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerEmptyBenchmark.cs index 6777205f59f6..8bb7b777798e 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerEmptyBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerEmptyBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerLargeBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerLargeBenchmark.cs index edb5e427ab9c..96ec8683b8ba 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerLargeBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerLargeBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Routing.Matching public class FastPathTokenizerLargeBenchmark : FastPathTokenizerBenchmarkBase { private static readonly int MaxCount = 32; - private static readonly string Input = + private static readonly string Input = "/heeeeeeeeeeyyyyyyyyyyy/this/is/a/string/with/lots/of/segments" + "/hoooooooooooooooooooooooooooooooooow long/do you think it should be?/I think" + "/like/32/segments/is /a/goood/number/dklfl/20303/dlflkf" + diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerPlaintextBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerPlaintextBenchmark.cs index d3a5c143498e..df16357fec76 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerPlaintextBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerPlaintextBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerSmallBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerSmallBenchmark.cs index eeac74602102..4b56abc201e3 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerSmallBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/FastPathTokenizerSmallBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/HttpMethodPolicyJumpTableBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/HttpMethodPolicyJumpTableBenchmark.cs index 012d138e9ae3..40eb3965875c 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/HttpMethodPolicyJumpTableBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/HttpMethodPolicyJumpTableBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableMultipleEntryBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableMultipleEntryBenchmark.cs index b3a685502592..e67402899805 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableMultipleEntryBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableMultipleEntryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableSingleEntryBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableSingleEntryBenchmark.cs index 99f774620cb0..9c1ce9842f8e 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableSingleEntryBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableSingleEntryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableZeroEntryBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableZeroEntryBenchmark.cs index 337011de7294..4371f1c7c64e 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableZeroEntryBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/JumpTableZeroEntryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmark.cs index 23544d9569f8..5d3b802be806 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmarkBase.generated.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmarkBase.generated.cs index 10dd5061335b..95f2db2314a6 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmarkBase.generated.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherAzureBenchmarkBase.generated.cs @@ -1,6 +1,6 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs index a839075c8282..f6ed69f09839 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderGithubBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderGithubBenchmark.cs index 4e0244e46e2c..372c7ff2dd2e 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderGithubBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderGithubBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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 BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderMultipleEntryBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderMultipleEntryBenchmark.cs index 6dc5e373aa4d..2973af0e0990 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderMultipleEntryBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderMultipleEntryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmark.cs index f5183298c5cd..6161a411fa21 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmarkBase.generated.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmarkBase.generated.cs index aea1bba61c5f..c7b829862fb8 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmarkBase.generated.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherGithubBenchmarkBase.generated.cs @@ -1,6 +1,6 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherSingleEntryBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherSingleEntryBenchmark.cs index b6c4bafb2185..6ce2ccecaf27 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherSingleEntryBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherSingleEntryBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/RouteEndpointAzureBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/RouteEndpointAzureBenchmark.cs index 5d3af4856237..392d82070b28 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/RouteEndpointAzureBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/RouteEndpointAzureBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcher.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcher.cs index f029f74e13b1..3543a2bb381a 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcher.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs index 01ce2871accf..b8bac787a7c6 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/TrivialMatcherBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Routing/perf/Microbenchmarks/Properties/AssemblyInfo.cs b/src/Http/Routing/perf/Microbenchmarks/Properties/AssemblyInfo.cs index cfb0b19c2e76..b1ffbd4d10b7 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Properties/AssemblyInfo.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Properties/AssemblyInfo.cs @@ -1 +1,4 @@ -[assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] \ No newline at end of file +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +[assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] \ No newline at end of file diff --git a/src/Http/Routing/src/ArrayBuilder.cs b/src/Http/Routing/src/ArrayBuilder.cs index ede0f990b618..21129fc8005e 100644 --- a/src/Http/Routing/src/ArrayBuilder.cs +++ b/src/Http/Routing/src/ArrayBuilder.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. // LICENSING NOTE: This file is from the dotnet corefx repository. // diff --git a/src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs b/src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs index 3e358c8cf843..e2e6f43ad77a 100644 --- a/src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs +++ b/src/Http/Routing/src/Builder/EndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Builder/EndpointRoutingApplicationBuilderExtensions.cs b/src/Http/Routing/src/Builder/EndpointRoutingApplicationBuilderExtensions.cs index 9d8785948653..07466e2d16a2 100644 --- a/src/Http/Routing/src/Builder/EndpointRoutingApplicationBuilderExtensions.cs +++ b/src/Http/Routing/src/Builder/EndpointRoutingApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/src/Builder/FallbackEndpointRouteBuilderExtensions.cs b/src/Http/Routing/src/Builder/FallbackEndpointRouteBuilderExtensions.cs index 5ce318e47e38..ed146c36cba6 100644 --- a/src/Http/Routing/src/Builder/FallbackEndpointRouteBuilderExtensions.cs +++ b/src/Http/Routing/src/Builder/FallbackEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/src/Builder/MinimalActionEndpointConventionBuilder.cs b/src/Http/Routing/src/Builder/MinimalActionEndpointConventionBuilder.cs index 2f97505581e6..cdcf7f6870a2 100644 --- a/src/Http/Routing/src/Builder/MinimalActionEndpointConventionBuilder.cs +++ b/src/Http/Routing/src/Builder/MinimalActionEndpointConventionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Builder/MinimalActionEndpointRouteBuilderExtensions.cs b/src/Http/Routing/src/Builder/MinimalActionEndpointRouteBuilderExtensions.cs index baf040d761df..02addb8e468b 100644 --- a/src/Http/Routing/src/Builder/MinimalActionEndpointRouteBuilderExtensions.cs +++ b/src/Http/Routing/src/Builder/MinimalActionEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Builder/RoutingBuilderExtensions.cs b/src/Http/Routing/src/Builder/RoutingBuilderExtensions.cs index 133708370c13..edf3adf18e94 100644 --- a/src/Http/Routing/src/Builder/RoutingBuilderExtensions.cs +++ b/src/Http/Routing/src/Builder/RoutingBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Http/Routing/src/Builder/RoutingEndpointConventionBuilderExtensions.cs b/src/Http/Routing/src/Builder/RoutingEndpointConventionBuilderExtensions.cs index 409c83c83245..9b3bffac2b29 100644 --- a/src/Http/Routing/src/Builder/RoutingEndpointConventionBuilderExtensions.cs +++ b/src/Http/Routing/src/Builder/RoutingEndpointConventionBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Http/Routing/src/CompositeEndpointDataSource.cs b/src/Http/Routing/src/CompositeEndpointDataSource.cs index 916187bef5a8..e38b22be24f7 100644 --- a/src/Http/Routing/src/CompositeEndpointDataSource.cs +++ b/src/Http/Routing/src/CompositeEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/ConfigureRouteOptions.cs b/src/Http/Routing/src/ConfigureRouteOptions.cs index f4ba549fe509..eb89e526f423 100644 --- a/src/Http/Routing/src/ConfigureRouteOptions.cs +++ b/src/Http/Routing/src/ConfigureRouteOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Constraints/AlphaRouteConstraint.cs b/src/Http/Routing/src/Constraints/AlphaRouteConstraint.cs index 7f2748e5c31f..23758a95d0c7 100644 --- a/src/Http/Routing/src/Constraints/AlphaRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/AlphaRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Constraints { diff --git a/src/Http/Routing/src/Constraints/BoolRouteConstraint.cs b/src/Http/Routing/src/Constraints/BoolRouteConstraint.cs index 26a37c2e80d3..5e715393008b 100644 --- a/src/Http/Routing/src/Constraints/BoolRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/BoolRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/CompositeRouteConstraint.cs b/src/Http/Routing/src/Constraints/CompositeRouteConstraint.cs index 023a32eae8ce..9e99f8d05adf 100644 --- a/src/Http/Routing/src/Constraints/CompositeRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/CompositeRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Constraints/DateTimeRouteConstraint.cs b/src/Http/Routing/src/Constraints/DateTimeRouteConstraint.cs index 2d7fdd1bc2c7..823c0cdb4622 100644 --- a/src/Http/Routing/src/Constraints/DateTimeRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/DateTimeRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/DecimalRouteConstraint.cs b/src/Http/Routing/src/Constraints/DecimalRouteConstraint.cs index b08d13d5154e..3d5193216729 100644 --- a/src/Http/Routing/src/Constraints/DecimalRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/DecimalRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/DoubleRouteConstraint.cs b/src/Http/Routing/src/Constraints/DoubleRouteConstraint.cs index e3c351d3e869..2d42badfec2d 100644 --- a/src/Http/Routing/src/Constraints/DoubleRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/DoubleRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/FileNameRouteConstraint.cs b/src/Http/Routing/src/Constraints/FileNameRouteConstraint.cs index 0051ef3fb121..13ab9410720c 100644 --- a/src/Http/Routing/src/Constraints/FileNameRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/FileNameRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -35,50 +35,50 @@ namespace Microsoft.AspNetCore.Routing.Constraints /// an actual file on disk. /// /// - /// - /// - /// Examples of route values that will be matched as file names - /// description - /// - /// - /// /a/b/c.txt - /// Final segment contains a . followed by other characters. + /// + /// + /// Examples of route values that will be matched as file names + /// description + /// + /// + /// /a/b/c.txt + /// Final segment contains a . followed by other characters. /// - /// - /// /hello.world.txt - /// Final segment contains a . followed by other characters. + /// + /// /hello.world.txt + /// Final segment contains a . followed by other characters. /// - /// - /// hello.world.txt - /// Final segment contains a . followed by other characters. + /// + /// hello.world.txt + /// Final segment contains a . followed by other characters. + /// + /// + /// .gitignore + /// Final segment contains a . followed by other characters. /// - /// - /// .gitignore - /// Final segment contains a . followed by other characters. - /// /// - /// - /// - /// Examples of route values that will be rejected as non-file-names - /// description - /// - /// - /// /a/b/c - /// Final segment does not contain a .. + /// + /// + /// Examples of route values that will be rejected as non-file-names + /// description + /// + /// + /// /a/b/c + /// Final segment does not contain a .. /// - /// - /// /a/b.d/c - /// Final segment does not contain a .. + /// + /// /a/b.d/c + /// Final segment does not contain a .. /// - /// - /// /a/b.d/c/ - /// Final segment is empty. + /// + /// /a/b.d/c/ + /// Final segment is empty. /// - /// - /// - /// Value is empty + /// + /// + /// Value is empty /// - /// + /// /// /// public class FileNameRouteConstraint : IRouteConstraint diff --git a/src/Http/Routing/src/Constraints/FloatRouteConstraint.cs b/src/Http/Routing/src/Constraints/FloatRouteConstraint.cs index 5108da1bcb95..88906d0b702d 100644 --- a/src/Http/Routing/src/Constraints/FloatRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/FloatRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/GuidRouteConstraint.cs b/src/Http/Routing/src/Constraints/GuidRouteConstraint.cs index 101621c068e8..59811091a9bd 100644 --- a/src/Http/Routing/src/Constraints/GuidRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/GuidRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/HttpMethodRouteConstraint.cs b/src/Http/Routing/src/Constraints/HttpMethodRouteConstraint.cs index 696f8084017a..8c76a6172c4d 100644 --- a/src/Http/Routing/src/Constraints/HttpMethodRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/HttpMethodRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Constraints/IntRouteConstraint.cs b/src/Http/Routing/src/Constraints/IntRouteConstraint.cs index 6190180858c4..b6e4dd03e36e 100644 --- a/src/Http/Routing/src/Constraints/IntRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/IntRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/LengthRouteConstraint.cs b/src/Http/Routing/src/Constraints/LengthRouteConstraint.cs index 52fecb9d4224..193e7884569d 100644 --- a/src/Http/Routing/src/Constraints/LengthRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/LengthRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/LongRouteConstraint.cs b/src/Http/Routing/src/Constraints/LongRouteConstraint.cs index 493be38eb1b8..853c56939337 100644 --- a/src/Http/Routing/src/Constraints/LongRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/LongRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/MaxLengthRouteConstraint.cs b/src/Http/Routing/src/Constraints/MaxLengthRouteConstraint.cs index 470f9110d832..866b5495bace 100644 --- a/src/Http/Routing/src/Constraints/MaxLengthRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/MaxLengthRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/MaxRouteConstraint.cs b/src/Http/Routing/src/Constraints/MaxRouteConstraint.cs index c7d5e91dfef5..8adebcd7f97c 100644 --- a/src/Http/Routing/src/Constraints/MaxRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/MaxRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/MinLengthRouteConstraint.cs b/src/Http/Routing/src/Constraints/MinLengthRouteConstraint.cs index 9c7b54704bcb..eed4fb4fc0a2 100644 --- a/src/Http/Routing/src/Constraints/MinLengthRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/MinLengthRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/MinRouteConstraint.cs b/src/Http/Routing/src/Constraints/MinRouteConstraint.cs index ef504f446d24..fd38da7dd1f5 100644 --- a/src/Http/Routing/src/Constraints/MinRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/MinRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/NonFileNameRouteConstraint.cs b/src/Http/Routing/src/Constraints/NonFileNameRouteConstraint.cs index 9d58423b9ae5..82a726195b1c 100644 --- a/src/Http/Routing/src/Constraints/NonFileNameRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/NonFileNameRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -31,49 +31,49 @@ namespace Microsoft.AspNetCore.Routing.Constraints /// a legal file name for the current operating system. /// /// - /// - /// - /// Examples of route values that will be matched as non-file-names - /// description - /// - /// - /// /a/b/c - /// Final segment does not contain a .. + /// + /// + /// Examples of route values that will be matched as non-file-names + /// description + /// + /// + /// /a/b/c + /// Final segment does not contain a .. /// - /// - /// /a/b.d/c - /// Final segment does not contain a .. + /// + /// /a/b.d/c + /// Final segment does not contain a .. /// - /// - /// /a/b.d/c/ - /// Final segment is empty. + /// + /// /a/b.d/c/ + /// Final segment is empty. /// - /// - /// - /// Value is empty + /// + /// + /// Value is empty /// /// - /// - /// - /// Examples of route values that will be rejected as file names - /// description - /// - /// - /// /a/b/c.txt - /// Final segment contains a . followed by other characters. + /// + /// + /// Examples of route values that will be rejected as file names + /// description + /// + /// + /// /a/b/c.txt + /// Final segment contains a . followed by other characters. /// - /// - /// /hello.world.txt - /// Final segment contains a . followed by other characters. + /// + /// /hello.world.txt + /// Final segment contains a . followed by other characters. /// - /// - /// hello.world.txt - /// Final segment contains a . followed by other characters. + /// + /// hello.world.txt + /// Final segment contains a . followed by other characters. + /// + /// + /// .gitignore + /// Final segment contains a . followed by other characters. /// - /// - /// .gitignore - /// Final segment contains a . followed by other characters. - /// /// /// /// diff --git a/src/Http/Routing/src/Constraints/NullRouteConstraint.cs b/src/Http/Routing/src/Constraints/NullRouteConstraint.cs index 7accfcb16623..1ec7e77f2bf9 100644 --- a/src/Http/Routing/src/Constraints/NullRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/NullRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/src/Constraints/OptionalRouteConstraint.cs b/src/Http/Routing/src/Constraints/OptionalRouteConstraint.cs index 378714f22b41..29170be11719 100644 --- a/src/Http/Routing/src/Constraints/OptionalRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/OptionalRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/src/Constraints/RangeRouteConstraint.cs b/src/Http/Routing/src/Constraints/RangeRouteConstraint.cs index 3e7dde78cb17..92db2547a34d 100644 --- a/src/Http/Routing/src/Constraints/RangeRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/RangeRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/RegexInlineRouteConstraint.cs b/src/Http/Routing/src/Constraints/RegexInlineRouteConstraint.cs index f0a9bc987505..e0e82c3f66f9 100644 --- a/src/Http/Routing/src/Constraints/RegexInlineRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/RegexInlineRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Constraints { diff --git a/src/Http/Routing/src/Constraints/RegexRouteConstraint.cs b/src/Http/Routing/src/Constraints/RegexRouteConstraint.cs index 53faa5e456ac..38dc359885e4 100644 --- a/src/Http/Routing/src/Constraints/RegexRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/RegexRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/RequiredRouteConstraint.cs b/src/Http/Routing/src/Constraints/RequiredRouteConstraint.cs index 71b594a07b20..79423bffc939 100644 --- a/src/Http/Routing/src/Constraints/RequiredRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/RequiredRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/Constraints/StringRouteConstraint.cs b/src/Http/Routing/src/Constraints/StringRouteConstraint.cs index a6231d40020d..111b1e763351 100644 --- a/src/Http/Routing/src/Constraints/StringRouteConstraint.cs +++ b/src/Http/Routing/src/Constraints/StringRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/src/DataSourceDependentCache.cs b/src/Http/Routing/src/DataSourceDependentCache.cs index 390f199aad92..f05273ba5b7b 100644 --- a/src/Http/Routing/src/DataSourceDependentCache.cs +++ b/src/Http/Routing/src/DataSourceDependentCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/DataTokensMetadata.cs b/src/Http/Routing/src/DataTokensMetadata.cs index 5c50766b8b6d..a0568f35ae0f 100644 --- a/src/Http/Routing/src/DataTokensMetadata.cs +++ b/src/Http/Routing/src/DataTokensMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/DecisionTree/DecisionCriterion.cs b/src/Http/Routing/src/DecisionTree/DecisionCriterion.cs index ce8ec1149893..88619b0739fe 100644 --- a/src/Http/Routing/src/DecisionTree/DecisionCriterion.cs +++ b/src/Http/Routing/src/DecisionTree/DecisionCriterion.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/DecisionTree/DecisionCriterionValue.cs b/src/Http/Routing/src/DecisionTree/DecisionCriterionValue.cs index 5bc9eaa15925..c58fbb564a3c 100644 --- a/src/Http/Routing/src/DecisionTree/DecisionCriterionValue.cs +++ b/src/Http/Routing/src/DecisionTree/DecisionCriterionValue.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.DecisionTree { diff --git a/src/Http/Routing/src/DecisionTree/DecisionCriterionValueEqualityComparer.cs b/src/Http/Routing/src/DecisionTree/DecisionCriterionValueEqualityComparer.cs index 949b7b613cac..054115badf70 100644 --- a/src/Http/Routing/src/DecisionTree/DecisionCriterionValueEqualityComparer.cs +++ b/src/Http/Routing/src/DecisionTree/DecisionCriterionValueEqualityComparer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Routing/src/DecisionTree/DecisionTreeBuilder.cs b/src/Http/Routing/src/DecisionTree/DecisionTreeBuilder.cs index 293ce4aa466a..20229ed73324 100644 --- a/src/Http/Routing/src/DecisionTree/DecisionTreeBuilder.cs +++ b/src/Http/Routing/src/DecisionTree/DecisionTreeBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/DecisionTree/DecisionTreeNode.cs b/src/Http/Routing/src/DecisionTree/DecisionTreeNode.cs index df2809778692..eca4006483c8 100644 --- a/src/Http/Routing/src/DecisionTree/DecisionTreeNode.cs +++ b/src/Http/Routing/src/DecisionTree/DecisionTreeNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/DecisionTree/IClassifier.cs b/src/Http/Routing/src/DecisionTree/IClassifier.cs index 3008fdfa75f3..6ce92a8673aa 100644 --- a/src/Http/Routing/src/DecisionTree/IClassifier.cs +++ b/src/Http/Routing/src/DecisionTree/IClassifier.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Routing/src/DecisionTree/ItemDescriptor.cs b/src/Http/Routing/src/DecisionTree/ItemDescriptor.cs index e5146f98c4b6..4b49217883a5 100644 --- a/src/Http/Routing/src/DecisionTree/ItemDescriptor.cs +++ b/src/Http/Routing/src/DecisionTree/ItemDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/DefaultEndpointConventionBuilder.cs b/src/Http/Routing/src/DefaultEndpointConventionBuilder.cs index 7c2e96f7f45e..f05216359266 100644 --- a/src/Http/Routing/src/DefaultEndpointConventionBuilder.cs +++ b/src/Http/Routing/src/DefaultEndpointConventionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/DefaultEndpointDataSource.cs b/src/Http/Routing/src/DefaultEndpointDataSource.cs index 7586ee4a2ed0..1793c32b207f 100644 --- a/src/Http/Routing/src/DefaultEndpointDataSource.cs +++ b/src/Http/Routing/src/DefaultEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/DefaultEndpointRouteBuilder.cs b/src/Http/Routing/src/DefaultEndpointRouteBuilder.cs index 375bc098ac33..e87e44d7ead1 100644 --- a/src/Http/Routing/src/DefaultEndpointRouteBuilder.cs +++ b/src/Http/Routing/src/DefaultEndpointRouteBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/DefaultInlineConstraintResolver.cs b/src/Http/Routing/src/DefaultInlineConstraintResolver.cs index 01588494c17b..4f58fceb3d9f 100644 --- a/src/Http/Routing/src/DefaultInlineConstraintResolver.cs +++ b/src/Http/Routing/src/DefaultInlineConstraintResolver.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/DefaultLinkGenerator.cs b/src/Http/Routing/src/DefaultLinkGenerator.cs index 23421ea2af84..72f3a68cbc45 100644 --- a/src/Http/Routing/src/DefaultLinkGenerator.cs +++ b/src/Http/Routing/src/DefaultLinkGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/DefaultLinkParser.cs b/src/Http/Routing/src/DefaultLinkParser.cs index a076d0159100..d7243a081bc9 100644 --- a/src/Http/Routing/src/DefaultLinkParser.cs +++ b/src/Http/Routing/src/DefaultLinkParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Http/Routing/src/DefaultParameterPolicyFactory.cs b/src/Http/Routing/src/DefaultParameterPolicyFactory.cs index 16bd6ee1c431..6ad731970b32 100644 --- a/src/Http/Routing/src/DefaultParameterPolicyFactory.cs +++ b/src/Http/Routing/src/DefaultParameterPolicyFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing.Constraints; diff --git a/src/Http/Routing/src/DependencyInjection/RoutingServiceCollectionExtensions.cs b/src/Http/Routing/src/DependencyInjection/RoutingServiceCollectionExtensions.cs index 9c774b41681f..226b85cebe75 100644 --- a/src/Http/Routing/src/DependencyInjection/RoutingServiceCollectionExtensions.cs +++ b/src/Http/Routing/src/DependencyInjection/RoutingServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; @@ -75,7 +75,7 @@ public static IServiceCollection AddRouting(this IServiceCollection services) services.TryAddTransient(); services.TryAddSingleton(services => { - // This has no public constructor. + // This has no public constructor. return new EndpointMetadataComparer(services); }); diff --git a/src/Http/Routing/src/EndpointDataSource.cs b/src/Http/Routing/src/EndpointDataSource.cs index 6176ba08e058..9f714fd6ea3d 100644 --- a/src/Http/Routing/src/EndpointDataSource.cs +++ b/src/Http/Routing/src/EndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/EndpointMiddleware.cs b/src/Http/Routing/src/EndpointMiddleware.cs index 1a78ff8aea87..08e5bb1db7b3 100644 --- a/src/Http/Routing/src/EndpointMiddleware.cs +++ b/src/Http/Routing/src/EndpointMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/EndpointNameAddressScheme.cs b/src/Http/Routing/src/EndpointNameAddressScheme.cs index 0939efadac56..ef057acac1ef 100644 --- a/src/Http/Routing/src/EndpointNameAddressScheme.cs +++ b/src/Http/Routing/src/EndpointNameAddressScheme.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/EndpointNameMetadata.cs b/src/Http/Routing/src/EndpointNameMetadata.cs index 13429627975f..7584675ad29a 100644 --- a/src/Http/Routing/src/EndpointNameMetadata.cs +++ b/src/Http/Routing/src/EndpointNameMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/src/EndpointRoutingMiddleware.cs b/src/Http/Routing/src/EndpointRoutingMiddleware.cs index 953b286b9290..5bf49b7f543f 100644 --- a/src/Http/Routing/src/EndpointRoutingMiddleware.cs +++ b/src/Http/Routing/src/EndpointRoutingMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Http/Routing/src/HostAttribute.cs b/src/Http/Routing/src/HostAttribute.cs index a26163210ac3..be4403eaa03c 100644 --- a/src/Http/Routing/src/HostAttribute.cs +++ b/src/Http/Routing/src/HostAttribute.cs @@ -1,5 +1,5 @@ -// 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 +// 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; diff --git a/src/Http/Routing/src/HttpMethodMetadata.cs b/src/Http/Routing/src/HttpMethodMetadata.cs index 26bcf07e66c1..a37701efa7fa 100644 --- a/src/Http/Routing/src/HttpMethodMetadata.cs +++ b/src/Http/Routing/src/HttpMethodMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/IDataTokenMetadata.cs b/src/Http/Routing/src/IDataTokenMetadata.cs index ea86aa94a5d7..02a292d02bb2 100644 --- a/src/Http/Routing/src/IDataTokenMetadata.cs +++ b/src/Http/Routing/src/IDataTokenMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/IDynamicEndpointMetadata.cs b/src/Http/Routing/src/IDynamicEndpointMetadata.cs index 9823add5753b..76d0698b60da 100644 --- a/src/Http/Routing/src/IDynamicEndpointMetadata.cs +++ b/src/Http/Routing/src/IDynamicEndpointMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Routing.Matching; @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Routing { /// /// A metadata interface that can be used to specify that the associated - /// will be dynamically replaced during matching. + /// will be dynamically replaced during matching. /// /// /// diff --git a/src/Http/Routing/src/IEndpointAddressScheme.cs b/src/Http/Routing/src/IEndpointAddressScheme.cs index e6b6a435bcdf..09f503e84d95 100644 --- a/src/Http/Routing/src/IEndpointAddressScheme.cs +++ b/src/Http/Routing/src/IEndpointAddressScheme.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/IEndpointNameMetadata.cs b/src/Http/Routing/src/IEndpointNameMetadata.cs index e2e3b85fda41..4b5f3a5236a2 100644 --- a/src/Http/Routing/src/IEndpointNameMetadata.cs +++ b/src/Http/Routing/src/IEndpointNameMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/src/IEndpointRouteBuilder.cs b/src/Http/Routing/src/IEndpointRouteBuilder.cs index 6e941a0685f0..8810235be141 100644 --- a/src/Http/Routing/src/IEndpointRouteBuilder.cs +++ b/src/Http/Routing/src/IEndpointRouteBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/IHostMetadata.cs b/src/Http/Routing/src/IHostMetadata.cs index a3e52aa96c12..8876ac770b96 100644 --- a/src/Http/Routing/src/IHostMetadata.cs +++ b/src/Http/Routing/src/IHostMetadata.cs @@ -1,5 +1,5 @@ -// 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 +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Routing/src/IHttpMethodMetadata.cs b/src/Http/Routing/src/IHttpMethodMetadata.cs index af67c6e9525d..ca7e87d506bd 100644 --- a/src/Http/Routing/src/IHttpMethodMetadata.cs +++ b/src/Http/Routing/src/IHttpMethodMetadata.cs @@ -1,5 +1,5 @@ -// 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 +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Http/Routing/src/IInlineConstraintResolver.cs b/src/Http/Routing/src/IInlineConstraintResolver.cs index a0923adef86e..16e469cc4c1e 100644 --- a/src/Http/Routing/src/IInlineConstraintResolver.cs +++ b/src/Http/Routing/src/IInlineConstraintResolver.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/INamedRouter.cs b/src/Http/Routing/src/INamedRouter.cs index 159b4c660e1f..71ed22bc417d 100644 --- a/src/Http/Routing/src/INamedRouter.cs +++ b/src/Http/Routing/src/INamedRouter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/IRouteBuilder.cs b/src/Http/Routing/src/IRouteBuilder.cs index 98f3dbb6e2e8..4e460c0be23c 100644 --- a/src/Http/Routing/src/IRouteBuilder.cs +++ b/src/Http/Routing/src/IRouteBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/IRouteCollection.cs b/src/Http/Routing/src/IRouteCollection.cs index 6ba36de17e9e..06cfd4b4c888 100644 --- a/src/Http/Routing/src/IRouteCollection.cs +++ b/src/Http/Routing/src/IRouteCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/IRouteNameMetadata.cs b/src/Http/Routing/src/IRouteNameMetadata.cs index abf350700164..e7198844c40c 100644 --- a/src/Http/Routing/src/IRouteNameMetadata.cs +++ b/src/Http/Routing/src/IRouteNameMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/ISuppressLinkGenerationMetadata.cs b/src/Http/Routing/src/ISuppressLinkGenerationMetadata.cs index 25c2c232e1b0..45b2504ad85d 100644 --- a/src/Http/Routing/src/ISuppressLinkGenerationMetadata.cs +++ b/src/Http/Routing/src/ISuppressLinkGenerationMetadata.cs @@ -1,10 +1,10 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { /// - /// Represents metadata used during link generation. If is true + /// Represents metadata used during link generation. If is true /// the associated endpoint will not be used for link generation. /// public interface ISuppressLinkGenerationMetadata diff --git a/src/Http/Routing/src/ISuppressMatchingMetadata.cs b/src/Http/Routing/src/ISuppressMatchingMetadata.cs index 770887bf224b..fbf5ac0f43d8 100644 --- a/src/Http/Routing/src/ISuppressMatchingMetadata.cs +++ b/src/Http/Routing/src/ISuppressMatchingMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/InlineRouteParameterParser.cs b/src/Http/Routing/src/InlineRouteParameterParser.cs index 4e3c60a25cdb..416f395bf74b 100644 --- a/src/Http/Routing/src/InlineRouteParameterParser.cs +++ b/src/Http/Routing/src/InlineRouteParameterParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Internal/DfaGraphWriter.cs b/src/Http/Routing/src/Internal/DfaGraphWriter.cs index 62ea3186ce5a..dbe47d7c2810 100644 --- a/src/Http/Routing/src/Internal/DfaGraphWriter.cs +++ b/src/Http/Routing/src/Internal/DfaGraphWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/LinkGeneratorEndpointNameAddressExtensions.cs b/src/Http/Routing/src/LinkGeneratorEndpointNameAddressExtensions.cs index 73a541747c4a..5a652f513f8f 100644 --- a/src/Http/Routing/src/LinkGeneratorEndpointNameAddressExtensions.cs +++ b/src/Http/Routing/src/LinkGeneratorEndpointNameAddressExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Routing/src/LinkGeneratorRouteValuesAddressExtensions.cs b/src/Http/Routing/src/LinkGeneratorRouteValuesAddressExtensions.cs index c4cbe8890cb7..444dc5c0d30f 100644 --- a/src/Http/Routing/src/LinkGeneratorRouteValuesAddressExtensions.cs +++ b/src/Http/Routing/src/LinkGeneratorRouteValuesAddressExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Http/Routing/src/LinkParser.cs b/src/Http/Routing/src/LinkParser.cs index 88ed8c8131d0..a28d9283ea9f 100644 --- a/src/Http/Routing/src/LinkParser.cs +++ b/src/Http/Routing/src/LinkParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; @@ -18,14 +18,14 @@ public abstract class LinkParser /// The address value. Used to resolve endpoints. /// The URI path to parse. /// - /// A with the parsed values if parsing is successful; + /// A with the parsed values if parsing is successful; /// otherwise null. /// /// /// /// will attempt to first resolve /// instances that match and then use the route - /// pattern associated with each endpoint to parse the URL path. + /// pattern associated with each endpoint to parse the URL path. /// /// /// The parsing operation will fail and return null if either no endpoints are found or none diff --git a/src/Http/Routing/src/LinkParserEndpointNameAddressExtensions.cs b/src/Http/Routing/src/LinkParserEndpointNameAddressExtensions.cs index 2217a8eb45b4..700961b1e8dc 100644 --- a/src/Http/Routing/src/LinkParserEndpointNameAddressExtensions.cs +++ b/src/Http/Routing/src/LinkParserEndpointNameAddressExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -19,14 +19,14 @@ public static class LinkParserEndpointNameAddressExtensions /// The endpoint name. Used to resolve endpoints. /// The URI path to parse. /// - /// A with the parsed values if parsing is successful; + /// A with the parsed values if parsing is successful; /// otherwise null. /// /// /// /// will attempt to first resolve /// instances that match and then use the route - /// pattern associated with each endpoint to parse the URL path. + /// pattern associated with each endpoint to parse the URL path. /// /// /// The parsing operation will fail and return null if either no endpoints are found or none diff --git a/src/Http/Routing/src/MapRouteRouteBuilderExtensions.cs b/src/Http/Routing/src/MapRouteRouteBuilderExtensions.cs index 56f91c40506a..55c32b2b7b60 100644 --- a/src/Http/Routing/src/MapRouteRouteBuilderExtensions.cs +++ b/src/Http/Routing/src/MapRouteRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/Matching/AmbiguousMatchException.cs b/src/Http/Routing/src/Matching/AmbiguousMatchException.cs index 1afed0e1038f..10d02711e682 100644 --- a/src/Http/Routing/src/Matching/AmbiguousMatchException.cs +++ b/src/Http/Routing/src/Matching/AmbiguousMatchException.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Serialization; diff --git a/src/Http/Routing/src/Matching/Ascii.cs b/src/Http/Routing/src/Matching/Ascii.cs index 6ff7db28ff7b..1820a3ce3b4a 100644 --- a/src/Http/Routing/src/Matching/Ascii.cs +++ b/src/Http/Routing/src/Matching/Ascii.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; @@ -24,7 +24,7 @@ public static bool AsciiIgnoreCaseEquals(ReadOnlySpan a, ReadOnlySpan[] Slots; - // List of parameters to capture. Segment is the segment index, index is the + // List of parameters to capture. Segment is the segment index, index is the // index into the values array. public readonly (string parameterName, int segmentIndex, int slotIndex)[] Captures; @@ -40,8 +40,8 @@ internal readonly struct Candidate // applied to endpoints not in the set. // // The score concept boils down the system of comparisons done when ordering Endpoints - // to a single value that can be compared easily. This can be defeated by having - // int32.MaxValue + 1 endpoints in a single set, but you would have other problems by + // to a single value that can be compared easily. This can be defeated by having + // int32.MaxValue + 1 endpoints in a single set, but you would have other problems by // that point. // // Score is not part of the Endpoint itself, because it's contextual based on where diff --git a/src/Http/Routing/src/Matching/CandidateSet.cs b/src/Http/Routing/src/Matching/CandidateSet.cs index 1d9e557fc735..9a7df16550c8 100644 --- a/src/Http/Routing/src/Matching/CandidateSet.cs +++ b/src/Http/Routing/src/Matching/CandidateSet.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; @@ -321,7 +321,7 @@ public void ExpandEndpoint(int index, IReadOnlyList endpoints, ICompar } break; - + } } diff --git a/src/Http/Routing/src/Matching/CandidateState.cs b/src/Http/Routing/src/Matching/CandidateState.cs index 14b8591c6880..1c9b0f3128e6 100644 --- a/src/Http/Routing/src/Matching/CandidateState.cs +++ b/src/Http/Routing/src/Matching/CandidateState.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/src/Matching/DataSourceDependentMatcher.cs b/src/Http/Routing/src/Matching/DataSourceDependentMatcher.cs index 65bed187c8cd..e8362bd347da 100644 --- a/src/Http/Routing/src/Matching/DataSourceDependentMatcher.cs +++ b/src/Http/Routing/src/Matching/DataSourceDependentMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/Matching/DefaultEndpointSelector.cs b/src/Http/Routing/src/Matching/DefaultEndpointSelector.cs index 31c863a5a9ac..9cb7684579a9 100644 --- a/src/Http/Routing/src/Matching/DefaultEndpointSelector.cs +++ b/src/Http/Routing/src/Matching/DefaultEndpointSelector.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/DfaMatcher.cs b/src/Http/Routing/src/Matching/DfaMatcher.cs index 9bdb6795be8d..f789d506277f 100644 --- a/src/Http/Routing/src/Matching/DfaMatcher.cs +++ b/src/Http/Routing/src/Matching/DfaMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/DfaMatcherBuilder.cs b/src/Http/Routing/src/Matching/DfaMatcherBuilder.cs index f40b4d4e6498..e2409eb5d109 100644 --- a/src/Http/Routing/src/Matching/DfaMatcherBuilder.cs +++ b/src/Http/Routing/src/Matching/DfaMatcherBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Matching/DfaMatcherFactory.cs b/src/Http/Routing/src/Matching/DfaMatcherFactory.cs index 9fa684d944fa..9f6587b0c0ca 100644 --- a/src/Http/Routing/src/Matching/DfaMatcherFactory.cs +++ b/src/Http/Routing/src/Matching/DfaMatcherFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Http/Routing/src/Matching/DfaNode.cs b/src/Http/Routing/src/Matching/DfaNode.cs index b0ba4b9887d0..eec717062550 100644 --- a/src/Http/Routing/src/Matching/DfaNode.cs +++ b/src/Http/Routing/src/Matching/DfaNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -24,7 +24,7 @@ internal class DfaNode // Just for diagnostics and debugging public string Label { get; set; } - + public List Matches { get; private set; } public Dictionary Literals { get; private set; } @@ -126,7 +126,7 @@ private string DebuggerToString() builder.AppendJoin(", ", Literals.Select(kvp => $"{kvp.Key}->({FormatNode(kvp.Value)})")); } return builder.ToString(); - + // DfaNodes can be self-referential, don't traverse cycles. string FormatNode(DfaNode other) { diff --git a/src/Http/Routing/src/Matching/DfaState.cs b/src/Http/Routing/src/Matching/DfaState.cs index 191177e54de3..04ec059c3385 100644 --- a/src/Http/Routing/src/Matching/DfaState.cs +++ b/src/Http/Routing/src/Matching/DfaState.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/DictionaryJumpTable.cs b/src/Http/Routing/src/Matching/DictionaryJumpTable.cs index 644f9c95acf1..b4649d18d885 100644 --- a/src/Http/Routing/src/Matching/DictionaryJumpTable.cs +++ b/src/Http/Routing/src/Matching/DictionaryJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/EndpointComparer.cs b/src/Http/Routing/src/Matching/EndpointComparer.cs index 877129cbb3a6..664a0de9c9b4 100644 --- a/src/Http/Routing/src/Matching/EndpointComparer.cs +++ b/src/Http/Routing/src/Matching/EndpointComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Routing.Matching // When we group endpoints we don't consider the route template, because we're trying // to group endpoints not separate them. // - // TLDR: + // TLDR: // IComparer implementation considers the template string as a tiebreaker. // IEqualityComparer implementation does not. // This is cool and good. @@ -83,7 +83,7 @@ public bool Equals(Endpoint? x, Endpoint? y) return CompareCore(x, y) == 0; } - + public int GetHashCode(Endpoint obj) { // This should not be possible to call publicly. diff --git a/src/Http/Routing/src/Matching/EndpointMetadataComparer.cs b/src/Http/Routing/src/Matching/EndpointMetadataComparer.cs index d04ba767d2c4..2380cd8197bf 100644 --- a/src/Http/Routing/src/Matching/EndpointMetadataComparer.cs +++ b/src/Http/Routing/src/Matching/EndpointMetadataComparer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/Matching/EndpointSelector.cs b/src/Http/Routing/src/Matching/EndpointSelector.cs index e5db914c2852..a2cd1f7d57e7 100644 --- a/src/Http/Routing/src/Matching/EndpointSelector.cs +++ b/src/Http/Routing/src/Matching/EndpointSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/Matching/FastPathTokenizer.cs b/src/Http/Routing/src/Matching/FastPathTokenizer.cs index e2fc66ab30a5..73f59c77fd37 100644 --- a/src/Http/Routing/src/Matching/FastPathTokenizer.cs +++ b/src/Http/Routing/src/Matching/FastPathTokenizer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing/src/Matching/HostMatcherPolicy.cs b/src/Http/Routing/src/Matching/HostMatcherPolicy.cs index 8b580d5e3a66..a41d0a24e5bc 100644 --- a/src/Http/Routing/src/Matching/HostMatcherPolicy.cs +++ b/src/Http/Routing/src/Matching/HostMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/HttpMethodDictionaryPolicyJumpTable.cs b/src/Http/Routing/src/Matching/HttpMethodDictionaryPolicyJumpTable.cs index f77e65f37e2c..c727c135fc5b 100644 --- a/src/Http/Routing/src/Matching/HttpMethodDictionaryPolicyJumpTable.cs +++ b/src/Http/Routing/src/Matching/HttpMethodDictionaryPolicyJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/Matching/HttpMethodMatcherPolicy.cs b/src/Http/Routing/src/Matching/HttpMethodMatcherPolicy.cs index ec6b6a532b95..9af6cbfdcd20 100644 --- a/src/Http/Routing/src/Matching/HttpMethodMatcherPolicy.cs +++ b/src/Http/Routing/src/Matching/HttpMethodMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/HttpMethodSingleEntryPolicyJumpTable.cs b/src/Http/Routing/src/Matching/HttpMethodSingleEntryPolicyJumpTable.cs index a114b373da57..24140e6f6390 100644 --- a/src/Http/Routing/src/Matching/HttpMethodSingleEntryPolicyJumpTable.cs +++ b/src/Http/Routing/src/Matching/HttpMethodSingleEntryPolicyJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/src/Matching/IEndpointComparerPolicy.cs b/src/Http/Routing/src/Matching/IEndpointComparerPolicy.cs index a62cc8162dab..9aec53af237f 100644 --- a/src/Http/Routing/src/Matching/IEndpointComparerPolicy.cs +++ b/src/Http/Routing/src/Matching/IEndpointComparerPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/Matching/IEndpointSelectorPolicy.cs b/src/Http/Routing/src/Matching/IEndpointSelectorPolicy.cs index 7654e397286b..2698280e2de8 100644 --- a/src/Http/Routing/src/Matching/IEndpointSelectorPolicy.cs +++ b/src/Http/Routing/src/Matching/IEndpointSelectorPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using System.Collections.Generic; diff --git a/src/Http/Routing/src/Matching/ILEmitTrieFactory.cs b/src/Http/Routing/src/Matching/ILEmitTrieFactory.cs index 27af21abf430..5f17adbe71fa 100644 --- a/src/Http/Routing/src/Matching/ILEmitTrieFactory.cs +++ b/src/Http/Routing/src/Matching/ILEmitTrieFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -51,7 +51,7 @@ internal static bool ShouldVectorize((string text, int destination)[] entries) // vectorized algorithm introduces additional overhead for casing. // Vectorize by default on 64bit (allow override for testing) - return (IntPtr.Size == 8) && + return (IntPtr.Size == 8) && // Don't vectorize if all of the strings are small (prevents allocating unused locals) entries.Any(e => e.text.Length >= 4); @@ -339,7 +339,7 @@ private static void EmitSingleCharacterTable( // logic. // Now we generate an 'if' ladder with an entry for each of the unique - // characters in the group. + // characters in the group. var groups = entries.GroupBy(e => GetUInt16Key(e.text, index)); foreach (var group in groups) { @@ -406,7 +406,7 @@ private static void SaveAssembly( var module = assembly.DefineDynamicModule(assemblyName, fileName); var type = module.DefineType("ILEmitTrie"); var method = type.DefineMethod( - "GetDestination", + "GetDestination", MethodAttributes.Public | MethodAttributes.Static, CallingConventions.Standard, typeof(int), @@ -450,7 +450,7 @@ public Locals(ILGenerator il, bool vectorize) /// Used to covert casing. See comments where it's used. /// public LocalBuilder UInt64LowerIndicator { get; } - + /// /// Used to covert casing. See comments where it's used. /// diff --git a/src/Http/Routing/src/Matching/ILEmitTrieJumpTable.cs b/src/Http/Routing/src/Matching/ILEmitTrieJumpTable.cs index d9fb170001b8..e742795995a5 100644 --- a/src/Http/Routing/src/Matching/ILEmitTrieJumpTable.cs +++ b/src/Http/Routing/src/Matching/ILEmitTrieJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Matching/INodeBuilderPolicy.cs b/src/Http/Routing/src/Matching/INodeBuilderPolicy.cs index 0272bccc6121..f25c64fa5788 100644 --- a/src/Http/Routing/src/Matching/INodeBuilderPolicy.cs +++ b/src/Http/Routing/src/Matching/INodeBuilderPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/Matching/JumpTable.cs b/src/Http/Routing/src/Matching/JumpTable.cs index 860ca8041799..1cad22dc5688 100644 --- a/src/Http/Routing/src/Matching/JumpTable.cs +++ b/src/Http/Routing/src/Matching/JumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/JumpTableBuilder.cs b/src/Http/Routing/src/Matching/JumpTableBuilder.cs index 889b373336ff..3f7bb52e6059 100644 --- a/src/Http/Routing/src/Matching/JumpTableBuilder.cs +++ b/src/Http/Routing/src/Matching/JumpTableBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/Http/Routing/src/Matching/LinearSearchJumpTable.cs b/src/Http/Routing/src/Matching/LinearSearchJumpTable.cs index 37d5805c63c6..af4d2c12b39c 100644 --- a/src/Http/Routing/src/Matching/LinearSearchJumpTable.cs +++ b/src/Http/Routing/src/Matching/LinearSearchJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Matching/Matcher.cs b/src/Http/Routing/src/Matching/Matcher.cs index 3f3297a65147..040ea74df929 100644 --- a/src/Http/Routing/src/Matching/Matcher.cs +++ b/src/Http/Routing/src/Matching/Matcher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/Matching/MatcherBuilder.cs b/src/Http/Routing/src/Matching/MatcherBuilder.cs index c8368d045618..65514ea9df4d 100644 --- a/src/Http/Routing/src/Matching/MatcherBuilder.cs +++ b/src/Http/Routing/src/Matching/MatcherBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/src/Matching/MatcherFactory.cs b/src/Http/Routing/src/Matching/MatcherFactory.cs index b6da9f091503..3289d3a382e2 100644 --- a/src/Http/Routing/src/Matching/MatcherFactory.cs +++ b/src/Http/Routing/src/Matching/MatcherFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/src/Matching/MatcherPolicy.cs b/src/Http/Routing/src/Matching/MatcherPolicy.cs index c15085aaf0f4..109f087e0c06 100644 --- a/src/Http/Routing/src/Matching/MatcherPolicy.cs +++ b/src/Http/Routing/src/Matching/MatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -36,7 +36,7 @@ public abstract class MatcherPolicy /// true if a dynamic endpoint is found; otherwise returns false. /// /// - /// The presence of signifies that an endpoint that may be replaced + /// The presence of signifies that an endpoint that may be replaced /// during processing by an . /// /// diff --git a/src/Http/Routing/src/Matching/PathSegment.cs b/src/Http/Routing/src/Matching/PathSegment.cs index fd8d8a9223c1..a9c598ccfdfb 100644 --- a/src/Http/Routing/src/Matching/PathSegment.cs +++ b/src/Http/Routing/src/Matching/PathSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing/src/Matching/PolicyJumpTable.cs b/src/Http/Routing/src/Matching/PolicyJumpTable.cs index ee353ada3369..7420a6fe75fb 100644 --- a/src/Http/Routing/src/Matching/PolicyJumpTable.cs +++ b/src/Http/Routing/src/Matching/PolicyJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Http/Routing/src/Matching/PolicyJumpTableEdge.cs b/src/Http/Routing/src/Matching/PolicyJumpTableEdge.cs index 5d2967e52389..30d85a123281 100644 --- a/src/Http/Routing/src/Matching/PolicyJumpTableEdge.cs +++ b/src/Http/Routing/src/Matching/PolicyJumpTableEdge.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/src/Matching/PolicyNodeEdge.cs b/src/Http/Routing/src/Matching/PolicyNodeEdge.cs index e1a0366ad26b..a845cdd92fd8 100644 --- a/src/Http/Routing/src/Matching/PolicyNodeEdge.cs +++ b/src/Http/Routing/src/Matching/PolicyNodeEdge.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/Matching/SingleEntryAsciiJumpTable.cs b/src/Http/Routing/src/Matching/SingleEntryAsciiJumpTable.cs index e385e1885977..ccbcffed745c 100644 --- a/src/Http/Routing/src/Matching/SingleEntryAsciiJumpTable.cs +++ b/src/Http/Routing/src/Matching/SingleEntryAsciiJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/Http/Routing/src/Matching/SingleEntryJumpTable.cs b/src/Http/Routing/src/Matching/SingleEntryJumpTable.cs index 3901807ce502..1c6a2558585c 100644 --- a/src/Http/Routing/src/Matching/SingleEntryJumpTable.cs +++ b/src/Http/Routing/src/Matching/SingleEntryJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing/src/Matching/ZeroEntryJumpTable.cs b/src/Http/Routing/src/Matching/ZeroEntryJumpTable.cs index a2100662e1dd..70c4d90d7ee6 100644 --- a/src/Http/Routing/src/Matching/ZeroEntryJumpTable.cs +++ b/src/Http/Routing/src/Matching/ZeroEntryJumpTable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/src/ModelEndpointDataSource.cs b/src/Http/Routing/src/ModelEndpointDataSource.cs index 5ac84828a259..e97f41ce9040 100644 --- a/src/Http/Routing/src/ModelEndpointDataSource.cs +++ b/src/Http/Routing/src/ModelEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Routing/src/NullRouter.cs b/src/Http/Routing/src/NullRouter.cs index 2823067b5e41..5a653a480350 100644 --- a/src/Http/Routing/src/NullRouter.cs +++ b/src/Http/Routing/src/NullRouter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Http/Routing/src/ParameterPolicyActivator.cs b/src/Http/Routing/src/ParameterPolicyActivator.cs index 020ea17842b8..7db87a8d10a3 100644 --- a/src/Http/Routing/src/ParameterPolicyActivator.cs +++ b/src/Http/Routing/src/ParameterPolicyActivator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/ParameterPolicyFactory.cs b/src/Http/Routing/src/ParameterPolicyFactory.cs index 95212e126309..79d044b2697e 100644 --- a/src/Http/Routing/src/ParameterPolicyFactory.cs +++ b/src/Http/Routing/src/ParameterPolicyFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Http/Routing/src/PathTokenizer.cs b/src/Http/Routing/src/PathTokenizer.cs index 7e2c0f24f2ec..1bb76dbf72f2 100644 --- a/src/Http/Routing/src/PathTokenizer.cs +++ b/src/Http/Routing/src/PathTokenizer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -95,7 +95,7 @@ public StringSegment this[int index] } // If we get here we're at the end of the string. The implementation of .Count should protect us - // from these cases. + // from these cases. Debug.Assert(_path[_path.Length - 1] != '/'); Debug.Assert(currentSegmentIndex == index); diff --git a/src/Http/Routing/src/Patterns/DefaultRoutePatternTransformer.cs b/src/Http/Routing/src/Patterns/DefaultRoutePatternTransformer.cs index 691442976487..7c7b07e8250e 100644 --- a/src/Http/Routing/src/Patterns/DefaultRoutePatternTransformer.cs +++ b/src/Http/Routing/src/Patterns/DefaultRoutePatternTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -125,8 +125,8 @@ private RoutePattern SubstituteRequiredValuesCore(RoutePattern original, RouteVa { // Fail: this route has a constraint that failed. // - // Ex: - // Admin/Home/{action=Index}/{id?} + // Ex: + // Admin/Home/{action=Index}/{id?} // defaults: { area = "Admin" } // constraints: { area = "Blog" } // with required values: { area = "Admin" } @@ -168,7 +168,7 @@ private RoutePattern SubstituteRequiredValuesCore(RoutePattern original, RouteVa // If the required value is *any* then don't remove the default. if (parameter != null && !RoutePattern.IsRequiredValueAny(kvp.Value) && - original.Defaults.TryGetValue(kvp.Key, out var defaultValue) && + original.Defaults.TryGetValue(kvp.Key, out var defaultValue) && !RouteValueEqualityComparer.Default.Equals(kvp.Value, defaultValue)) { if (updatedDefaults == null && updatedSegments == null && updatedParameters == null) diff --git a/src/Http/Routing/src/Patterns/RouteParameterParser.cs b/src/Http/Routing/src/Patterns/RouteParameterParser.cs index 1035d556af75..220eccc4d607 100644 --- a/src/Http/Routing/src/Patterns/RouteParameterParser.cs +++ b/src/Http/Routing/src/Patterns/RouteParameterParser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Routing.Patterns { internal static class RouteParameterParser { - // This code parses the inside of the route parameter + // This code parses the inside of the route parameter // // Ex: {hello} - this method is responsible for parsing 'hello' // The factoring between this class and RoutePatternParser is due to legacy. diff --git a/src/Http/Routing/src/Patterns/RoutePattern.cs b/src/Http/Routing/src/Patterns/RoutePattern.cs index 055a06266989..64836e154388 100644 --- a/src/Http/Routing/src/Patterns/RoutePattern.cs +++ b/src/Http/Routing/src/Patterns/RoutePattern.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -86,8 +86,8 @@ internal RoutePattern( /// Route Template: "{controller=Home}/{action=Index}/{id?}" /// Route Values: { controller = "Store", action = "Index" } /// - /// - /// A route pattern produced in this way will match and generate URL paths like: /Store, + /// + /// A route pattern produced in this way will match and generate URL paths like: /Store, /// /Store/Index, and /Store/Index/17. /// /// diff --git a/src/Http/Routing/src/Patterns/RoutePatternException.cs b/src/Http/Routing/src/Patterns/RoutePatternException.cs index c7c95f068c3a..f99ff8d04ed2 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternException.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternException.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Serialization; diff --git a/src/Http/Routing/src/Patterns/RoutePatternFactory.cs b/src/Http/Routing/src/Patterns/RoutePatternFactory.cs index 359312e68e9c..91e6d913491d 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternFactory.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Patterns/RoutePatternLiteralPart.cs b/src/Http/Routing/src/Patterns/RoutePatternLiteralPart.cs index d9fcb22bc622..b979f046ec36 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternLiteralPart.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternLiteralPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Patterns/RoutePatternMatcher.cs b/src/Http/Routing/src/Patterns/RoutePatternMatcher.cs index 0727c3e3ce3d..cf8bd663aa14 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternMatcher.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Patterns/RoutePatternParameterKind.cs b/src/Http/Routing/src/Patterns/RoutePatternParameterKind.cs index 0eb5b987de7b..6fbb0fa9810b 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternParameterKind.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternParameterKind.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Patterns { diff --git a/src/Http/Routing/src/Patterns/RoutePatternParameterPart.cs b/src/Http/Routing/src/Patterns/RoutePatternParameterPart.cs index 94b95bc9d096..607b7bcf01ce 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternParameterPart.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternParameterPart.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Http/Routing/src/Patterns/RoutePatternParameterPolicyReference.cs b/src/Http/Routing/src/Patterns/RoutePatternParameterPolicyReference.cs index 3fb95983f428..637907146f8b 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternParameterPolicyReference.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternParameterPolicyReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Matching; diff --git a/src/Http/Routing/src/Patterns/RoutePatternParser.cs b/src/Http/Routing/src/Patterns/RoutePatternParser.cs index 52bd72c31823..26e9f69b4abd 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternParser.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternParser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Patterns/RoutePatternPart.cs b/src/Http/Routing/src/Patterns/RoutePatternPart.cs index bc797cfee87a..016d1455451a 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternPart.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternPart.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Patterns { diff --git a/src/Http/Routing/src/Patterns/RoutePatternPartKind.cs b/src/Http/Routing/src/Patterns/RoutePatternPartKind.cs index 1b678193222a..98904cf84be2 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternPartKind.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternPartKind.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Patterns { diff --git a/src/Http/Routing/src/Patterns/RoutePatternPathSegment.cs b/src/Http/Routing/src/Patterns/RoutePatternPathSegment.cs index 4e7b0105185e..d7d1223f0ab4 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternPathSegment.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternPathSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Routing.Patterns /// /// /// Route patterns are made up of URL path segments, delimited by /. A - /// contains a group of + /// contains a group of /// that represent the structure of a segment /// in a route pattern. /// diff --git a/src/Http/Routing/src/Patterns/RoutePatternSeparatorPart.cs b/src/Http/Routing/src/Patterns/RoutePatternSeparatorPart.cs index 5512e62af442..9dd59537c773 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternSeparatorPart.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternSeparatorPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Patterns/RoutePatternTransformer.cs b/src/Http/Routing/src/Patterns/RoutePatternTransformer.cs index b16ab4cb0e3c..a7eaf7b90803 100644 --- a/src/Http/Routing/src/Patterns/RoutePatternTransformer.cs +++ b/src/Http/Routing/src/Patterns/RoutePatternTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Patterns { @@ -20,7 +20,7 @@ public abstract class RoutePatternTransformer /// /// /// Substituting required values into a route pattern is intended for us with a general-purpose - /// parameterize route specification that can match many logical endpoints. Calling + /// parameterize route specification that can match many logical endpoints. Calling /// can produce a derived route pattern /// for each set of route values that corresponds to an endpoint. /// diff --git a/src/Http/Routing/src/Properties/AssemblyInfo.cs b/src/Http/Routing/src/Properties/AssemblyInfo.cs index b75cb41eb44c..4d9f8603345f 100644 --- a/src/Http/Routing/src/Properties/AssemblyInfo.cs +++ b/src/Http/Routing/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Http/Routing/src/RequestDelegateRouteBuilderExtensions.cs b/src/Http/Routing/src/RequestDelegateRouteBuilderExtensions.cs index 81d4dc6c4a0c..2ae7e9515bdd 100644 --- a/src/Http/Routing/src/RequestDelegateRouteBuilderExtensions.cs +++ b/src/Http/Routing/src/RequestDelegateRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Route.cs b/src/Http/Routing/src/Route.cs index 18406ff372aa..80150899f16c 100644 --- a/src/Http/Routing/src/Route.cs +++ b/src/Http/Routing/src/Route.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouteBase.cs b/src/Http/Routing/src/RouteBase.cs index a45c21e1be5c..f6a05da5677f 100644 --- a/src/Http/Routing/src/RouteBase.cs +++ b/src/Http/Routing/src/RouteBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouteBuilder.cs b/src/Http/Routing/src/RouteBuilder.cs index 603504398cb5..8836122f624c 100644 --- a/src/Http/Routing/src/RouteBuilder.cs +++ b/src/Http/Routing/src/RouteBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/RouteCollection.cs b/src/Http/Routing/src/RouteCollection.cs index 1426abfc8089..deeb71c6334c 100644 --- a/src/Http/Routing/src/RouteCollection.cs +++ b/src/Http/Routing/src/RouteCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/RouteConstraintBuilder.cs b/src/Http/Routing/src/RouteConstraintBuilder.cs index 9ff60e52a95b..287db69d6b88 100644 --- a/src/Http/Routing/src/RouteConstraintBuilder.cs +++ b/src/Http/Routing/src/RouteConstraintBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouteConstraintMatcher.cs b/src/Http/Routing/src/RouteConstraintMatcher.cs index 00146bd30e4f..41a2eaf18b7b 100644 --- a/src/Http/Routing/src/RouteConstraintMatcher.cs +++ b/src/Http/Routing/src/RouteConstraintMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouteCreationException.cs b/src/Http/Routing/src/RouteCreationException.cs index 0c47e7e41213..14c79faad9bd 100644 --- a/src/Http/Routing/src/RouteCreationException.cs +++ b/src/Http/Routing/src/RouteCreationException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing/src/RouteEndpoint.cs b/src/Http/Routing/src/RouteEndpoint.cs index db4f9d4d2b37..693f79ec15e9 100644 --- a/src/Http/Routing/src/RouteEndpoint.cs +++ b/src/Http/Routing/src/RouteEndpoint.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -54,7 +54,7 @@ public RouteEndpoint( /// of an endpoint. Endpoints with a lower numeric value of order have higher priority. /// public int Order { get; } - + /// /// Gets the associated with the endpoint. /// diff --git a/src/Http/Routing/src/RouteEndpointBuilder.cs b/src/Http/Routing/src/RouteEndpointBuilder.cs index 2d55c6b1a40d..73dcc9cf7925 100644 --- a/src/Http/Routing/src/RouteEndpointBuilder.cs +++ b/src/Http/Routing/src/RouteEndpointBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Http/Routing/src/RouteHandler.cs b/src/Http/Routing/src/RouteHandler.cs index b6068630803c..a255ff99a039 100644 --- a/src/Http/Routing/src/RouteHandler.cs +++ b/src/Http/Routing/src/RouteHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/RouteNameMetadata.cs b/src/Http/Routing/src/RouteNameMetadata.cs index 737152627e3d..e60b98406adc 100644 --- a/src/Http/Routing/src/RouteNameMetadata.cs +++ b/src/Http/Routing/src/RouteNameMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Http/Routing/src/RouteOptions.cs b/src/Http/Routing/src/RouteOptions.cs index 5ac45a44b12f..5f2ade71a57a 100644 --- a/src/Http/Routing/src/RouteOptions.cs +++ b/src/Http/Routing/src/RouteOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouteValueEqualityComparer.cs b/src/Http/Routing/src/RouteValueEqualityComparer.cs index eebf5b49c00c..f38980ddbe7c 100644 --- a/src/Http/Routing/src/RouteValueEqualityComparer.cs +++ b/src/Http/Routing/src/RouteValueEqualityComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouteValuesAddress.cs b/src/Http/Routing/src/RouteValuesAddress.cs index b628d06841eb..54ce175c47ec 100644 --- a/src/Http/Routing/src/RouteValuesAddress.cs +++ b/src/Http/Routing/src/RouteValuesAddress.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/RouteValuesAddressScheme.cs b/src/Http/Routing/src/RouteValuesAddressScheme.cs index 8cc1a3c15b23..640129c01b07 100644 --- a/src/Http/Routing/src/RouteValuesAddressScheme.cs +++ b/src/Http/Routing/src/RouteValuesAddressScheme.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/RouterMiddleware.cs b/src/Http/Routing/src/RouterMiddleware.cs index b313aca15da0..cb1650b14ab3 100644 --- a/src/Http/Routing/src/RouterMiddleware.cs +++ b/src/Http/Routing/src/RouterMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/src/RoutingFeature.cs b/src/Http/Routing/src/RoutingFeature.cs index 8895bc7cb1bf..8eb288220aa6 100644 --- a/src/Http/Routing/src/RoutingFeature.cs +++ b/src/Http/Routing/src/RoutingFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/RoutingMarkerService.cs b/src/Http/Routing/src/RoutingMarkerService.cs index ab876b0c39c6..63f5266a3534 100644 --- a/src/Http/Routing/src/RoutingMarkerService.cs +++ b/src/Http/Routing/src/RoutingMarkerService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Routing/src/SegmentState.cs b/src/Http/Routing/src/SegmentState.cs index b9d05738c90b..995a2d6d40fa 100644 --- a/src/Http/Routing/src/SegmentState.cs +++ b/src/Http/Routing/src/SegmentState.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/SuppressLinkGenerationMetadata.cs b/src/Http/Routing/src/SuppressLinkGenerationMetadata.cs index 4ff3e86a9f3a..31c32603c711 100644 --- a/src/Http/Routing/src/SuppressLinkGenerationMetadata.cs +++ b/src/Http/Routing/src/SuppressLinkGenerationMetadata.cs @@ -1,10 +1,10 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { /// - /// Represents metadata used during link generation. If is true + /// Represents metadata used during link generation. If is true /// the associated endpoint will not be used for link generation. /// public sealed class SuppressLinkGenerationMetadata : ISuppressLinkGenerationMetadata diff --git a/src/Http/Routing/src/SuppressMatchingMetadata.cs b/src/Http/Routing/src/SuppressMatchingMetadata.cs index a27b9d7a5359..540f748b28f8 100644 --- a/src/Http/Routing/src/SuppressMatchingMetadata.cs +++ b/src/Http/Routing/src/SuppressMatchingMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing { diff --git a/src/Http/Routing/src/Template/DefaultTemplateBinderFactory.cs b/src/Http/Routing/src/Template/DefaultTemplateBinderFactory.cs index b2583d7bb1a2..9522355d14e5 100644 --- a/src/Http/Routing/src/Template/DefaultTemplateBinderFactory.cs +++ b/src/Http/Routing/src/Template/DefaultTemplateBinderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Template/InlineConstraint.cs b/src/Http/Routing/src/Template/InlineConstraint.cs index 2bc4c25327de..92f921c7df3a 100644 --- a/src/Http/Routing/src/Template/InlineConstraint.cs +++ b/src/Http/Routing/src/Template/InlineConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing.Patterns; diff --git a/src/Http/Routing/src/Template/RoutePrecedence.cs b/src/Http/Routing/src/Template/RoutePrecedence.cs index 9f458a339bb9..03957d7acddb 100644 --- a/src/Http/Routing/src/Template/RoutePrecedence.cs +++ b/src/Http/Routing/src/Template/RoutePrecedence.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/Template/RouteTemplate.cs b/src/Http/Routing/src/Template/RouteTemplate.cs index 9c6f0647af67..0476bf499684 100644 --- a/src/Http/Routing/src/Template/RouteTemplate.cs +++ b/src/Http/Routing/src/Template/RouteTemplate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/Template/TemplateBinder.cs b/src/Http/Routing/src/Template/TemplateBinder.cs index ab6386892ae0..ccedd905278e 100644 --- a/src/Http/Routing/src/Template/TemplateBinder.cs +++ b/src/Http/Routing/src/Template/TemplateBinder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Template/TemplateBinderFactory.cs b/src/Http/Routing/src/Template/TemplateBinderFactory.cs index 273b4c4a680f..fef822a7dac3 100644 --- a/src/Http/Routing/src/Template/TemplateBinderFactory.cs +++ b/src/Http/Routing/src/Template/TemplateBinderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Patterns; diff --git a/src/Http/Routing/src/Template/TemplateMatcher.cs b/src/Http/Routing/src/Template/TemplateMatcher.cs index a6657aeaf6e2..657a7f0e9708 100644 --- a/src/Http/Routing/src/Template/TemplateMatcher.cs +++ b/src/Http/Routing/src/Template/TemplateMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/src/Template/TemplateParser.cs b/src/Http/Routing/src/Template/TemplateParser.cs index 4318fc78bd55..6a059e535623 100644 --- a/src/Http/Routing/src/Template/TemplateParser.cs +++ b/src/Http/Routing/src/Template/TemplateParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing.Patterns; diff --git a/src/Http/Routing/src/Template/TemplatePart.cs b/src/Http/Routing/src/Template/TemplatePart.cs index 06a742699089..63112daff986 100644 --- a/src/Http/Routing/src/Template/TemplatePart.cs +++ b/src/Http/Routing/src/Template/TemplatePart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Template/TemplateSegment.cs b/src/Http/Routing/src/Template/TemplateSegment.cs index 70a2e5917cc6..9f92a2478734 100644 --- a/src/Http/Routing/src/Template/TemplateSegment.cs +++ b/src/Http/Routing/src/Template/TemplateSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/Template/TemplateValuesResult.cs b/src/Http/Routing/src/Template/TemplateValuesResult.cs index 98489a93a85c..18a1762a6a09 100644 --- a/src/Http/Routing/src/Template/TemplateValuesResult.cs +++ b/src/Http/Routing/src/Template/TemplateValuesResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Template { diff --git a/src/Http/Routing/src/Tree/InboundMatch.cs b/src/Http/Routing/src/Tree/InboundMatch.cs index 9ddb321de00a..604b1be6c027 100644 --- a/src/Http/Routing/src/Tree/InboundMatch.cs +++ b/src/Http/Routing/src/Tree/InboundMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/InboundRouteEntry.cs b/src/Http/Routing/src/Tree/InboundRouteEntry.cs index 893a461d1c28..efb52600b7d9 100644 --- a/src/Http/Routing/src/Tree/InboundRouteEntry.cs +++ b/src/Http/Routing/src/Tree/InboundRouteEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/LinkGenerationDecisionTree.cs b/src/Http/Routing/src/Tree/LinkGenerationDecisionTree.cs index 2522f14597cf..e7eb90bb0751 100644 --- a/src/Http/Routing/src/Tree/LinkGenerationDecisionTree.cs +++ b/src/Http/Routing/src/Tree/LinkGenerationDecisionTree.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/OutboundMatch.cs b/src/Http/Routing/src/Tree/OutboundMatch.cs index 95653e3bb5ad..e63ca507a13e 100644 --- a/src/Http/Routing/src/Tree/OutboundMatch.cs +++ b/src/Http/Routing/src/Tree/OutboundMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/OutboundMatchResult.cs b/src/Http/Routing/src/Tree/OutboundMatchResult.cs index ba1955552405..36c85ec701e7 100644 --- a/src/Http/Routing/src/Tree/OutboundMatchResult.cs +++ b/src/Http/Routing/src/Tree/OutboundMatchResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Tree { diff --git a/src/Http/Routing/src/Tree/OutboundRouteEntry.cs b/src/Http/Routing/src/Tree/OutboundRouteEntry.cs index 4df5ae351a01..17979afdd18b 100644 --- a/src/Http/Routing/src/Tree/OutboundRouteEntry.cs +++ b/src/Http/Routing/src/Tree/OutboundRouteEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/TreeEnumerator.cs b/src/Http/Routing/src/Tree/TreeEnumerator.cs index 2f7d3dc94ad0..de825aa81006 100644 --- a/src/Http/Routing/src/Tree/TreeEnumerator.cs +++ b/src/Http/Routing/src/Tree/TreeEnumerator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/TreeRouteBuilder.cs b/src/Http/Routing/src/Tree/TreeRouteBuilder.cs index 1f9e9d031329..41612718d12f 100644 --- a/src/Http/Routing/src/Tree/TreeRouteBuilder.cs +++ b/src/Http/Routing/src/Tree/TreeRouteBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/TreeRouter.cs b/src/Http/Routing/src/Tree/TreeRouter.cs index 6ce237949903..2e70a8bffc8e 100644 --- a/src/Http/Routing/src/Tree/TreeRouter.cs +++ b/src/Http/Routing/src/Tree/TreeRouter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/UrlMatchingNode.cs b/src/Http/Routing/src/Tree/UrlMatchingNode.cs index b829bc70365e..df7ef828c07e 100644 --- a/src/Http/Routing/src/Tree/UrlMatchingNode.cs +++ b/src/Http/Routing/src/Tree/UrlMatchingNode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Http/Routing/src/Tree/UrlMatchingTree.cs b/src/Http/Routing/src/Tree/UrlMatchingTree.cs index 0798f70da878..3de6e6074e29 100644 --- a/src/Http/Routing/src/Tree/UrlMatchingTree.cs +++ b/src/Http/Routing/src/Tree/UrlMatchingTree.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/src/UriBuilderContextPooledObjectPolicy.cs b/src/Http/Routing/src/UriBuilderContextPooledObjectPolicy.cs index fdea6b7e64fb..4a8aeabe212c 100644 --- a/src/Http/Routing/src/UriBuilderContextPooledObjectPolicy.cs +++ b/src/Http/Routing/src/UriBuilderContextPooledObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Encodings.Web; using Microsoft.Extensions.ObjectPool; diff --git a/src/Http/Routing/src/UriBuildingContext.cs b/src/Http/Routing/src/UriBuildingContext.cs index d85e5970f97d..4ac0699d2183 100644 --- a/src/Http/Routing/src/UriBuildingContext.cs +++ b/src/Http/Routing/src/UriBuildingContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; @@ -40,7 +40,7 @@ public UriBuildingContext(UrlEncoder urlEncoder) BufferState = SegmentState.Beginning; UriState = SegmentState.Beginning; } - + public bool LowercaseUrls { get; set; } public bool LowercaseQueryStrings { get; set; } diff --git a/src/Http/Routing/test/FunctionalTests/Benchmarks/EndpointRoutingBenchmarkTest.cs b/src/Http/Routing/test/FunctionalTests/Benchmarks/EndpointRoutingBenchmarkTest.cs index 003db4f95f7d..2467bbe41b7e 100644 --- a/src/Http/Routing/test/FunctionalTests/Benchmarks/EndpointRoutingBenchmarkTest.cs +++ b/src/Http/Routing/test/FunctionalTests/Benchmarks/EndpointRoutingBenchmarkTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -30,7 +30,7 @@ public EndpointRoutingBenchmarkTest() // Make sure we are using the right startup var configuration = _host.Services.GetService(); var startupName = configuration["Startup"]; - Assert.Equal(nameof(Benchmarks.StartupUsingEndpointRouting), startupName); + Assert.Equal(nameof(Benchmarks.StartupUsingEndpointRouting), startupName); _testServer = _host.GetTestServer(); _host.Start(); diff --git a/src/Http/Routing/test/FunctionalTests/Benchmarks/RouterBenchmarkTest.cs b/src/Http/Routing/test/FunctionalTests/Benchmarks/RouterBenchmarkTest.cs index ccd11a551a91..e05acf80a065 100644 --- a/src/Http/Routing/test/FunctionalTests/Benchmarks/RouterBenchmarkTest.cs +++ b/src/Http/Routing/test/FunctionalTests/Benchmarks/RouterBenchmarkTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/FunctionalTests/EndpointRoutingIntegrationTest.cs b/src/Http/Routing/test/FunctionalTests/EndpointRoutingIntegrationTest.cs index 860ebac13359..9a1f82673467 100644 --- a/src/Http/Routing/test/FunctionalTests/EndpointRoutingIntegrationTest.cs +++ b/src/Http/Routing/test/FunctionalTests/EndpointRoutingIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/FunctionalTests/EndpointRoutingSampleTest.cs b/src/Http/Routing/test/FunctionalTests/EndpointRoutingSampleTest.cs index aa575ab08483..36594c7120ca 100644 --- a/src/Http/Routing/test/FunctionalTests/EndpointRoutingSampleTest.cs +++ b/src/Http/Routing/test/FunctionalTests/EndpointRoutingSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/FunctionalTests/HostMatchingTests.cs b/src/Http/Routing/test/FunctionalTests/HostMatchingTests.cs index 841c5b74c1e1..1f9b3787a544 100644 --- a/src/Http/Routing/test/FunctionalTests/HostMatchingTests.cs +++ b/src/Http/Routing/test/FunctionalTests/HostMatchingTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/FunctionalTests/MapFallbackTest.cs b/src/Http/Routing/test/FunctionalTests/MapFallbackTest.cs index 70e40f6bf779..2bafe08b8862 100644 --- a/src/Http/Routing/test/FunctionalTests/MapFallbackTest.cs +++ b/src/Http/Routing/test/FunctionalTests/MapFallbackTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Http/Routing/test/FunctionalTests/MinimalActionTest.cs b/src/Http/Routing/test/FunctionalTests/MinimalActionTest.cs index 14bc3d370c5b..9ab38e541bc6 100644 --- a/src/Http/Routing/test/FunctionalTests/MinimalActionTest.cs +++ b/src/Http/Routing/test/FunctionalTests/MinimalActionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/test/FunctionalTests/RouterSampleTest.cs b/src/Http/Routing/test/FunctionalTests/RouterSampleTest.cs index d0b93a896518..7bfb56af2d43 100644 --- a/src/Http/Routing/test/FunctionalTests/RouterSampleTest.cs +++ b/src/Http/Routing/test/FunctionalTests/RouterSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/FunctionalTests/RoutingTestFixture.cs b/src/Http/Routing/test/FunctionalTests/RoutingTestFixture.cs index c0c97347f354..f4c0d63741f7 100644 --- a/src/Http/Routing/test/FunctionalTests/RoutingTestFixture.cs +++ b/src/Http/Routing/test/FunctionalTests/RoutingTestFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/FunctionalTests/WebHostBuilderExtensionsTest.cs b/src/Http/Routing/test/FunctionalTests/WebHostBuilderExtensionsTest.cs index 59373e259478..be75c72910ae 100644 --- a/src/Http/Routing/test/FunctionalTests/WebHostBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/FunctionalTests/WebHostBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Routing/test/UnitTests/Builder/EndpointRoutingApplicationBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/Builder/EndpointRoutingApplicationBuilderExtensionsTest.cs index 7f51f6e9a7cd..4b9d875d0a1c 100644 --- a/src/Http/Routing/test/UnitTests/Builder/EndpointRoutingApplicationBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/Builder/EndpointRoutingApplicationBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Builder/MapEndpointEndpointDataSourceBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/Builder/MapEndpointEndpointDataSourceBuilderExtensionsTest.cs index 9fd992bcd7e3..68a29c2b066e 100644 --- a/src/Http/Routing/test/UnitTests/Builder/MapEndpointEndpointDataSourceBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/Builder/MapEndpointEndpointDataSourceBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Builder/MinimalActionEndpointRouteBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/Builder/MinimalActionEndpointRouteBuilderExtensionsTest.cs index 639ce84713d6..9bfa0fa0bb71 100644 --- a/src/Http/Routing/test/UnitTests/Builder/MinimalActionEndpointRouteBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/Builder/MinimalActionEndpointRouteBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/Routing/test/UnitTests/Builder/RoutingBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/Builder/RoutingBuilderExtensionsTest.cs index ed90d42783a6..5d8299a4426b 100644 --- a/src/Http/Routing/test/UnitTests/Builder/RoutingBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/Builder/RoutingBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -23,7 +23,7 @@ public void UseRouter_ThrowsInvalidOperationException_IfRoutingMarkerServiceIsNo .Returns(Mock.Of()); var router = Mock.Of(); - + // Act & Assert var exception = Assert.Throws( () => applicationBuilderMock.Object.UseRouter(router)); diff --git a/src/Http/Routing/test/UnitTests/Builder/RoutingEndpointConventionBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/Builder/RoutingEndpointConventionBuilderExtensionsTest.cs index 4ce27b93992d..f66cec45c520 100644 --- a/src/Http/Routing/test/UnitTests/Builder/RoutingEndpointConventionBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/Builder/RoutingEndpointConventionBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/CompositeEndpointDataSourceTest.cs b/src/Http/Routing/test/UnitTests/CompositeEndpointDataSourceTest.cs index cd98416c4aa3..f8cf42bb37de 100644 --- a/src/Http/Routing/test/UnitTests/CompositeEndpointDataSourceTest.cs +++ b/src/Http/Routing/test/UnitTests/CompositeEndpointDataSourceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/ConstraintMatcherTest.cs b/src/Http/Routing/test/UnitTests/ConstraintMatcherTest.cs index 59194e3a0bee..949b070350b0 100644 --- a/src/Http/Routing/test/UnitTests/ConstraintMatcherTest.cs +++ b/src/Http/Routing/test/UnitTests/ConstraintMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Constraints/AlphaRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/AlphaRouteConstraintTests.cs index 2ba9ef5c2729..2c3f4acfc33e 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/AlphaRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/AlphaRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/BoolRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/BoolRouteConstraintTests.cs index 32a2aa595ea9..f95890fda8c0 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/BoolRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/BoolRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Constraints/CompositeRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/CompositeRouteConstraintTests.cs index ece4da2c9c86..7a25b9b85ebf 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/CompositeRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/CompositeRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Http/Routing/test/UnitTests/Constraints/ConstraintsTestHelper.cs b/src/Http/Routing/test/UnitTests/Constraints/ConstraintsTestHelper.cs index 6e0d7e7e0d61..6a77eb095ba6 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/ConstraintsTestHelper.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/ConstraintsTestHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Constraints/DateTimeRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/DateTimeRouteConstraintTests.cs index fb34db3994bd..6622e04112e1 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/DateTimeRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/DateTimeRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Constraints/DecimalRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/DecimalRouteConstraintTests.cs index 3975317facd5..9acba3ff82cd 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/DecimalRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/DecimalRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Routing.Constraints; diff --git a/src/Http/Routing/test/UnitTests/Constraints/DoubleRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/DoubleRouteConstraintTests.cs index 7f3a2c065d99..fef54a2dfeec 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/DoubleRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/DoubleRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/FIleNameRouteConstraintTest.cs b/src/Http/Routing/test/UnitTests/Constraints/FIleNameRouteConstraintTest.cs index 4f6b15ac946b..a76878a01f79 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/FIleNameRouteConstraintTest.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/FIleNameRouteConstraintTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/FloatRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/FloatRouteConstraintTests.cs index e3748ace8bef..4ce6a72c1960 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/FloatRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/FloatRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/GuidRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/GuidRouteConstraintTests.cs index d53218a83b37..32f2c871e9e1 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/GuidRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/GuidRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Constraints/HttpMethodRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/HttpMethodRouteConstraintTests.cs index dec37397756b..ba344419af61 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/HttpMethodRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/HttpMethodRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Moq; diff --git a/src/Http/Routing/test/UnitTests/Constraints/IntRouteConstraintsTests.cs b/src/Http/Routing/test/UnitTests/Constraints/IntRouteConstraintsTests.cs index ff70fe21b76a..26e196c73652 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/IntRouteConstraintsTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/IntRouteConstraintsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/LengthRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/LengthRouteConstraintTests.cs index 707056a01c12..c5311a21fe71 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/LengthRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/LengthRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Microsoft.AspNetCore.Testing; diff --git a/src/Http/Routing/test/UnitTests/Constraints/LongRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/LongRouteConstraintTests.cs index 99977ee7530b..ecb2a661cdff 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/LongRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/LongRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/MaxLengthRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/MaxLengthRouteConstraintTests.cs index 5d603705e2f8..c6deec8d757f 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/MaxLengthRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/MaxLengthRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Microsoft.AspNetCore.Testing; diff --git a/src/Http/Routing/test/UnitTests/Constraints/MaxRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/MaxRouteConstraintTests.cs index dc962d09486a..475eaa94e01f 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/MaxRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/MaxRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/MinLengthRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/MinLengthRouteConstraintTests.cs index c8e7bab2de0a..92a411d5e3c9 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/MinLengthRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/MinLengthRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Microsoft.AspNetCore.Testing; diff --git a/src/Http/Routing/test/UnitTests/Constraints/MinRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/MinRouteConstraintTests.cs index b21b2ded7408..772ddc36699a 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/MinRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/MinRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/NonFIleNameRouteConstraintTest.cs b/src/Http/Routing/test/UnitTests/Constraints/NonFIleNameRouteConstraintTest.cs index 78e03ec7d1b0..cf461fb70004 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/NonFIleNameRouteConstraintTest.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/NonFIleNameRouteConstraintTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Constraints/RangeRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/RangeRouteConstraintTests.cs index 99d9c64ba159..137b70324a97 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/RangeRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/RangeRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Microsoft.AspNetCore.Testing; diff --git a/src/Http/Routing/test/UnitTests/Constraints/RegexInlineRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/RegexInlineRouteConstraintTests.cs index a87f6519c79a..9eca3f91c4a3 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/RegexInlineRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/RegexInlineRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Routing.Constraints; diff --git a/src/Http/Routing/test/UnitTests/Constraints/RegexRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/RegexRouteConstraintTests.cs index 7affd5c034ee..3010ce7bdba3 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/RegexRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/RegexRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Constraints/RequiredRouteConstraintTests.cs b/src/Http/Routing/test/UnitTests/Constraints/RequiredRouteConstraintTests.cs index 31ec2b2bf0d6..5d01d515925b 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/RequiredRouteConstraintTests.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/RequiredRouteConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Routing.Constraints; diff --git a/src/Http/Routing/test/UnitTests/Constraints/StringRouteConstraintTest.cs b/src/Http/Routing/test/UnitTests/Constraints/StringRouteConstraintTest.cs index 9e9f1782862c..7ec1294219a1 100644 --- a/src/Http/Routing/test/UnitTests/Constraints/StringRouteConstraintTest.cs +++ b/src/Http/Routing/test/UnitTests/Constraints/StringRouteConstraintTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Routing.Constraints; diff --git a/src/Http/Routing/test/UnitTests/DataSourceDependentCacheTest.cs b/src/Http/Routing/test/UnitTests/DataSourceDependentCacheTest.cs index 3fd4c75191ee..4e74f9ec0666 100644 --- a/src/Http/Routing/test/UnitTests/DataSourceDependentCacheTest.cs +++ b/src/Http/Routing/test/UnitTests/DataSourceDependentCacheTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/DecisionTreeBuilderTest.cs b/src/Http/Routing/test/UnitTests/DecisionTreeBuilderTest.cs index b8eea952535a..025601f83a27 100644 --- a/src/Http/Routing/test/UnitTests/DecisionTreeBuilderTest.cs +++ b/src/Http/Routing/test/UnitTests/DecisionTreeBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/DefaultEndpointDataSourceTests.cs b/src/Http/Routing/test/UnitTests/DefaultEndpointDataSourceTests.cs index 033f32ab5507..82495c7dafdf 100644 --- a/src/Http/Routing/test/UnitTests/DefaultEndpointDataSourceTests.cs +++ b/src/Http/Routing/test/UnitTests/DefaultEndpointDataSourceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/DefaultInlineConstraintResolverTest.cs b/src/Http/Routing/test/UnitTests/DefaultInlineConstraintResolverTest.cs index a50c8aa6d9b7..23673ef31c0e 100644 --- a/src/Http/Routing/test/UnitTests/DefaultInlineConstraintResolverTest.cs +++ b/src/Http/Routing/test/UnitTests/DefaultInlineConstraintResolverTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorProcessTemplateTest.cs b/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorProcessTemplateTest.cs index 45533a36a74b..6d218e2c5296 100644 --- a/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorProcessTemplateTest.cs +++ b/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorProcessTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -390,7 +390,7 @@ public void TryProcessTemplate_GeneratesLowercaseQueryString_SetOnRouteOptions() }; var linkGenerator = CreateLinkGenerator( - configure, + configure, endpoints: new[] { endpoint, }); var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); @@ -967,7 +967,7 @@ public void TryProcessTemplate_InlineConstraints_NonMatchingvalue() ambientValues: DefaultLinkGenerator.GetAmbientValues(httpContext), options: null, result: out var result); - + // Assert Assert.False(success); } diff --git a/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorTest.cs b/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorTest.cs index a6b288d0e9de..69cc3a1db6ec 100644 --- a/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorTest.cs +++ b/src/Http/Routing/test/UnitTests/DefaultLinkGeneratorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/DefaultLinkParserTest.cs b/src/Http/Routing/test/UnitTests/DefaultLinkParserTest.cs index d98ceb6a7723..08ac1eebfbfc 100644 --- a/src/Http/Routing/test/UnitTests/DefaultLinkParserTest.cs +++ b/src/Http/Routing/test/UnitTests/DefaultLinkParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/DefaultParameterPolicyFactoryTest.cs b/src/Http/Routing/test/UnitTests/DefaultParameterPolicyFactoryTest.cs index fdac0bd62d23..9cf2f94ac005 100644 --- a/src/Http/Routing/test/UnitTests/DefaultParameterPolicyFactoryTest.cs +++ b/src/Http/Routing/test/UnitTests/DefaultParameterPolicyFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/test/UnitTests/EndpointFactory.cs b/src/Http/Routing/test/UnitTests/EndpointFactory.cs index 09f07b4809b1..7d20a720cd66 100644 --- a/src/Http/Routing/test/UnitTests/EndpointFactory.cs +++ b/src/Http/Routing/test/UnitTests/EndpointFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/EndpointMiddlewareTest.cs b/src/Http/Routing/test/UnitTests/EndpointMiddlewareTest.cs index 75ddf4145303..5bdef13fe567 100644 --- a/src/Http/Routing/test/UnitTests/EndpointMiddlewareTest.cs +++ b/src/Http/Routing/test/UnitTests/EndpointMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/EndpointNameAddressSchemeTest.cs b/src/Http/Routing/test/UnitTests/EndpointNameAddressSchemeTest.cs index 87893cc21be1..330a4450ac84 100644 --- a/src/Http/Routing/test/UnitTests/EndpointNameAddressSchemeTest.cs +++ b/src/Http/Routing/test/UnitTests/EndpointNameAddressSchemeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/EndpointRoutingMiddlewareTest.cs b/src/Http/Routing/test/UnitTests/EndpointRoutingMiddlewareTest.cs index 48e1157195fd..f09878453d2f 100644 --- a/src/Http/Routing/test/UnitTests/EndpointRoutingMiddlewareTest.cs +++ b/src/Http/Routing/test/UnitTests/EndpointRoutingMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/GlobalSuppressions.cs b/src/Http/Routing/test/UnitTests/GlobalSuppressions.cs index 1fbf99441867..755acac9af53 100644 --- a/src/Http/Routing/test/UnitTests/GlobalSuppressions.cs +++ b/src/Http/Routing/test/UnitTests/GlobalSuppressions.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. + // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given diff --git a/src/Http/Routing/test/UnitTests/InlineRouteParameterParserTests.cs b/src/Http/Routing/test/UnitTests/InlineRouteParameterParserTests.cs index ccd44a8318b7..4a3616540d84 100644 --- a/src/Http/Routing/test/UnitTests/InlineRouteParameterParserTests.cs +++ b/src/Http/Routing/test/UnitTests/InlineRouteParameterParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Internal/DfaGraphWriterTest.cs b/src/Http/Routing/test/UnitTests/Internal/DfaGraphWriterTest.cs index 59162faadfad..cd47f54953a6 100644 --- a/src/Http/Routing/test/UnitTests/Internal/DfaGraphWriterTest.cs +++ b/src/Http/Routing/test/UnitTests/Internal/DfaGraphWriterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Routing/test/UnitTests/LinkGeneratorEndpointNameExtensionsTest.cs b/src/Http/Routing/test/UnitTests/LinkGeneratorEndpointNameExtensionsTest.cs index 99ec7cb1074f..82d998d241b2 100644 --- a/src/Http/Routing/test/UnitTests/LinkGeneratorEndpointNameExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/LinkGeneratorEndpointNameExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/LinkGeneratorIntegrationTest.cs b/src/Http/Routing/test/UnitTests/LinkGeneratorIntegrationTest.cs index c0030796402a..056d64496164 100644 --- a/src/Http/Routing/test/UnitTests/LinkGeneratorIntegrationTest.cs +++ b/src/Http/Routing/test/UnitTests/LinkGeneratorIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; @@ -316,7 +316,7 @@ public void GetPathByAddress_LinkToPage_GeneratesPath() // Assert Assert.Equal("/Pages", path); } - + [Fact] public void GetPathByAddress_LinkToPageInArea_GeneratesPath() { diff --git a/src/Http/Routing/test/UnitTests/LinkGeneratorRouteValuesAddressExtensionsTest.cs b/src/Http/Routing/test/UnitTests/LinkGeneratorRouteValuesAddressExtensionsTest.cs index 181bb75601b7..02c344b499bd 100644 --- a/src/Http/Routing/test/UnitTests/LinkGeneratorRouteValuesAddressExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/LinkGeneratorRouteValuesAddressExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/LinkGeneratorTestBase.cs b/src/Http/Routing/test/UnitTests/LinkGeneratorTestBase.cs index e60379480f3f..4dbced25f80f 100644 --- a/src/Http/Routing/test/UnitTests/LinkGeneratorTestBase.cs +++ b/src/Http/Routing/test/UnitTests/LinkGeneratorTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/LinkParserEndpointNameExtensionsTest.cs b/src/Http/Routing/test/UnitTests/LinkParserEndpointNameExtensionsTest.cs index bdc650d77ba8..096cd45fb5df 100644 --- a/src/Http/Routing/test/UnitTests/LinkParserEndpointNameExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/LinkParserEndpointNameExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Matching; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/LinkParserTestBase.cs b/src/Http/Routing/test/UnitTests/LinkParserTestBase.cs index 6cf48435b487..b2c6d46b300c 100644 --- a/src/Http/Routing/test/UnitTests/LinkParserTestBase.cs +++ b/src/Http/Routing/test/UnitTests/LinkParserTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Logging/WriteContext.cs b/src/Http/Routing/test/UnitTests/Logging/WriteContext.cs index 4a5fa51e0475..4d971f120849 100644 --- a/src/Http/Routing/test/UnitTests/Logging/WriteContext.cs +++ b/src/Http/Routing/test/UnitTests/Logging/WriteContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/MatcherPolicyTest.cs b/src/Http/Routing/test/UnitTests/MatcherPolicyTest.cs index ee618241f6c7..cb462e0e908d 100644 --- a/src/Http/Routing/test/UnitTests/MatcherPolicyTest.cs +++ b/src/Http/Routing/test/UnitTests/MatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Matching/AsciiTest.cs b/src/Http/Routing/test/UnitTests/Matching/AsciiTest.cs index c6266183a80e..9ca3ba50eeb7 100644 --- a/src/Http/Routing/test/UnitTests/Matching/AsciiTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/AsciiTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; @@ -50,7 +50,7 @@ public void IsAscii_ReturnsFalseForNonAscii() public void AsciiIgnoreCaseEquals_ReturnsTrue(char x, char y) { // Arrange - + // Act var result = Ascii.AsciiIgnoreCaseEquals(x, y); @@ -65,7 +65,7 @@ public void AsciiIgnoreCaseEquals_ReturnsTrue(char x, char y) [InlineData('C', 'D')] // Non-letter + casing difference - 'a' and 'A' are 32 bits apart and so are ' ' and '@' - [InlineData(' ', '@')] + [InlineData(' ', '@')] [InlineData('\u0080', '\u0080' + 32)] // Outside of ASCII range public void AsciiIgnoreCaseEquals_ReturnsFalse(char x, char y) { diff --git a/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcher.cs b/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcher.cs index 25e6431a3a68..5473876c2a63 100644 --- a/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcher.cs +++ b/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherBuilder.cs b/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherBuilder.cs index 9259cdac8f15..cd295f21a273 100644 --- a/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherBuilder.cs +++ b/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherConformanceTest.cs b/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherConformanceTest.cs index 73f03c01a7e8..f3cd6b4be6a9 100644 --- a/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherConformanceTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/BarebonesMatcherConformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs b/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs index 3f957bfbe05a..fef7ab0f8e4f 100644 --- a/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/CandidateSetTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/DataSourceDependentMatcherTest.cs b/src/Http/Routing/test/UnitTests/Matching/DataSourceDependentMatcherTest.cs index 0e13e724a566..42374fbe1c1a 100644 --- a/src/Http/Routing/test/UnitTests/Matching/DataSourceDependentMatcherTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/DataSourceDependentMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/DefaultEndpointSelectorTest.cs b/src/Http/Routing/test/UnitTests/Matching/DefaultEndpointSelectorTest.cs index 722e10efa712..a90e4813822a 100644 --- a/src/Http/Routing/test/UnitTests/Matching/DefaultEndpointSelectorTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/DefaultEndpointSelectorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/DfaMatcherBuilderTest.cs b/src/Http/Routing/test/UnitTests/Matching/DfaMatcherBuilderTest.cs index 7372e4d3b3a1..c98bcdc09efa 100644 --- a/src/Http/Routing/test/UnitTests/Matching/DfaMatcherBuilderTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/DfaMatcherBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/DfaMatcherConformanceTest.cs b/src/Http/Routing/test/UnitTests/Matching/DfaMatcherConformanceTest.cs index 5af5ca25fe9f..4281b33c25ae 100644 --- a/src/Http/Routing/test/UnitTests/Matching/DfaMatcherConformanceTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/DfaMatcherConformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Routing/test/UnitTests/Matching/DfaMatcherTest.cs b/src/Http/Routing/test/UnitTests/Matching/DfaMatcherTest.cs index 034f9c18aabb..b0281ad9cf13 100644 --- a/src/Http/Routing/test/UnitTests/Matching/DfaMatcherTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/DfaMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/DictionaryJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/DictionaryJumpTableTest.cs index d04ca502c74a..e057dedb32f9 100644 --- a/src/Http/Routing/test/UnitTests/Matching/DictionaryJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/DictionaryJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/EndpointComparerTest.cs b/src/Http/Routing/test/UnitTests/Matching/EndpointComparerTest.cs index 8fc0a56a6672..a1364bebc5aa 100644 --- a/src/Http/Routing/test/UnitTests/Matching/EndpointComparerTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/EndpointComparerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Matching/EndpointMetadataComparerTest.cs b/src/Http/Routing/test/UnitTests/Matching/EndpointMetadataComparerTest.cs index 918262e4691b..25ba6e35ef5a 100644 --- a/src/Http/Routing/test/UnitTests/Matching/EndpointMetadataComparerTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/EndpointMetadataComparerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Matching/FastPathTokenizerTest.cs b/src/Http/Routing/test/UnitTests/Matching/FastPathTokenizerTest.cs index 51e2489ee41f..7276f744b76c 100644 --- a/src/Http/Routing/test/UnitTests/Matching/FastPathTokenizerTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/FastPathTokenizerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/Routing/test/UnitTests/Matching/FullFeaturedMatcherConformanceTest.cs b/src/Http/Routing/test/UnitTests/Matching/FullFeaturedMatcherConformanceTest.cs index 970a4e92ba00..eb5e343532d4 100644 --- a/src/Http/Routing/test/UnitTests/Matching/FullFeaturedMatcherConformanceTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/FullFeaturedMatcherConformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs index 3d46193f6bf7..b42026ed962d 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyINodeBuilderPolicyIntegrationTest.cs b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyINodeBuilderPolicyIntegrationTest.cs index 36df824df154..3ef23079f9cb 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyINodeBuilderPolicyIntegrationTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyINodeBuilderPolicyIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIntegrationTestBase.cs b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIntegrationTestBase.cs index 580da7ff90e1..bb0647aab7f9 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIntegrationTestBase.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyIntegrationTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyTest.cs b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyTest.cs index 1f30201416a9..b20597aa9145 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HostMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs index b9d6f4c6bbbd..d26f4ddd1120 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIEndpointSelectorPolicyIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyINodeBuilderPolicyIntegrationTest.cs b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyINodeBuilderPolicyIntegrationTest.cs index 4e18493c11f8..49934d3ecf2b 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyINodeBuilderPolicyIntegrationTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyINodeBuilderPolicyIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIntegrationTestBase.cs b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIntegrationTestBase.cs index f7e94315eff0..58a6293ee7b2 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIntegrationTestBase.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyIntegrationTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyTest.cs b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyTest.cs index c3742f1840dc..b6dbfcdad4ae 100644 --- a/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/HttpMethodMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -32,7 +32,7 @@ public void INodeBuilderPolicy_AppliesToNode_EndpointWithoutMetadata_ReturnsFals public void INodeBuilderPolicy_AppliesToNode_EndpointWithoutHttpMethods_ReturnsFalse() { // Arrange - var endpoints = new[] + var endpoints = new[] { CreateEndpoint("/", new HttpMethodMetadata(Array.Empty())), }; diff --git a/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieFactoryTest.cs b/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieFactoryTest.cs index f2eb13df81a4..0b52ef77e903 100644 --- a/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieFactoryTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Routing.Matching public class ILEmitTrieFactoryTest { // We never vectorize on 32bit, so that's part of the test. - [Fact] + [Fact] public void ShouldVectorize_ReturnsTrue_ForLargeEnoughStrings() { // Arrange diff --git a/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieJumpTableTest.cs index 4a435514ab16..b182730a2305 100644 --- a/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/ILEmitTrieJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Moq; using System.Threading.Tasks; diff --git a/src/Http/Routing/test/UnitTests/Matching/LinearSearchJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/LinearSearchJumpTableTest.cs index b7557488a415..c1ba75dbb8ad 100644 --- a/src/Http/Routing/test/UnitTests/Matching/LinearSearchJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/LinearSearchJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching diff --git a/src/Http/Routing/test/UnitTests/Matching/MatcherAssert.cs b/src/Http/Routing/test/UnitTests/Matching/MatcherAssert.cs index 94cfc655092c..35c3ab87e4c3 100644 --- a/src/Http/Routing/test/UnitTests/Matching/MatcherAssert.cs +++ b/src/Http/Routing/test/UnitTests/Matching/MatcherAssert.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.MultipleEndpoint.cs b/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.MultipleEndpoint.cs index 5379da29389c..faf86cce412a 100644 --- a/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.MultipleEndpoint.cs +++ b/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.MultipleEndpoint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.SingleEndpoint.cs b/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.SingleEndpoint.cs index 5efa85aab2d8..1813f9f3e6b9 100644 --- a/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.SingleEndpoint.cs +++ b/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.SingleEndpoint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.cs b/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.cs index 29b6fc931035..0eebfe66e65d 100644 --- a/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/MatcherConformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -32,7 +32,7 @@ internal static IServiceProvider CreateServices() } internal static RouteEndpoint CreateEndpoint( - string template, + string template, object defaults = null, object constraints = null, int? order = null) diff --git a/src/Http/Routing/test/UnitTests/Matching/MultipleEntryJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/MultipleEntryJumpTableTest.cs index 1a1a00de2add..bec41c3f0575 100644 --- a/src/Http/Routing/test/UnitTests/Matching/MultipleEntryJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/MultipleEntryJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Matching/NonVectorizedILEmitTrieJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/NonVectorizedILEmitTrieJumpTableTest.cs index 36927d0e7535..c90b67dfc4e5 100644 --- a/src/Http/Routing/test/UnitTests/Matching/NonVectorizedILEmitTrieJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/NonVectorizedILEmitTrieJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/RouteMatcher.cs b/src/Http/Routing/test/UnitTests/Matching/RouteMatcher.cs index e18035d718ad..474551f4a8f1 100644 --- a/src/Http/Routing/test/UnitTests/Matching/RouteMatcher.cs +++ b/src/Http/Routing/test/UnitTests/Matching/RouteMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/RouteMatcherBuilder.cs b/src/Http/Routing/test/UnitTests/Matching/RouteMatcherBuilder.cs index cf888a2cfa18..ac23e13bf419 100644 --- a/src/Http/Routing/test/UnitTests/Matching/RouteMatcherBuilder.cs +++ b/src/Http/Routing/test/UnitTests/Matching/RouteMatcherBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/RouteMatcherConformanceTest.cs b/src/Http/Routing/test/UnitTests/Matching/RouteMatcherConformanceTest.cs index fad408f5a1bc..4b7b3a7ac2fd 100644 --- a/src/Http/Routing/test/UnitTests/Matching/RouteMatcherConformanceTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/RouteMatcherConformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Matching/SingleEntryAsciiJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/SingleEntryAsciiJumpTableTest.cs index bd068178e992..b8ad193fa639 100644 --- a/src/Http/Routing/test/UnitTests/Matching/SingleEntryAsciiJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/SingleEntryAsciiJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTest.cs index 77c3366f709f..78b50d120a0c 100644 --- a/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTestBase.cs b/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTestBase.cs index dd3c5953a6d8..4310c0a6dfe9 100644 --- a/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTestBase.cs +++ b/src/Http/Routing/test/UnitTests/Matching/SingleEntryJumpTableTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcher.cs b/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcher.cs index 3d9112274baf..eca1b9649482 100644 --- a/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcher.cs +++ b/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherBuilder.cs b/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherBuilder.cs index ad1da64fc644..00c239a634c8 100644 --- a/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherBuilder.cs +++ b/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherConformanceTest.cs b/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherConformanceTest.cs index dcf0d7e5ffdc..1ae231a324e2 100644 --- a/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherConformanceTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/TreeRouterMatcherConformanceTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Xunit; diff --git a/src/Http/Routing/test/UnitTests/Matching/VectorizedILEmitTrieJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/VectorizedILEmitTrieJumpTableTest.cs index 3661b158ab05..d0321db27691 100644 --- a/src/Http/Routing/test/UnitTests/Matching/VectorizedILEmitTrieJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/VectorizedILEmitTrieJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.Matching { diff --git a/src/Http/Routing/test/UnitTests/Matching/ZeroEntryJumpTableTest.cs b/src/Http/Routing/test/UnitTests/Matching/ZeroEntryJumpTableTest.cs index 036fef0c03af..1db558483e8b 100644 --- a/src/Http/Routing/test/UnitTests/Matching/ZeroEntryJumpTableTest.cs +++ b/src/Http/Routing/test/UnitTests/Matching/ZeroEntryJumpTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Routing/test/UnitTests/PathTokenizerTest.cs b/src/Http/Routing/test/UnitTests/PathTokenizerTest.cs index fb16131979a1..8d29d7142f78 100644 --- a/src/Http/Routing/test/UnitTests/PathTokenizerTest.cs +++ b/src/Http/Routing/test/UnitTests/PathTokenizerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.Extensions.Primitives; diff --git a/src/Http/Routing/test/UnitTests/Patterns/DefaultRoutePatternTransformerTest.cs b/src/Http/Routing/test/UnitTests/Patterns/DefaultRoutePatternTransformerTest.cs index 7ca0bce62784..9b17791d4110 100644 --- a/src/Http/Routing/test/UnitTests/Patterns/DefaultRoutePatternTransformerTest.cs +++ b/src/Http/Routing/test/UnitTests/Patterns/DefaultRoutePatternTransformerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Constraints; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Http/Routing/test/UnitTests/Patterns/InlineRouteParameterParserTest.cs b/src/Http/Routing/test/UnitTests/Patterns/InlineRouteParameterParserTest.cs index 1a4b5dddb8a1..a65c940c3104 100644 --- a/src/Http/Routing/test/UnitTests/Patterns/InlineRouteParameterParserTest.cs +++ b/src/Http/Routing/test/UnitTests/Patterns/InlineRouteParameterParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Routing.Constraints; diff --git a/src/Http/Routing/test/UnitTests/Patterns/RoutePatternFactoryTest.cs b/src/Http/Routing/test/UnitTests/Patterns/RoutePatternFactoryTest.cs index faace7a6b0a0..b0bbc3b0cb7d 100644 --- a/src/Http/Routing/test/UnitTests/Patterns/RoutePatternFactoryTest.cs +++ b/src/Http/Routing/test/UnitTests/Patterns/RoutePatternFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -618,10 +618,10 @@ public void Parse_WithRequiredValues_ThrowsForNonParameterNonDefault() Assert.Equal( "No corresponding parameter or default value could be found for the required value " + "'area=Admin'. A non-null required value must correspond to a route parameter or the " + - "route pattern must have a matching default value.", + "route pattern must have a matching default value.", exception.Message); } - + [Fact] public void ParameterPart_ParameterNameAndDefaultAndParameterKindAndArrayOfParameterPolicies_ShouldMakeCopyOfParameterPolicies() { diff --git a/src/Http/Routing/test/UnitTests/Patterns/RoutePatternMatcherTest.cs b/src/Http/Routing/test/UnitTests/Patterns/RoutePatternMatcherTest.cs index b9a3f7f99788..f6e4940b1b29 100644 --- a/src/Http/Routing/test/UnitTests/Patterns/RoutePatternMatcherTest.cs +++ b/src/Http/Routing/test/UnitTests/Patterns/RoutePatternMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Routing.Patterns; diff --git a/src/Http/Routing/test/UnitTests/Patterns/RoutePatternParserTest.cs b/src/Http/Routing/test/UnitTests/Patterns/RoutePatternParserTest.cs index fce018c97119..42b0310eda25 100644 --- a/src/Http/Routing/test/UnitTests/Patterns/RoutePatternParserTest.cs +++ b/src/Http/Routing/test/UnitTests/Patterns/RoutePatternParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/RequestDelegateRouteBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/RequestDelegateRouteBuilderExtensionsTest.cs index 7fc59876648a..ee1034d0ccd5 100644 --- a/src/Http/Routing/test/UnitTests/RequestDelegateRouteBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/RequestDelegateRouteBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/RouteBuilderTest.cs b/src/Http/Routing/test/UnitTests/RouteBuilderTest.cs index 609ae8db5063..381aa1d8658c 100644 --- a/src/Http/Routing/test/UnitTests/RouteBuilderTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Http/Routing/test/UnitTests/RouteCollectionTest.cs b/src/Http/Routing/test/UnitTests/RouteCollectionTest.cs index e5ab4035d1d2..8082af30f079 100644 --- a/src/Http/Routing/test/UnitTests/RouteCollectionTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteCollectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -104,7 +104,7 @@ public void GetVirtualPath_CanLowerCaseUrls_QueryStrings_BasedOnOptions( bool lowercaseUrls, bool lowercaseQueryStrings, bool appendTrailingSlash) { - // Arrange + // Arrange var target = new Mock(MockBehavior.Strict); target .Setup(e => e.GetVirtualPath(It.IsAny())) diff --git a/src/Http/Routing/test/UnitTests/RouteConstraintBuilderTest.cs b/src/Http/Routing/test/UnitTests/RouteConstraintBuilderTest.cs index 6fb5df1c3d5a..66eb7ada1874 100644 --- a/src/Http/Routing/test/UnitTests/RouteConstraintBuilderTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteConstraintBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/RouteEndpointBuilderTest.cs b/src/Http/Routing/test/UnitTests/RouteEndpointBuilderTest.cs index 41e31a9f3409..df43e7d4b1f5 100644 --- a/src/Http/Routing/test/UnitTests/RouteEndpointBuilderTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteEndpointBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/RouteOptionsTests.cs b/src/Http/Routing/test/UnitTests/RouteOptionsTests.cs index 0a480b41ce18..0169de5da2a6 100644 --- a/src/Http/Routing/test/UnitTests/RouteOptionsTests.cs +++ b/src/Http/Routing/test/UnitTests/RouteOptionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/RouteTest.cs b/src/Http/Routing/test/UnitTests/RouteTest.cs index f83d50c5e1e2..e1f4356bf8b9 100644 --- a/src/Http/Routing/test/UnitTests/RouteTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Routing/test/UnitTests/RouteValueEqualityComparerTest.cs b/src/Http/Routing/test/UnitTests/RouteValueEqualityComparerTest.cs index 4f6dc0a87d01..b00e81234052 100644 --- a/src/Http/Routing/test/UnitTests/RouteValueEqualityComparerTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteValueEqualityComparerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Http/Routing/test/UnitTests/RouteValuesAddressSchemeTest.cs b/src/Http/Routing/test/UnitTests/RouteValuesAddressSchemeTest.cs index 302106275044..b7127935f41c 100644 --- a/src/Http/Routing/test/UnitTests/RouteValuesAddressSchemeTest.cs +++ b/src/Http/Routing/test/UnitTests/RouteValuesAddressSchemeTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Http/Routing/test/UnitTests/RouterMiddlewareTest.cs b/src/Http/Routing/test/UnitTests/RouterMiddlewareTest.cs index 41d4bf0ba1e7..d72963238abb 100644 --- a/src/Http/Routing/test/UnitTests/RouterMiddlewareTest.cs +++ b/src/Http/Routing/test/UnitTests/RouterMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -61,7 +61,7 @@ public async Task RoutingFeatureSetInIRouter() // Assert Assert.True(routeHandlerExecuted); - + } [Fact] diff --git a/src/Http/Routing/test/UnitTests/RoutingEndpointConventionBuilderExtensionsTests.cs b/src/Http/Routing/test/UnitTests/RoutingEndpointConventionBuilderExtensionsTests.cs index de02bb47de08..58c806302eb1 100644 --- a/src/Http/Routing/test/UnitTests/RoutingEndpointConventionBuilderExtensionsTests.cs +++ b/src/Http/Routing/test/UnitTests/RoutingEndpointConventionBuilderExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Template/RoutePatternPrecedenceTests.cs b/src/Http/Routing/test/UnitTests/Template/RoutePatternPrecedenceTests.cs index b0fa51866219..023b9ab2abad 100644 --- a/src/Http/Routing/test/UnitTests/Template/RoutePatternPrecedenceTests.cs +++ b/src/Http/Routing/test/UnitTests/Template/RoutePatternPrecedenceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing.Patterns; diff --git a/src/Http/Routing/test/UnitTests/Template/RoutePrecedenceTestsBase.cs b/src/Http/Routing/test/UnitTests/Template/RoutePrecedenceTestsBase.cs index b5c2f87db1a2..545564daa3f5 100644 --- a/src/Http/Routing/test/UnitTests/Template/RoutePrecedenceTestsBase.cs +++ b/src/Http/Routing/test/UnitTests/Template/RoutePrecedenceTestsBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/Routing/test/UnitTests/Template/RouteTemplatePrecedenceTests.cs b/src/Http/Routing/test/UnitTests/Template/RouteTemplatePrecedenceTests.cs index 98157fa66933..2dab105abf53 100644 --- a/src/Http/Routing/test/UnitTests/Template/RouteTemplatePrecedenceTests.cs +++ b/src/Http/Routing/test/UnitTests/Template/RouteTemplatePrecedenceTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing/test/UnitTests/Template/TemplateBinderTests.cs b/src/Http/Routing/test/UnitTests/Template/TemplateBinderTests.cs index 3d6cf5848e42..ffb585da5060 100644 --- a/src/Http/Routing/test/UnitTests/Template/TemplateBinderTests.cs +++ b/src/Http/Routing/test/UnitTests/Template/TemplateBinderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Template/TemplateMatcherTests.cs b/src/Http/Routing/test/UnitTests/Template/TemplateMatcherTests.cs index 6dd6d564cf2f..5b6235375e68 100644 --- a/src/Http/Routing/test/UnitTests/Template/TemplateMatcherTests.cs +++ b/src/Http/Routing/test/UnitTests/Template/TemplateMatcherTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/Template/TemplateParserTests.cs b/src/Http/Routing/test/UnitTests/Template/TemplateParserTests.cs index 2ac022c2122a..1fa3c1650104 100644 --- a/src/Http/Routing/test/UnitTests/Template/TemplateParserTests.cs +++ b/src/Http/Routing/test/UnitTests/Template/TemplateParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/Template/TemplateSegmentTest.cs b/src/Http/Routing/test/UnitTests/Template/TemplateSegmentTest.cs index 62f56f20b7b9..b5a5e8b3f1be 100644 --- a/src/Http/Routing/test/UnitTests/Template/TemplateSegmentTest.cs +++ b/src/Http/Routing/test/UnitTests/Template/TemplateSegmentTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing.Patterns; diff --git a/src/Http/Routing/test/UnitTests/TemplateParserDefaultValuesTests.cs b/src/Http/Routing/test/UnitTests/TemplateParserDefaultValuesTests.cs index 6cd29194a541..760c46aa77f6 100644 --- a/src/Http/Routing/test/UnitTests/TemplateParserDefaultValuesTests.cs +++ b/src/Http/Routing/test/UnitTests/TemplateParserDefaultValuesTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; diff --git a/src/Http/Routing/test/UnitTests/TestConstants.cs b/src/Http/Routing/test/UnitTests/TestConstants.cs index 0a32a951556e..6a09494aa57a 100644 --- a/src/Http/Routing/test/UnitTests/TestConstants.cs +++ b/src/Http/Routing/test/UnitTests/TestConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/CapturingConstraint.cs b/src/Http/Routing/test/UnitTests/TestObjects/CapturingConstraint.cs index 94834493df71..501a27ed2363 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/CapturingConstraint.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/CapturingConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/DynamicEndpointDataSource.cs b/src/Http/Routing/test/UnitTests/TestObjects/DynamicEndpointDataSource.cs index 545988387524..c4d217541360 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/DynamicEndpointDataSource.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/DynamicEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/SlugifyParameterTransformer.cs b/src/Http/Routing/test/UnitTests/TestObjects/SlugifyParameterTransformer.cs index 5b3a80086120..209b4a106bf3 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/SlugifyParameterTransformer.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/SlugifyParameterTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/TestMatcher.cs b/src/Http/Routing/test/UnitTests/TestObjects/TestMatcher.cs index 39263ef05361..4982b8d8b683 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/TestMatcher.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/TestMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/TestMatcherFactory.cs b/src/Http/Routing/test/UnitTests/TestObjects/TestMatcherFactory.cs index 17fd346132bd..9894c590f08b 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/TestMatcherFactory.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/TestMatcherFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Matching; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/TestServiceProvider.cs b/src/Http/Routing/test/UnitTests/TestObjects/TestServiceProvider.cs index a9470edb2414..95a82088d9a8 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/TestServiceProvider.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/TestServiceProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Http/Routing/test/UnitTests/TestObjects/UpperCaseParameterTransform.cs b/src/Http/Routing/test/UnitTests/TestObjects/UpperCaseParameterTransform.cs index c929313e3b77..b5bb1e8064c6 100644 --- a/src/Http/Routing/test/UnitTests/TestObjects/UpperCaseParameterTransform.cs +++ b/src/Http/Routing/test/UnitTests/TestObjects/UpperCaseParameterTransform.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Routing.TestObjects { diff --git a/src/Http/Routing/test/UnitTests/Tree/LinkGenerationDecisionTreeTest.cs b/src/Http/Routing/test/UnitTests/Tree/LinkGenerationDecisionTreeTest.cs index 3b6fd08b43d6..e01c33908c0a 100644 --- a/src/Http/Routing/test/UnitTests/Tree/LinkGenerationDecisionTreeTest.cs +++ b/src/Http/Routing/test/UnitTests/Tree/LinkGenerationDecisionTreeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -684,7 +684,7 @@ public void GetMatches_LinkToPageFromController_WithActionValue() // Act var matches = tree.GetMatches(context.Values, context.AmbientValues).Select(m => m.Match).ToList(); - + // Assert Assert.Empty(matches); } diff --git a/src/Http/Routing/test/UnitTests/Tree/TreeRouteBuilderTest.cs b/src/Http/Routing/test/UnitTests/Tree/TreeRouteBuilderTest.cs index f628187fa4da..6c462613bf39 100644 --- a/src/Http/Routing/test/UnitTests/Tree/TreeRouteBuilderTest.cs +++ b/src/Http/Routing/test/UnitTests/Tree/TreeRouteBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Template; using Microsoft.AspNetCore.Testing; diff --git a/src/Http/Routing/test/UnitTests/Tree/TreeRouterTest.cs b/src/Http/Routing/test/UnitTests/Tree/TreeRouterTest.cs index af7b091f5abe..3a20de866f1d 100644 --- a/src/Http/Routing/test/UnitTests/Tree/TreeRouterTest.cs +++ b/src/Http/Routing/test/UnitTests/Tree/TreeRouterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/UnitTests/UriBuildingContextTest.cs b/src/Http/Routing/test/UnitTests/UriBuildingContextTest.cs index 10aae56f21ff..e24fd5306cf6 100644 --- a/src/Http/Routing/test/UnitTests/UriBuildingContextTest.cs +++ b/src/Http/Routing/test/UnitTests/UriBuildingContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.WebEncoders.Testing; using Xunit; diff --git a/src/Http/Routing/test/testassets/Benchmarks/Program.cs b/src/Http/Routing/test/testassets/Benchmarks/Program.cs index 49f9b41ee246..0a2901b1500f 100644 --- a/src/Http/Routing/test/testassets/Benchmarks/Program.cs +++ b/src/Http/Routing/test/testassets/Benchmarks/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/Benchmarks/StartupUsingEndpointRouting.cs b/src/Http/Routing/test/testassets/Benchmarks/StartupUsingEndpointRouting.cs index 0b7db66f1424..cbda5fdc451f 100644 --- a/src/Http/Routing/test/testassets/Benchmarks/StartupUsingEndpointRouting.cs +++ b/src/Http/Routing/test/testassets/Benchmarks/StartupUsingEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Routing/test/testassets/Benchmarks/StartupUsingRouter.cs b/src/Http/Routing/test/testassets/Benchmarks/StartupUsingRouter.cs index ef1528bf1bca..ff9a425a74fa 100644 --- a/src/Http/Routing/test/testassets/Benchmarks/StartupUsingRouter.cs +++ b/src/Http/Routing/test/testassets/Benchmarks/StartupUsingRouter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkConfigurationBuilder.cs b/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkConfigurationBuilder.cs index 5bcd785651e6..65bd086f5c9a 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkConfigurationBuilder.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkConfigurationBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Routing.Patterns; @@ -21,7 +21,7 @@ public void AddPattern(string pattern) } public void AddPattern(RoutePattern pattern) - { + { _dataSource.Patterns.Add(pattern); } diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointDataSource.cs b/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointDataSource.cs index 9a064d4a3191..2432aefe5829 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointDataSource.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointRouteBuilderExtensions.cs b/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointRouteBuilderExtensions.cs index 2a430a28ce4c..47cb6ea28b23 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointRouteBuilderExtensions.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/Framework/FrameworkEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/EndpointRouteBuilderExtensions.cs b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/EndpointRouteBuilderExtensions.cs index 03bc1f1125d6..8134a8c3ab39 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/EndpointRouteBuilderExtensions.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/EndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloAppBuilderExtensions.cs b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloAppBuilderExtensions.cs index e1a587d5cab3..2c56b23a8cff 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloAppBuilderExtensions.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloAppBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloMiddleware.cs b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloMiddleware.cs index 6a4587e50c67..7f2f28c601f9 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloMiddleware.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloOptions.cs b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloOptions.cs index 49f8b5c5dfa0..672b27769d32 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloOptions.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/HelloExtension/HelloOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RoutingSample.Web.HelloExtension { diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/Program.cs b/src/Http/Routing/test/testassets/RoutingSandbox/Program.cs index edcc06274554..4d02d0d815e9 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/Program.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/SlugifyParameterTransformer.cs b/src/Http/Routing/test/testassets/RoutingSandbox/SlugifyParameterTransformer.cs index 3eb0c89e7375..693db12bd24c 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/SlugifyParameterTransformer.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/SlugifyParameterTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/UseEndpointRoutingStartup.cs b/src/Http/Routing/test/testassets/RoutingSandbox/UseEndpointRoutingStartup.cs index f196871bb0fd..e589428ab866 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/UseEndpointRoutingStartup.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/UseEndpointRoutingStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingSandbox/UseRouterStartup.cs b/src/Http/Routing/test/testassets/RoutingSandbox/UseRouterStartup.cs index e42208d85010..a74b7f493e0b 100644 --- a/src/Http/Routing/test/testassets/RoutingSandbox/UseRouterStartup.cs +++ b/src/Http/Routing/test/testassets/RoutingSandbox/UseRouterStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.RegularExpressions; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/EndsWithStringRouteConstraint.cs b/src/Http/Routing/test/testassets/RoutingWebSite/EndsWithStringRouteConstraint.cs index efb8431e2aa0..0fca7c55eb21 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/EndsWithStringRouteConstraint.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/EndsWithStringRouteConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/EndpointRouteBuilderExtensions.cs b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/EndpointRouteBuilderExtensions.cs index f04c1648a08e..7e221fbe0810 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/EndpointRouteBuilderExtensions.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/EndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloAppBuilderExtensions.cs b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloAppBuilderExtensions.cs index 195bec249675..6334ad18f07a 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloAppBuilderExtensions.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloAppBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloMiddleware.cs b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloMiddleware.cs index 75b2c4274981..2494ae7ea96c 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloMiddleware.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloOptions.cs b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloOptions.cs index aedad8fb9e39..7a216ddb3694 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloOptions.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/HelloExtension/HelloOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RoutingWebSite.HelloExtension { diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/MapFallbackStartup.cs b/src/Http/Routing/test/testassets/RoutingWebSite/MapFallbackStartup.cs index 747e20b43756..e3d02e5567b6 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/MapFallbackStartup.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/MapFallbackStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/Program.cs b/src/Http/Routing/test/testassets/RoutingWebSite/Program.cs index 3727c9a9a82b..594a6384c395 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/Program.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/UseEndpointRoutingStartup.cs b/src/Http/Routing/test/testassets/RoutingWebSite/UseEndpointRoutingStartup.cs index e17b2d64beed..e30bb2413c60 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/UseEndpointRoutingStartup.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/UseEndpointRoutingStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/Routing/test/testassets/RoutingWebSite/UseRouterStartup.cs b/src/Http/Routing/test/testassets/RoutingWebSite/UseRouterStartup.cs index 9ce84fe6f61e..82b0236fd274 100644 --- a/src/Http/Routing/test/testassets/RoutingWebSite/UseRouterStartup.cs +++ b/src/Http/Routing/test/testassets/RoutingWebSite/UseRouterStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.RegularExpressions; diff --git a/src/Http/Routing/tools/Swaggatherer/Program.cs b/src/Http/Routing/tools/Swaggatherer/Program.cs index 6aa30e254b51..b0eb68aa63e2 100644 --- a/src/Http/Routing/tools/Swaggatherer/Program.cs +++ b/src/Http/Routing/tools/Swaggatherer/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Swaggatherer { diff --git a/src/Http/Routing/tools/Swaggatherer/RouteEntry.cs b/src/Http/Routing/tools/Swaggatherer/RouteEntry.cs index 6aea6f322ffc..0a0a2110d76d 100644 --- a/src/Http/Routing/tools/Swaggatherer/RouteEntry.cs +++ b/src/Http/Routing/tools/Swaggatherer/RouteEntry.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing.Template; diff --git a/src/Http/Routing/tools/Swaggatherer/SwaggathererApplication.cs b/src/Http/Routing/tools/Swaggatherer/SwaggathererApplication.cs index dee2d8c11e36..e15e7b0bdab2 100644 --- a/src/Http/Routing/tools/Swaggatherer/SwaggathererApplication.cs +++ b/src/Http/Routing/tools/Swaggatherer/SwaggathererApplication.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Routing/tools/Swaggatherer/Template.cs b/src/Http/Routing/tools/Swaggatherer/Template.cs index cce5de2062dc..8f2ba4c19890 100644 --- a/src/Http/Routing/tools/Swaggatherer/Template.cs +++ b/src/Http/Routing/tools/Swaggatherer/Template.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -65,8 +65,8 @@ public static string Execute(IReadOnlyList entries) return string.Format( CultureInfo.InvariantCulture, @" -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Http/Shared/CookieHeaderParserShared.cs b/src/Http/Shared/CookieHeaderParserShared.cs index e3ca8445159a..eb4fa319c062 100644 --- a/src/Http/Shared/CookieHeaderParserShared.cs +++ b/src/Http/Shared/CookieHeaderParserShared.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/Shared/HttpParseResult.cs b/src/Http/Shared/HttpParseResult.cs index 709ae0ce8434..ce550ed19377 100644 --- a/src/Http/Shared/HttpParseResult.cs +++ b/src/Http/Shared/HttpParseResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Net.Http.Headers { diff --git a/src/Http/Shared/HttpRuleParser.cs b/src/Http/Shared/HttpRuleParser.cs index 7a052908a219..42cc2e1a2e21 100644 --- a/src/Http/Shared/HttpRuleParser.cs +++ b/src/Http/Shared/HttpRuleParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Contracts; diff --git a/src/Http/Shared/StreamCopyOperationInternal.cs b/src/Http/Shared/StreamCopyOperationInternal.cs index 1a5a4f752ce2..50e22fcfa9e9 100644 --- a/src/Http/Shared/StreamCopyOperationInternal.cs +++ b/src/Http/Shared/StreamCopyOperationInternal.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/perf/Microbenchmarks/AssemblyInfo.cs b/src/Http/WebUtilities/perf/Microbenchmarks/AssemblyInfo.cs index 32248e0d1b0a..09f49228e9e6 100644 --- a/src/Http/WebUtilities/perf/Microbenchmarks/AssemblyInfo.cs +++ b/src/Http/WebUtilities/perf/Microbenchmarks/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Http/WebUtilities/perf/Microbenchmarks/FormPipeReaderInternalsBenchmark.cs b/src/Http/WebUtilities/perf/Microbenchmarks/FormPipeReaderInternalsBenchmark.cs index b56afb9f9c9d..8b3c20c2c097 100644 --- a/src/Http/WebUtilities/perf/Microbenchmarks/FormPipeReaderInternalsBenchmark.cs +++ b/src/Http/WebUtilities/perf/Microbenchmarks/FormPipeReaderInternalsBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.Text; diff --git a/src/Http/WebUtilities/perf/Microbenchmarks/FormReaderBenchmark.cs b/src/Http/WebUtilities/perf/Microbenchmarks/FormReaderBenchmark.cs index ad40faec1906..d520dd60fa03 100644 --- a/src/Http/WebUtilities/perf/Microbenchmarks/FormReaderBenchmark.cs +++ b/src/Http/WebUtilities/perf/Microbenchmarks/FormReaderBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.Collections.Generic; diff --git a/src/Http/WebUtilities/perf/Microbenchmarks/HttpRequestStreamReaderReadLineBenchmark.cs b/src/Http/WebUtilities/perf/Microbenchmarks/HttpRequestStreamReaderReadLineBenchmark.cs index 49184ed8e1a5..a4a6c7aa852f 100644 --- a/src/Http/WebUtilities/perf/Microbenchmarks/HttpRequestStreamReaderReadLineBenchmark.cs +++ b/src/Http/WebUtilities/perf/Microbenchmarks/HttpRequestStreamReaderReadLineBenchmark.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 System.IO; using System.Text; diff --git a/src/Http/WebUtilities/src/AspNetCoreTempDirectory.cs b/src/Http/WebUtilities/src/AspNetCoreTempDirectory.cs index 1bb065c26b50..77944c647e8e 100644 --- a/src/Http/WebUtilities/src/AspNetCoreTempDirectory.cs +++ b/src/Http/WebUtilities/src/AspNetCoreTempDirectory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Http/WebUtilities/src/Base64UrlTextEncoder.cs b/src/Http/WebUtilities/src/Base64UrlTextEncoder.cs index 3a4294e08660..8c601b266876 100644 --- a/src/Http/WebUtilities/src/Base64UrlTextEncoder.cs +++ b/src/Http/WebUtilities/src/Base64UrlTextEncoder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.WebUtilities { diff --git a/src/Http/WebUtilities/src/BufferedReadStream.cs b/src/Http/WebUtilities/src/BufferedReadStream.cs index b49462db8939..e14c36b51d3c 100644 --- a/src/Http/WebUtilities/src/BufferedReadStream.cs +++ b/src/Http/WebUtilities/src/BufferedReadStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/FileBufferingReadStream.cs b/src/Http/WebUtilities/src/FileBufferingReadStream.cs index de6dc3c044b5..720b8921b553 100644 --- a/src/Http/WebUtilities/src/FileBufferingReadStream.cs +++ b/src/Http/WebUtilities/src/FileBufferingReadStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/FileBufferingWriteStream.cs b/src/Http/WebUtilities/src/FileBufferingWriteStream.cs index 280ad97c1ac6..28c4c27ab758 100644 --- a/src/Http/WebUtilities/src/FileBufferingWriteStream.cs +++ b/src/Http/WebUtilities/src/FileBufferingWriteStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/FileMultipartSection.cs b/src/Http/WebUtilities/src/FileMultipartSection.cs index 8694bfee422d..09fe35234565 100644 --- a/src/Http/WebUtilities/src/FileMultipartSection.cs +++ b/src/Http/WebUtilities/src/FileMultipartSection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/WebUtilities/src/FormMultipartSection.cs b/src/Http/WebUtilities/src/FormMultipartSection.cs index 5de017e8e107..5792e02629b2 100644 --- a/src/Http/WebUtilities/src/FormMultipartSection.cs +++ b/src/Http/WebUtilities/src/FormMultipartSection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/WebUtilities/src/FormPipeReader.cs b/src/Http/WebUtilities/src/FormPipeReader.cs index 49fcdafbf557..9181a2df988d 100644 --- a/src/Http/WebUtilities/src/FormPipeReader.cs +++ b/src/Http/WebUtilities/src/FormPipeReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/FormReader.cs b/src/Http/WebUtilities/src/FormReader.cs index 55a95111a352..04afda2277c3 100644 --- a/src/Http/WebUtilities/src/FormReader.cs +++ b/src/Http/WebUtilities/src/FormReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/HttpRequestStreamReader.cs b/src/Http/WebUtilities/src/HttpRequestStreamReader.cs index 6ef2fb430b85..428d967e7dc0 100644 --- a/src/Http/WebUtilities/src/HttpRequestStreamReader.cs +++ b/src/Http/WebUtilities/src/HttpRequestStreamReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs b/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs index 3eab97915948..2c5316f2ff3e 100644 --- a/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs +++ b/src/Http/WebUtilities/src/HttpResponseStreamWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/KeyValueAccumulator.cs b/src/Http/WebUtilities/src/KeyValueAccumulator.cs index 0b308de5ffae..bff578aacf48 100644 --- a/src/Http/WebUtilities/src/KeyValueAccumulator.cs +++ b/src/Http/WebUtilities/src/KeyValueAccumulator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/WebUtilities/src/MultipartBoundary.cs b/src/Http/WebUtilities/src/MultipartBoundary.cs index d43fe71e440b..2b9346d2a525 100644 --- a/src/Http/WebUtilities/src/MultipartBoundary.cs +++ b/src/Http/WebUtilities/src/MultipartBoundary.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Http/WebUtilities/src/MultipartReader.cs b/src/Http/WebUtilities/src/MultipartReader.cs index 498f5e18ec08..b2eb2efdbbcc 100644 --- a/src/Http/WebUtilities/src/MultipartReader.cs +++ b/src/Http/WebUtilities/src/MultipartReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/WebUtilities/src/MultipartReaderStream.cs b/src/Http/WebUtilities/src/MultipartReaderStream.cs index 50efa73a4815..7dc0379ae05d 100644 --- a/src/Http/WebUtilities/src/MultipartReaderStream.cs +++ b/src/Http/WebUtilities/src/MultipartReaderStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/MultipartSection.cs b/src/Http/WebUtilities/src/MultipartSection.cs index 2b5b5073f24a..4808075a17ca 100644 --- a/src/Http/WebUtilities/src/MultipartSection.cs +++ b/src/Http/WebUtilities/src/MultipartSection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Http/WebUtilities/src/MultipartSectionConverterExtensions.cs b/src/Http/WebUtilities/src/MultipartSectionConverterExtensions.cs index 8abe1e2242d6..e690160ee68e 100644 --- a/src/Http/WebUtilities/src/MultipartSectionConverterExtensions.cs +++ b/src/Http/WebUtilities/src/MultipartSectionConverterExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Net.Http.Headers; diff --git a/src/Http/WebUtilities/src/MultipartSectionStreamExtensions.cs b/src/Http/WebUtilities/src/MultipartSectionStreamExtensions.cs index 00cc84f01d8e..d692a0341c65 100644 --- a/src/Http/WebUtilities/src/MultipartSectionStreamExtensions.cs +++ b/src/Http/WebUtilities/src/MultipartSectionStreamExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/WebUtilities/src/PagedByteBuffer.cs b/src/Http/WebUtilities/src/PagedByteBuffer.cs index 03924b31cd58..8410be771a9e 100644 --- a/src/Http/WebUtilities/src/PagedByteBuffer.cs +++ b/src/Http/WebUtilities/src/PagedByteBuffer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/src/Properties/AssemblyInfo.cs b/src/Http/WebUtilities/src/Properties/AssemblyInfo.cs index d3d16acba171..283548f7bf25 100644 --- a/src/Http/WebUtilities/src/Properties/AssemblyInfo.cs +++ b/src/Http/WebUtilities/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Http/WebUtilities/src/QueryHelpers.cs b/src/Http/WebUtilities/src/QueryHelpers.cs index c0b8f81562fc..48ecd616bf25 100644 --- a/src/Http/WebUtilities/src/QueryHelpers.cs +++ b/src/Http/WebUtilities/src/QueryHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/WebUtilities/src/ReasonPhrases.cs b/src/Http/WebUtilities/src/ReasonPhrases.cs index 63f1d6451467..08178d3ba4ee 100644 --- a/src/Http/WebUtilities/src/ReasonPhrases.cs +++ b/src/Http/WebUtilities/src/ReasonPhrases.cs @@ -1,12 +1,12 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; namespace Microsoft.AspNetCore.WebUtilities { /// - /// Provides access to HTTP status code reason phrases as listed in + /// Provides access to HTTP status code reason phrases as listed in /// http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml. /// public static class ReasonPhrases @@ -83,7 +83,7 @@ public static class ReasonPhrases }; /// - /// Gets the reason phrase for the specified status code. + /// Gets the reason phrase for the specified status code. /// /// The status code. /// The reason phrase, or if the status code is unknown. diff --git a/src/Http/WebUtilities/src/StreamHelperExtensions.cs b/src/Http/WebUtilities/src/StreamHelperExtensions.cs index b3751ea79559..8eb8c44766d8 100644 --- a/src/Http/WebUtilities/src/StreamHelperExtensions.cs +++ b/src/Http/WebUtilities/src/StreamHelperExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/test/AspNetCoreTempDirectoryTests.cs b/src/Http/WebUtilities/test/AspNetCoreTempDirectoryTests.cs index 4e0621ca8567..f4ec699568f6 100644 --- a/src/Http/WebUtilities/test/AspNetCoreTempDirectoryTests.cs +++ b/src/Http/WebUtilities/test/AspNetCoreTempDirectoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Xunit; diff --git a/src/Http/WebUtilities/test/FileBufferingReadStreamTests.cs b/src/Http/WebUtilities/test/FileBufferingReadStreamTests.cs index ce52c78a28c8..7d6c42229239 100644 --- a/src/Http/WebUtilities/test/FileBufferingReadStreamTests.cs +++ b/src/Http/WebUtilities/test/FileBufferingReadStreamTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/test/FileBufferingWriteStreamTests.cs b/src/Http/WebUtilities/test/FileBufferingWriteStreamTests.cs index 3e19a8c31bbf..9459a192959d 100644 --- a/src/Http/WebUtilities/test/FileBufferingWriteStreamTests.cs +++ b/src/Http/WebUtilities/test/FileBufferingWriteStreamTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/test/FormPipeReaderTests.cs b/src/Http/WebUtilities/test/FormPipeReaderTests.cs index b3584cef8d4c..b99736fa6635 100644 --- a/src/Http/WebUtilities/test/FormPipeReaderTests.cs +++ b/src/Http/WebUtilities/test/FormPipeReaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Http/WebUtilities/test/FormReaderAsyncTest.cs b/src/Http/WebUtilities/test/FormReaderAsyncTest.cs index 0a7b5e20a9c4..ddc6716cfc2f 100644 --- a/src/Http/WebUtilities/test/FormReaderAsyncTest.cs +++ b/src/Http/WebUtilities/test/FormReaderAsyncTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Http/WebUtilities/test/FormReaderTests.cs b/src/Http/WebUtilities/test/FormReaderTests.cs index 134efbb51571..116d15ae8128 100644 --- a/src/Http/WebUtilities/test/FormReaderTests.cs +++ b/src/Http/WebUtilities/test/FormReaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Http/WebUtilities/test/HttpRequestStreamReaderTest.cs b/src/Http/WebUtilities/test/HttpRequestStreamReaderTest.cs index 426f2edb2129..1f970bce913a 100644 --- a/src/Http/WebUtilities/test/HttpRequestStreamReaderTest.cs +++ b/src/Http/WebUtilities/test/HttpRequestStreamReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Moq; using System; diff --git a/src/Http/WebUtilities/test/HttpResponseStreamWriterTest.cs b/src/Http/WebUtilities/test/HttpResponseStreamWriterTest.cs index 06cbcb8363b3..84e3fcdbea8f 100644 --- a/src/Http/WebUtilities/test/HttpResponseStreamWriterTest.cs +++ b/src/Http/WebUtilities/test/HttpResponseStreamWriterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Moq; using System; diff --git a/src/Http/WebUtilities/test/MultipartReaderTests.cs b/src/Http/WebUtilities/test/MultipartReaderTests.cs index 7f1bd4c955cd..36ffa5653a14 100644 --- a/src/Http/WebUtilities/test/MultipartReaderTests.cs +++ b/src/Http/WebUtilities/test/MultipartReaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Http/WebUtilities/test/NonSeekableReadStream.cs b/src/Http/WebUtilities/test/NonSeekableReadStream.cs index faadac69f7af..74467d4ea0b3 100644 --- a/src/Http/WebUtilities/test/NonSeekableReadStream.cs +++ b/src/Http/WebUtilities/test/NonSeekableReadStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Http/WebUtilities/test/PagedByteBufferTest.cs b/src/Http/WebUtilities/test/PagedByteBufferTest.cs index 1494584da4c6..fbbadb4ba18f 100644 --- a/src/Http/WebUtilities/test/PagedByteBufferTest.cs +++ b/src/Http/WebUtilities/test/PagedByteBufferTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.IO; diff --git a/src/Http/WebUtilities/test/QueryHelpersTests.cs b/src/Http/WebUtilities/test/QueryHelpersTests.cs index 9e50589d20b3..7c395d9e6c1a 100644 --- a/src/Http/WebUtilities/test/QueryHelpersTests.cs +++ b/src/Http/WebUtilities/test/QueryHelpersTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Http/WebUtilities/test/WebEncodersTests.cs b/src/Http/WebUtilities/test/WebEncodersTests.cs index bb7f71248f58..e619c3d597c5 100644 --- a/src/Http/WebUtilities/test/WebEncodersTests.cs +++ b/src/Http/WebUtilities/test/WebEncodersTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Http/samples/MinimalSample/Program.cs b/src/Http/samples/MinimalSample/Program.cs index 6d32a43d3c38..5441e671a8f9 100644 --- a/src/Http/samples/MinimalSample/Program.cs +++ b/src/Http/samples/MinimalSample/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 Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Hosting; diff --git a/src/Http/samples/SampleApp/Program.cs b/src/Http/samples/SampleApp/Program.cs index 28d24befe016..6631cc36ce89 100644 --- a/src/Http/samples/SampleApp/Program.cs +++ b/src/Http/samples/SampleApp/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 Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; diff --git a/src/HttpClientFactory/Polly/src/DependencyInjection/PollyHttpClientBuilderExtensions.cs b/src/HttpClientFactory/Polly/src/DependencyInjection/PollyHttpClientBuilderExtensions.cs index 834b5506c190..ff9d96fb05e8 100644 --- a/src/HttpClientFactory/Polly/src/DependencyInjection/PollyHttpClientBuilderExtensions.cs +++ b/src/HttpClientFactory/Polly/src/DependencyInjection/PollyHttpClientBuilderExtensions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Net.Http; diff --git a/src/HttpClientFactory/Polly/src/DependencyInjection/PollyServiceCollectionExtensions.cs b/src/HttpClientFactory/Polly/src/DependencyInjection/PollyServiceCollectionExtensions.cs index 4ca4d193e901..2bf2f04bdc08 100644 --- a/src/HttpClientFactory/Polly/src/DependencyInjection/PollyServiceCollectionExtensions.cs +++ b/src/HttpClientFactory/Polly/src/DependencyInjection/PollyServiceCollectionExtensions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using Polly.Registry; diff --git a/src/HttpClientFactory/Polly/src/HttpRequestMessageExtensions.cs b/src/HttpClientFactory/Polly/src/HttpRequestMessageExtensions.cs index 1a2d56c1311a..0fb812940748 100644 --- a/src/HttpClientFactory/Polly/src/HttpRequestMessageExtensions.cs +++ b/src/HttpClientFactory/Polly/src/HttpRequestMessageExtensions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using Microsoft.Extensions.Http; using System; diff --git a/src/HttpClientFactory/Polly/src/PolicyHttpMessageHandler.cs b/src/HttpClientFactory/Polly/src/PolicyHttpMessageHandler.cs index 79e7312eeb1a..f2de2588d944 100644 --- a/src/HttpClientFactory/Polly/src/PolicyHttpMessageHandler.cs +++ b/src/HttpClientFactory/Polly/src/PolicyHttpMessageHandler.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Net.Http; diff --git a/src/HttpClientFactory/Polly/src/Properties/AssemblyInfo.cs b/src/HttpClientFactory/Polly/src/Properties/AssemblyInfo.cs index 7c7d3325459e..57e7258920dd 100644 --- a/src/HttpClientFactory/Polly/src/Properties/AssemblyInfo.cs +++ b/src/HttpClientFactory/Polly/src/Properties/AssemblyInfo.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Runtime.CompilerServices; diff --git a/src/HttpClientFactory/Polly/test/DependencyInjection/PollyHttpClientBuilderExtensionsTest.cs b/src/HttpClientFactory/Polly/test/DependencyInjection/PollyHttpClientBuilderExtensionsTest.cs index 0f30410379de..4a43915df6d5 100644 --- a/src/HttpClientFactory/Polly/test/DependencyInjection/PollyHttpClientBuilderExtensionsTest.cs +++ b/src/HttpClientFactory/Polly/test/DependencyInjection/PollyHttpClientBuilderExtensionsTest.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/HttpClientFactory/Polly/test/HttpRequestMessageExtensionsTest.cs b/src/HttpClientFactory/Polly/test/HttpRequestMessageExtensionsTest.cs index 27fe44c51996..d17786c192bb 100644 --- a/src/HttpClientFactory/Polly/test/HttpRequestMessageExtensionsTest.cs +++ b/src/HttpClientFactory/Polly/test/HttpRequestMessageExtensionsTest.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Net.Http; diff --git a/src/HttpClientFactory/Polly/test/PolicyHttpMessageHandlerTest.cs b/src/HttpClientFactory/Polly/test/PolicyHttpMessageHandlerTest.cs index ee25016a285b..c6de301cf913 100644 --- a/src/HttpClientFactory/Polly/test/PolicyHttpMessageHandlerTest.cs +++ b/src/HttpClientFactory/Polly/test/PolicyHttpMessageHandlerTest.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Net.Http; diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ConfigurationController.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ConfigurationController.cs index ead6634f1b81..053ab3c2d8d3 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ConfigurationController.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ConfigurationController.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.ApiAuthorization.IdentityServer; using Microsoft.AspNetCore.Mvc; diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ValuesController.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ValuesController.cs index 4a4850667577..7f82c6b025c1 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ValuesController.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Controllers/ValuesController.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/ApplicationDbContext.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/ApplicationDbContext.cs index 80618e816349..8a9d53de115f 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/ApplicationDbContext.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/ApplicationDbContext.cs @@ -1,4 +1,7 @@ -using Duende.IdentityServer.EntityFramework.Options; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Duende.IdentityServer.EntityFramework.Options; using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs index e8ad17c6a19c..031294ac5fa1 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Data/Migrations/20180919224505_InitialMigration.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 Microsoft.EntityFrameworkCore.Migrations; namespace ApiAuthSample.Data.Migrations diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Models/ApplicationUser.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Models/ApplicationUser.cs index 91141e6108f2..c180b4a49983 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Models/ApplicationUser.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Models/ApplicationUser.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Identity; +// 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.Identity; namespace ApiAuthSample.Models { diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml.cs index fdabbe75df2d..fe37bd80a979 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Pages/Index.cshtml.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Program.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Program.cs index 590dd23a95a5..1c475d8c5ffe 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Program.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/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.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Startup.cs b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Startup.cs index 03226a7b7788..23cb4938c668 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Startup.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/Startup.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.Authentication; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/AuthenticationBuilderExtensions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/AuthenticationBuilderExtensions.cs index 6fa1abbdfbfb..d3ad25171dc1 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/AuthenticationBuilderExtensions.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/AuthenticationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Duende.IdentityServer.Stores; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs index 9d9654bc8cdc..c5906d709978 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtBearerOptionsConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Duende.IdentityServer.Extensions; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtConstants.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtConstants.cs index ff691cd889e9..59f207fb46ef 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtConstants.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs index 33578870e888..3f286b728ac1 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/IdentityServerJwtPolicySchemeForwardSelector.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/StaticConfigurationManager.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/StaticConfigurationManager.cs index 3564a20618eb..7b8f896ff89a 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/StaticConfigurationManager.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Authentication/StaticConfigurationManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfiles.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfiles.cs index 82ecbe8319ad..968eb5e75fd6 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfiles.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfiles.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyNames.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyNames.cs index 0588c4abb856..ee1f0b384dc6 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyNames.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyNames.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Models; @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer public static class ApplicationProfilesPropertyNames { /// - /// Key to the Profile on or . + /// Key to the Profile on or . /// The Profile value will be one of the constants in . /// public const string Profile = nameof(Profile); diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyValues.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyValues.cs index cedefb2f9877..1cde89196b30 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyValues.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ApplicationProfilesPropertyValues.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Models; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/AspNetConventionsConfigureOptions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/AspNetConventionsConfigureOptions.cs index 04a9fd33d88b..3a34e742eac2 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/AspNetConventionsConfigureOptions.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/AspNetConventionsConfigureOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Configuration; using Microsoft.AspNetCore.Identity; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ClientDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ClientDefinition.cs index 49192fb15bd1..92d3998473c8 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ClientDefinition.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ClientDefinition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiResources.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiResources.cs index ac1ac6d1af21..15e83c5cd435 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiResources.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiResources.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiScopes.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiScopes.cs index 6ce7f0011e46..44915511d1e7 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiScopes.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureApiScopes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Models; using Microsoft.Extensions.Options; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClientScopes.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClientScopes.cs index 6e374dd94d35..420c8cbc50d5 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClientScopes.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClientScopes.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClients.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClients.cs index b1dc5ae7488d..c1d7921e3a70 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClients.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureClients.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureIdentityResources.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureIdentityResources.cs index f8622d20a6d8..df2b21200cab 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureIdentityResources.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureIdentityResources.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Configuration; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureSigningCredentials.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureSigningCredentials.cs index fdc6ec461834..025475f205f3 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureSigningCredentials.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ConfigureSigningCredentials.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IIdentityServerJwtDescriptor.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IIdentityServerJwtDescriptor.cs index 0d1445f603d5..7425734b8620 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IIdentityServerJwtDescriptor.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IIdentityServerJwtDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityResourceDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityResourceDefinition.cs index 6e8d19c92c7a..982cd2a8c422 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityResourceDefinition.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityResourceDefinition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityServerJwtApiDescriptor.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityServerJwtApiDescriptor.cs index e2ebfb5b8b7b..269111c268dc 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityServerJwtApiDescriptor.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/IdentityServerJwtApiDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using System.Collections.Generic; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeyDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeyDefinition.cs index d693d81e590b..3408588f40c1 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeyDefinition.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeyDefinition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeySources.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeySources.cs index 18ef442cea47..6256952e02f8 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeySources.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/KeySources.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ResourceDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ResourceDefinition.cs index 9ac60d632f2d..7f94637d9e8e 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ResourceDefinition.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ResourceDefinition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ServiceDefinition.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ServiceDefinition.cs index 36fab8771054..5df161ad9113 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ServiceDefinition.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/ServiceDefinition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer { diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/SigningKeysLoader.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/SigningKeysLoader.cs index 92f5af7d213a..4bb86fd1f80e 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/SigningKeysLoader.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Configuration/SigningKeysLoader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Newtonsoft.Json; using System; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs index 07e66cca2334..1cdf7f879403 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Data/ApiAuthorizationDbContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AbsoluteUrlFactory.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AbsoluteUrlFactory.cs index b6a00079561d..eb054dcaa59e 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AbsoluteUrlFactory.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AbsoluteUrlFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using System; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs index bc20f7f30877..df6314aae2f8 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Specialized; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/DefaultClientRequestParametersProvider.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/DefaultClientRequestParametersProvider.cs index 397fd4c67a95..d518e164dada 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/DefaultClientRequestParametersProvider.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/DefaultClientRequestParametersProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Extensions; using Microsoft.AspNetCore.Http; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IAbsoluteUrlFactory.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IAbsoluteUrlFactory.cs index 2c67d5f9d797..0a4bcd7018c6 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IAbsoluteUrlFactory.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IAbsoluteUrlFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IClientRequestParametersProvider.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IClientRequestParametersProvider.cs index 13c4c58993e0..01923cd34920 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IClientRequestParametersProvider.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/IClientRequestParametersProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/RelativeRedirectUriValidator.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/RelativeRedirectUriValidator.cs index 83503b7398f5..3a23fbc7eb07 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/RelativeRedirectUriValidator.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Extensions/RelativeRedirectUriValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/IdentityServerBuilderConfigurationExtensions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/IdentityServerBuilderConfigurationExtensions.cs index e3761466b866..f78d970971ab 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/IdentityServerBuilderConfigurationExtensions.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/IdentityServerBuilderConfigurationExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/LoggerEventIds.cs b/src/Identity/ApiAuthorization.IdentityServer/src/LoggerEventIds.cs index ed7b39cd0fa5..9813142094e1 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/LoggerEventIds.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/LoggerEventIds.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiAuthorizationOptions.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiAuthorizationOptions.cs index 0f05a8209b2b..26ffce31df89 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiAuthorizationOptions.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiAuthorizationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.IdentityModel.Tokens; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceBuilder.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceBuilder.cs index 8e79198e3ad1..29621219da82 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceBuilder.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -108,7 +108,7 @@ public ApiResourceBuilder AllowAllClients() _apiResource.Properties[ApplicationProfilesPropertyNames.Clients] = ApplicationProfilesPropertyValues.AllowAllApplications; return this; } - + /// /// Builds the API resource. /// diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs index 0b8ef366ac88..452fb7746c5b 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiResourceCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiScopeCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiScopeCollection.cs index 2c3059c20fcd..8abb75e1c3f0 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiScopeCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ApiScopeCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientBuilder.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientBuilder.cs index 9c22b90a54b4..582f4b2815e4 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientBuilder.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs index c4ca12b58182..1a62445a577e 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/ClientCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Models; using System; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceBuilder.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceBuilder.cs index 8bfabf654e00..eb2d3acff37f 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceBuilder.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Duende.IdentityServer; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs index 0e036d5c85fb..c79d1004da56 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Options/IdentityResourceCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Models; using System; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs b/src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs index 17a9364ae85a..0f1831659079 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Identity/ApiAuthorization.IdentityServer/src/TagHelpers/ClientParametersTagHelper.cs b/src/Identity/ApiAuthorization.IdentityServer/src/TagHelpers/ClientParametersTagHelper.cs index 46bf790df7db..93cc3d7c5a50 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/src/TagHelpers/ClientParametersTagHelper.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/src/TagHelpers/ClientParametersTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiJwtBearerConfigurationTest.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiJwtBearerConfigurationTest.cs index 6414d4ef0d66..ae028b5edb3e 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiJwtBearerConfigurationTest.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiJwtBearerConfigurationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Security.Cryptography; @@ -72,7 +72,7 @@ public async Task ResolveAuthorityAndKeysAsync_SetsUpAuthorityAndKeysOnTheTokenV var options = new JwtBearerOptions(); var args = new MessageReceivedContext(context, new AuthenticationScheme("TestAPI",null, Mock.Of().GetType()), options); - + // Act await IdentityServerJwtBearerOptionsConfiguration.ResolveAuthorityAndKeysAsync(args); diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs index bff409ce5c79..a68a7596814c 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Authentication/LocalApiPolicySchemeForwardSelectorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Identity; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/AspNetConventionsConfigureOptionsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/AspNetConventionsConfigureOptionsTests.cs index 36efeb20d17a..d683a10323dd 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/AspNetConventionsConfigureOptionsTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/AspNetConventionsConfigureOptionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Configuration; using Microsoft.AspNetCore.Identity; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureApiResourcesTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureApiResourcesTests.cs index 00a5e83b2407..371037601805 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureApiResourcesTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureApiResourcesTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ApiAuthorization.IdentityServer.Configuration; using Microsoft.Extensions.Configuration; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs index 8619f2ea0e51..f98b507ae21b 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.Extensions.Options; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientsTests.cs index c5d2c6d13523..aec6fc07fcee 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientsTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer; using Duende.IdentityServer.Models; @@ -161,7 +161,7 @@ public void Configure_AddsClientsToExistingClientsList() var clientLoader = new ConfigureClients(config, new TestLogger()); var options = new ApiAuthorizationOptions(); - + // Act clientLoader.Configure(options); diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureSigningCredentialsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureSigningCredentialsTests.cs index 542178125a7a..f5087fb07e9c 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureSigningCredentialsTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureSigningCredentialsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/LocalApiDescriptorTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/LocalApiDescriptorTests.cs index 368e7130f458..c8da897604e9 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/LocalApiDescriptorTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/LocalApiDescriptorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Moq; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/SigningKeysLoaderTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/SigningKeysLoaderTests.cs index a2c03e92f686..4baccca95761 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/SigningKeysLoaderTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/SigningKeysLoaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AbsoluteUrlFactoryTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AbsoluteUrlFactoryTests.cs index e6adde857a7d..10847400388d 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AbsoluteUrlFactoryTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AbsoluteUrlFactoryTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Moq; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AutoRedirectEndSessionEndpointTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AutoRedirectEndSessionEndpointTests.cs index a777a39f6510..51e2c1f30e68 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AutoRedirectEndSessionEndpointTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/AutoRedirectEndSessionEndpointTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Specialized; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/DefaultClientRequestParametersProviderTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/DefaultClientRequestParametersProviderTests.cs index f16176e11600..4aace1a8795b 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/DefaultClientRequestParametersProviderTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/DefaultClientRequestParametersProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/IdentityServerBuilderConfigurationExtensionsTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/IdentityServerBuilderConfigurationExtensionsTests.cs index 31c02a466a3b..56543c2e9bac 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/IdentityServerBuilderConfigurationExtensionsTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/IdentityServerBuilderConfigurationExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/RelativeRedirectUriValidatorTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/RelativeRedirectUriValidatorTests.cs index d427d712c1e2..4b6c3749bac4 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/RelativeRedirectUriValidatorTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Extensions/RelativeRedirectUriValidatorTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Duende.IdentityServer.Models; using Microsoft.AspNetCore.Http; diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/TestLogger.cs b/src/Identity/ApiAuthorization.IdentityServer/test/TestLogger.cs index a0535554d984..75b05c0f3fdf 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/TestLogger.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/TestLogger.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; using System; diff --git a/src/Identity/Core/src/AspNetRoleManager.cs b/src/Identity/Core/src/AspNetRoleManager.cs index 374320bd28e0..f32d70f41d90 100644 --- a/src/Identity/Core/src/AspNetRoleManager.cs +++ b/src/Identity/Core/src/AspNetRoleManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Core/src/AspNetUserManager.cs b/src/Identity/Core/src/AspNetUserManager.cs index f4f31e2856b0..aefbaa890b4d 100644 --- a/src/Identity/Core/src/AspNetUserManager.cs +++ b/src/Identity/Core/src/AspNetUserManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Core/src/DataProtectionTokenProviderOptions.cs b/src/Identity/Core/src/DataProtectionTokenProviderOptions.cs index 73eee0c11594..0e95c876295b 100644 --- a/src/Identity/Core/src/DataProtectionTokenProviderOptions.cs +++ b/src/Identity/Core/src/DataProtectionTokenProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Core/src/DataProtectorTokenProvider.cs b/src/Identity/Core/src/DataProtectorTokenProvider.cs index a29bd51b3e64..a25024792172 100644 --- a/src/Identity/Core/src/DataProtectorTokenProvider.cs +++ b/src/Identity/Core/src/DataProtectorTokenProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Identity/Core/src/EventIds.cs b/src/Identity/Core/src/EventIds.cs index d43e66250c1e..acecdb662dce 100644 --- a/src/Identity/Core/src/EventIds.cs +++ b/src/Identity/Core/src/EventIds.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/Identity/Core/src/ExternalLoginInfo.cs b/src/Identity/Core/src/ExternalLoginInfo.cs index 255a00de67ed..0297c67705c0 100644 --- a/src/Identity/Core/src/ExternalLoginInfo.cs +++ b/src/Identity/Core/src/ExternalLoginInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Security.Claims; @@ -19,7 +19,7 @@ public class ExternalLoginInfo : UserLoginInfo /// The provider associated with this login information. /// The unique identifier for this user provided by the login provider. /// The display name for the login provider. - public ExternalLoginInfo(ClaimsPrincipal principal, string loginProvider, string providerKey, + public ExternalLoginInfo(ClaimsPrincipal principal, string loginProvider, string providerKey, string displayName) : base(loginProvider, providerKey, displayName) { Principal = principal; diff --git a/src/Identity/Core/src/ISecurityStampValidator.cs b/src/Identity/Core/src/ISecurityStampValidator.cs index 72bc3adceda3..91434f5d4be4 100644 --- a/src/Identity/Core/src/ISecurityStampValidator.cs +++ b/src/Identity/Core/src/ISecurityStampValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Identity { /// - /// Provides an abstraction for a validating a security stamp of an incoming identity, and regenerating or rejecting the + /// Provides an abstraction for a validating a security stamp of an incoming identity, and regenerating or rejecting the /// identity based on the validation result. /// public interface ISecurityStampValidator diff --git a/src/Identity/Core/src/ITwoFactorSecurityStampValidator.cs b/src/Identity/Core/src/ITwoFactorSecurityStampValidator.cs index 3d624b190d1c..5d5811666efd 100644 --- a/src/Identity/Core/src/ITwoFactorSecurityStampValidator.cs +++ b/src/Identity/Core/src/ITwoFactorSecurityStampValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Core/src/IdentityBuilderExtensions.cs b/src/Identity/Core/src/IdentityBuilderExtensions.cs index 34489581cc98..1e480d22d67b 100644 --- a/src/Identity/Core/src/IdentityBuilderExtensions.cs +++ b/src/Identity/Core/src/IdentityBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Identity/Core/src/IdentityConstants.cs b/src/Identity/Core/src/IdentityConstants.cs index e5d6fcafe1fb..1bbaaee61c13 100644 --- a/src/Identity/Core/src/IdentityConstants.cs +++ b/src/Identity/Core/src/IdentityConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Core/src/IdentityCookiesBuilder.cs b/src/Identity/Core/src/IdentityCookiesBuilder.cs index 9ceebf823e64..89020b515d32 100644 --- a/src/Identity/Core/src/IdentityCookiesBuilder.cs +++ b/src/Identity/Core/src/IdentityCookiesBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.Extensions.Options; diff --git a/src/Identity/Core/src/IdentityCookiesBuilderExtensions.cs b/src/Identity/Core/src/IdentityCookiesBuilderExtensions.cs index 65d32d337b93..4e659e207ccd 100644 --- a/src/Identity/Core/src/IdentityCookiesBuilderExtensions.cs +++ b/src/Identity/Core/src/IdentityCookiesBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authentication; diff --git a/src/Identity/Core/src/IdentityServiceCollectionExtensions.cs b/src/Identity/Core/src/IdentityServiceCollectionExtensions.cs index 45e3d567eb09..dd8488fa961e 100644 --- a/src/Identity/Core/src/IdentityServiceCollectionExtensions.cs +++ b/src/Identity/Core/src/IdentityServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authentication.Cookies; diff --git a/src/Identity/Core/src/LoggingExtensions.cs b/src/Identity/Core/src/LoggingExtensions.cs index 34503a9e4fcb..23adb4e5a63a 100644 --- a/src/Identity/Core/src/LoggingExtensions.cs +++ b/src/Identity/Core/src/LoggingExtensions.cs @@ -1,10 +1,10 @@ -// 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. +// 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 Microsoft.Extensions.Logging -{ +{ internal static class LoggingExtensions { private static readonly Action _invalidExpirationTime; diff --git a/src/Identity/Core/src/Properties/AssemblyInfo.cs b/src/Identity/Core/src/Properties/AssemblyInfo.cs index c81ac161676c..871b3d955aa4 100644 --- a/src/Identity/Core/src/Properties/AssemblyInfo.cs +++ b/src/Identity/Core/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Identity/Core/src/SecurityStampRefreshingPrincipalContext.cs b/src/Identity/Core/src/SecurityStampRefreshingPrincipalContext.cs index 78b67463e3f4..627b9231afb3 100644 --- a/src/Identity/Core/src/SecurityStampRefreshingPrincipalContext.cs +++ b/src/Identity/Core/src/SecurityStampRefreshingPrincipalContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; diff --git a/src/Identity/Core/src/SecurityStampValidator.cs b/src/Identity/Core/src/SecurityStampValidator.cs index c1b5639b2041..6cafc0ff8837 100644 --- a/src/Identity/Core/src/SecurityStampValidator.cs +++ b/src/Identity/Core/src/SecurityStampValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; @@ -63,7 +63,7 @@ public SecurityStampValidator(IOptions options, S /// The used to log messages. /// public ILogger Logger { get; set; } - + /// /// Called when the security stamp has been verified. /// @@ -125,7 +125,7 @@ public virtual async Task ValidateAsync(CookieValidatePrincipalContext context) } if (validate) { - var user = await VerifySecurityStamp(context.Principal); + var user = await VerifySecurityStamp(context.Principal); if (user != null) { await SecurityStampVerified(user, context); @@ -156,8 +156,8 @@ public static Task ValidatePrincipalAsync(CookieValidatePrincipalContext context => ValidateAsync(context); /// - /// Used to validate the and - /// cookies against the user's + /// Used to validate the and + /// cookies against the user's /// stored security stamp. /// /// The context containing the diff --git a/src/Identity/Core/src/SecurityStampValidatorOptions.cs b/src/Identity/Core/src/SecurityStampValidatorOptions.cs index c419819bb8ef..c32883a9b1e8 100644 --- a/src/Identity/Core/src/SecurityStampValidatorOptions.cs +++ b/src/Identity/Core/src/SecurityStampValidatorOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Core/src/SignInManager.cs b/src/Identity/Core/src/SignInManager.cs index d19a68d26e57..865834d6cc6a 100644 --- a/src/Identity/Core/src/SignInManager.cs +++ b/src/Identity/Core/src/SignInManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -506,7 +506,7 @@ private async Task DoTwoFactorSignInAsync(TUser user, TwoFactorAuthenticationInf /// /// The two factor authentication code to validate. /// Flag indicating whether the sign-in cookie should persist after the browser is closed. - /// Flag indicating whether the current browser should be remember, suppressing all further + /// Flag indicating whether the current browser should be remember, suppressing all further /// two factor authentication prompts. /// The task object representing the asynchronous operation containing the /// for the sign-in attempt. @@ -545,7 +545,7 @@ public virtual async Task TwoFactorAuthenticatorSignInAsync(string /// The two factor authentication provider to validate the code against. /// The two factor authentication code to validate. /// Flag indicating whether the sign-in cookie should persist after the browser is closed. - /// Flag indicating whether the current browser should be remember, suppressing all further + /// Flag indicating whether the current browser should be remember, suppressing all further /// two factor authentication prompts. /// The task object representing the asynchronous operation containing the /// for the sign-in attempt. @@ -630,9 +630,9 @@ public virtual async Task ExternalLoginSignInAsync(string loginPro } /// - /// Gets a collection of s for the known external login providers. - /// - /// A collection of s for the known external login providers. + /// Gets a collection of s for the known external login providers. + /// + /// A collection of s for the known external login providers. public virtual async Task> GetExternalAuthenticationSchemesAsync() { var schemes = await _schemes.GetAllSchemesAsync(); @@ -763,7 +763,7 @@ internal async Task StoreRememberClient(TUser user) } return new ClaimsPrincipal(rememberBrowserIdentity); } - + private async Task IsTfaEnabled(TUser user) => UserManager.SupportsUserTwoFactor && await UserManager.GetTwoFactorEnabledAsync(user) && diff --git a/src/Identity/Core/src/TwoFactorSecurityStampValidator.cs b/src/Identity/Core/src/TwoFactorSecurityStampValidator.cs index 157af01b6833..611a1b4f8383 100644 --- a/src/Identity/Core/src/TwoFactorSecurityStampValidator.cs +++ b/src/Identity/Core/src/TwoFactorSecurityStampValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs b/src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs index d5336cce3a8f..1d0cb6fa8e56 100644 --- a/src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs +++ b/src/Identity/EntityFrameworkCore/src/IdentityDbContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs b/src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs index f6276fe983b4..667b3fbadfee 100644 --- a/src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs +++ b/src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Identity/EntityFrameworkCore/src/IdentityUserContext.cs b/src/Identity/EntityFrameworkCore/src/IdentityUserContext.cs index 87f73b60c395..2e5b8cbc0d99 100644 --- a/src/Identity/EntityFrameworkCore/src/IdentityUserContext.cs +++ b/src/Identity/EntityFrameworkCore/src/IdentityUserContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/src/RoleStore.cs b/src/Identity/EntityFrameworkCore/src/RoleStore.cs index f221c9f29c4d..f2fc747981c3 100644 --- a/src/Identity/EntityFrameworkCore/src/RoleStore.cs +++ b/src/Identity/EntityFrameworkCore/src/RoleStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs b/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs index 0e54aee3ea1d..0695a8fde494 100644 --- a/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs +++ b/src/Identity/EntityFrameworkCore/src/UserOnlyStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/src/UserStore.cs b/src/Identity/EntityFrameworkCore/src/UserStore.cs index 7220db5e86af..09b115745c45 100644 --- a/src/Identity/EntityFrameworkCore/src/UserStore.cs +++ b/src/Identity/EntityFrameworkCore/src/UserStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryContext.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryContext.cs index b24e71993114..713e45e9eb01 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryContext.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Data.Common; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryDatabaseFixture.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryDatabaseFixture.cs index fff7eaa889c8..0dcf8f7d9c07 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryDatabaseFixture.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryDatabaseFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Data.Sqlite; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs index 4672d4f061f7..a67cac6898e9 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFOnlyUsersTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs index ac16664e77f9..1e13ff7642d2 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryEFUserStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs index 90750dd002be..6d27710b11d0 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/InMemoryStoreWithGenericsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/RoleStoreTest.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/RoleStoreTest.cs index 853424f6d465..8ba1a8a4e240 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/RoleStoreTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/RoleStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/TestIdentityFactory.cs b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/TestIdentityFactory.cs index 917ddc4b5164..951adb6b7b2f 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/TestIdentityFactory.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.InMemory.Test/TestIdentityFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Data.Sqlite; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/ApiConsistencyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/ApiConsistencyTest.cs index 47f3a3a06dc5..eb8380875ff5 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/ApiConsistencyTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/ApiConsistencyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Identity.Test; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/CustomPocoTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/CustomPocoTest.cs index 1e8a66589213..37d9eae2e42a 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/CustomPocoTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/CustomPocoTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs index 3a8c1e2de0d6..75563108cb22 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Data.Common; using System.Linq; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/DefaultPocoTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/DefaultPocoTest.cs index 7a6fb129c969..0dfa0e33a0e7 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/DefaultPocoTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/DefaultPocoTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/MaxKeyLengthSchemaTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/MaxKeyLengthSchemaTest.cs index 74dc233acce9..62a14a0c63a3 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/MaxKeyLengthSchemaTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/MaxKeyLengthSchemaTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreOnlyUsersTestBase.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreOnlyUsersTestBase.cs index dfcc50a99eab..d168f4705b07 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreOnlyUsersTestBase.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreOnlyUsersTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs index 51802dd42f6e..eebfc71fb659 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/SqlStoreTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs index 763a16d475c5..90de7fbd4a3e 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyTest.cs index 13d0e85e04fc..b14bda878e0f 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs index b21b50f43aa0..c5ea5a3bbe05 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreEncryptPersonalDataTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreGuidKeyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreGuidKeyTest.cs index 107610ac66ab..18fb70e726b6 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreGuidKeyTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreGuidKeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreIntKeyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreIntKeyTest.cs index 7cc60f3fe74e..2e0ce6dbe251 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreIntKeyTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreIntKeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreStringKeyTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreStringKeyTest.cs index de3f807e368a..229349a7ee53 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreStringKeyTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreStringKeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs index 63d9cfda9d36..2b899b8ff03f 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs index ba4329b495bd..3de67eed023f 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/UserStoreWithGenericsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs index 39aed8910bd4..f070e685e99f 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/ScratchDatabaseFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Data.Common; diff --git a/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/TestEnvironment.cs b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/TestEnvironment.cs index 6d069f38b6aa..78f456e697f1 100644 --- a/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/TestEnvironment.cs +++ b/src/Identity/EntityFrameworkCore/test/EF.Test/Utilities/TestEnvironment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.Extensions.Configuration; diff --git a/src/Identity/Extensions.Core/src/AuthenticatorTokenProvider.cs b/src/Identity/Extensions.Core/src/AuthenticatorTokenProvider.cs index c58ec9fcb8c6..0d984475d0bd 100644 --- a/src/Identity/Extensions.Core/src/AuthenticatorTokenProvider.cs +++ b/src/Identity/Extensions.Core/src/AuthenticatorTokenProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; @@ -38,7 +38,7 @@ public virtual Task GenerateAsync(string purpose, UserManager man } /// - /// + /// /// /// /// diff --git a/src/Identity/Extensions.Core/src/Base32.cs b/src/Identity/Extensions.Core/src/Base32.cs index b15167eac516..cb6278612d68 100644 --- a/src/Identity/Extensions.Core/src/Base32.cs +++ b/src/Identity/Extensions.Core/src/Base32.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Identity/Extensions.Core/src/ClaimsIdentityOptions.cs b/src/Identity/Extensions.Core/src/ClaimsIdentityOptions.cs index 17f383ab335e..16cf401bf83b 100644 --- a/src/Identity/Extensions.Core/src/ClaimsIdentityOptions.cs +++ b/src/Identity/Extensions.Core/src/ClaimsIdentityOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; diff --git a/src/Identity/Extensions.Core/src/DefaultPersonalDataProtector.cs b/src/Identity/Extensions.Core/src/DefaultPersonalDataProtector.cs index 6fef248043fb..bc0d65de92b9 100644 --- a/src/Identity/Extensions.Core/src/DefaultPersonalDataProtector.cs +++ b/src/Identity/Extensions.Core/src/DefaultPersonalDataProtector.cs @@ -1,12 +1,12 @@ -// 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. +// 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 Microsoft.AspNetCore.Identity { /// - /// Default implementation of that uses + /// Default implementation of that uses /// and to protect data with a payload format of {keyId}:{protectedData} /// public class DefaultPersonalDataProtector : IPersonalDataProtector diff --git a/src/Identity/Extensions.Core/src/DefaultUserConfirmation.cs b/src/Identity/Extensions.Core/src/DefaultUserConfirmation.cs index c3b344965b81..964a924475f0 100644 --- a/src/Identity/Extensions.Core/src/DefaultUserConfirmation.cs +++ b/src/Identity/Extensions.Core/src/DefaultUserConfirmation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/EmailTokenProvider.cs b/src/Identity/Extensions.Core/src/EmailTokenProvider.cs index dc9fcfaaaf5b..09123c4d53dd 100644 --- a/src/Identity/Extensions.Core/src/EmailTokenProvider.cs +++ b/src/Identity/Extensions.Core/src/EmailTokenProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/ILookupNormalizer.cs b/src/Identity/Extensions.Core/src/ILookupNormalizer.cs index 3bb5136880d4..dcae5a8d416b 100644 --- a/src/Identity/Extensions.Core/src/ILookupNormalizer.cs +++ b/src/Identity/Extensions.Core/src/ILookupNormalizer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/ILookupProtector.cs b/src/Identity/Extensions.Core/src/ILookupProtector.cs index 21b1feec413b..c94cc59d9b0e 100644 --- a/src/Identity/Extensions.Core/src/ILookupProtector.cs +++ b/src/Identity/Extensions.Core/src/ILookupProtector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/ILookupProtectorKeyRing.cs b/src/Identity/Extensions.Core/src/ILookupProtectorKeyRing.cs index a25f7c7ef5d6..f1367efce3f9 100644 --- a/src/Identity/Extensions.Core/src/ILookupProtectorKeyRing.cs +++ b/src/Identity/Extensions.Core/src/ILookupProtectorKeyRing.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Identity/Extensions.Core/src/IPasswordHasher.cs b/src/Identity/Extensions.Core/src/IPasswordHasher.cs index d7dae3411d67..d404d5e04a50 100644 --- a/src/Identity/Extensions.Core/src/IPasswordHasher.cs +++ b/src/Identity/Extensions.Core/src/IPasswordHasher.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/IPasswordValidator.cs b/src/Identity/Extensions.Core/src/IPasswordValidator.cs index a60285a2854f..c2e22ec50288 100644 --- a/src/Identity/Extensions.Core/src/IPasswordValidator.cs +++ b/src/Identity/Extensions.Core/src/IPasswordValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IPersonalDataProtector.cs b/src/Identity/Extensions.Core/src/IPersonalDataProtector.cs index 6c543aecfac8..e4e3fbb780f6 100644 --- a/src/Identity/Extensions.Core/src/IPersonalDataProtector.cs +++ b/src/Identity/Extensions.Core/src/IPersonalDataProtector.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Core/src/IProtectedUserStore.cs b/src/Identity/Extensions.Core/src/IProtectedUserStore.cs index 332f0a591638..a0fda1a1e6ba 100644 --- a/src/Identity/Extensions.Core/src/IProtectedUserStore.cs +++ b/src/Identity/Extensions.Core/src/IProtectedUserStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/IQueryableRoleStore.cs b/src/Identity/Extensions.Core/src/IQueryableRoleStore.cs index 053d6bd3b0c2..afce542fd669 100644 --- a/src/Identity/Extensions.Core/src/IQueryableRoleStore.cs +++ b/src/Identity/Extensions.Core/src/IQueryableRoleStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; diff --git a/src/Identity/Extensions.Core/src/IQueryableUserStore.cs b/src/Identity/Extensions.Core/src/IQueryableUserStore.cs index 68b39b8fd2f9..ab2f3e2f9bb4 100644 --- a/src/Identity/Extensions.Core/src/IQueryableUserStore.cs +++ b/src/Identity/Extensions.Core/src/IQueryableUserStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; diff --git a/src/Identity/Extensions.Core/src/IRoleClaimStore.cs b/src/Identity/Extensions.Core/src/IRoleClaimStore.cs index a37e5c720e8d..33fe7cb29792 100644 --- a/src/Identity/Extensions.Core/src/IRoleClaimStore.cs +++ b/src/Identity/Extensions.Core/src/IRoleClaimStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Security.Claims; diff --git a/src/Identity/Extensions.Core/src/IRoleStore.cs b/src/Identity/Extensions.Core/src/IRoleStore.cs index e7d65ae08d8a..8a4eeb697679 100644 --- a/src/Identity/Extensions.Core/src/IRoleStore.cs +++ b/src/Identity/Extensions.Core/src/IRoleStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Core/src/IRoleValidator.cs b/src/Identity/Extensions.Core/src/IRoleValidator.cs index f2a3a563e86b..67f7ab5dc3cb 100644 --- a/src/Identity/Extensions.Core/src/IRoleValidator.cs +++ b/src/Identity/Extensions.Core/src/IRoleValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserAuthenticationTokenStore.cs b/src/Identity/Extensions.Core/src/IUserAuthenticationTokenStore.cs index 9023bf6037c1..54e35decf8b1 100644 --- a/src/Identity/Extensions.Core/src/IUserAuthenticationTokenStore.cs +++ b/src/Identity/Extensions.Core/src/IUserAuthenticationTokenStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserAuthenticatorKeyStore.cs b/src/Identity/Extensions.Core/src/IUserAuthenticatorKeyStore.cs index d54039db9070..9937a67121e6 100644 --- a/src/Identity/Extensions.Core/src/IUserAuthenticatorKeyStore.cs +++ b/src/Identity/Extensions.Core/src/IUserAuthenticatorKeyStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading; diff --git a/src/Identity/Extensions.Core/src/IUserClaimStore.cs b/src/Identity/Extensions.Core/src/IUserClaimStore.cs index 90a4e7fee6f1..aab70ac4fd76 100644 --- a/src/Identity/Extensions.Core/src/IUserClaimStore.cs +++ b/src/Identity/Extensions.Core/src/IUserClaimStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Security.Claims; diff --git a/src/Identity/Extensions.Core/src/IUserClaimsPrincipalFactory.cs b/src/Identity/Extensions.Core/src/IUserClaimsPrincipalFactory.cs index 20a766ff24fd..ac8e24a50fb4 100644 --- a/src/Identity/Extensions.Core/src/IUserClaimsPrincipalFactory.cs +++ b/src/Identity/Extensions.Core/src/IUserClaimsPrincipalFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserConfirmation.cs b/src/Identity/Extensions.Core/src/IUserConfirmation.cs index ccd1d6b3d16d..88f9eca103e9 100644 --- a/src/Identity/Extensions.Core/src/IUserConfirmation.cs +++ b/src/Identity/Extensions.Core/src/IUserConfirmation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserEmailStore.cs b/src/Identity/Extensions.Core/src/IUserEmailStore.cs index 4bdc662da7e0..bb9edec747c8 100644 --- a/src/Identity/Extensions.Core/src/IUserEmailStore.cs +++ b/src/Identity/Extensions.Core/src/IUserEmailStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserLockoutStore.cs b/src/Identity/Extensions.Core/src/IUserLockoutStore.cs index c48df7464231..d23faf2c9067 100644 --- a/src/Identity/Extensions.Core/src/IUserLockoutStore.cs +++ b/src/Identity/Extensions.Core/src/IUserLockoutStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Identity { /// - /// Provides an abstraction for a storing information which can be used to implement account lockout, + /// Provides an abstraction for a storing information which can be used to implement account lockout, /// including access failures and lockout status /// /// The type that represents a user. diff --git a/src/Identity/Extensions.Core/src/IUserLoginStore.cs b/src/Identity/Extensions.Core/src/IUserLoginStore.cs index 519ba09274b9..54ddbc4358ce 100644 --- a/src/Identity/Extensions.Core/src/IUserLoginStore.cs +++ b/src/Identity/Extensions.Core/src/IUserLoginStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading; diff --git a/src/Identity/Extensions.Core/src/IUserPasswordStore.cs b/src/Identity/Extensions.Core/src/IUserPasswordStore.cs index 639451a1216b..350f5b045c1d 100644 --- a/src/Identity/Extensions.Core/src/IUserPasswordStore.cs +++ b/src/Identity/Extensions.Core/src/IUserPasswordStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserPhoneNumberStore.cs b/src/Identity/Extensions.Core/src/IUserPhoneNumberStore.cs index e82d37549bbc..538ff517c514 100644 --- a/src/Identity/Extensions.Core/src/IUserPhoneNumberStore.cs +++ b/src/Identity/Extensions.Core/src/IUserPhoneNumberStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserRoleStore.cs b/src/Identity/Extensions.Core/src/IUserRoleStore.cs index e4ef13bcb740..00367c59d0ed 100644 --- a/src/Identity/Extensions.Core/src/IUserRoleStore.cs +++ b/src/Identity/Extensions.Core/src/IUserRoleStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading; diff --git a/src/Identity/Extensions.Core/src/IUserSecurityStampStore.cs b/src/Identity/Extensions.Core/src/IUserSecurityStampStore.cs index c09b16a81576..04089483c83b 100644 --- a/src/Identity/Extensions.Core/src/IUserSecurityStampStore.cs +++ b/src/Identity/Extensions.Core/src/IUserSecurityStampStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IUserStore.cs b/src/Identity/Extensions.Core/src/IUserStore.cs index 624c1ca74530..924c6b533028 100644 --- a/src/Identity/Extensions.Core/src/IUserStore.cs +++ b/src/Identity/Extensions.Core/src/IUserStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Core/src/IUserTwoFactorRecoveryCodeStore.cs b/src/Identity/Extensions.Core/src/IUserTwoFactorRecoveryCodeStore.cs index 9de8e2e5ce28..4b3be029e17d 100644 --- a/src/Identity/Extensions.Core/src/IUserTwoFactorRecoveryCodeStore.cs +++ b/src/Identity/Extensions.Core/src/IUserTwoFactorRecoveryCodeStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading; diff --git a/src/Identity/Extensions.Core/src/IUserTwoFactorStore.cs b/src/Identity/Extensions.Core/src/IUserTwoFactorStore.cs index 614eb5cc5a62..742019a98780 100644 --- a/src/Identity/Extensions.Core/src/IUserTwoFactorStore.cs +++ b/src/Identity/Extensions.Core/src/IUserTwoFactorStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; @@ -29,7 +29,7 @@ public interface IUserTwoFactorStore : IUserStore where TUser : cl /// The user whose two factor authentication enabled status should be set. /// The used to propagate notifications that the operation should be canceled. /// - /// The that represents the asynchronous operation, containing a flag indicating whether the specified + /// The that represents the asynchronous operation, containing a flag indicating whether the specified /// has two factor authentication enabled or not. /// Task GetTwoFactorEnabledAsync(TUser user, CancellationToken cancellationToken); diff --git a/src/Identity/Extensions.Core/src/IUserTwoFactorTokenProvider.cs b/src/Identity/Extensions.Core/src/IUserTwoFactorTokenProvider.cs index 0f1a0b07b741..aca4dd9effff 100644 --- a/src/Identity/Extensions.Core/src/IUserTwoFactorTokenProvider.cs +++ b/src/Identity/Extensions.Core/src/IUserTwoFactorTokenProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; @@ -18,15 +18,15 @@ public interface IUserTwoFactorTokenProvider where TUser : class /// The that can be used to retrieve user properties. /// The user a token should be generated for. /// - /// The that represents the asynchronous operation, containing the token for the specified + /// The that represents the asynchronous operation, containing the token for the specified /// and . /// /// /// The parameter allows a token generator to be used for multiple types of token whilst - /// insuring a token for one purpose cannot be used for another. For example if you specified a purpose of "Email" + /// insuring a token for one purpose cannot be used for another. For example if you specified a purpose of "Email" /// and validated it with the same purpose a token with the purpose of TOTP would not pass the check even if it was /// for the same user. - /// + /// /// Implementations of should validate that purpose is not null or empty to /// help with token separation. /// diff --git a/src/Identity/Extensions.Core/src/IUserValidator.cs b/src/Identity/Extensions.Core/src/IUserValidator.cs index 763eddb229b2..9e31cdf086e3 100644 --- a/src/Identity/Extensions.Core/src/IUserValidator.cs +++ b/src/Identity/Extensions.Core/src/IUserValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/IdentityBuilder.cs b/src/Identity/Extensions.Core/src/IdentityBuilder.cs index fdf763bc8179..787364c483a5 100644 --- a/src/Identity/Extensions.Core/src/IdentityBuilder.cs +++ b/src/Identity/Extensions.Core/src/IdentityBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Identity/Extensions.Core/src/IdentityError.cs b/src/Identity/Extensions.Core/src/IdentityError.cs index 3f09da51e5a0..c94d9ee80e33 100644 --- a/src/Identity/Extensions.Core/src/IdentityError.cs +++ b/src/Identity/Extensions.Core/src/IdentityError.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/IdentityErrorDescriber.cs b/src/Identity/Extensions.Core/src/IdentityErrorDescriber.cs index fdedb4ed0aee..6760bb4a2d1a 100644 --- a/src/Identity/Extensions.Core/src/IdentityErrorDescriber.cs +++ b/src/Identity/Extensions.Core/src/IdentityErrorDescriber.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Identity.Core; diff --git a/src/Identity/Extensions.Core/src/IdentityOptions.cs b/src/Identity/Extensions.Core/src/IdentityOptions.cs index c246ef9b619d..8e03aac88047 100644 --- a/src/Identity/Extensions.Core/src/IdentityOptions.cs +++ b/src/Identity/Extensions.Core/src/IdentityOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/IdentityResult.cs b/src/Identity/Extensions.Core/src/IdentityResult.cs index 17a23ee56c07..a81cd63d3ecb 100644 --- a/src/Identity/Extensions.Core/src/IdentityResult.cs +++ b/src/Identity/Extensions.Core/src/IdentityResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Identity/Extensions.Core/src/IdentityServiceCollectionExtensions.cs b/src/Identity/Extensions.Core/src/IdentityServiceCollectionExtensions.cs index 568628a3cc87..1b02e9380df8 100644 --- a/src/Identity/Extensions.Core/src/IdentityServiceCollectionExtensions.cs +++ b/src/Identity/Extensions.Core/src/IdentityServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Identity; @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.DependencyInjection public static class IdentityServiceCollectionExtensions { /// - /// Adds and configures the identity system for the specified User type. Role services are not added + /// Adds and configures the identity system for the specified User type. Role services are not added /// by default but can be added with . /// /// The type representing a User in the system. @@ -23,7 +23,7 @@ public static IdentityBuilder AddIdentityCore(this IServiceCollection ser => services.AddIdentityCore(o => { }); /// - /// Adds and configures the identity system for the specified User type. Role services are not added by default + /// Adds and configures the identity system for the specified User type. Role services are not added by default /// but can be added with . /// /// The type representing a User in the system. diff --git a/src/Identity/Extensions.Core/src/LockoutOptions.cs b/src/Identity/Extensions.Core/src/LockoutOptions.cs index 6c28eb5adcae..0508537d54e8 100644 --- a/src/Identity/Extensions.Core/src/LockoutOptions.cs +++ b/src/Identity/Extensions.Core/src/LockoutOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -14,7 +14,7 @@ public class LockoutOptions /// Gets or sets a flag indicating whether a new user can be locked out. Defaults to true. /// /// - /// True if a newly created user can be locked out, otherwise false. + /// True if a newly created user can be locked out, otherwise false. /// public bool AllowedForNewUsers { get; set; } = true; diff --git a/src/Identity/Extensions.Core/src/LoggerEventIds.cs b/src/Identity/Extensions.Core/src/LoggerEventIds.cs index 72360e061c60..2c20bcfaabe0 100644 --- a/src/Identity/Extensions.Core/src/LoggerEventIds.cs +++ b/src/Identity/Extensions.Core/src/LoggerEventIds.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; diff --git a/src/Identity/Extensions.Core/src/PasswordHasher.cs b/src/Identity/Extensions.Core/src/PasswordHasher.cs index 9b8951f20dfe..7645803aae7e 100644 --- a/src/Identity/Extensions.Core/src/PasswordHasher.cs +++ b/src/Identity/Extensions.Core/src/PasswordHasher.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; diff --git a/src/Identity/Extensions.Core/src/PasswordHasherCompatibilityMode.cs b/src/Identity/Extensions.Core/src/PasswordHasherCompatibilityMode.cs index 4b401c75816b..417df41b7b6e 100644 --- a/src/Identity/Extensions.Core/src/PasswordHasherCompatibilityMode.cs +++ b/src/Identity/Extensions.Core/src/PasswordHasherCompatibilityMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/PasswordHasherOptions.cs b/src/Identity/Extensions.Core/src/PasswordHasherOptions.cs index 56ceb2ac067e..28209a0cc9fd 100644 --- a/src/Identity/Extensions.Core/src/PasswordHasherOptions.cs +++ b/src/Identity/Extensions.Core/src/PasswordHasherOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Cryptography; @@ -28,7 +28,7 @@ public class PasswordHasherOptions /// /// /// This value is only used when the compatibility mode is set to 'V3'. - /// The value must be a positive integer. + /// The value must be a positive integer. /// public int IterationCount { get; set; } = 10000; diff --git a/src/Identity/Extensions.Core/src/PasswordOptions.cs b/src/Identity/Extensions.Core/src/PasswordOptions.cs index 7651105b9886..52936f74157e 100644 --- a/src/Identity/Extensions.Core/src/PasswordOptions.cs +++ b/src/Identity/Extensions.Core/src/PasswordOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/PasswordValidator.cs b/src/Identity/Extensions.Core/src/PasswordValidator.cs index 672e09e2f30c..17040244824f 100644 --- a/src/Identity/Extensions.Core/src/PasswordValidator.cs +++ b/src/Identity/Extensions.Core/src/PasswordValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Core/src/PasswordVerificationResult.cs b/src/Identity/Extensions.Core/src/PasswordVerificationResult.cs index 49242d1b1eae..e6335e1f4beb 100644 --- a/src/Identity/Extensions.Core/src/PasswordVerificationResult.cs +++ b/src/Identity/Extensions.Core/src/PasswordVerificationResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/PersonalDataAttribute.cs b/src/Identity/Extensions.Core/src/PersonalDataAttribute.cs index 09553351b8e0..db00109590ab 100644 --- a/src/Identity/Extensions.Core/src/PersonalDataAttribute.cs +++ b/src/Identity/Extensions.Core/src/PersonalDataAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Extensions.Core/src/PhoneNumberTokenProvider.cs b/src/Identity/Extensions.Core/src/PhoneNumberTokenProvider.cs index 7a1df48ebf52..afe8ffc3a7e3 100644 --- a/src/Identity/Extensions.Core/src/PhoneNumberTokenProvider.cs +++ b/src/Identity/Extensions.Core/src/PhoneNumberTokenProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -45,7 +45,7 @@ public override async Task CanGenerateTwoFactorTokenAsync(UserManagerThe that can be used to retrieve user properties. /// The user a token should be generated for. /// - /// The that represents the asynchronous operation, containing a constant modifier for the specified + /// The that represents the asynchronous operation, containing a constant modifier for the specified /// and . /// public override async Task GetUserModifierAsync(string purpose, UserManager manager, TUser user) diff --git a/src/Identity/Extensions.Core/src/PrincipalExtensions.cs b/src/Identity/Extensions.Core/src/PrincipalExtensions.cs index 1c73573b3ae4..e1b433bff2a4 100644 --- a/src/Identity/Extensions.Core/src/PrincipalExtensions.cs +++ b/src/Identity/Extensions.Core/src/PrincipalExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Identity; diff --git a/src/Identity/Extensions.Core/src/Properties/AssemblyInfo.cs b/src/Identity/Extensions.Core/src/Properties/AssemblyInfo.cs index c81ac161676c..871b3d955aa4 100644 --- a/src/Identity/Extensions.Core/src/Properties/AssemblyInfo.cs +++ b/src/Identity/Extensions.Core/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Identity/Extensions.Core/src/ProtectedPersonalDataAttribute.cs b/src/Identity/Extensions.Core/src/ProtectedPersonalDataAttribute.cs index 36ab193a42a2..3a9e0dd7b84b 100644 --- a/src/Identity/Extensions.Core/src/ProtectedPersonalDataAttribute.cs +++ b/src/Identity/Extensions.Core/src/ProtectedPersonalDataAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs b/src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs index 3d1ab86933d4..9ed628052bf7 100644 --- a/src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs +++ b/src/Identity/Extensions.Core/src/Rfc6238AuthenticationService.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Identity/Extensions.Core/src/RoleManager.cs b/src/Identity/Extensions.Core/src/RoleManager.cs index f71a3ddd2734..ea75b9476a87 100644 --- a/src/Identity/Extensions.Core/src/RoleManager.cs +++ b/src/Identity/Extensions.Core/src/RoleManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -100,7 +100,7 @@ public RoleManager(IRoleStore store, /// An IQueryable collection of Roles if the persistence store is an . /// Thrown if the persistence store is not an . /// - /// Callers to this property should use to ensure the backing role store supports + /// Callers to this property should use to ensure the backing role store supports /// returning an IQueryable list of roles. /// public virtual IQueryable Roles @@ -252,7 +252,7 @@ public virtual string NormalizeKey(string key) /// /// The role ID whose role should be returned. /// - /// The that represents the asynchronous operation, containing the role + /// The that represents the asynchronous operation, containing the role /// associated with the specified /// public virtual Task FindByIdAsync(string roleId) @@ -266,7 +266,7 @@ public virtual Task FindByIdAsync(string roleId) /// /// The role whose name should be retrieved. /// - /// The that represents the asynchronous operation, containing the name of the + /// The that represents the asynchronous operation, containing the name of the /// specified . /// public virtual Task GetRoleNameAsync(TRole role) @@ -298,7 +298,7 @@ public virtual async Task SetRoleNameAsync(TRole role, string na /// /// The role whose ID should be retrieved. /// - /// The that represents the asynchronous operation, containing the ID of the + /// The that represents the asynchronous operation, containing the ID of the /// specified . /// public virtual Task GetRoleIdAsync(TRole role) @@ -312,7 +312,7 @@ public virtual Task GetRoleIdAsync(TRole role) /// /// The name of the role to be returned. /// - /// The that represents the asynchronous operation, containing the role + /// The that represents the asynchronous operation, containing the role /// associated with the specified /// public virtual Task FindByNameAsync(string roleName) diff --git a/src/Identity/Extensions.Core/src/RoleValidator.cs b/src/Identity/Extensions.Core/src/RoleValidator.cs index 3b9d888ddbd8..a2839b14451f 100644 --- a/src/Identity/Extensions.Core/src/RoleValidator.cs +++ b/src/Identity/Extensions.Core/src/RoleValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -60,7 +60,7 @@ private async Task ValidateRoleName(RoleManager manager, TRole role, else { var owner = await manager.FindByNameAsync(roleName); - if (owner != null && + if (owner != null && !string.Equals(await manager.GetRoleIdAsync(owner), await manager.GetRoleIdAsync(role))) { errors.Add(Describer.DuplicateRoleName(roleName)); diff --git a/src/Identity/Extensions.Core/src/SignInOptions.cs b/src/Identity/Extensions.Core/src/SignInOptions.cs index 38244cdd66bd..2919cbea887e 100644 --- a/src/Identity/Extensions.Core/src/SignInOptions.cs +++ b/src/Identity/Extensions.Core/src/SignInOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/SignInResult.cs b/src/Identity/Extensions.Core/src/SignInResult.cs index e8e4c3dc50ef..7d22f3abc201 100644 --- a/src/Identity/Extensions.Core/src/SignInResult.cs +++ b/src/Identity/Extensions.Core/src/SignInResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { @@ -51,7 +51,7 @@ public class SignInResult public static SignInResult Failed => _failed; /// - /// Returns a that represents a sign-in attempt that failed because + /// Returns a that represents a sign-in attempt that failed because /// the user was locked out. /// /// A that represents sign-in attempt that failed due to the @@ -59,7 +59,7 @@ public class SignInResult public static SignInResult LockedOut => _lockedOut; /// - /// Returns a that represents a sign-in attempt that failed because + /// Returns a that represents a sign-in attempt that failed because /// the user is not allowed to sign-in. /// /// A that represents sign-in attempt that failed due to the @@ -67,7 +67,7 @@ public class SignInResult public static SignInResult NotAllowed => _notAllowed; /// - /// Returns a that represents a sign-in attempt that needs two-factor + /// Returns a that represents a sign-in attempt that needs two-factor /// authentication. /// /// A that represents sign-in attempt that needs two-factor @@ -80,9 +80,9 @@ public class SignInResult /// A string representation of value of the current object. public override string ToString() { - return IsLockedOut ? "Lockedout" : - IsNotAllowed ? "NotAllowed" : - RequiresTwoFactor ? "RequiresTwoFactor" : + return IsLockedOut ? "Lockedout" : + IsNotAllowed ? "NotAllowed" : + RequiresTwoFactor ? "RequiresTwoFactor" : Succeeded ? "Succeeded" : "Failed"; } } diff --git a/src/Identity/Extensions.Core/src/StoreOptions.cs b/src/Identity/Extensions.Core/src/StoreOptions.cs index 78b74cc8ccaf..651c66595eba 100644 --- a/src/Identity/Extensions.Core/src/StoreOptions.cs +++ b/src/Identity/Extensions.Core/src/StoreOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { @@ -9,13 +9,13 @@ namespace Microsoft.AspNetCore.Identity public class StoreOptions { /// - /// If set to a positive number, the default OnModelCreating will use this value as the max length for any + /// If set to a positive number, the default OnModelCreating will use this value as the max length for any /// properties used as keys, i.e. UserId, LoginProvider, ProviderKey. /// public int MaxLengthForKeys { get; set; } /// - /// If set to true, the store must protect all personally identifying data for a user. + /// If set to true, the store must protect all personally identifying data for a user. /// This will be enforced by requiring the store to implement . /// public bool ProtectPersonalData { get; set; } diff --git a/src/Identity/Extensions.Core/src/TokenOptions.cs b/src/Identity/Extensions.Core/src/TokenOptions.cs index c9443113cf5b..77bd21f4affe 100644 --- a/src/Identity/Extensions.Core/src/TokenOptions.cs +++ b/src/Identity/Extensions.Core/src/TokenOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Core/src/TokenProviderDescriptor.cs b/src/Identity/Extensions.Core/src/TokenProviderDescriptor.cs index 95c2920b3d14..9602cc2d9814 100644 --- a/src/Identity/Extensions.Core/src/TokenProviderDescriptor.cs +++ b/src/Identity/Extensions.Core/src/TokenProviderDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Extensions.Core/src/TotpSecurityStampBasedTokenProvider.cs b/src/Identity/Extensions.Core/src/TotpSecurityStampBasedTokenProvider.cs index 023ba3f2504f..20670caaabeb 100644 --- a/src/Identity/Extensions.Core/src/TotpSecurityStampBasedTokenProvider.cs +++ b/src/Identity/Extensions.Core/src/TotpSecurityStampBasedTokenProvider.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.Globalization; using System.Threading.Tasks; diff --git a/src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs b/src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs index 87aecfe82572..7fae05069de6 100644 --- a/src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs +++ b/src/Identity/Extensions.Core/src/UpperInvariantLookupNormalizer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs b/src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs index 859e78ad57a2..e35daccbd28b 100644 --- a/src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs +++ b/src/Identity/Extensions.Core/src/UserClaimsPrincipalFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Identity/Extensions.Core/src/UserLoginInfo.cs b/src/Identity/Extensions.Core/src/UserLoginInfo.cs index cc2cdddf3569..144d0398ff39 100644 --- a/src/Identity/Extensions.Core/src/UserLoginInfo.cs +++ b/src/Identity/Extensions.Core/src/UserLoginInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/UserManager.cs b/src/Identity/Extensions.Core/src/UserManager.cs index 374c5646a046..775922edcaff 100644 --- a/src/Identity/Extensions.Core/src/UserManager.cs +++ b/src/Identity/Extensions.Core/src/UserManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Core/src/UserOptions.cs b/src/Identity/Extensions.Core/src/UserOptions.cs index d0fc15862ec1..a0fae62c9786 100644 --- a/src/Identity/Extensions.Core/src/UserOptions.cs +++ b/src/Identity/Extensions.Core/src/UserOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity { diff --git a/src/Identity/Extensions.Core/src/UserValidator.cs b/src/Identity/Extensions.Core/src/UserValidator.cs index 93c2cdaf45a5..0c5c53832166 100644 --- a/src/Identity/Extensions.Core/src/UserValidator.cs +++ b/src/Identity/Extensions.Core/src/UserValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -70,7 +70,7 @@ private async Task ValidateUserName(UserManager manager, TUser user, ICol else { var owner = await manager.FindByNameAsync(userName); - if (owner != null && + if (owner != null && !string.Equals(await manager.GetUserIdAsync(owner), await manager.GetUserIdAsync(user))) { errors.Add(Describer.DuplicateUserName(userName)); @@ -93,7 +93,7 @@ private async Task ValidateEmail(UserManager manager, TUser user, List - /// Represents a claim that a user possesses. + /// Represents a claim that a user possesses. /// /// The type used for the primary key for this user that possesses this claim. public class IdentityUserClaim where TKey : IEquatable diff --git a/src/Identity/Extensions.Stores/src/IdentityUserLogin.cs b/src/Identity/Extensions.Stores/src/IdentityUserLogin.cs index c049e9034391..2dc9d3c59288 100644 --- a/src/Identity/Extensions.Stores/src/IdentityUserLogin.cs +++ b/src/Identity/Extensions.Stores/src/IdentityUserLogin.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Extensions.Stores/src/IdentityUserRole.cs b/src/Identity/Extensions.Stores/src/IdentityUserRole.cs index 44613952e767..14d2435ff29a 100644 --- a/src/Identity/Extensions.Stores/src/IdentityUserRole.cs +++ b/src/Identity/Extensions.Stores/src/IdentityUserRole.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Extensions.Stores/src/IdentityUserToken.cs b/src/Identity/Extensions.Stores/src/IdentityUserToken.cs index b03a6976b8e3..445fa7d83eaa 100644 --- a/src/Identity/Extensions.Stores/src/IdentityUserToken.cs +++ b/src/Identity/Extensions.Stores/src/IdentityUserToken.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/Extensions.Stores/src/RoleStoreBase.cs b/src/Identity/Extensions.Stores/src/RoleStoreBase.cs index 01ca59bb6ca0..5a4c76492f86 100644 --- a/src/Identity/Extensions.Stores/src/RoleStoreBase.cs +++ b/src/Identity/Extensions.Stores/src/RoleStoreBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Extensions.Stores/src/UserStoreBase.cs b/src/Identity/Extensions.Stores/src/UserStoreBase.cs index 5eea2d16f729..3530d57c7207 100644 --- a/src/Identity/Extensions.Stores/src/UserStoreBase.cs +++ b/src/Identity/Extensions.Stores/src/UserStoreBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -318,7 +318,7 @@ public abstract IQueryable Users /// /// The user to retrieve the password hash for. /// The used to propagate notifications that the operation should be canceled. - /// A containing a flag indicating if the specified user has a password. If the + /// A containing a flag indicating if the specified user has a password. If the /// user has a password the returned value with be true, otherwise it will be false. public virtual Task HasPasswordAsync(TUser user, CancellationToken cancellationToken = default(CancellationToken)) { @@ -857,7 +857,7 @@ public virtual async Task FindByLoginAsync(string loginProvider, string p /// The user whose two factor authentication enabled status should be set. /// The used to propagate notifications that the operation should be canceled. /// - /// The that represents the asynchronous operation, containing a flag indicating whether the specified + /// The that represents the asynchronous operation, containing a flag indicating whether the specified /// has two factor authentication enabled or not. /// public virtual Task GetTwoFactorEnabledAsync(TUser user, CancellationToken cancellationToken = default(CancellationToken)) @@ -877,7 +877,7 @@ public virtual async Task FindByLoginAsync(string loginProvider, string p /// The claim whose users should be retrieved. /// The used to propagate notifications that the operation should be canceled. /// - /// The contains a list of users, if any, that contain the specified claim. + /// The contains a list of users, if any, that contain the specified claim. /// public abstract Task> GetUsersForClaimAsync(Claim claim, CancellationToken cancellationToken = default(CancellationToken)); @@ -1088,7 +1088,7 @@ public abstract class UserStoreBase, IUserRoleStore where TUser : IdentityUser - where TRole : IdentityRole + where TRole : IdentityRole where TKey : IEquatable where TUserClaim : IdentityUserClaim, new() where TUserRole : IdentityUserRole, new() @@ -1124,7 +1124,7 @@ protected virtual TUserRole CreateUserRole(TUser user, TRole role) /// The role whose users should be retrieved. /// The used to propagate notifications that the operation should be canceled. /// - /// The contains a list of users, if any, that are in the specified role. + /// The contains a list of users, if any, that are in the specified role. /// public abstract Task> GetUsersInRoleAsync(string normalizedRoleName, CancellationToken cancellationToken = default(CancellationToken)); @@ -1160,7 +1160,7 @@ protected virtual TUserRole CreateUserRole(TUser user, TRole role) /// The user whose role membership should be checked. /// The role to check membership of /// The used to propagate notifications that the operation should be canceled. - /// A containing a flag indicating if the specified user is a member of the given group. If the + /// A containing a flag indicating if the specified user is a member of the given group. If the /// user is a member of the group the returned value with be true, otherwise it will be false. public abstract Task IsInRoleAsync(TUser user, string normalizedRoleName, CancellationToken cancellationToken = default(CancellationToken)); diff --git a/src/Identity/Specification.Tests/src/IdentityResultAssert.cs b/src/Identity/Specification.Tests/src/IdentityResultAssert.cs index 1e9456944274..859321e7acf7 100644 --- a/src/Identity/Specification.Tests/src/IdentityResultAssert.cs +++ b/src/Identity/Specification.Tests/src/IdentityResultAssert.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.Extensions.Logging; diff --git a/src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs b/src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs index b24fb0cded73..05dae7b256d2 100644 --- a/src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs +++ b/src/Identity/Specification.Tests/src/IdentitySpecificationTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/Specification.Tests/src/TestLogger.cs b/src/Identity/Specification.Tests/src/TestLogger.cs index 7b9ebdece8cf..157cae60cb51 100644 --- a/src/Identity/Specification.Tests/src/TestLogger.cs +++ b/src/Identity/Specification.Tests/src/TestLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -41,7 +41,7 @@ public IDisposable BeginScope(TState state) } /// - /// + /// /// /// /// @@ -51,7 +51,7 @@ public bool IsEnabled(LogLevel logLevel) } /// - /// + /// /// /// /// diff --git a/src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs b/src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs index e176033349ee..115805c89fc3 100644 --- a/src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs +++ b/src/Identity/Specification.Tests/src/UserManagerSpecificationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Filters/ExternalLoginsPageFilter.cs b/src/Identity/UI/src/Areas/Identity/Filters/ExternalLoginsPageFilter.cs index 75719adc0108..ccae7d46b3a7 100644 --- a/src/Identity/UI/src/Areas/Identity/Filters/ExternalLoginsPageFilter.cs +++ b/src/Identity/UI/src/Areas/Identity/Filters/ExternalLoginsPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs index 64551acb359c..42815c5dc727 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/AccessDenied.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs index 0468f52dbf46..11de08f5b876 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmail.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmailChange.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmailChange.cshtml.cs index e0c2bc4cb39b..2ee0823d751c 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmailChange.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ConfirmEmailChange.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs index 8c919a54b171..c06deaab454c 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs index d607df226cb9..53496bf85da7 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPassword.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs index 6d6a0bcb24e7..fcbf4a6c030e 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ForgotPasswordConfirmation.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs index c194946fd5dd..b9a086a3eda5 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Lockout.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs index 4efcfb787e07..f088f3c37403 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Login.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs index f65fb589bae7..9a73b5afd030 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWith2fa.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs index bf990d1d0c66..5b132b39298e 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/LoginWithRecoveryCode.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs index 50c3e2b30ebb..aadafaa73f07 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Logout.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs index a8f65bb4d51d..76f682a1cdd1 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ChangePassword.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs index 9c7f9aef02d0..fe9023346a68 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DeletePersonalData.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs index 7eabadcb28e1..5685a5ce79ad 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Disable2fa.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs index b957ffd3f80d..79874eedd833 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/DownloadPersonalData.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Email.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Email.cshtml.cs index 455c3c0f7134..2af2b0c062fa 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Email.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Email.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs index f7437ae741e0..d8e751657efe 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/EnableAuthenticator.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs index 2d00de40828a..9d920594da34 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ExternalLogins.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs index 6d7bc6457cf7..6e7d143dbb82 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/GenerateRecoveryCodes.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs index 452ce5bd262d..69acae63ed7f 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/Index.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs index 4923e2045da4..239834f5c444 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs index a5a81b52cedf..8e03586d8124 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/PersonalData.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs index dfced82d0d71..4e7fd15f4c26 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ResetAuthenticator.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs index 844f0d9a7cd9..8fc1e132837b 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/SetPassword.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs index 225356493962..021d0eda8e86 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ShowRecoveryCodes.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs index 241ab40088e9..fbf5d4f3ec9a 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/TwoFactorAuthentication.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml.cs index abc9d773da61..fcd5f643f497 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Register.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs index 7b88864fa0f5..c8330f8015fe 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/RegisterConfirmation.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResendEmailConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResendEmailConfirmation.cshtml.cs index d762777c5f5a..2c667e84a342 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResendEmailConfirmation.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResendEmailConfirmation.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs index b9d42559c5c8..1328cdf74942 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPassword.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs index d5f694a4a25e..cef75d5148a6 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResetPasswordConfirmation.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml.cs b/src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml.cs index 6a47f2f7cc30..7a8015b762f0 100644 --- a/src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml.cs +++ b/src/Identity/UI/src/Areas/Identity/Pages/V4/Error.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; diff --git a/src/Identity/UI/src/Areas/Identity/Services/EmailSender.cs b/src/Identity/UI/src/Areas/Identity/Services/EmailSender.cs index 33ef0f0cacda..0c8715bbc73e 100644 --- a/src/Identity/UI/src/Areas/Identity/Services/EmailSender.cs +++ b/src/Identity/UI/src/Areas/Identity/Services/EmailSender.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Identity/UI/src/Areas/Identity/Services/IEmailSender.cs b/src/Identity/UI/src/Areas/Identity/Services/IEmailSender.cs index 3c66107b94ad..36d687fad153 100644 --- a/src/Identity/UI/src/Areas/Identity/Services/IEmailSender.cs +++ b/src/Identity/UI/src/Areas/Identity/Services/IEmailSender.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Identity/UI/src/IdentityBuilderUIExtensions.cs b/src/Identity/UI/src/IdentityBuilderUIExtensions.cs index a6d78938573b..962dfae6c016 100644 --- a/src/Identity/UI/src/IdentityBuilderUIExtensions.cs +++ b/src/Identity/UI/src/IdentityBuilderUIExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/UI/src/IdentityDefaultUIAttribute.cs b/src/Identity/UI/src/IdentityDefaultUIAttribute.cs index 5e1cc3885bd6..154352ad897f 100644 --- a/src/Identity/UI/src/IdentityDefaultUIAttribute.cs +++ b/src/Identity/UI/src/IdentityDefaultUIAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs b/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs index f8d68d92fc61..60082028ede1 100644 --- a/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs +++ b/src/Identity/UI/src/IdentityDefaultUIConfigureOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authentication.Cookies; diff --git a/src/Identity/UI/src/IdentityPageModelConvention.cs b/src/Identity/UI/src/IdentityPageModelConvention.cs index 79635db72c60..1a5da07eb445 100644 --- a/src/Identity/UI/src/IdentityPageModelConvention.cs +++ b/src/Identity/UI/src/IdentityPageModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Identity/UI/src/IdentityServiceCollectionUIExtensions.cs b/src/Identity/UI/src/IdentityServiceCollectionUIExtensions.cs index 188cfc7fe6c4..4361dfafd907 100644 --- a/src/Identity/UI/src/IdentityServiceCollectionUIExtensions.cs +++ b/src/Identity/UI/src/IdentityServiceCollectionUIExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Identity/UI/src/LoggerEventIds.cs b/src/Identity/UI/src/LoggerEventIds.cs index e4c01a1f8a48..ac08a7a3a61f 100644 --- a/src/Identity/UI/src/LoggerEventIds.cs +++ b/src/Identity/UI/src/LoggerEventIds.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; diff --git a/src/Identity/UI/src/UIFramework.cs b/src/Identity/UI/src/UIFramework.cs index 4637bd431265..f0c6ead13e8e 100644 --- a/src/Identity/UI/src/UIFramework.cs +++ b/src/Identity/UI/src/UIFramework.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity.UI { diff --git a/src/Identity/UI/src/UIFrameworkAttribute.cs b/src/Identity/UI/src/UIFrameworkAttribute.cs index e36aae2e736f..f3961b7291b2 100644 --- a/src/Identity/UI/src/UIFrameworkAttribute.cs +++ b/src/Identity/UI/src/UIFrameworkAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/UI/src/wwwroot/V4/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/Identity/UI/src/wwwroot/V4/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js index 57e8b2e475d6..553d427471b0 100644 --- a/src/Identity/UI/src/wwwroot/V4/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +++ b/src/Identity/UI/src/wwwroot/V4/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js @@ -2,4 +2,4 @@ // 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. // @version v3.2.11 -!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Manage/Index.cshtml.cs b/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Manage/Index.cshtml.cs index c6b49e501009..6b15abe18ebf 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Manage/Index.cshtml.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Manage/Index.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Register.cshtml.cs b/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Register.cshtml.cs index 6ff8f2b211c5..0723d465a625 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Register.cshtml.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Areas/Identity/Pages/Account/Register.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Controllers/HomeController.cs b/src/Identity/samples/IdentitySample.DefaultUI/Controllers/HomeController.cs index d0883b03d333..6dd94754f441 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Controllers/HomeController.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Controllers/HomeController.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.Mvc; namespace IdentitySample.DefaultUI.Controllers diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationDbContext.cs b/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationDbContext.cs index 1e96af6bee62..84ad48b927ba 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationDbContext.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationDbContext.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationUser.cs b/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationUser.cs index cba3ed5f403f..1adfa73a1822 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationUser.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Data/ApplicationUser.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Identity; +// 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.Identity; namespace IdentitySample.DefaultUI.Data { diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Data/Migrations/20190411154115_CreateIdentitySchema.cs b/src/Identity/samples/IdentitySample.DefaultUI/Data/Migrations/20190411154115_CreateIdentitySchema.cs index 091387a0a5e2..16e88678a1ef 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Data/Migrations/20190411154115_CreateIdentitySchema.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Data/Migrations/20190411154115_CreateIdentitySchema.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 Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Program.cs b/src/Identity/samples/IdentitySample.DefaultUI/Program.cs index 2669c06b7fec..51c37ace720c 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Program.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/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.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; diff --git a/src/Identity/samples/IdentitySample.DefaultUI/Startup.cs b/src/Identity/samples/IdentitySample.DefaultUI/Startup.cs index d3158994a24c..783461a7d1ee 100644 --- a/src/Identity/samples/IdentitySample.DefaultUI/Startup.cs +++ b/src/Identity/samples/IdentitySample.DefaultUI/Startup.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.Threading.Tasks; using IdentitySample.DefaultUI.Data; using Microsoft.AspNetCore.Builder; diff --git a/src/Identity/samples/IdentitySample.Mvc/Controllers/AccountController.cs b/src/Identity/samples/IdentitySample.Mvc/Controllers/AccountController.cs index c1616a11f698..642b3255f5dc 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Controllers/AccountController.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Controllers/AccountController.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.Linq; using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.Mvc/Controllers/HomeController.cs b/src/Identity/samples/IdentitySample.Mvc/Controllers/HomeController.cs index b98b2869ec91..bd5152ce2734 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Controllers/HomeController.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Controllers/HomeController.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.Mvc; namespace IdentitySample.Controllers diff --git a/src/Identity/samples/IdentitySample.Mvc/Controllers/ManageController.cs b/src/Identity/samples/IdentitySample.Mvc/Controllers/ManageController.cs index 628345fbe57f..aab7ba63b533 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Controllers/ManageController.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Controllers/ManageController.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.Linq; using System.Threading.Tasks; using IdentitySample.Models; diff --git a/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/00000000000000_CreateIdentitySchema.cs b/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/00000000000000_CreateIdentitySchema.cs index 7233e2d3bc51..d04f7f6d5d33 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/00000000000000_CreateIdentitySchema.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/00000000000000_CreateIdentitySchema.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/ApplicationDbContextModelSnapshot.cs b/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/ApplicationDbContextModelSnapshot.cs index 2d313129806f..cc88b1c3ced3 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Data/Migrations/ApplicationDbContextModelSnapshot.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/Identity/samples/IdentitySample.Mvc/MessageServices.cs b/src/Identity/samples/IdentitySample.Mvc/MessageServices.cs index 6860d99af9f1..5e20a55eeaa5 100644 --- a/src/Identity/samples/IdentitySample.Mvc/MessageServices.cs +++ b/src/Identity/samples/IdentitySample.Mvc/MessageServices.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.Threading.Tasks; namespace IdentitySamples diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ExternalLoginConfirmationViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ExternalLoginConfirmationViewModel.cs index da18df3ef270..99300a7b92e8 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ExternalLoginConfirmationViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ExternalLoginConfirmationViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ForgotPasswordViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ForgotPasswordViewModel.cs index 7685e0ec1961..629a87dc5b8e 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ForgotPasswordViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ForgotPasswordViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/LoginViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/LoginViewModel.cs index 7b269fb517ec..3ed85258a33a 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/LoginViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/LoginViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/RegisterViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/RegisterViewModel.cs index 99bf5fa910cf..088b2f263d2d 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/RegisterViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/RegisterViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ResetPasswordViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ResetPasswordViewModel.cs index 89959c847fab..503a139d3142 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ResetPasswordViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/ResetPasswordViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/SendCodeViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/SendCodeViewModel.cs index 7d8716745741..182abd11254b 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/SendCodeViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/SendCodeViewModel.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/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/UseRecoveryCodeViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/UseRecoveryCodeViewModel.cs index f3b602755765..174d3bccb8ba 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/UseRecoveryCodeViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/UseRecoveryCodeViewModel.cs @@ -1,4 +1,7 @@ -using System.ComponentModel.DataAnnotations; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.ComponentModel.DataAnnotations; namespace IdentitySample.Models.AccountViewModels { diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyAuthenticatorCodeViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyAuthenticatorCodeViewModel.cs index 790d841f150b..8811138b8665 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyAuthenticatorCodeViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyAuthenticatorCodeViewModel.cs @@ -1,4 +1,7 @@ -using System.ComponentModel.DataAnnotations; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.ComponentModel.DataAnnotations; namespace IdentitySample.Models.AccountViewModels { diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyCodeViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyCodeViewModel.cs index caf3457f4a50..a387cd9d8e64 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyCodeViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels/VerifyCodeViewModel.cs @@ -1,4 +1,7 @@ -using System.ComponentModel.DataAnnotations; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.ComponentModel.DataAnnotations; namespace IdentitySample.Models.AccountViewModels { diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationDbContext.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationDbContext.cs index 902414c46ceb..494cb53ad0f9 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationDbContext.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationDbContext.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/Identity/samples/IdentitySample.Mvc/Models/ApplicationUser.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationUser.cs index 1034780fdfc9..2b1d5f391f89 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationUser.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ApplicationUser.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/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/AddPhoneNumberViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/AddPhoneNumberViewModel.cs index 28f0d3aafbb1..e6794546aa5b 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/AddPhoneNumberViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/AddPhoneNumberViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ChangePasswordViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ChangePasswordViewModel.cs index c30745e58264..f9d4b97eb646 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ChangePasswordViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ChangePasswordViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ConfigureTwoFactorViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ConfigureTwoFactorViewModel.cs index 76d371bfdfa9..15962334c8b5 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ConfigureTwoFactorViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ConfigureTwoFactorViewModel.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/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/DisplayRecoveryCodesViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/DisplayRecoveryCodesViewModel.cs index cd91aa2b7931..9d04a0698c5c 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/DisplayRecoveryCodesViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/DisplayRecoveryCodesViewModel.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace IdentitySample.Models.ManageViewModels diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/FactorViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/FactorViewModel.cs index 88b968ae7176..c27856eb41cc 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/FactorViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/FactorViewModel.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/IndexViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/IndexViewModel.cs index e8967b459e6e..afab3add76df 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/IndexViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/IndexViewModel.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.Collections.Generic; using Microsoft.AspNetCore.Identity; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ManageLoginsViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ManageLoginsViewModel.cs index b7bd94a1955b..3c000acf59f2 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ManageLoginsViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/ManageLoginsViewModel.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.Collections.Generic; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Identity; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/RemoveLoginViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/RemoveLoginViewModel.cs index b46474e669b4..972ebdeed0ab 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/RemoveLoginViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/RemoveLoginViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/SetPasswordViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/SetPasswordViewModel.cs index 2e5fc4369ca6..085071dcb2fd 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/SetPasswordViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/SetPasswordViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/VerifyPhoneNumberViewModel.cs b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/VerifyPhoneNumberViewModel.cs index fbe22f4c8668..68d1f81a9b0d 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/VerifyPhoneNumberViewModel.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Models/ManageViewModels/VerifyPhoneNumberViewModel.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.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Identity/samples/IdentitySample.Mvc/Program.cs b/src/Identity/samples/IdentitySample.Mvc/Program.cs index b157694babc8..f6f4517e1bbd 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Program.cs +++ b/src/Identity/samples/IdentitySample.Mvc/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.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Identity/samples/IdentitySample.Mvc/Services/IEmailSender.cs b/src/Identity/samples/IdentitySample.Mvc/Services/IEmailSender.cs index f8a5ef6d597e..a8133ab2b034 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Services/IEmailSender.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Services/IEmailSender.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.Mvc/Services/ISmsSender.cs b/src/Identity/samples/IdentitySample.Mvc/Services/ISmsSender.cs index 169b56bac7be..2738cfa96862 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Services/ISmsSender.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Services/ISmsSender.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.Mvc/Services/MessageServices.cs b/src/Identity/samples/IdentitySample.Mvc/Services/MessageServices.cs index 469bb05c7738..acdcd193dc59 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Services/MessageServices.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Services/MessageServices.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.Linq; using System.Threading.Tasks; diff --git a/src/Identity/samples/IdentitySample.Mvc/Startup.cs b/src/Identity/samples/IdentitySample.Mvc/Startup.cs index 8362bf25195a..b29746cdff14 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Startup.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Startup.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 IdentitySample.Models; using IdentitySample.Services; using Microsoft.AspNetCore.Builder; diff --git a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserAuthorizationTests.cs b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserAuthorizationTests.cs index e9503e6aeaa3..16f0294610ee 100644 --- a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserAuthorizationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserAuthorizationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Identity.DefaultUI.WebSite.Data; diff --git a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserLoginTests.cs b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserLoginTests.cs index 936b7d8149c6..19c4a15508d8 100644 --- a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserLoginTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserLoginTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Identity.DefaultUI.WebSite.Data; diff --git a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserManagementTests.cs b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserManagementTests.cs index 66e9d09b6c35..51afeb45c967 100644 --- a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserManagementTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserManagementTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Identity.DefaultUI.WebSite.Data; diff --git a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserRegistrationTests.cs b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserRegistrationTests.cs index 2c7052083f33..291588c5435c 100644 --- a/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserRegistrationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/ApplicationUserTests/ApplicationUserRegistrationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Identity.DefaultUI.WebSite.Data; diff --git a/src/Identity/test/Identity.FunctionalTests/AuthorizationTests.cs b/src/Identity/test/Identity.FunctionalTests/AuthorizationTests.cs index 3ccc399bfdf9..a7db8ff72431 100644 --- a/src/Identity/test/Identity.FunctionalTests/AuthorizationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/AuthorizationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Extensions/HtmlAssert.cs b/src/Identity/test/Identity.FunctionalTests/Extensions/HtmlAssert.cs index 315098e53ac8..00c3cd303d51 100644 --- a/src/Identity/test/Identity.FunctionalTests/Extensions/HtmlAssert.cs +++ b/src/Identity/test/Identity.FunctionalTests/Extensions/HtmlAssert.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Identity/test/Identity.FunctionalTests/Extensions/HttpClientExtensions.cs b/src/Identity/test/Identity.FunctionalTests/Extensions/HttpClientExtensions.cs index 17c8be64b6fb..730b70775735 100644 --- a/src/Identity/test/Identity.FunctionalTests/Extensions/HttpClientExtensions.cs +++ b/src/Identity/test/Identity.FunctionalTests/Extensions/HttpClientExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/Extensions/ResponseAssert.cs b/src/Identity/test/Identity.FunctionalTests/Extensions/ResponseAssert.cs index 208112a08628..c23555d8292a 100644 --- a/src/Identity/test/Identity.FunctionalTests/Extensions/ResponseAssert.cs +++ b/src/Identity/test/Identity.FunctionalTests/Extensions/ResponseAssert.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationTests.cs b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationTests.cs index 457aa2f0fef5..365f326be256 100644 --- a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationWithoutEndpointRoutingTests.cs b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationWithoutEndpointRoutingTests.cs index ea8334e8da97..74bfc549d3d4 100644 --- a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationWithoutEndpointRoutingTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserAuthorizationWithoutEndpointRoutingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginTests.cs b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginTests.cs index 6cfc15dca735..d8312e18c5b9 100644 --- a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginWithoutEndpointRoutingTests.cs b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginWithoutEndpointRoutingTests.cs index 8d77e16be56f..700c26d32599 100644 --- a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginWithoutEndpointRoutingTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserLoginWithoutEndpointRoutingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserManagementTests.cs b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserManagementTests.cs index ffb53cce858b..e83e59caa6cb 100644 --- a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserManagementTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserManagementTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserRegistrationTests.cs b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserRegistrationTests.cs index 692b7e5db2f2..b606b7e57eea 100644 --- a/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserRegistrationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/IdentityUserTests/IdentityUserRegistrationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIContext.cs b/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIContext.cs index 45aa3bca5cbb..75629761922a 100644 --- a/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIContext.cs +++ b/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIPage.cs b/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIPage.cs index fdda0ad266cf..15acf5ac6633 100644 --- a/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIPage.cs +++ b/src/Identity/test/Identity.FunctionalTests/Infrastructure/DefaultUIPage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using AngleSharp.Dom.Html; diff --git a/src/Identity/test/Identity.FunctionalTests/Infrastructure/FunctionalTestsServiceCollectionExtensions.cs b/src/Identity/test/Identity.FunctionalTests/Infrastructure/FunctionalTestsServiceCollectionExtensions.cs index 649e53418193..a4c39ad07746 100644 --- a/src/Identity/test/Identity.FunctionalTests/Infrastructure/FunctionalTestsServiceCollectionExtensions.cs +++ b/src/Identity/test/Identity.FunctionalTests/Infrastructure/FunctionalTestsServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -28,14 +28,14 @@ public static IServiceCollection SetupTestDatabase(this IServiceCollec { services.Remove(descriptor); } - + services.AddScoped(p => DbContextOptionsFactory( p, (sp, options) => options .ConfigureWarnings(b => b.Log(CoreEventId.ManyServiceProvidersCreatedWarning)) .UseSqlite(connection))); - + return services; } diff --git a/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPage.cs b/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPage.cs index 7c5ac2375750..c7576009bc00 100644 --- a/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPage.cs +++ b/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using AngleSharp.Dom.Html; diff --git a/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPageContext.cs b/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPageContext.cs index 546b73b526ed..8f123399e631 100644 --- a/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPageContext.cs +++ b/src/Identity/test/Identity.FunctionalTests/Infrastructure/HtmlPageContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Identity/test/Identity.FunctionalTests/Infrastructure/ServerFactory.cs b/src/Identity/test/Identity.FunctionalTests/Infrastructure/ServerFactory.cs index adb5ecd6ca1d..bd263dc6016f 100644 --- a/src/Identity/test/Identity.FunctionalTests/Infrastructure/ServerFactory.cs +++ b/src/Identity/test/Identity.FunctionalTests/Infrastructure/ServerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/LoginTests.cs b/src/Identity/test/Identity.FunctionalTests/LoginTests.cs index 7a7b0b59fce4..deeac86312f9 100644 --- a/src/Identity/test/Identity.FunctionalTests/LoginTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/LoginTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/ManagementTests.cs b/src/Identity/test/Identity.FunctionalTests/ManagementTests.cs index 2325fe6fea90..961464ed8e04 100644 --- a/src/Identity/test/Identity.FunctionalTests/ManagementTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/ManagementTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/NoIdentityAddedTests.cs b/src/Identity/test/Identity.FunctionalTests/NoIdentityAddedTests.cs index 5aaafba7b6b0..ca5ae165ffa1 100644 --- a/src/Identity/test/Identity.FunctionalTests/NoIdentityAddedTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/NoIdentityAddedTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ConfirmEmail.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ConfirmEmail.cs index 3632dd849b19..b94cb141d066 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ConfirmEmail.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ConfirmEmail.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ExternalLogin.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ExternalLogin.cs index a2bfcebcfd64..20c264b7db3d 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ExternalLogin.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ExternalLogin.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPassword.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPassword.cs index 71ba662d19e4..f0c21e08c1ee 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPassword.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPassword.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPasswordConfirmation.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPasswordConfirmation.cs index ab6fa15fc2e2..80b3f1ae9b95 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPasswordConfirmation.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ForgotPasswordConfirmation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using AngleSharp.Dom.Html; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Login.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Login.cs index 6960ac89645f..0f27a8c4be77 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Login.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Login.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWith2fa.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWith2fa.cs index 921d0da6d207..64be000bce7e 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWith2fa.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWith2fa.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWithRecoveryCode.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWithRecoveryCode.cs index 01fb130ab799..e27e9a9c50e6 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWithRecoveryCode.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/LoginWithRecoveryCode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ChangePassword.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ChangePassword.cs index 126f9f65298a..331dd9104567 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ChangePassword.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ChangePassword.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/DeleteUser.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/DeleteUser.cs index 0971b215f651..9dac03b5676a 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/DeleteUser.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/DeleteUser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Email.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Email.cs index 2c21a678e29a..8058e358f6c8 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Email.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Email.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/EnableAuthenticator.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/EnableAuthenticator.cs index 4d9d765acc32..8cebb96d612f 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/EnableAuthenticator.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/EnableAuthenticator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ExternalLogins.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ExternalLogins.cs index d052f5838eb2..43aafcca8fa4 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ExternalLogins.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ExternalLogins.cs @@ -1,4 +1,7 @@ -using System.Net.Http; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Net.Http; using AngleSharp.Dom.Html; namespace Microsoft.AspNetCore.Identity.FunctionalTests.Account.Manage diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Index.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Index.cs index 6aafa609d2ac..d1cec191661b 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Index.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/Index.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/LinkExternalLogin.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/LinkExternalLogin.cs index cca216f1b7b6..9b5271766043 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/LinkExternalLogin.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/LinkExternalLogin.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ManageExternalLogin.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ManageExternalLogin.cs index f3904abef986..b8cbc020fc85 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ManageExternalLogin.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ManageExternalLogin.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/PersonalData.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/PersonalData.cs index c5c8fc879192..9d095ea5966a 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/PersonalData.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/PersonalData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/RemoveExternalLogin.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/RemoveExternalLogin.cs index 32a7d57ef3b0..e852c8a12ae8 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/RemoveExternalLogin.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/RemoveExternalLogin.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ResetAuthenticator.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ResetAuthenticator.cs index 40bb6caadce2..6bd4b1c2d783 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ResetAuthenticator.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ResetAuthenticator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/SetPassword.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/SetPassword.cs index 4917bcf14bdb..07d3491b3eca 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/SetPassword.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/SetPassword.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ShowRecoveryCodes.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ShowRecoveryCodes.cs index 1fbc98fa0477..0a8a5977d1be 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ShowRecoveryCodes.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/ShowRecoveryCodes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/TwoFactorAuthentication.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/TwoFactorAuthentication.cs index 3b5573bf635b..1dfd3f0ee3b1 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/TwoFactorAuthentication.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/TwoFactorAuthentication.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Register.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Register.cs index 52d883cbf185..4ee7fee609b0 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/Register.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/Register.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResendEmailConfirmation.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResendEmailConfirmation.cs index d41cb142d8b0..f5c6c65d7493 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResendEmailConfirmation.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResendEmailConfirmation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPassword.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPassword.cs index 7596f4dd283a..bbcc48ba3896 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPassword.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPassword.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPasswordConfirmation.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPasswordConfirmation.cs index 015d6972b18c..7af7708df9c6 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPasswordConfirmation.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Account/ResetPasswordConfirmation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using AngleSharp.Dom.Html; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Contoso/Login.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Contoso/Login.cs index 88f31f2bcbd8..8e27483802fa 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Contoso/Login.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Contoso/Login.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/Index.cs b/src/Identity/test/Identity.FunctionalTests/Pages/Index.cs index b87ef086ee4c..26866e5e5347 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/Index.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/Index.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/Pages/RegisterConfirmation.cs b/src/Identity/test/Identity.FunctionalTests/Pages/RegisterConfirmation.cs index d40611025328..1c9414e42cc3 100644 --- a/src/Identity/test/Identity.FunctionalTests/Pages/RegisterConfirmation.cs +++ b/src/Identity/test/Identity.FunctionalTests/Pages/RegisterConfirmation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserAuthorizationTests.cs b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserAuthorizationTests.cs index 26457077d4b8..184fdf641a46 100644 --- a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserAuthorizationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserAuthorizationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserLoginTests.cs b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserLoginTests.cs index 8bea3d6a27e9..08d269545bff 100644 --- a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserLoginTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserLoginTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserManagementTests.cs b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserManagementTests.cs index 2f39e71e8e9f..15090b3a015c 100644 --- a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserManagementTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserManagementTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserRegistrationTests.cs b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserRegistrationTests.cs index 3547ea988e7f..2f772fdfba30 100644 --- a/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserRegistrationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/PocoUserTests/PocoUserRegistrationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/test/Identity.FunctionalTests/Properties/AssemblyInfo.cs b/src/Identity/test/Identity.FunctionalTests/Properties/AssemblyInfo.cs index c451ef145235..e10ebcd60dab 100644 --- a/src/Identity/test/Identity.FunctionalTests/Properties/AssemblyInfo.cs +++ b/src/Identity/test/Identity.FunctionalTests/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Identity/test/Identity.FunctionalTests/RegistrationTests.cs b/src/Identity/test/Identity.FunctionalTests/RegistrationTests.cs index 8292f1dc1e73..65ec9f48e03f 100644 --- a/src/Identity/test/Identity.FunctionalTests/RegistrationTests.cs +++ b/src/Identity/test/Identity.FunctionalTests/RegistrationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Identity/test/Identity.FunctionalTests/UserStories.cs b/src/Identity/test/Identity.FunctionalTests/UserStories.cs index 2610139fe053..c9877d720e3f 100644 --- a/src/Identity/test/Identity.FunctionalTests/UserStories.cs +++ b/src/Identity/test/Identity.FunctionalTests/UserStories.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/ApiConsistencyTest.cs b/src/Identity/test/Identity.Test/ApiConsistencyTest.cs index 320a28003efa..46d77fbcf7e4 100644 --- a/src/Identity/test/Identity.Test/ApiConsistencyTest.cs +++ b/src/Identity/test/Identity.Test/ApiConsistencyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Builder; diff --git a/src/Identity/test/Identity.Test/Base32Test.cs b/src/Identity/test/Identity.Test/Base32Test.cs index 27fff67a6bd4..7849695e8379 100644 --- a/src/Identity/test/Identity.Test/Base32Test.cs +++ b/src/Identity/test/Identity.Test/Base32Test.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/Identity/test/Identity.Test/IdentityBuilderTest.cs b/src/Identity/test/Identity.Test/IdentityBuilderTest.cs index 9d5b4c88de07..4789764fb291 100644 --- a/src/Identity/test/Identity.Test/IdentityBuilderTest.cs +++ b/src/Identity/test/Identity.Test/IdentityBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/IdentityOptionsTest.cs b/src/Identity/test/Identity.Test/IdentityOptionsTest.cs index 19eff76eab06..b986f0534614 100644 --- a/src/Identity/test/Identity.Test/IdentityOptionsTest.cs +++ b/src/Identity/test/Identity.Test/IdentityOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Identity/test/Identity.Test/IdentityResultTest.cs b/src/Identity/test/Identity.Test/IdentityResultTest.cs index cfb04b5b6258..f79cdc4065db 100644 --- a/src/Identity/test/Identity.Test/IdentityResultTest.cs +++ b/src/Identity/test/Identity.Test/IdentityResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Xunit; diff --git a/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs b/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs index fc7f282f7725..4f2a912b4e48 100644 --- a/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs +++ b/src/Identity/test/Identity.Test/IdentityUIScriptsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using AngleSharp.Dom.Html; using AngleSharp.Parser.Html; diff --git a/src/Identity/test/Identity.Test/NoopRoleStore.cs b/src/Identity/test/Identity.Test/NoopRoleStore.cs index 9185578d043d..980d88df3b8a 100644 --- a/src/Identity/test/Identity.Test/NoopRoleStore.cs +++ b/src/Identity/test/Identity.Test/NoopRoleStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Identity/test/Identity.Test/NoopUserStore.cs b/src/Identity/test/Identity.Test/NoopUserStore.cs index 16d380b347ef..0e3775739fad 100644 --- a/src/Identity/test/Identity.Test/NoopUserStore.cs +++ b/src/Identity/test/Identity.Test/NoopUserStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/PasswordHasherTest.cs b/src/Identity/test/Identity.Test/PasswordHasherTest.cs index a2281b52db65..6ae0a94b3b76 100644 --- a/src/Identity/test/Identity.Test/PasswordHasherTest.cs +++ b/src/Identity/test/Identity.Test/PasswordHasherTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/Identity/test/Identity.Test/PasswordValidatorTest.cs b/src/Identity/test/Identity.Test/PasswordValidatorTest.cs index 8271f5b608d9..5eb4f87fcdd6 100644 --- a/src/Identity/test/Identity.Test/PasswordValidatorTest.cs +++ b/src/Identity/test/Identity.Test/PasswordValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/PrincipalExtensionsTest.cs b/src/Identity/test/Identity.Test/PrincipalExtensionsTest.cs index df9c33e48e13..9e2fc2687393 100644 --- a/src/Identity/test/Identity.Test/PrincipalExtensionsTest.cs +++ b/src/Identity/test/Identity.Test/PrincipalExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Identity/test/Identity.Test/RetryHandler.cs b/src/Identity/test/Identity.Test/RetryHandler.cs index f17446d0d3b2..4c2e0498ebb4 100644 --- a/src/Identity/test/Identity.Test/RetryHandler.cs +++ b/src/Identity/test/Identity.Test/RetryHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -57,7 +57,7 @@ protected override async Task SendAsync(HttpRequestMessage _waitIntervalBeforeRetry = _waitIntervalBeforeRetry * 2; } } - + // Try one last time to show the actual error. return await base.SendAsync(request, cancellationToken); } diff --git a/src/Identity/test/Identity.Test/RoleManagerTest.cs b/src/Identity/test/Identity.Test/RoleManagerTest.cs index bebebc9ea021..1ed760a2a4ea 100644 --- a/src/Identity/test/Identity.Test/RoleManagerTest.cs +++ b/src/Identity/test/Identity.Test/RoleManagerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/RoleValidatorTest.cs b/src/Identity/test/Identity.Test/RoleValidatorTest.cs index 848c7a82581a..c1a1d35b4853 100644 --- a/src/Identity/test/Identity.Test/RoleValidatorTest.cs +++ b/src/Identity/test/Identity.Test/RoleValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/SecurityStampValidatorTest.cs b/src/Identity/test/Identity.Test/SecurityStampValidatorTest.cs index 0710973b25bd..f8df6c00b476 100644 --- a/src/Identity/test/Identity.Test/SecurityStampValidatorTest.cs +++ b/src/Identity/test/Identity.Test/SecurityStampValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Identity/test/Identity.Test/SignInManagerTest.cs b/src/Identity/test/Identity.Test/SignInManagerTest.cs index 89090591b0c3..599feb5aa9b9 100644 --- a/src/Identity/test/Identity.Test/SignInManagerTest.cs +++ b/src/Identity/test/Identity.Test/SignInManagerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/UserClaimsPrincipalFactoryTest.cs b/src/Identity/test/Identity.Test/UserClaimsPrincipalFactoryTest.cs index bcf42f459d8e..1e6eb3eb6f06 100644 --- a/src/Identity/test/Identity.Test/UserClaimsPrincipalFactoryTest.cs +++ b/src/Identity/test/Identity.Test/UserClaimsPrincipalFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/UserManagerTest.cs b/src/Identity/test/Identity.Test/UserManagerTest.cs index c12a34083f28..57061d3164f2 100644 --- a/src/Identity/test/Identity.Test/UserManagerTest.cs +++ b/src/Identity/test/Identity.Test/UserManagerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Identity.Test/UserValidatorTest.cs b/src/Identity/test/Identity.Test/UserValidatorTest.cs index 576373f47ad9..18b8cc7bc4d7 100644 --- a/src/Identity/test/Identity.Test/UserValidatorTest.cs +++ b/src/Identity/test/Identity.Test/UserValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/InMemory.Test/ControllerTest.cs b/src/Identity/test/InMemory.Test/ControllerTest.cs index d986139db5a2..a052181e424b 100644 --- a/src/Identity/test/InMemory.Test/ControllerTest.cs +++ b/src/Identity/test/InMemory.Test/ControllerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; @@ -38,7 +38,7 @@ public async Task VerifyAccountControllerSignIn(bool isPersistent) services.AddIdentity(); services.AddSingleton, InMemoryStore>(); services.AddSingleton, InMemoryStore>(); - + var app = new ApplicationBuilder(services.BuildServiceProvider()); // Act diff --git a/src/Identity/test/InMemory.Test/FunctionalTest.cs b/src/Identity/test/InMemory.Test/FunctionalTest.cs index efdfa546a77e..c77ca0716023 100644 --- a/src/Identity/test/InMemory.Test/FunctionalTest.cs +++ b/src/Identity/test/InMemory.Test/FunctionalTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Identity/test/InMemory.Test/InMemoryStore.cs b/src/Identity/test/InMemory.Test/InMemoryStore.cs index 35ae6b4441bd..c21679ccb538 100644 --- a/src/Identity/test/InMemory.Test/InMemoryStore.cs +++ b/src/Identity/test/InMemory.Test/InMemoryStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/InMemory.Test/InMemoryStoreTest.cs b/src/Identity/test/InMemory.Test/InMemoryStoreTest.cs index d19fc8a62d71..7da387d7ee1d 100644 --- a/src/Identity/test/InMemory.Test/InMemoryStoreTest.cs +++ b/src/Identity/test/InMemory.Test/InMemoryStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/test/InMemory.Test/InMemoryUserStore.cs b/src/Identity/test/InMemory.Test/InMemoryUserStore.cs index fbce7edba5f4..e0a7988c8ee6 100644 --- a/src/Identity/test/InMemory.Test/InMemoryUserStore.cs +++ b/src/Identity/test/InMemory.Test/InMemoryUserStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/InMemory.Test/InMemoryUserStoreTest.cs b/src/Identity/test/InMemory.Test/InMemoryUserStoreTest.cs index 1862e66c2855..f65c8857b217 100644 --- a/src/Identity/test/InMemory.Test/InMemoryUserStoreTest.cs +++ b/src/Identity/test/InMemory.Test/InMemoryUserStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Identity/test/InMemory.Test/TestClock.cs b/src/Identity/test/InMemory.Test/TestClock.cs index d228c1bc6898..3219f29a3934 100644 --- a/src/Identity/test/InMemory.Test/TestClock.cs +++ b/src/Identity/test/InMemory.Test/TestClock.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authentication; diff --git a/src/Identity/test/Shared/ApiConsistencyTestBase.cs b/src/Identity/test/Shared/ApiConsistencyTestBase.cs index 6910d89ac8f6..cb846efefc53 100644 --- a/src/Identity/test/Shared/ApiConsistencyTestBase.cs +++ b/src/Identity/test/Shared/ApiConsistencyTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Shared/MockHelpers.cs b/src/Identity/test/Shared/MockHelpers.cs index c476e5204400..dac491995dd4 100644 --- a/src/Identity/test/Shared/MockHelpers.cs +++ b/src/Identity/test/Shared/MockHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Shared/PocoModel/PocoRole.cs b/src/Identity/test/Shared/PocoModel/PocoRole.cs index 26d908a4b45c..d0b618ed3c60 100644 --- a/src/Identity/test/Shared/PocoModel/PocoRole.cs +++ b/src/Identity/test/Shared/PocoModel/PocoRole.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Shared/PocoModel/PocoRoleClaim.cs b/src/Identity/test/Shared/PocoModel/PocoRoleClaim.cs index 64daeb2ced16..291d0661b00a 100644 --- a/src/Identity/test/Shared/PocoModel/PocoRoleClaim.cs +++ b/src/Identity/test/Shared/PocoModel/PocoRoleClaim.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/test/Shared/PocoModel/PocoUser.cs b/src/Identity/test/Shared/PocoModel/PocoUser.cs index 5d6afe2369b6..4a42932c662c 100644 --- a/src/Identity/test/Shared/PocoModel/PocoUser.cs +++ b/src/Identity/test/Shared/PocoModel/PocoUser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/test/Shared/PocoModel/PocoUserClaim.cs b/src/Identity/test/Shared/PocoModel/PocoUserClaim.cs index 29dd7f668fb6..f9062c5021eb 100644 --- a/src/Identity/test/Shared/PocoModel/PocoUserClaim.cs +++ b/src/Identity/test/Shared/PocoModel/PocoUserClaim.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/test/Shared/PocoModel/PocoUserLogin.cs b/src/Identity/test/Shared/PocoModel/PocoUserLogin.cs index d516bd68aaa9..50c09f70f9b1 100644 --- a/src/Identity/test/Shared/PocoModel/PocoUserLogin.cs +++ b/src/Identity/test/Shared/PocoModel/PocoUserLogin.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/test/Shared/PocoModel/PocoUserRole.cs b/src/Identity/test/Shared/PocoModel/PocoUserRole.cs index 9d9bd7a7227b..69ccf276b43d 100644 --- a/src/Identity/test/Shared/PocoModel/PocoUserRole.cs +++ b/src/Identity/test/Shared/PocoModel/PocoUserRole.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/test/Shared/PocoModel/PocoUserToken.cs b/src/Identity/test/Shared/PocoModel/PocoUserToken.cs index 6eeca6059786..4bcae344f131 100644 --- a/src/Identity/test/Shared/PocoModel/PocoUserToken.cs +++ b/src/Identity/test/Shared/PocoModel/PocoUserToken.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Identity/test/Shared/PriorityOrderer.cs b/src/Identity/test/Shared/PriorityOrderer.cs index 1e43b1140866..861c1cb92de9 100644 --- a/src/Identity/test/Shared/PriorityOrderer.cs +++ b/src/Identity/test/Shared/PriorityOrderer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Identity.Test { diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs index 56604b332d96..8cc281335717 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/ApplicationUserStartup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Identity.DefaultUI.WebSite.Data; using Microsoft.Extensions.Configuration; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs index 6364ff093368..d3c729707984 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationDbContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs index 7a3a06229f99..3c6a398ace65 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/ApplicationUser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Identity; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs index 3b0ba5c7d7d5..63f7e1be5a21 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/00000000000000_CreateIdentitySchema.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore.Metadata; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs index 33fe9bf03de5..fc01ceff5af1 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/20180217170630_UpdateIdentitySchema.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore.Migrations; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs index 16bf090c3d13..49d20a6f141c 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Data/Migrations/IdentityDbContextModelSnapshot.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. // using System; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/FileVersionProvider.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/FileVersionProvider.cs index 1632840fbd8c..b0c97b442308 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/FileVersionProvider.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/FileVersionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/NoIdentityStartup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/NoIdentityStartup.cs index 017f8e7a0d6e..2076e2aec5d1 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/NoIdentityStartup.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/NoIdentityStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs index e97b560952f3..2afb34c1d76d 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/About.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs index 498bd374fa1f..bbcb36c7ec31 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contact.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs index 722128cf218f..f3d9ee9cbd7a 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Contoso/Login.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication; using Microsoft.AspNetCore.Authorization; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs index 34dc6b333389..3af5a4b98329 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Error.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs index a799fceec87b..7183ed6b2cf7 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Index.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs index 62cf49da967b..e59999da5336 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Pages/Privacy.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUser.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUser.cs index bc1888072bba..7c759161d3ed 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUser.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Identity.DefaultUI.WebSite { diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUserStartup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUserStartup.cs index a16c7a7e8055..f13dd0f94e63 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUserStartup.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/PocoUserStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Identity; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Program.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Program.cs index fcb1275b566f..9618198db2c7 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Program.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs index 1e52a5217b0c..e01aab91cb40 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authentication; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs index 229e80c592e2..c736d74ac6d8 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Identity.DefaultUI.WebSite { diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs index 3ac1667244c2..b3db4bea22a3 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Text.Encodings.Web; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs index 5c0de39d1656..52ab57a00f7e 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoAuthenticationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs index 23cb0f3438bb..2fc937faa1dc 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/ContosoEmailSender.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs index 777e1a530113..45666d9e4364 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Services/IdentityEmail.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Identity.DefaultUI.WebSite { diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/Startup.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/Startup.cs index bbdb2c4ba1ee..c58eda7c11a7 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/Startup.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupBase.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupBase.cs index ba58d3c50491..6a517b27cfc4 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupBase.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupWithoutEndpointRouting.cs b/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupWithoutEndpointRouting.cs index 654f5948b825..9e2ef9b3d0bc 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupWithoutEndpointRouting.cs +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; diff --git a/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js index 57e8b2e475d6..553d427471b0 100644 --- a/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +++ b/src/Identity/testassets/Identity.DefaultUI.WebSite/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js @@ -2,4 +2,4 @@ // 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. // @version v3.2.11 -!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); diff --git a/src/Installers/Debian/Runtime/debian_config.json.in b/src/Installers/Debian/Runtime/debian_config.json.in index 3efa7f5381d3..0bd5417702d7 100644 --- a/src/Installers/Debian/Runtime/debian_config.json.in +++ b/src/Installers/Debian/Runtime/debian_config.json.in @@ -22,10 +22,10 @@ "architecture":"any" }, - "copyright": "Microsoft", + "copyright": ".NET Foundation and Contributors", "license": { "type": "${PackageLicenseExpression}", - "full_text": "Copyright (c) .NET Foundation. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthese files except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License." + "full_text": "The MIT License (MIT)\n\nCopyright (c) .NET Foundation and Contributors\n\nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." }, "debian_dependencies": { diff --git a/src/Installers/Debian/TargetingPack/debian_config.json.in b/src/Installers/Debian/TargetingPack/debian_config.json.in index 4df3587a0951..6ed5718d885b 100644 --- a/src/Installers/Debian/TargetingPack/debian_config.json.in +++ b/src/Installers/Debian/TargetingPack/debian_config.json.in @@ -22,10 +22,10 @@ "architecture":"any" }, - "copyright": "Microsoft", + "copyright": ".NET Foundation and Contributors", "license": { "type": "${PackageLicenseExpression}", - "full_text": "Copyright (c) .NET Foundation. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthese files except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License." + "full_text": "The MIT License (MIT)\n\nCopyright (c) .NET Foundation and Contributors\n\nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." }, "debian_dependencies": { diff --git a/src/Installers/Debian/tools/test/test_assets/test_package_layout/samples/testsample.cs b/src/Installers/Debian/tools/test/test_assets/test_package_layout/samples/testsample.cs index 4f7432b48062..086319c67a58 100644 --- a/src/Installers/Debian/tools/test/test_assets/test_package_layout/samples/testsample.cs +++ b/src/Installers/Debian/tools/test/test_assets/test_package_layout/samples/testsample.cs @@ -1,5 +1,5 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.cpp b/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.cpp index 7b43840c52a4..feba505d0fe7 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.cpp +++ b/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.cpp @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #include #include diff --git a/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/avoid_restart.cpp b/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/avoid_restart.cpp index b0e4753c44bd..2c061c76ba6f 100644 --- a/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/avoid_restart.cpp +++ b/src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/avoid_restart.cpp @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #include #include diff --git a/src/JSInterop/Microsoft.JSInterop.JS/src/package.json b/src/JSInterop/Microsoft.JSInterop.JS/src/package.json index 70724a7a805f..6aea66a972ce 100644 --- a/src/JSInterop/Microsoft.JSInterop.JS/src/package.json +++ b/src/JSInterop/Microsoft.JSInterop.JS/src/package.json @@ -17,7 +17,7 @@ "url": "git+https://github.com/dotnet/extensions.git" }, "author": "Microsoft", - "license": "Apache-2.0", + "license": "MIT", "bugs": { "url": "https://github.com/dotnet/aspnetcore/issues" }, diff --git a/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReference.cs index 53217936d67b..f8b9d476f762 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReferenceOfT.cs b/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReferenceOfT.cs index f72a63611183..8e5ad05703cf 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReferenceOfT.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/DotNetObjectReferenceOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessObjectReference.cs index 3939de7b8912..b1c7a32cef70 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessRuntime.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessRuntime.cs index 2006fc54619c..2f33ac9e5e46 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessRuntime.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSInProcessRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using static Microsoft.AspNetCore.Internal.LinkerFlags; diff --git a/src/JSInterop/Microsoft.JSInterop/src/IJSObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSObjectReference.cs index 7a41a3753267..c9f4525fa1d3 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/src/IJSRuntime.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSRuntime.cs index c968f2e209ce..f5016a386642 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSRuntime.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Threading; diff --git a/src/JSInterop/Microsoft.JSInterop/src/IJSStreamReference.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSStreamReference.cs index 686c323a08c3..645cb5f99555 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSStreamReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSStreamReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledObjectReference.cs index 9a5fc0c11c0e..bedaa103c914 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.JSInterop { diff --git a/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledRuntime.cs b/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledRuntime.cs index 6fdf00caa5db..4d342964bad0 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledRuntime.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/IJSUnmarshalledRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.JSInterop { diff --git a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSInProcessObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSInProcessObjectReference.cs index 9c3c0fa86b01..ef0581f37a8f 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSInProcessObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSInProcessObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using static Microsoft.AspNetCore.Internal.LinkerFlags; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReference.cs index f4736c049d9e..0763521d322d 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReferenceJsonWorker.cs b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReferenceJsonWorker.cs index 352d64618543..4f7cb298b460 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReferenceJsonWorker.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSObjectReferenceJsonWorker.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSStreamReference.cs b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSStreamReference.cs index 842c0bc16df2..08aeb3bf5832 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSStreamReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Implementation/JSStreamReference.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/ByteArrayJsonConverter.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/ByteArrayJsonConverter.cs index ebec90065bf4..6878bd8d8f09 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/ByteArrayJsonConverter.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/ByteArrayJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs index 927d2b74f37f..ad27c62fa859 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationInfo.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationInfo.cs index bbec14337e6b..f08c998e44a6 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationInfo.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.JSInterop.Infrastructure { diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationResult.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationResult.cs index 1d1bb6184369..b3b86adf13a4 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationResult.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetInvocationResult.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 Microsoft.JSInterop.Infrastructure diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverter.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverter.cs index a10bbd16347f..4e9d12cdee47 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverter.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverterFactory.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverterFactory.cs index e06601ca0a22..deab7fc8bb9b 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverterFactory.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetObjectReferenceJsonConverterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/IDotNetObjectReference.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/IDotNetObjectReference.cs index 4b84f2bd0c78..d92c552d963d 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/IDotNetObjectReference.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/IDotNetObjectReference.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSObjectReferenceJsonConverter.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSObjectReferenceJsonConverter.cs index 037c3e8ea8c8..c55ee1025ccb 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSObjectReferenceJsonConverter.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSObjectReferenceJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSStreamReferenceJsonConverter.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSStreamReferenceJsonConverter.cs index 0f28bafdee70..900a188d7754 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSStreamReferenceJsonConverter.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/JSStreamReferenceJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/TaskGenericsUtil.cs b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/TaskGenericsUtil.cs index 2bf3aa092f0a..af5e5b5f8491 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/TaskGenericsUtil.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/TaskGenericsUtil.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSCallResultType.cs b/src/JSInterop/Microsoft.JSInterop/src/JSCallResultType.cs index 723d2b7f8644..b92dd14848c5 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSCallResultType.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSCallResultType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.JSInterop { diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSDisconnectedException.cs b/src/JSInterop/Microsoft.JSInterop/src/JSDisconnectedException.cs index b6ac22b18282..c373a1dc3f27 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSDisconnectedException.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSDisconnectedException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSException.cs b/src/JSInterop/Microsoft.JSInterop/src/JSException.cs index c2e4f1b7aece..5208011bf89f 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSException.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSInProcessObjectReferenceExtensions.cs b/src/JSInterop/Microsoft.JSInterop/src/JSInProcessObjectReferenceExtensions.cs index 387195cdf546..77005a5fd018 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSInProcessObjectReferenceExtensions.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSInProcessObjectReferenceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntime.cs b/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntime.cs index cc85251399c0..6274f132d3f1 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntime.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using System.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntimeExtensions.cs b/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntimeExtensions.cs index d7aabdcd0b38..299ceb9bc5ac 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntimeExtensions.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntimeExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSInvokableAttribute.cs b/src/JSInterop/Microsoft.JSInterop/src/JSInvokableAttribute.cs index 9f062af8b81a..30cb5d89172c 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSInvokableAttribute.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSInvokableAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSObjectReferenceExtensions.cs b/src/JSInterop/Microsoft.JSInterop/src/JSObjectReferenceExtensions.cs index 1caa3d3441f3..3c83f7694fb7 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSObjectReferenceExtensions.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSObjectReferenceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs b/src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs index b7da01fe5c45..8f8cffc1612c 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/JSInterop/Microsoft.JSInterop/src/JSRuntimeExtensions.cs b/src/JSInterop/Microsoft.JSInterop/src/JSRuntimeExtensions.cs index f8241954ddcc..5b904931981e 100644 --- a/src/JSInterop/Microsoft.JSInterop/src/JSRuntimeExtensions.cs +++ b/src/JSInterop/Microsoft.JSInterop/src/JSRuntimeExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/JSInterop/Microsoft.JSInterop/test/DotNetObjectReferenceTest.cs b/src/JSInterop/Microsoft.JSInterop/test/DotNetObjectReferenceTest.cs index 95fad485a7a4..fdbfbc60673a 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/DotNetObjectReferenceTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/DotNetObjectReferenceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/ByteArrayJsonConverterTest.cs b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/ByteArrayJsonConverterTest.cs index f74e0d8c8488..28d8cef3621e 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/ByteArrayJsonConverterTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/ByteArrayJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs index 1e32fdac70a7..021f5cd5f24e 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetDispatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable using System; diff --git a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetObjectReferenceJsonConverterTest.cs b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetObjectReferenceJsonConverterTest.cs index d2bfd2b44052..21e1e3179fcb 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetObjectReferenceJsonConverterTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/DotNetObjectReferenceJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Xunit; diff --git a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSObjectReferenceJsonConverterTest.cs b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSObjectReferenceJsonConverterTest.cs index 51d242cfda2a..55f1787eaa03 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSObjectReferenceJsonConverterTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSObjectReferenceJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSStreamReferenceJsonConverterTest.cs b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSStreamReferenceJsonConverterTest.cs index 1b12dc4de9e4..a51b3e766dee 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSStreamReferenceJsonConverterTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/Infrastructure/JSStreamReferenceJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeExtensionsTest.cs b/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeExtensionsTest.cs index 3a7f0a4d7905..08acb5f8806a 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeExtensionsTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Moq; diff --git a/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeTest.cs b/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeTest.cs index 475752aa6fd3..f653a3b6ea8b 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/JSInProcessRuntimeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/JSInterop/Microsoft.JSInterop/test/JSObjectReferenceTest.cs b/src/JSInterop/Microsoft.JSInterop/test/JSObjectReferenceTest.cs index b142fb0caf5b..51481d35c7e4 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/JSObjectReferenceTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/JSObjectReferenceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeExtensionsTest.cs b/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeExtensionsTest.cs index a5f69fbef20e..b8061a2c3caa 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeExtensionsTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeTest.cs b/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeTest.cs index 09615293f175..72b47a523180 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeTest.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/JSRuntimeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/JSInterop/Microsoft.JSInterop/test/TestJSRuntime.cs b/src/JSInterop/Microsoft.JSInterop/test/TestJSRuntime.cs index b8a6277fef07..3028d0038038 100644 --- a/src/JSInterop/Microsoft.JSInterop/test/TestJSRuntime.cs +++ b/src/JSInterop/Microsoft.JSInterop/test/TestJSRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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.JSInterop.Infrastructure; diff --git a/src/Localization/Abstractions/src/IStringLocalizer.cs b/src/Localization/Abstractions/src/IStringLocalizer.cs index 206092cd2d64..81227a15310f 100644 --- a/src/Localization/Abstractions/src/IStringLocalizer.cs +++ b/src/Localization/Abstractions/src/IStringLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Localization/Abstractions/src/IStringLocalizerFactory.cs b/src/Localization/Abstractions/src/IStringLocalizerFactory.cs index 559fa69c3033..9fc8e423bbc0 100644 --- a/src/Localization/Abstractions/src/IStringLocalizerFactory.cs +++ b/src/Localization/Abstractions/src/IStringLocalizerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Localization/Abstractions/src/IStringLocalizerOfT.cs b/src/Localization/Abstractions/src/IStringLocalizerOfT.cs index bdc2a1c7b72b..54e4ea1d4e9d 100644 --- a/src/Localization/Abstractions/src/IStringLocalizerOfT.cs +++ b/src/Localization/Abstractions/src/IStringLocalizerOfT.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Localization { diff --git a/src/Localization/Abstractions/src/LocalizedString.cs b/src/Localization/Abstractions/src/LocalizedString.cs index 7dff04b88042..0ef687375597 100644 --- a/src/Localization/Abstractions/src/LocalizedString.cs +++ b/src/Localization/Abstractions/src/LocalizedString.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Localization/Abstractions/src/StringLocalizerExtensions.cs b/src/Localization/Abstractions/src/StringLocalizerExtensions.cs index 2e19db7c18ee..b93dc6dbeed2 100644 --- a/src/Localization/Abstractions/src/StringLocalizerExtensions.cs +++ b/src/Localization/Abstractions/src/StringLocalizerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Localization/Abstractions/src/StringLocalizerOfT.cs b/src/Localization/Abstractions/src/StringLocalizerOfT.cs index 2db647a2c2fd..4a47fc355f8b 100644 --- a/src/Localization/Abstractions/src/StringLocalizerOfT.cs +++ b/src/Localization/Abstractions/src/StringLocalizerOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Localization/Localization/src/IResourceNamesCache.cs b/src/Localization/Localization/src/IResourceNamesCache.cs index 4f0995c9f16a..f41d45c2dde8 100644 --- a/src/Localization/Localization/src/IResourceNamesCache.cs +++ b/src/Localization/Localization/src/IResourceNamesCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Localization/Localization/src/Internal/AssemblyWrapper.cs b/src/Localization/Localization/src/Internal/AssemblyWrapper.cs index 0cb34fc7a509..ca832dc44baa 100644 --- a/src/Localization/Localization/src/Internal/AssemblyWrapper.cs +++ b/src/Localization/Localization/src/Internal/AssemblyWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Localization/Localization/src/Internal/IResourceStringProvider.cs b/src/Localization/Localization/src/Internal/IResourceStringProvider.cs index b70264e7eb9a..44002a8c5c38 100644 --- a/src/Localization/Localization/src/Internal/IResourceStringProvider.cs +++ b/src/Localization/Localization/src/Internal/IResourceStringProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Localization/Localization/src/Internal/ResourceManagerStringLocalizerLoggerExtensions.cs b/src/Localization/Localization/src/Internal/ResourceManagerStringLocalizerLoggerExtensions.cs index 67d244f26521..331d1c15377e 100644 --- a/src/Localization/Localization/src/Internal/ResourceManagerStringLocalizerLoggerExtensions.cs +++ b/src/Localization/Localization/src/Internal/ResourceManagerStringLocalizerLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Localization/Localization/src/Internal/ResourceManagerStringProvider.cs b/src/Localization/Localization/src/Internal/ResourceManagerStringProvider.cs index 5955ae50327b..e4967f57369f 100644 --- a/src/Localization/Localization/src/Internal/ResourceManagerStringProvider.cs +++ b/src/Localization/Localization/src/Internal/ResourceManagerStringProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Localization/Localization/src/LocalizationOptions.cs b/src/Localization/Localization/src/LocalizationOptions.cs index 1c0b82d21042..c26e6d26068f 100644 --- a/src/Localization/Localization/src/LocalizationOptions.cs +++ b/src/Localization/Localization/src/LocalizationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Localization { diff --git a/src/Localization/Localization/src/LocalizationServiceCollectionExtensions.cs b/src/Localization/Localization/src/LocalizationServiceCollectionExtensions.cs index 111c1c40d954..c0628d24b4f2 100644 --- a/src/Localization/Localization/src/LocalizationServiceCollectionExtensions.cs +++ b/src/Localization/Localization/src/LocalizationServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection.Extensions; diff --git a/src/Localization/Localization/src/ResourceLocationAttribute.cs b/src/Localization/Localization/src/ResourceLocationAttribute.cs index 5bf281d90e36..b324545d3e5b 100644 --- a/src/Localization/Localization/src/ResourceLocationAttribute.cs +++ b/src/Localization/Localization/src/ResourceLocationAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Localization/Localization/src/ResourceManagerStringLocalizer.cs b/src/Localization/Localization/src/ResourceManagerStringLocalizer.cs index f693f40273da..93a469eae4d9 100644 --- a/src/Localization/Localization/src/ResourceManagerStringLocalizer.cs +++ b/src/Localization/Localization/src/ResourceManagerStringLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Localization/Localization/src/ResourceManagerStringLocalizerFactory.cs b/src/Localization/Localization/src/ResourceManagerStringLocalizerFactory.cs index 34d5f346599e..b28b7dbf7f82 100644 --- a/src/Localization/Localization/src/ResourceManagerStringLocalizerFactory.cs +++ b/src/Localization/Localization/src/ResourceManagerStringLocalizerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Localization/Localization/src/ResourceNamesCache.cs b/src/Localization/Localization/src/ResourceNamesCache.cs index de3f0f5bc6b3..9685b207011e 100644 --- a/src/Localization/Localization/src/ResourceNamesCache.cs +++ b/src/Localization/Localization/src/ResourceNamesCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Localization/Localization/src/RootNamespaceAttribute.cs b/src/Localization/Localization/src/RootNamespaceAttribute.cs index f28b4ea1fd70..c42e75e00ef9 100644 --- a/src/Localization/Localization/src/RootNamespaceAttribute.cs +++ b/src/Localization/Localization/src/RootNamespaceAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/AssemblyInfo.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/AssemblyInfo.cs index bc7d005571eb..47881acdf9e9 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/AssemblyInfo.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/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. + using System.Reflection; using Microsoft.Extensions.Localization; diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/Controllers/ValuesController.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/Controllers/ValuesController.cs index 93dad2460a2d..7fa7388f1e0b 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/Controllers/ValuesController.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/Controllers/ValuesController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace LocalizationTest.Abc.Controllers { diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/StringLocalizerOfTRootNamespaceTest.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/StringLocalizerOfTRootNamespaceTest.cs index ef9da4b3f2d4..c0f3374feba5 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/StringLocalizerOfTRootNamespaceTest.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.RootNamespace.Tests/StringLocalizerOfTRootNamespaceTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using LocalizationTest.Abc.Controllers; using Microsoft.Extensions.Logging.Abstractions; diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/LocalizationServiceCollectionExtensionsTest.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/LocalizationServiceCollectionExtensionsTest.cs index d78581655cdd..678291baaea7 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/LocalizationServiceCollectionExtensionsTest.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/LocalizationServiceCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/Model.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/Model.cs index 9d95c370fdbe..8a9eeded2b12 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/Model.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/Model.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. + // This namespace for test resources with alternative RootNamespace namespace MyNamespace { @@ -5,4 +8,4 @@ public class Model { } -} \ No newline at end of file +} diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerFactoryTest.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerFactoryTest.cs index 253aad12792d..cd0b5b7fd1d0 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerFactoryTest.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable using System; diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerTest.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerTest.cs index fe5549ac6634..9c8106f7da84 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerTest.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/ResourceManagerStringLocalizerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/StringLocalizerOfTTest.cs b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/StringLocalizerOfTTest.cs index 50da5d0aca1d..1dacbe0ddab5 100644 --- a/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/StringLocalizerOfTTest.cs +++ b/src/Localization/Localization/test/Microsoft.Extensions.Localization.Tests/StringLocalizerOfTTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Moq; diff --git a/src/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs b/src/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs index ad4d44314622..3dc7e809ee48 100644 --- a/src/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs +++ b/src/Logging.AzureAppServices/src/AzureAppServicesLoggerFactoryExtensions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using Microsoft.Extensions.Configuration; diff --git a/src/Logging.AzureAppServices/src/AzureBlobLoggerContext.cs b/src/Logging.AzureAppServices/src/AzureBlobLoggerContext.cs index 782058118e32..6e1f8dc76430 100644 --- a/src/Logging.AzureAppServices/src/AzureBlobLoggerContext.cs +++ b/src/Logging.AzureAppServices/src/AzureBlobLoggerContext.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Logging.AzureAppServices/src/AzureBlobLoggerOptions.cs b/src/Logging.AzureAppServices/src/AzureBlobLoggerOptions.cs index 83f809d2e4dc..9ad327da0da1 100644 --- a/src/Logging.AzureAppServices/src/AzureBlobLoggerOptions.cs +++ b/src/Logging.AzureAppServices/src/AzureBlobLoggerOptions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Logging.AzureAppServices/src/AzureFileLoggerOptions.cs b/src/Logging.AzureAppServices/src/AzureFileLoggerOptions.cs index 6dc8be3d0fc1..9163bcb5f9e4 100644 --- a/src/Logging.AzureAppServices/src/AzureFileLoggerOptions.cs +++ b/src/Logging.AzureAppServices/src/AzureFileLoggerOptions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Logging.AzureAppServices/src/BatchLoggerConfigureOptions.cs b/src/Logging.AzureAppServices/src/BatchLoggerConfigureOptions.cs index 8dc8727b3a44..0c37d0a83d24 100644 --- a/src/Logging.AzureAppServices/src/BatchLoggerConfigureOptions.cs +++ b/src/Logging.AzureAppServices/src/BatchLoggerConfigureOptions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Options; diff --git a/src/Logging.AzureAppServices/src/BatchingLogger.cs b/src/Logging.AzureAppServices/src/BatchingLogger.cs index e2d746a54f39..0158d37f2040 100644 --- a/src/Logging.AzureAppServices/src/BatchingLogger.cs +++ b/src/Logging.AzureAppServices/src/BatchingLogger.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Globalization; diff --git a/src/Logging.AzureAppServices/src/BatchingLoggerOptions.cs b/src/Logging.AzureAppServices/src/BatchingLoggerOptions.cs index 4d9b5c71a7d0..0622f8e33f05 100644 --- a/src/Logging.AzureAppServices/src/BatchingLoggerOptions.cs +++ b/src/Logging.AzureAppServices/src/BatchingLoggerOptions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Logging.AzureAppServices/src/BatchingLoggerProvider.cs b/src/Logging.AzureAppServices/src/BatchingLoggerProvider.cs index 227a616f3b53..46d217aed1fe 100644 --- a/src/Logging.AzureAppServices/src/BatchingLoggerProvider.cs +++ b/src/Logging.AzureAppServices/src/BatchingLoggerProvider.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Concurrent; diff --git a/src/Logging.AzureAppServices/src/BlobAppendReferenceWrapper.cs b/src/Logging.AzureAppServices/src/BlobAppendReferenceWrapper.cs index e3886e0eaca2..0c23ae151a58 100644 --- a/src/Logging.AzureAppServices/src/BlobAppendReferenceWrapper.cs +++ b/src/Logging.AzureAppServices/src/BlobAppendReferenceWrapper.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Net; diff --git a/src/Logging.AzureAppServices/src/BlobLoggerConfigureOptions.cs b/src/Logging.AzureAppServices/src/BlobLoggerConfigureOptions.cs index 9e2f02aaefb8..2cf1cb195bfa 100644 --- a/src/Logging.AzureAppServices/src/BlobLoggerConfigureOptions.cs +++ b/src/Logging.AzureAppServices/src/BlobLoggerConfigureOptions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using Microsoft.Extensions.Configuration; diff --git a/src/Logging.AzureAppServices/src/BlobLoggerProvider.cs b/src/Logging.AzureAppServices/src/BlobLoggerProvider.cs index 08f9dc4ac7ae..5ccb575b3958 100644 --- a/src/Logging.AzureAppServices/src/BlobLoggerProvider.cs +++ b/src/Logging.AzureAppServices/src/BlobLoggerProvider.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Logging.AzureAppServices/src/ConfigurationBasedLevelSwitcher.cs b/src/Logging.AzureAppServices/src/ConfigurationBasedLevelSwitcher.cs index c62ccb23315f..ee056c25e31c 100644 --- a/src/Logging.AzureAppServices/src/ConfigurationBasedLevelSwitcher.cs +++ b/src/Logging.AzureAppServices/src/ConfigurationBasedLevelSwitcher.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using Microsoft.Extensions.Configuration; diff --git a/src/Logging.AzureAppServices/src/FileLoggerConfigureOptions.cs b/src/Logging.AzureAppServices/src/FileLoggerConfigureOptions.cs index 8cd1f5eb9120..d9b0c936778b 100644 --- a/src/Logging.AzureAppServices/src/FileLoggerConfigureOptions.cs +++ b/src/Logging.AzureAppServices/src/FileLoggerConfigureOptions.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.IO; using Microsoft.Extensions.Configuration; diff --git a/src/Logging.AzureAppServices/src/FileLoggerProvider.cs b/src/Logging.AzureAppServices/src/FileLoggerProvider.cs index 0752b0038a19..286f7a3a8111 100644 --- a/src/Logging.AzureAppServices/src/FileLoggerProvider.cs +++ b/src/Logging.AzureAppServices/src/FileLoggerProvider.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Logging.AzureAppServices/src/ICloudAppendBlob.cs b/src/Logging.AzureAppServices/src/ICloudAppendBlob.cs index 2f55bbb0d107..e150ccee7479 100644 --- a/src/Logging.AzureAppServices/src/ICloudAppendBlob.cs +++ b/src/Logging.AzureAppServices/src/ICloudAppendBlob.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.IO; diff --git a/src/Logging.AzureAppServices/src/IWebAppContext.cs b/src/Logging.AzureAppServices/src/IWebAppContext.cs index f8c826ceb84f..8eddd7514143 100644 --- a/src/Logging.AzureAppServices/src/IWebAppContext.cs +++ b/src/Logging.AzureAppServices/src/IWebAppContext.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. namespace Microsoft.Extensions.Logging.AzureAppServices { diff --git a/src/Logging.AzureAppServices/src/LogMessage.cs b/src/Logging.AzureAppServices/src/LogMessage.cs index 4a1179ceb3a9..55a7c317adf0 100644 --- a/src/Logging.AzureAppServices/src/LogMessage.cs +++ b/src/Logging.AzureAppServices/src/LogMessage.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Logging.AzureAppServices/src/Properties/AssemblyInfo.cs b/src/Logging.AzureAppServices/src/Properties/AssemblyInfo.cs index 7c7d3325459e..57e7258920dd 100644 --- a/src/Logging.AzureAppServices/src/Properties/AssemblyInfo.cs +++ b/src/Logging.AzureAppServices/src/Properties/AssemblyInfo.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Runtime.CompilerServices; diff --git a/src/Logging.AzureAppServices/src/SiteConfigurationProvider.cs b/src/Logging.AzureAppServices/src/SiteConfigurationProvider.cs index 452c936f9393..8803b0456d85 100644 --- a/src/Logging.AzureAppServices/src/SiteConfigurationProvider.cs +++ b/src/Logging.AzureAppServices/src/SiteConfigurationProvider.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.IO; using Microsoft.Extensions.Configuration; diff --git a/src/Logging.AzureAppServices/src/WebAppContext.cs b/src/Logging.AzureAppServices/src/WebAppContext.cs index 8bdd3f1c760d..d1bdc789e042 100644 --- a/src/Logging.AzureAppServices/src/WebAppContext.cs +++ b/src/Logging.AzureAppServices/src/WebAppContext.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; diff --git a/src/Logging.AzureAppServices/test/AzureAppendBlobTests.cs b/src/Logging.AzureAppServices/test/AzureAppendBlobTests.cs index 2fd5955e86c4..19d6cc99ef5b 100644 --- a/src/Logging.AzureAppServices/test/AzureAppendBlobTests.cs +++ b/src/Logging.AzureAppServices/test/AzureAppendBlobTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Net; diff --git a/src/Logging.AzureAppServices/test/AzureBlobSinkTests.cs b/src/Logging.AzureAppServices/test/AzureBlobSinkTests.cs index 4d9125335ad8..690e222311de 100644 --- a/src/Logging.AzureAppServices/test/AzureBlobSinkTests.cs +++ b/src/Logging.AzureAppServices/test/AzureBlobSinkTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Logging.AzureAppServices/test/AzureDiagnosticsConfigurationProviderTests.cs b/src/Logging.AzureAppServices/test/AzureDiagnosticsConfigurationProviderTests.cs index 00d7dcd58d2b..e496d1fa23cf 100644 --- a/src/Logging.AzureAppServices/test/AzureDiagnosticsConfigurationProviderTests.cs +++ b/src/Logging.AzureAppServices/test/AzureDiagnosticsConfigurationProviderTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.IO; diff --git a/src/Logging.AzureAppServices/test/BatchingLoggerProviderTests.cs b/src/Logging.AzureAppServices/test/BatchingLoggerProviderTests.cs index 9ab0c0cb45fe..c33290415633 100644 --- a/src/Logging.AzureAppServices/test/BatchingLoggerProviderTests.cs +++ b/src/Logging.AzureAppServices/test/BatchingLoggerProviderTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Logging.AzureAppServices/test/ConfigureOptionsTests.cs b/src/Logging.AzureAppServices/test/ConfigureOptionsTests.cs index 2b3cd99bfc52..17f1cbc440e1 100644 --- a/src/Logging.AzureAppServices/test/ConfigureOptionsTests.cs +++ b/src/Logging.AzureAppServices/test/ConfigureOptionsTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; diff --git a/src/Logging.AzureAppServices/test/FileLoggerTests.cs b/src/Logging.AzureAppServices/test/FileLoggerTests.cs index a3fcd2587d25..d7d750338d0e 100644 --- a/src/Logging.AzureAppServices/test/FileLoggerTests.cs +++ b/src/Logging.AzureAppServices/test/FileLoggerTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.IO; diff --git a/src/Logging.AzureAppServices/test/LoggerBuilderExtensionsTests.cs b/src/Logging.AzureAppServices/test/LoggerBuilderExtensionsTests.cs index 5201b10619de..df9089f4b08d 100644 --- a/src/Logging.AzureAppServices/test/LoggerBuilderExtensionsTests.cs +++ b/src/Logging.AzureAppServices/test/LoggerBuilderExtensionsTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Linq; using Microsoft.Extensions.Configuration; diff --git a/src/Logging.AzureAppServices/test/ManualIntervalControl.cs b/src/Logging.AzureAppServices/test/ManualIntervalControl.cs index 29cc883a286f..49773dbfd603 100644 --- a/src/Logging.AzureAppServices/test/ManualIntervalControl.cs +++ b/src/Logging.AzureAppServices/test/ManualIntervalControl.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Threading.Tasks; diff --git a/src/Logging.AzureAppServices/test/OptionsWrapperMonitor.cs b/src/Logging.AzureAppServices/test/OptionsWrapperMonitor.cs index fbc531c26d4e..2334f6c43736 100644 --- a/src/Logging.AzureAppServices/test/OptionsWrapperMonitor.cs +++ b/src/Logging.AzureAppServices/test/OptionsWrapperMonitor.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using Microsoft.Extensions.Options; diff --git a/src/Logging.AzureAppServices/test/TestBlobSink.cs b/src/Logging.AzureAppServices/test/TestBlobSink.cs index 4b9ec445bef4..1ccf3039299f 100644 --- a/src/Logging.AzureAppServices/test/TestBlobSink.cs +++ b/src/Logging.AzureAppServices/test/TestBlobSink.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Threading; diff --git a/src/Logging.AzureAppServices/test/TestFileLoggerProvider.cs b/src/Logging.AzureAppServices/test/TestFileLoggerProvider.cs index 60fbb88bd86a..b867b067cac8 100644 --- a/src/Logging.AzureAppServices/test/TestFileLoggerProvider.cs +++ b/src/Logging.AzureAppServices/test/TestFileLoggerProvider.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System; using System.Threading; diff --git a/src/Logging.AzureAppServices/test/WebConfigurationLevelSwitchTests.cs b/src/Logging.AzureAppServices/test/WebConfigurationLevelSwitchTests.cs index f933b9f2fab4..e1a967a9f15c 100644 --- a/src/Logging.AzureAppServices/test/WebConfigurationLevelSwitchTests.cs +++ b/src/Logging.AzureAppServices/test/WebConfigurationLevelSwitchTests.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. using System.Collections.Generic; using Microsoft.Extensions.Configuration; diff --git a/src/Middleware/CORS/src/CORSLoggerExtensions.cs b/src/Middleware/CORS/src/CORSLoggerExtensions.cs index a1747a8994c4..d0d20e7f622b 100644 --- a/src/Middleware/CORS/src/CORSLoggerExtensions.cs +++ b/src/Middleware/CORS/src/CORSLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/CorsPolicyMetadata.cs b/src/Middleware/CORS/src/CorsPolicyMetadata.cs index 19fa14751c32..30e249492be2 100644 --- a/src/Middleware/CORS/src/CorsPolicyMetadata.cs +++ b/src/Middleware/CORS/src/CorsPolicyMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Cors.Infrastructure; diff --git a/src/Middleware/CORS/src/CorsServiceCollectionExtensions.cs b/src/Middleware/CORS/src/CorsServiceCollectionExtensions.cs index 430621d2fdf7..55db4d309428 100644 --- a/src/Middleware/CORS/src/CorsServiceCollectionExtensions.cs +++ b/src/Middleware/CORS/src/CorsServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cors.Infrastructure; diff --git a/src/Middleware/CORS/src/DisableCorsAttribute.cs b/src/Middleware/CORS/src/DisableCorsAttribute.cs index ab4c7550664b..5b833a523e2a 100644 --- a/src/Middleware/CORS/src/DisableCorsAttribute.cs +++ b/src/Middleware/CORS/src/DisableCorsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cors.Infrastructure; diff --git a/src/Middleware/CORS/src/EnableCorsAttribute.cs b/src/Middleware/CORS/src/EnableCorsAttribute.cs index eb98be001a85..2c267303e68b 100644 --- a/src/Middleware/CORS/src/EnableCorsAttribute.cs +++ b/src/Middleware/CORS/src/EnableCorsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cors.Infrastructure; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsConstants.cs b/src/Middleware/CORS/src/Infrastructure/CorsConstants.cs index fbc39a822841..5e1d046ad2a8 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsConstants.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsConstants.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.Net.Http.Headers; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsEndpointConventionBuilderExtensions.cs b/src/Middleware/CORS/src/Infrastructure/CorsEndpointConventionBuilderExtensions.cs index b22a1e5758b0..96ea1efb8ca0 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsEndpointConventionBuilderExtensions.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsEndpointConventionBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cors; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs b/src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs index e5e3608f3696..114960ef1c4c 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsMiddlewareExtensions.cs b/src/Middleware/CORS/src/Infrastructure/CorsMiddlewareExtensions.cs index dea1ad01d96f..2524bda0ec76 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsMiddlewareExtensions.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsMiddlewareExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cors.Infrastructure; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsOptions.cs b/src/Middleware/CORS/src/Infrastructure/CorsOptions.cs index 371c24901679..e1b9f6f21901 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsOptions.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsPolicy.cs b/src/Middleware/CORS/src/Infrastructure/CorsPolicy.cs index b92cd953a8ef..b8335c028e7c 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsPolicy.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs b/src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs index 433512a231cc..795443107ff2 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsPolicyExtensions.cs b/src/Middleware/CORS/src/Infrastructure/CorsPolicyExtensions.cs index 312f77299487..9008ab0de4de 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsPolicyExtensions.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsPolicyExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsResult.cs b/src/Middleware/CORS/src/Infrastructure/CorsResult.cs index 579020706b5c..7fbad3a100f4 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsResult.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/CorsService.cs b/src/Middleware/CORS/src/Infrastructure/CorsService.cs index 39485b7013ad..170b95a7acc7 100644 --- a/src/Middleware/CORS/src/Infrastructure/CorsService.cs +++ b/src/Middleware/CORS/src/Infrastructure/CorsService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/DefaultCorsPolicyProvider.cs b/src/Middleware/CORS/src/Infrastructure/DefaultCorsPolicyProvider.cs index efab024d9225..098d5e52c5a6 100644 --- a/src/Middleware/CORS/src/Infrastructure/DefaultCorsPolicyProvider.cs +++ b/src/Middleware/CORS/src/Infrastructure/DefaultCorsPolicyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/src/Infrastructure/ICorsPolicyMetadata.cs b/src/Middleware/CORS/src/Infrastructure/ICorsPolicyMetadata.cs index aa5620c1965e..6ad14e1e04cd 100644 --- a/src/Middleware/CORS/src/Infrastructure/ICorsPolicyMetadata.cs +++ b/src/Middleware/CORS/src/Infrastructure/ICorsPolicyMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Cors.Infrastructure { diff --git a/src/Middleware/CORS/src/Infrastructure/ICorsPolicyProvider.cs b/src/Middleware/CORS/src/Infrastructure/ICorsPolicyProvider.cs index a07a29ae683f..11c3e3fd03df 100644 --- a/src/Middleware/CORS/src/Infrastructure/ICorsPolicyProvider.cs +++ b/src/Middleware/CORS/src/Infrastructure/ICorsPolicyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/CORS/src/Infrastructure/ICorsService.cs b/src/Middleware/CORS/src/Infrastructure/ICorsService.cs index ab8176a9613e..83882d8b0259 100644 --- a/src/Middleware/CORS/src/Infrastructure/ICorsService.cs +++ b/src/Middleware/CORS/src/Infrastructure/ICorsService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/CORS/src/Infrastructure/IDisableCorsAttribute.cs b/src/Middleware/CORS/src/Infrastructure/IDisableCorsAttribute.cs index 4793ea95890c..7946ef8c4d98 100644 --- a/src/Middleware/CORS/src/Infrastructure/IDisableCorsAttribute.cs +++ b/src/Middleware/CORS/src/Infrastructure/IDisableCorsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Cors.Infrastructure { diff --git a/src/Middleware/CORS/src/Infrastructure/IEnableCorsAttribute.cs b/src/Middleware/CORS/src/Infrastructure/IEnableCorsAttribute.cs index e721b73be549..46de6eb0c36f 100644 --- a/src/Middleware/CORS/src/Infrastructure/IEnableCorsAttribute.cs +++ b/src/Middleware/CORS/src/Infrastructure/IEnableCorsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Cors.Infrastructure { diff --git a/src/Middleware/CORS/src/Infrastructure/UriHelpers.cs b/src/Middleware/CORS/src/Infrastructure/UriHelpers.cs index 6c420e9260ef..07bed629bb22 100644 --- a/src/Middleware/CORS/src/Infrastructure/UriHelpers.cs +++ b/src/Middleware/CORS/src/Infrastructure/UriHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -9,7 +9,7 @@ internal static class UriHelpers { public static bool IsSubdomainOf(Uri subdomain, Uri domain) { - return subdomain.IsAbsoluteUri + return subdomain.IsAbsoluteUri && domain.IsAbsoluteUri && subdomain.Scheme == domain.Scheme && subdomain.Port == domain.Port diff --git a/src/Middleware/CORS/src/Properties/AssemblyInfo.cs b/src/Middleware/CORS/src/Properties/AssemblyInfo.cs index b3ae81a5eb8a..6af0b402aaf2 100644 --- a/src/Middleware/CORS/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/CORS/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Middleware/CORS/test/UnitTests/CorsEndpointConventionBuilderExtensionsTests.cs b/src/Middleware/CORS/test/UnitTests/CorsEndpointConventionBuilderExtensionsTests.cs index e800e45813bd..59c8e6587dfb 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsEndpointConventionBuilderExtensionsTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsEndpointConventionBuilderExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/test/UnitTests/CorsMiddlewareTests.cs b/src/Middleware/CORS/test/UnitTests/CorsMiddlewareTests.cs index 2abb1ae60a14..cc1123cf10fd 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsMiddlewareTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/test/UnitTests/CorsOptionsTest.cs b/src/Middleware/CORS/test/UnitTests/CorsOptionsTest.cs index 360231d38bef..f36cd7cfd0ff 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsOptionsTest.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/CORS/test/UnitTests/CorsPolicyBuilderTests.cs b/src/Middleware/CORS/test/UnitTests/CorsPolicyBuilderTests.cs index 3dd2bcb22a7a..ec92d2438794 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsPolicyBuilderTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsPolicyBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/test/UnitTests/CorsPolicyExtensionsTests.cs b/src/Middleware/CORS/test/UnitTests/CorsPolicyExtensionsTests.cs index 74dd67db0b07..06a67c62d9a2 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsPolicyExtensionsTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsPolicyExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/CORS/test/UnitTests/CorsPolicyTests.cs b/src/Middleware/CORS/test/UnitTests/CorsPolicyTests.cs index af8ab5de742c..6c5ed6b22394 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsPolicyTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsPolicyTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/CORS/test/UnitTests/CorsResultTests.cs b/src/Middleware/CORS/test/UnitTests/CorsResultTests.cs index e537545674f8..4e7519978bd9 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsResultTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/CORS/test/UnitTests/CorsServiceTests.cs b/src/Middleware/CORS/test/UnitTests/CorsServiceTests.cs index e47ed0261465..8ee4c247b0ee 100644 --- a/src/Middleware/CORS/test/UnitTests/CorsServiceTests.cs +++ b/src/Middleware/CORS/test/UnitTests/CorsServiceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/CORS/test/UnitTests/DefaultCorsPolicyProviderTests.cs b/src/Middleware/CORS/test/UnitTests/DefaultCorsPolicyProviderTests.cs index e3764bc84ef3..7bfec9296fe7 100644 --- a/src/Middleware/CORS/test/UnitTests/DefaultCorsPolicyProviderTests.cs +++ b/src/Middleware/CORS/test/UnitTests/DefaultCorsPolicyProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/CORS/test/UnitTests/UriHelpersTests.cs b/src/Middleware/CORS/test/UnitTests/UriHelpersTests.cs index 7b28d6aa64e4..df6af93e22d9 100644 --- a/src/Middleware/CORS/test/UnitTests/UriHelpersTests.cs +++ b/src/Middleware/CORS/test/UnitTests/UriHelpersTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/EchoMiddleware.cs b/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/EchoMiddleware.cs index 9036b33bf643..b09709127505 100644 --- a/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/EchoMiddleware.cs +++ b/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/EchoMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/Startup.cs b/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/Startup.cs index 3baa298e1189..5ac0803f2ac7 100644 --- a/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/Startup.cs +++ b/src/Middleware/CORS/test/testassets/CorsMiddlewareWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/AssemblyInfo.cs b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/AssemblyInfo.cs index 32248e0d1b0a..09f49228e9e6 100644 --- a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/AssemblyInfo.cs +++ b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueEmptyOverhead.cs b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueEmptyOverhead.cs index b0c927b54677..beea3b56f437 100644 --- a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueEmptyOverhead.cs +++ b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueEmptyOverhead.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using BenchmarkDotNet.Attributes; diff --git a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueFullOverhead.cs b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueFullOverhead.cs index 45c372582549..b5a9de853c1d 100644 --- a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueFullOverhead.cs +++ b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueFullOverhead.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueRequestsOverwritten.cs b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueRequestsOverwritten.cs index eadc0ab7ff30..3514d2b1086d 100644 --- a/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueRequestsOverwritten.cs +++ b/src/Middleware/ConcurrencyLimiter/perf/Microbenchmarks/QueueRequestsOverwritten.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Middleware/ConcurrencyLimiter/sample/Startup.cs b/src/Middleware/ConcurrencyLimiter/sample/Startup.cs index 72d38f94f619..4dd38a328a06 100644 --- a/src/Middleware/ConcurrencyLimiter/sample/Startup.cs +++ b/src/Middleware/ConcurrencyLimiter/sample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterEventSource.cs b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterEventSource.cs index cb2718f0435e..0d083a29a4f4 100644 --- a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterEventSource.cs +++ b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterEventSource.cs @@ -1,5 +1,5 @@ -// 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 +// 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.Tracing; diff --git a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterExtensions.cs b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterExtensions.cs index d02c55f6cdb9..55188bd1bbe6 100644 --- a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterExtensions.cs +++ b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.ConcurrencyLimiter; diff --git a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterMiddleware.cs b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterMiddleware.cs index c0d6e7c948a3..69c1e45ccefb 100644 --- a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterMiddleware.cs +++ b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterOptions.cs b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterOptions.cs index 429c6a47779c..388eade83b3c 100644 --- a/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterOptions.cs +++ b/src/Middleware/ConcurrencyLimiter/src/ConcurrencyLimiterOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/ConcurrencyLimiter/src/Properties/AssemblyInfo.cs b/src/Middleware/ConcurrencyLimiter/src/Properties/AssemblyInfo.cs index 1a93825d991c..23effb7626ba 100644 --- a/src/Middleware/ConcurrencyLimiter/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/ConcurrencyLimiter/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/IQueuePolicy.cs b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/IQueuePolicy.cs index 4eb3800661f0..7b17e6a57909 100644 --- a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/IQueuePolicy.cs +++ b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/IQueuePolicy.cs @@ -1,5 +1,5 @@ -// 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 +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicy.cs b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicy.cs index 08a4b941e36c..bd3f77f9b557 100644 --- a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicy.cs +++ b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyOptions.cs b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyOptions.cs index 5e5eaec3b798..697bf3fdfc20 100644 --- a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyOptions.cs +++ b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ConcurrencyLimiter { @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.ConcurrencyLimiter public class QueuePolicyOptions { /// - /// Maximum number of concurrent requests. Any extras will be queued on the server. + /// Maximum number of concurrent requests. Any extras will be queued on the server. /// This option is highly application dependant, and must be configured by the application. /// public int MaxConcurrentRequests { get; set; } diff --git a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyServiceCollectionExtensions.cs b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyServiceCollectionExtensions.cs index 09b9aeb48ff5..bf0bc9851f70 100644 --- a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyServiceCollectionExtensions.cs +++ b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/QueuePolicyServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.ConcurrencyLimiter; diff --git a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/ResettableBooleanCompletionSource.cs b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/ResettableBooleanCompletionSource.cs index 445dac57e627..0d82074418fb 100644 --- a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/ResettableBooleanCompletionSource.cs +++ b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/ResettableBooleanCompletionSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/StackPolicy.cs b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/StackPolicy.cs index 4ee768fa760e..496dce23f680 100644 --- a/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/StackPolicy.cs +++ b/src/Middleware/ConcurrencyLimiter/src/QueuePolicies/StackPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/test/ConcurrencyLimiterEventSourceTests.cs b/src/Middleware/ConcurrencyLimiter/test/ConcurrencyLimiterEventSourceTests.cs index f7275f9a49d5..884b7f917a44 100644 --- a/src/Middleware/ConcurrencyLimiter/test/ConcurrencyLimiterEventSourceTests.cs +++ b/src/Middleware/ConcurrencyLimiter/test/ConcurrencyLimiterEventSourceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/test/MiddlewareTests.cs b/src/Middleware/ConcurrencyLimiter/test/MiddlewareTests.cs index 952ea43e55f6..c8c491b5aa40 100644 --- a/src/Middleware/ConcurrencyLimiter/test/MiddlewareTests.cs +++ b/src/Middleware/ConcurrencyLimiter/test/MiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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 +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/test/PolicyTests/QueuePolicyTests.cs b/src/Middleware/ConcurrencyLimiter/test/PolicyTests/QueuePolicyTests.cs index 42fb7a37ef48..afda561e63d9 100644 --- a/src/Middleware/ConcurrencyLimiter/test/PolicyTests/QueuePolicyTests.cs +++ b/src/Middleware/ConcurrencyLimiter/test/PolicyTests/QueuePolicyTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Testing; diff --git a/src/Middleware/ConcurrencyLimiter/test/PolicyTests/ResettableBooleanCompletionSourceTests.cs b/src/Middleware/ConcurrencyLimiter/test/PolicyTests/ResettableBooleanCompletionSourceTests.cs index 5051549db9a6..f3c15634bfda 100644 --- a/src/Middleware/ConcurrencyLimiter/test/PolicyTests/ResettableBooleanCompletionSourceTests.cs +++ b/src/Middleware/ConcurrencyLimiter/test/PolicyTests/ResettableBooleanCompletionSourceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ConcurrencyLimiter/test/PolicyTests/StackPolicyTests.cs b/src/Middleware/ConcurrencyLimiter/test/PolicyTests/StackPolicyTests.cs index 251a89951245..ff76fd7ee603 100644 --- a/src/Middleware/ConcurrencyLimiter/test/PolicyTests/StackPolicyTests.cs +++ b/src/Middleware/ConcurrencyLimiter/test/PolicyTests/StackPolicyTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -26,7 +26,7 @@ public static void BaseFunctionality() Assert.True(task1.IsCompleted && task1.Result); } - + [Fact] public static void OldestRequestOverwritten() { @@ -43,7 +43,7 @@ public static void OldestRequestOverwritten() Assert.False(task3.IsCompleted); var task4 = stack.TryEnterAsync(); - + Assert.True(task1.IsCompleted); Assert.False(task1.Result); @@ -128,5 +128,5 @@ public static async Task OneTryEnterAsyncOneOnExit() Assert.Throws(() => stack.OnExit()); } - } + } } diff --git a/src/Middleware/ConcurrencyLimiter/test/TaskExtensions.cs b/src/Middleware/ConcurrencyLimiter/test/TaskExtensions.cs index 0f9c171d18c4..38ed797cb70f 100644 --- a/src/Middleware/ConcurrencyLimiter/test/TaskExtensions.cs +++ b/src/Middleware/ConcurrencyLimiter/test/TaskExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Runtime.CompilerServices; diff --git a/src/Middleware/ConcurrencyLimiter/test/TestUtils.cs b/src/Middleware/ConcurrencyLimiter/test/TestUtils.cs index 4ad25c5c5710..24cc5448a6f1 100644 --- a/src/Middleware/ConcurrencyLimiter/test/TestUtils.cs +++ b/src/Middleware/ConcurrencyLimiter/test/TestUtils.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -85,7 +85,7 @@ public TestQueue(Func> onTryEnter, Action onExit = null) public TestQueue(Func onTryEnter, Action onExit = null) : this(state => Task.FromResult(onTryEnter(state)) , onExit) { } - + public async ValueTask TryEnterAsync() { Interlocked.Increment(ref _queuedRequests); diff --git a/src/Middleware/Diagnostics.Abstractions/src/CompilationFailure.cs b/src/Middleware/Diagnostics.Abstractions/src/CompilationFailure.cs index 2536bafc1abc..86f221795a4a 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/CompilationFailure.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/CompilationFailure.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs b/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs index de4de84b63df..01d67155e8c7 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/DiagnosticMessage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics { diff --git a/src/Middleware/Diagnostics.Abstractions/src/ErrorContext.cs b/src/Middleware/Diagnostics.Abstractions/src/ErrorContext.cs index 9a3a2f9f6e42..9a7206d2c72c 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/ErrorContext.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/ErrorContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics.Abstractions/src/ICompilationException.cs b/src/Middleware/Diagnostics.Abstractions/src/ICompilationException.cs index 3e71959cc920..b586696d2c8c 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/ICompilationException.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/ICompilationException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Middleware/Diagnostics.Abstractions/src/IDeveloperPageExceptionFilter.cs b/src/Middleware/Diagnostics.Abstractions/src/IDeveloperPageExceptionFilter.cs index e908f4800611..a72c220a5268 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/IDeveloperPageExceptionFilter.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/IDeveloperPageExceptionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs b/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs index 614e18784eb2..54216244d720 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerPathFeature.cs b/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerPathFeature.cs index 93ba4db10d0f..eb67d840d2de 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerPathFeature.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/IExceptionHandlerPathFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics { diff --git a/src/Middleware/Diagnostics.Abstractions/src/IStatusCodePagesFeature.cs b/src/Middleware/Diagnostics.Abstractions/src/IStatusCodePagesFeature.cs index d5c709e8699b..c9dbe668b86a 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/IStatusCodePagesFeature.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/IStatusCodePagesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics { diff --git a/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs b/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs index 6e52c57b85f2..0689a4c13e06 100644 --- a/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs +++ b/src/Middleware/Diagnostics.Abstractions/src/IStatusCodeReExecuteFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseContextDetails.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseContextDetails.cs index 82c242cada11..fe498ba5ac2e 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseContextDetails.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseContextDetails.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilter.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilter.cs index 50cd0563232d..d4b73c4065f9 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilter.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore /// When these exceptions occur, an HTML response with details about possible actions to resolve the issue is generated. /// /// - /// This should only be enabled in the Development environment. + /// This should only be enabled in the Development environment. /// public sealed class DatabaseDeveloperPageExceptionFilter : IDeveloperPageExceptionFilter { diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilterServiceExtensions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilterServiceExtensions.cs index 9ad4df27f4bb..a9a0a82ab2ba 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilterServiceExtensions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseDeveloperPageExceptionFilterServiceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics; @@ -20,7 +20,7 @@ public static class DatabaseDeveloperPageExceptionFilterServiceExtensions /// The for adding services. /// /// - /// This should only be enabled in the Development environment. + /// This should only be enabled in the Development environment. /// public static IServiceCollection AddDatabaseDeveloperPageExceptionFilter(this IServiceCollection services) { diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageExtensions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageExtensions.cs index 5cfddc580a94..fca440ada6b1 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageExtensions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageMiddleware.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageMiddleware.cs index 8781dfd4be7e..1efd7ab32d51 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageMiddleware.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageOptions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageOptions.cs index 765467e5f62b..013b777aaa58 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageOptions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DatabaseErrorPageOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Diagnostics.EntityFrameworkCore; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DiagnosticsEntityFrameworkCoreLoggerExtensions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DiagnosticsEntityFrameworkCoreLoggerExtensions.cs index ef9dcbe1d748..76aa5b29289b 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/DiagnosticsEntityFrameworkCoreLoggerExtensions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/DiagnosticsEntityFrameworkCoreLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/HttpContextDatabaseContextDetailsExtensions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/HttpContextDatabaseContextDetailsExtensions.cs index 4945fec47e93..70db40e698e5 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/HttpContextDatabaseContextDetailsExtensions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/HttpContextDatabaseContextDetailsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointExtensions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointExtensions.cs index c635bb43fd7e..980e4a81970f 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointExtensions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointExtensions.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.AspNetCore.Diagnostics.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointMiddleware.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointMiddleware.cs index b0b19f0a4427..0fc79278852e 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointMiddleware.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointMiddleware.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointOptions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointOptions.cs index 48b053c13faa..dccc22c37aa4 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointOptions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointOptions.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Diagnostics.EntityFrameworkCore; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/AssemblyInfo.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/AssemblyInfo.cs index 019e858be0d1..eb07c3e283ab 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using System.Resources; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/Views/DatabaseErrorPageModel.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/Views/DatabaseErrorPageModel.cs index 461b2e63e8a0..948e5b4de574 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/Views/DatabaseErrorPageModel.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/src/Views/DatabaseErrorPageModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs index f6d72a6d1c77..82867e3931ee 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/PlatformHelper.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/PlatformHelper.cs index b05aacb836f4..76ce1c5d9f9b 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/PlatformHelper.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/PlatformHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs index 57a6fe0563d2..ecf498e56541 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/TestLoggerProvider.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/TestLoggerProvider.cs index 0044360b21f7..fc218c7bcc41 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/TestLoggerProvider.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/TestLoggerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs index 6da2c247c3c4..f1ba91eddd40 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/SqlServerTestStore.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/SqlServerTestStore.cs index a5ef399df187..b8ebe1d49c79 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/SqlServerTestStore.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/SqlServerTestStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/Blog.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/Blog.cs index 38611464507a..e6814a248404 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/Blog.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/Blog.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContext.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContext.cs index cab6af6b93c4..1be8e24a79c9 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContext.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithMigrations.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithMigrations.cs index e1cf036793cf..778fc846e132 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithMigrations.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithMigrations.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithPendingModelChanges.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithPendingModelChanges.cs index b2cc98603962..18b24fad3e95 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithPendingModelChanges.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithPendingModelChanges.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithSnapshotThatThrows.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithSnapshotThatThrows.cs index fb96dfa52352..28e1fcee8dae 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithSnapshotThatThrows.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/TestModels/BloggingContextWithSnapshotThatThrows.cs @@ -1,5 +1,5 @@ -// 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. +// 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.EntityFrameworkCore; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseDeveloperPageExceptionFilterTests.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseDeveloperPageExceptionFilterTests.cs index 0d64dcb946cf..4889b1bba981 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseDeveloperPageExceptionFilterTests.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseDeveloperPageExceptionFilterTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Data.Common; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageOptionsTest.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageOptionsTest.cs index 842c5f14a752..08e30ea537f3 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageOptionsTest.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; @@ -21,7 +21,7 @@ public void MigrationsEndPointPath_is_respected() { var options = new DatabaseErrorPageOptions(); options.MigrationsEndPointPath = "/test"; - + Assert.Equal("/test", options.MigrationsEndPointPath); } } diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageTest.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageTest.cs index ee18b3dcd2f6..3d90ba08d112 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageTest.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/DatabaseErrorPageTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/AssertHelpers.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/AssertHelpers.cs index bbe8ea7589ce..595f8e3525c8 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/AssertHelpers.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/AssertHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/StringHelpers.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/StringHelpers.cs index 24a6333667c7..34a75eebb82c 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/StringHelpers.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/Helpers/StringHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/TestHelperExtensions.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/TestHelperExtensions.cs index e87b4ef99d97..75762ac6e728 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/TestHelperExtensions.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/UnitTests/TestHelperExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs index 2752263847eb..6b3a190ddb43 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics; @@ -18,7 +18,7 @@ public static class DeveloperExceptionPageExtensions /// The . /// A reference to the after the operation has completed. /// - /// This should only be enabled in the Development environment. + /// This should only be enabled in the Development environment. /// public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBuilder app) { @@ -37,7 +37,7 @@ public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBui /// A that specifies options for the middleware. /// A reference to the after the operation has completed. /// - /// This should only be enabled in the Development environment. + /// This should only be enabled in the Development environment. /// public static IApplicationBuilder UseDeveloperExceptionPage( this IApplicationBuilder app, @@ -52,7 +52,7 @@ public static IApplicationBuilder UseDeveloperExceptionPage( { throw new ArgumentNullException(nameof(options)); } - + return app.UseMiddleware(Options.Create(options)); } } diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs index 9ab50c029f42..030ef4638577 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageOptions.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageOptions.cs index 5d33011d5c90..bae9b51d409e 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageOptions.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/DeveloperExceptionPageOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Diagnostics; using Microsoft.Extensions.FileProviders; diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorModel.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorModel.cs index 7d36ed5de525..cd0baabccd4d 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorModel.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/CompilationErrorModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs index e479a6e274d2..f619486caea9 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/EndpointModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics.RazorViews { diff --git a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPageModel.cs b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPageModel.cs index b65b87e97709..bbd732ef977c 100644 --- a/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPageModel.cs +++ b/src/Middleware/Diagnostics/src/DeveloperExceptionPage/Views/ErrorPageModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Middleware/Diagnostics/src/DiagnosticsLoggerExtensions.cs b/src/Middleware/Diagnostics/src/DiagnosticsLoggerExtensions.cs index 210e28e768c7..9cf823915d65 100644 --- a/src/Middleware/Diagnostics/src/DiagnosticsLoggerExtensions.cs +++ b/src/Middleware/Diagnostics/src/DiagnosticsLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs index 7d3160f59e8a..996cd4703ef9 100644 --- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs +++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics; diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs index 31e9e8c8e19e..4490f05c1334 100644 --- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs +++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs index 645570d4fa99..7d26e7c62b3e 100644 --- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs +++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -127,7 +127,7 @@ private async Task HandleException(HttpContext context, ExceptionDispatchInfo ed }; ClearHttpContext(context); - + context.Features.Set(exceptionHandlerFeature); context.Features.Set(exceptionHandlerFeature); context.Response.StatusCode = StatusCodes.Status500InternalServerError; diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerOptions.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerOptions.cs index 35cc9a138cd0..6c0daaae2a20 100644 --- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerOptions.cs +++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Diagnostics; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerServiceCollectionExtensions.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerServiceCollectionExtensions.cs index fd48c73aee69..856cee97a8b1 100644 --- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerServiceCollectionExtensions.cs +++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; @@ -27,7 +27,7 @@ public static IServiceCollection AddExceptionHandler(this IServiceCollection ser { throw new ArgumentNullException(nameof(configureOptions)); } - + return services.Configure(configureOptions); } @@ -47,7 +47,7 @@ public static IServiceCollection AddExceptionHandler(this IServiceColl { throw new ArgumentNullException(nameof(configureOptions)); } - + services.AddOptions().Configure(configureOptions); return services; } diff --git a/src/Middleware/Diagnostics/src/Properties/AssemblyInfo.cs b/src/Middleware/Diagnostics/src/Properties/AssemblyInfo.cs index 7aa636c259c0..59070b16ba4a 100644 --- a/src/Middleware/Diagnostics/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/Diagnostics/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using System.Resources; diff --git a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeContext.cs b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeContext.cs index 3a8e9e60bb3e..d884d9689d5d 100644 --- a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeContext.cs +++ b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesExtensions.cs b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesExtensions.cs index 774509ce7015..960574f04bcc 100644 --- a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesExtensions.cs +++ b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesFeature.cs b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesFeature.cs index 86115969d355..8a7765b44ade 100644 --- a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesFeature.cs +++ b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics { diff --git a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesMiddleware.cs b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesMiddleware.cs index 629c1a643776..e32e84fc3f77 100644 --- a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesMiddleware.cs +++ b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesOptions.cs b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesOptions.cs index c4b488bb5dde..9859a67b9555 100644 --- a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesOptions.cs +++ b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeReExecuteFeature.cs b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeReExecuteFeature.cs index 1ed857da3152..967f94ebd6db 100644 --- a/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeReExecuteFeature.cs +++ b/src/Middleware/Diagnostics/src/StatusCodePage/StatusCodeReExecuteFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Diagnostics { diff --git a/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageExtensions.cs b/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageExtensions.cs index a82febd1947b..a2d3ac6d2b6b 100644 --- a/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageExtensions.cs +++ b/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageMiddleware.cs b/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageMiddleware.cs index ad201ddff137..834751884618 100644 --- a/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageMiddleware.cs +++ b/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageOptions.cs b/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageOptions.cs index 9e0d6eaea961..8f5536d06e52 100644 --- a/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageOptions.cs +++ b/src/Middleware/Diagnostics/src/WelcomePage/WelcomePageOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/DatabaseErrorPageSampleTest.cs b/src/Middleware/Diagnostics/test/FunctionalTests/DatabaseErrorPageSampleTest.cs index 1c33557e533f..6c95682200ef 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/DatabaseErrorPageSampleTest.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/DatabaseErrorPageSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/DeveloperExceptionPageSampleTest.cs b/src/Middleware/Diagnostics/test/FunctionalTests/DeveloperExceptionPageSampleTest.cs index 2ff8511325a4..76fd020f167c 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/DeveloperExceptionPageSampleTest.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/DeveloperExceptionPageSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/ExceptionHandlerSampleTest.cs b/src/Middleware/Diagnostics/test/FunctionalTests/ExceptionHandlerSampleTest.cs index 44057bd7ca72..2f4472629447 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/ExceptionHandlerSampleTest.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/ExceptionHandlerSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/MiddlewareAnalysisSampleTest.cs b/src/Middleware/Diagnostics/test/FunctionalTests/MiddlewareAnalysisSampleTest.cs index 4692b62b573c..5dba5084ba24 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/MiddlewareAnalysisSampleTest.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/MiddlewareAnalysisSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/StatusCodeSampleTest.cs b/src/Middleware/Diagnostics/test/FunctionalTests/StatusCodeSampleTest.cs index a990af53bc2b..99152b916ce6 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/StatusCodeSampleTest.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/StatusCodeSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; @@ -50,12 +50,12 @@ public async Task StatusCodePageOptions_ExcludesSemicolon_WhenReasonPhrase_IsUnk //Assert Assert.Equal((HttpStatusCode)httpStatusCode, response.StatusCode); Assert.DoesNotContain(";", responseBody); - } + } [Fact] public async Task StatusCodePageOptions_IncludesSemicolon__AndReasonPhrase_WhenReasonPhrase_IsKnown() { - //Arrange + //Arrange var httpStatusCode = 400; var request = new HttpRequestMessage(HttpMethod.Get, $"http://localhost/?statuscode={httpStatusCode}"); diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/TestFixture.cs b/src/Middleware/Diagnostics/test/FunctionalTests/TestFixture.cs index e24d1bc41a5e..58d474b4276a 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/TestFixture.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/TestFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/test/FunctionalTests/WelcomePageSampleTest.cs b/src/Middleware/Diagnostics/test/FunctionalTests/WelcomePageSampleTest.cs index e20fa6fdf453..b7dd44e8773e 100644 --- a/src/Middleware/Diagnostics/test/FunctionalTests/WelcomePageSampleTest.cs +++ b/src/Middleware/Diagnostics/test/FunctionalTests/WelcomePageSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Middleware/Diagnostics/test/UnitTests/DeveloperExceptionPageMiddlewareTest.cs b/src/Middleware/Diagnostics/test/UnitTests/DeveloperExceptionPageMiddlewareTest.cs index c22c9b5368b9..f534a1e2bfbc 100644 --- a/src/Middleware/Diagnostics/test/UnitTests/DeveloperExceptionPageMiddlewareTest.cs +++ b/src/Middleware/Diagnostics/test/UnitTests/DeveloperExceptionPageMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/test/UnitTests/ExceptionDetailsProviderTest.cs b/src/Middleware/Diagnostics/test/UnitTests/ExceptionDetailsProviderTest.cs index eb7a7409c489..18424f531c92 100644 --- a/src/Middleware/Diagnostics/test/UnitTests/ExceptionDetailsProviderTest.cs +++ b/src/Middleware/Diagnostics/test/UnitTests/ExceptionDetailsProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerMiddlewareTest.cs b/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerMiddlewareTest.cs index acd8f57d674c..7ca17cc25d94 100644 --- a/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerMiddlewareTest.cs +++ b/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerTest.cs b/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerTest.cs index ba4f6fa9dc2e..3e65cf7a4a39 100644 --- a/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerTest.cs +++ b/src/Middleware/Diagnostics/test/UnitTests/ExceptionHandlerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/test/UnitTests/StatusCodeMiddlewareTest.cs b/src/Middleware/Diagnostics/test/UnitTests/StatusCodeMiddlewareTest.cs index 7a8cc2d0baaa..1dc5e4912914 100644 --- a/src/Middleware/Diagnostics/test/UnitTests/StatusCodeMiddlewareTest.cs +++ b/src/Middleware/Diagnostics/test/UnitTests/StatusCodeMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/test/UnitTests/TestDiagnosticListener.cs b/src/Middleware/Diagnostics/test/UnitTests/TestDiagnosticListener.cs index 1d8e036ef98f..f049d0aa2567 100644 --- a/src/Middleware/Diagnostics/test/UnitTests/TestDiagnosticListener.cs +++ b/src/Middleware/Diagnostics/test/UnitTests/TestDiagnosticListener.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DiagnosticAdapter; diff --git a/src/Middleware/Diagnostics/test/testassets/ClassLibraryWithPortablePdbs/ExceptionType.cs b/src/Middleware/Diagnostics/test/testassets/ClassLibraryWithPortablePdbs/ExceptionType.cs index 8ca0f563afd9..e69f9d5d71b0 100644 --- a/src/Middleware/Diagnostics/test/testassets/ClassLibraryWithPortablePdbs/ExceptionType.cs +++ b/src/Middleware/Diagnostics/test/testassets/ClassLibraryWithPortablePdbs/ExceptionType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Diagnostics/test/testassets/DatabaseErrorPageSample/Startup.cs b/src/Middleware/Diagnostics/test/testassets/DatabaseErrorPageSample/Startup.cs index 2ceb52ac0a99..ae3824d8b205 100644 --- a/src/Middleware/Diagnostics/test/testassets/DatabaseErrorPageSample/Startup.cs +++ b/src/Middleware/Diagnostics/test/testassets/DatabaseErrorPageSample/Startup.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.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/Diagnostics/test/testassets/DeveloperExceptionPageSample/Startup.cs b/src/Middleware/Diagnostics/test/testassets/DeveloperExceptionPageSample/Startup.cs index c1756c6f5838..983e0830df67 100644 --- a/src/Middleware/Diagnostics/test/testassets/DeveloperExceptionPageSample/Startup.cs +++ b/src/Middleware/Diagnostics/test/testassets/DeveloperExceptionPageSample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Diagnostics/test/testassets/ExceptionHandlerSample/Startup.cs b/src/Middleware/Diagnostics/test/testassets/ExceptionHandlerSample/Startup.cs index b964486fd427..f0dd905eab4b 100644 --- a/src/Middleware/Diagnostics/test/testassets/ExceptionHandlerSample/Startup.cs +++ b/src/Middleware/Diagnostics/test/testassets/ExceptionHandlerSample/Startup.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.Text.Encodings.Web; using System.Threading.Tasks; diff --git a/src/Middleware/Diagnostics/test/testassets/StatusCodePagesSample/Startup.cs b/src/Middleware/Diagnostics/test/testassets/StatusCodePagesSample/Startup.cs index e145378879a7..91d6df58e7d5 100644 --- a/src/Middleware/Diagnostics/test/testassets/StatusCodePagesSample/Startup.cs +++ b/src/Middleware/Diagnostics/test/testassets/StatusCodePagesSample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Linq; diff --git a/src/Middleware/Diagnostics/test/testassets/WelcomePageSample/Startup.cs b/src/Middleware/Diagnostics/test/testassets/WelcomePageSample/Startup.cs index 74ad6f7f5b8d..85e98ae3f5df 100644 --- a/src/Middleware/Diagnostics/test/testassets/WelcomePageSample/Startup.cs +++ b/src/Middleware/Diagnostics/test/testassets/WelcomePageSample/Startup.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.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Program.cs b/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Program.cs index 63aca35aa65a..33f13c0a5ddf 100644 --- a/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Program.cs +++ b/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/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.Hosting; using Microsoft.Extensions.Hosting; diff --git a/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Startup.cs b/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Startup.cs index 3fa6633652e5..9e687b9b18f3 100644 --- a/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Startup.cs +++ b/src/Middleware/HeaderPropagation/samples/HeaderPropagationSample/Startup.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/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationApplicationBuilderExtensions.cs b/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationApplicationBuilderExtensions.cs index 48af8d9721e0..61bad3e4a987 100644 --- a/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationApplicationBuilderExtensions.cs +++ b/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationHttpClientBuilderExtensions.cs b/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationHttpClientBuilderExtensions.cs index 8a01fc74e669..b949ab89c276 100644 --- a/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationHttpClientBuilderExtensions.cs +++ b/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationHttpClientBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HeaderPropagation; diff --git a/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationServiceCollectionExtensions.cs b/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationServiceCollectionExtensions.cs index e7f99064d434..74d2ee14ff9e 100644 --- a/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationServiceCollectionExtensions.cs +++ b/src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationContext.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationContext.cs index bacddeae00ab..8879cfd7330b 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationContext.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationEntry.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationEntry.cs index 9d7b3a45e584..7f5748fa82e1 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationEntry.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationEntry.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Primitives; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationEntryCollection.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationEntryCollection.cs index eac5086275b7..1679537762bf 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationEntryCollection.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationEntryCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandler.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandler.cs index 79f09577676b..3803c5b8a3bf 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandler.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntry.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntry.cs index 8c982696a42c..d07fb680c025 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntry.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntryCollection.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntryCollection.cs index 002f3a3368d7..4709bdc8d6f5 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntryCollection.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerEntryCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerOptions.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerOptions.cs index 27dbb74b2d3d..b42befed93ed 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerOptions.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationMessageHandlerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.HeaderPropagation { diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationMiddleware.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationMiddleware.cs index a0e672c10474..d12d45fe6aa2 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationMiddleware.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationOptions.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationOptions.cs index 731c2ca28609..7091d558abf9 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationOptions.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.HeaderPropagation { diff --git a/src/Middleware/HeaderPropagation/src/HeaderPropagationValues.cs b/src/Middleware/HeaderPropagation/src/HeaderPropagationValues.cs index a13eb65ee734..fc58a984b21a 100644 --- a/src/Middleware/HeaderPropagation/src/HeaderPropagationValues.cs +++ b/src/Middleware/HeaderPropagation/src/HeaderPropagationValues.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HeaderPropagation/test/HeaderPropagationIntegrationTest.cs b/src/Middleware/HeaderPropagation/test/HeaderPropagationIntegrationTest.cs index 4c3dddb7797c..f7446f30df1c 100644 --- a/src/Middleware/HeaderPropagation/test/HeaderPropagationIntegrationTest.cs +++ b/src/Middleware/HeaderPropagation/test/HeaderPropagationIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerEntryCollectionTest.cs b/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerEntryCollectionTest.cs index 483585c6d2b7..3f323f953fcc 100644 --- a/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerEntryCollectionTest.cs +++ b/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerEntryCollectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerTest.cs b/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerTest.cs index fe51ea0e1f28..2e0ad53f2b6b 100644 --- a/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerTest.cs +++ b/src/Middleware/HeaderPropagation/test/HeaderPropagationMessageHandlerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HeaderPropagation/test/HeaderPropagationMiddlewareTest.cs b/src/Middleware/HeaderPropagation/test/HeaderPropagationMiddlewareTest.cs index 3303cf66e523..e675f24a1016 100644 --- a/src/Middleware/HeaderPropagation/test/HeaderPropagationMiddlewareTest.cs +++ b/src/Middleware/HeaderPropagation/test/HeaderPropagationMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheck.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheck.cs index 6481bd29d38a..8d1f8a483336 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheck.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheck.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -49,7 +49,7 @@ public async Task CheckHealthAsync(HealthCheckContext context { return HealthCheckResult.Healthy(); } - + return new HealthCheckResult(context.Registration.FailureStatus); } } diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheckOptions.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheckOptions.cs index 3e45f0caaf26..16b67c1cd341 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheckOptions.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/src/DbContextHealthCheckOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/src/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensions.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/src/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensions.cs index 86c236a1d6a7..2254e00341f5 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/src/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensions.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/src/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/src/Properties/AssemblyInfo.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/src/Properties/AssemblyInfo.cs index 1aa256d83ab0..210e1443d54e 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/src/Properties/AssemblyInfo.cs @@ -1,3 +1,6 @@ -using System.Runtime.CompilerServices; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] \ No newline at end of file diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/test/DbContextHealthCheckTest.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/test/DbContextHealthCheckTest.cs index 88ea49e6d311..dc8af29ca69b 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/test/DbContextHealthCheckTest.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/test/DbContextHealthCheckTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/test/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensionsTest.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/test/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensionsTest.cs index 9efcb025e066..251ab3159a51 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/test/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensionsTest.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/test/DependencyInjection/EntityFrameworkCoreHealthChecksBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Middleware/HealthChecks.EntityFrameworkCore/test/TestDbContext.cs b/src/Middleware/HealthChecks.EntityFrameworkCore/test/TestDbContext.cs index e38ed93674fd..7cc9d2cdddca 100644 --- a/src/Middleware/HealthChecks.EntityFrameworkCore/test/TestDbContext.cs +++ b/src/Middleware/HealthChecks.EntityFrameworkCore/test/TestDbContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore; diff --git a/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs b/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs index f3ae70bc803f..81b151091c76 100644 --- a/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs +++ b/src/Middleware/HealthChecks/src/Builder/HealthCheckApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics.HealthChecks; diff --git a/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs b/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs index b482d1e9cc7c..b7f57b1dfc4c 100644 --- a/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs +++ b/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics.HealthChecks; diff --git a/src/Middleware/HealthChecks/src/HealthCheckMiddleware.cs b/src/Middleware/HealthChecks/src/HealthCheckMiddleware.cs index ec804ba9c9b9..3f331c8bff95 100644 --- a/src/Middleware/HealthChecks/src/HealthCheckMiddleware.cs +++ b/src/Middleware/HealthChecks/src/HealthCheckMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -64,7 +64,7 @@ public async Task InvokeAsync(HttpContext httpContext) // Get results var result = await _healthCheckService.CheckHealthAsync(_healthCheckOptions.Predicate, httpContext.RequestAborted); - // Map status to response code - this is customizable via options. + // Map status to response code - this is customizable via options. if (!_healthCheckOptions.ResultStatusCodes.TryGetValue(result.Status, out var statusCode)) { var message = diff --git a/src/Middleware/HealthChecks/src/HealthCheckOptions.cs b/src/Middleware/HealthChecks/src/HealthCheckOptions.cs index 65212c70a1a9..24d839b78ac5 100644 --- a/src/Middleware/HealthChecks/src/HealthCheckOptions.cs +++ b/src/Middleware/HealthChecks/src/HealthCheckOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -82,8 +82,8 @@ private static IDictionary ValidateStatusCodesMapping(IDictio /// the middleware will apply headers to the HTTP response that instruct clients to avoid caching. /// /// - /// If the value is false the health check middleware will set or override the - /// Cache-Control, Expires, and Pragma headers to prevent response caching. If the value + /// If the value is false the health check middleware will set or override the + /// Cache-Control, Expires, and Pragma headers to prevent response caching. If the value /// is true the health check middleware will not modify the cache headers of the response. /// /// diff --git a/src/Middleware/HealthChecks/src/HealthCheckResponseWriters.cs b/src/Middleware/HealthChecks/src/HealthCheckResponseWriters.cs index 50cb8c736e9e..6050e5ae2da0 100644 --- a/src/Middleware/HealthChecks/src/HealthCheckResponseWriters.cs +++ b/src/Middleware/HealthChecks/src/HealthCheckResponseWriters.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/HealthChecks/test/UnitTests/HealthCheckEndpointRouteBuilderExtensionsTest.cs b/src/Middleware/HealthChecks/test/UnitTests/HealthCheckEndpointRouteBuilderExtensionsTest.cs index 857b5835899f..49e149405839 100644 --- a/src/Middleware/HealthChecks/test/UnitTests/HealthCheckEndpointRouteBuilderExtensionsTest.cs +++ b/src/Middleware/HealthChecks/test/UnitTests/HealthCheckEndpointRouteBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareSampleTest.cs b/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareSampleTest.cs index 0d5d648a8734..6644d84d7392 100644 --- a/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareSampleTest.cs +++ b/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareTests.cs b/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareTests.cs index 9cbd0532bdac..e21e631b0315 100644 --- a/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareTests.cs +++ b/src/Middleware/HealthChecks/test/UnitTests/HealthCheckMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/BasicStartup.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/BasicStartup.cs index e4473417bca6..d8d6cd1be674 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/BasicStartup.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/BasicStartup.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.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/CustomWriterStartup.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/CustomWriterStartup.cs index ad5776068b08..c01ad6f25751 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/CustomWriterStartup.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/CustomWriterStartup.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.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DBHealthStartup.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DBHealthStartup.cs index 40c7c050d181..740790c9b3e0 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DBHealthStartup.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DBHealthStartup.cs @@ -1,3 +1,5 @@ +// 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.Hosting; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbConnectionHealthCheck.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbConnectionHealthCheck.cs index cb865f67c0d7..6f998e65572d 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbConnectionHealthCheck.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbConnectionHealthCheck.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Data.Common; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbContextHealthStartup.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbContextHealthStartup.cs index 714645e40c9c..4a3900d73165 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbContextHealthStartup.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/DbContextHealthStartup.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.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/GCInfoHealthCheck.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/GCInfoHealthCheck.cs index 91519af452a7..9563ee103974 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/GCInfoHealthCheck.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/GCInfoHealthCheck.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; using System.Threading.Tasks; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/LivenessProbeStartup.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/LivenessProbeStartup.cs index 9de064823830..dd3bd1335267 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/LivenessProbeStartup.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/LivenessProbeStartup.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.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.HealthChecks; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/ManagementPortStartup.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/ManagementPortStartup.cs index 1272e08e3042..37baf2d53998 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/ManagementPortStartup.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/ManagementPortStartup.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.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/MyContext.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/MyContext.cs index 1cfbeaab2586..d2ab62e7fb1b 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/MyContext.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/MyContext.cs @@ -1,4 +1,7 @@ -using Microsoft.EntityFrameworkCore; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.EntityFrameworkCore; namespace HealthChecksSample { diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/Program.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/Program.cs index 754ea5260de7..cc7f43638ced 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/Program.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/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.Collections.Generic; using System.IO; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SlowDependencyHealthCheck.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SlowDependencyHealthCheck.cs index e14aeb210cbe..1149dd900873 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SlowDependencyHealthCheck.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SlowDependencyHealthCheck.cs @@ -1,4 +1,7 @@ -using System.Threading; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Diagnostics.HealthChecks; diff --git a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SqlConnectionHealthCheck.cs b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SqlConnectionHealthCheck.cs index 61af395cb327..5fe733aff9b8 100644 --- a/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SqlConnectionHealthCheck.cs +++ b/src/Middleware/HealthChecks/test/testassets/HealthChecksSample/SqlConnectionHealthCheck.cs @@ -1,4 +1,7 @@ -using System.Data.Common; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Data.Common; using Microsoft.Data.SqlClient; namespace HealthChecksSample diff --git a/src/Middleware/HostFiltering/sample/Program.cs b/src/Middleware/HostFiltering/sample/Program.cs index 8aad652893bf..c166d73b5994 100644 --- a/src/Middleware/HostFiltering/sample/Program.cs +++ b/src/Middleware/HostFiltering/sample/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/HostFiltering/sample/Startup.cs b/src/Middleware/HostFiltering/sample/Startup.cs index ca0d74ccbd60..f7c8688b3b42 100644 --- a/src/Middleware/HostFiltering/sample/Startup.cs +++ b/src/Middleware/HostFiltering/sample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HostFiltering/src/HostFilteringBuilderExtensions.cs b/src/Middleware/HostFiltering/src/HostFilteringBuilderExtensions.cs index b8722de1c7f3..d4562ee66f89 100644 --- a/src/Middleware/HostFiltering/src/HostFilteringBuilderExtensions.cs +++ b/src/Middleware/HostFiltering/src/HostFilteringBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HostFiltering; diff --git a/src/Middleware/HostFiltering/src/HostFilteringMiddleware.cs b/src/Middleware/HostFiltering/src/HostFilteringMiddleware.cs index 8241d1cba7b9..6f68549c6a42 100644 --- a/src/Middleware/HostFiltering/src/HostFilteringMiddleware.cs +++ b/src/Middleware/HostFiltering/src/HostFilteringMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -43,7 +43,7 @@ public class HostFilteringMiddleware /// /// /// - public HostFilteringMiddleware(RequestDelegate next, ILogger logger, + public HostFilteringMiddleware(RequestDelegate next, ILogger logger, IOptionsMonitor optionsMonitor) { _next = next ?? throw new ArgumentNullException(nameof(next)); diff --git a/src/Middleware/HostFiltering/src/HostFilteringOptions.cs b/src/Middleware/HostFiltering/src/HostFilteringOptions.cs index f2c0d6f467f2..363214db6bda 100644 --- a/src/Middleware/HostFiltering/src/HostFilteringOptions.cs +++ b/src/Middleware/HostFiltering/src/HostFilteringOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Middleware/HostFiltering/src/HostFilteringServicesExtensions.cs b/src/Middleware/HostFiltering/src/HostFilteringServicesExtensions.cs index 81b48444a8e0..254e5bbd91ef 100644 --- a/src/Middleware/HostFiltering/src/HostFilteringServicesExtensions.cs +++ b/src/Middleware/HostFiltering/src/HostFilteringServicesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HostFiltering; diff --git a/src/Middleware/HostFiltering/src/LoggerExtensions.cs b/src/Middleware/HostFiltering/src/LoggerExtensions.cs index 2195fcb49530..847a96727fae 100644 --- a/src/Middleware/HostFiltering/src/LoggerExtensions.cs +++ b/src/Middleware/HostFiltering/src/LoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HostFiltering/test/HostFilteringMiddlewareTests.cs b/src/Middleware/HostFiltering/test/HostFilteringMiddlewareTests.cs index b8a20a71fc47..ecd89519da39 100644 --- a/src/Middleware/HostFiltering/test/HostFilteringMiddlewareTests.cs +++ b/src/Middleware/HostFiltering/test/HostFilteringMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Program.cs b/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Program.cs index 2f43518e138f..63a3ce82c88e 100644 --- a/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Program.cs +++ b/src/Middleware/HttpLogging/samples/HttpLogging.Sample/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.Text.Json; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; diff --git a/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Startup.cs b/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Startup.cs index a85a95cd1b58..255f753ddd9f 100644 --- a/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Startup.cs +++ b/src/Middleware/HttpLogging/samples/HttpLogging.Sample/Startup.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.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Program.cs b/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Program.cs index a9c3118afde9..ce09dbafa7de 100644 --- a/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Program.cs +++ b/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.Extensions.Hosting; diff --git a/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Startup.cs b/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Startup.cs index 647f9d25b213..96c4cd663c71 100644 --- a/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Startup.cs +++ b/src/Middleware/HttpLogging/samples/Logging.W3C.Sample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; diff --git a/src/Middleware/HttpLogging/src/BufferingStream.cs b/src/Middleware/HttpLogging/src/BufferingStream.cs index 90ee3b01a7d8..12090d2ada65 100644 --- a/src/Middleware/HttpLogging/src/BufferingStream.cs +++ b/src/Middleware/HttpLogging/src/BufferingStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Middleware/HttpLogging/src/FileLoggerProcessor.cs b/src/Middleware/HttpLogging/src/FileLoggerProcessor.cs index 6df9a9432aa1..15d3ecd7fe9c 100644 --- a/src/Middleware/HttpLogging/src/FileLoggerProcessor.cs +++ b/src/Middleware/HttpLogging/src/FileLoggerProcessor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Middleware/HttpLogging/src/HttpLoggingBuilderExtensions.cs b/src/Middleware/HttpLogging/src/HttpLoggingBuilderExtensions.cs index ea015eecce23..52b605a1ef1b 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingBuilderExtensions.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpLogging; diff --git a/src/Middleware/HttpLogging/src/HttpLoggingExtensions.cs b/src/Middleware/HttpLogging/src/HttpLoggingExtensions.cs index 523c02efde9e..92fcac821031 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingExtensions.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/src/HttpLoggingFields.cs b/src/Middleware/HttpLogging/src/HttpLoggingFields.cs index 8533f3ec106b..8c6b88a12070 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingFields.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingFields.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs b/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs index c0ce0d7d2dc8..e08104a5a4f9 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Middleware/HttpLogging/src/HttpLoggingOptions.cs b/src/Middleware/HttpLogging/src/HttpLoggingOptions.cs index 800729b22aba..e57afb632b9f 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingOptions.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/src/HttpLoggingServicesExtensions.cs b/src/Middleware/HttpLogging/src/HttpLoggingServicesExtensions.cs index 315034aaf11f..68425f053d09 100644 --- a/src/Middleware/HttpLogging/src/HttpLoggingServicesExtensions.cs +++ b/src/Middleware/HttpLogging/src/HttpLoggingServicesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpLogging; diff --git a/src/Middleware/HttpLogging/src/HttpRequestLog.cs b/src/Middleware/HttpLogging/src/HttpRequestLog.cs index 3c571f129bfc..fa1673fef53a 100644 --- a/src/Middleware/HttpLogging/src/HttpRequestLog.cs +++ b/src/Middleware/HttpLogging/src/HttpRequestLog.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/src/HttpResponseLog.cs b/src/Middleware/HttpLogging/src/HttpResponseLog.cs index bae961740203..759e58b05d0c 100644 --- a/src/Middleware/HttpLogging/src/HttpResponseLog.cs +++ b/src/Middleware/HttpLogging/src/HttpResponseLog.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/src/MediaTypeHelpers.cs b/src/Middleware/HttpLogging/src/MediaTypeHelpers.cs index 80ebd49ccdb7..7ba44d13d650 100644 --- a/src/Middleware/HttpLogging/src/MediaTypeHelpers.cs +++ b/src/Middleware/HttpLogging/src/MediaTypeHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/src/MediaTypeOptions.cs b/src/Middleware/HttpLogging/src/MediaTypeOptions.cs index beb5314ef2d4..c2b751f4a7ac 100644 --- a/src/Middleware/HttpLogging/src/MediaTypeOptions.cs +++ b/src/Middleware/HttpLogging/src/MediaTypeOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/src/Properties/AssemblyInfo.cs b/src/Middleware/HttpLogging/src/Properties/AssemblyInfo.cs index 62d2d373c4b8..2d7544bd4a09 100644 --- a/src/Middleware/HttpLogging/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/HttpLogging/src/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. + using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.AspNetCore.HttpLogging.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] diff --git a/src/Middleware/HttpLogging/src/RequestBufferingStream.cs b/src/Middleware/HttpLogging/src/RequestBufferingStream.cs index 07b5688c9f99..859ca4c50a4e 100644 --- a/src/Middleware/HttpLogging/src/RequestBufferingStream.cs +++ b/src/Middleware/HttpLogging/src/RequestBufferingStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Middleware/HttpLogging/src/ResponseBufferingStream.cs b/src/Middleware/HttpLogging/src/ResponseBufferingStream.cs index 3c889b92ce1d..ae133275e352 100644 --- a/src/Middleware/HttpLogging/src/ResponseBufferingStream.cs +++ b/src/Middleware/HttpLogging/src/ResponseBufferingStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; @@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.HttpLogging { /// - /// Stream that buffers reads + /// Stream that buffers reads /// internal sealed class ResponseBufferingStream : BufferingStream, IHttpResponseBodyFeature { @@ -82,7 +82,7 @@ public override void Write(ReadOnlySpan span) OnFirstWrite(); if (innerCount > 0) - { + { if (span.Slice(0, innerCount).TryCopyTo(_tailMemory.Span)) { _tailBytesBuffered += innerCount; diff --git a/src/Middleware/HttpLogging/src/W3CLogger.cs b/src/Middleware/HttpLogging/src/W3CLogger.cs index e8dcc5aeef8d..0ee38ad3495e 100644 --- a/src/Middleware/HttpLogging/src/W3CLogger.cs +++ b/src/Middleware/HttpLogging/src/W3CLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/Middleware/HttpLogging/src/W3CLoggerOptions.cs b/src/Middleware/HttpLogging/src/W3CLoggerOptions.cs index bec2f386cb5b..4d1c4bdb0a6a 100644 --- a/src/Middleware/HttpLogging/src/W3CLoggerOptions.cs +++ b/src/Middleware/HttpLogging/src/W3CLoggerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/HttpLogging/src/W3CLoggerProcessor.cs b/src/Middleware/HttpLogging/src/W3CLoggerProcessor.cs index f03f27c78e6a..749da2b6cfbe 100644 --- a/src/Middleware/HttpLogging/src/W3CLoggerProcessor.cs +++ b/src/Middleware/HttpLogging/src/W3CLoggerProcessor.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/HttpLogging/src/W3CLoggingFields.cs b/src/Middleware/HttpLogging/src/W3CLoggingFields.cs index 7a4e9ca2c7ea..6ff2550c7876 100644 --- a/src/Middleware/HttpLogging/src/W3CLoggingFields.cs +++ b/src/Middleware/HttpLogging/src/W3CLoggingFields.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -142,7 +142,7 @@ public enum W3CLoggingFields : long /// /// Flag for logging properties that are part of the /// Includes , , , - /// , , , + /// , , , /// and . /// Request = UriStem | UriQuery | ProtocolVersion | Method | RequestHeaders, diff --git a/src/Middleware/HttpLogging/src/W3CLoggingMiddleware.cs b/src/Middleware/HttpLogging/src/W3CLoggingMiddleware.cs index 1b5fb18a4db8..158759fba80c 100644 --- a/src/Middleware/HttpLogging/src/W3CLoggingMiddleware.cs +++ b/src/Middleware/HttpLogging/src/W3CLoggingMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/test/FileLoggerProcessorTests.cs b/src/Middleware/HttpLogging/test/FileLoggerProcessorTests.cs index b74bb352b12c..91e8288905b7 100644 --- a/src/Middleware/HttpLogging/test/FileLoggerProcessorTests.cs +++ b/src/Middleware/HttpLogging/test/FileLoggerProcessorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/test/Helpers.cs b/src/Middleware/HttpLogging/test/Helpers.cs index e07d6761091d..b73c424ab40a 100644 --- a/src/Middleware/HttpLogging/test/Helpers.cs +++ b/src/Middleware/HttpLogging/test/Helpers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; diff --git a/src/Middleware/HttpLogging/test/HttpLoggingMiddlewareTests.cs b/src/Middleware/HttpLogging/test/HttpLoggingMiddlewareTests.cs index 31ea83dc1281..b47806b1643e 100644 --- a/src/Middleware/HttpLogging/test/HttpLoggingMiddlewareTests.cs +++ b/src/Middleware/HttpLogging/test/HttpLoggingMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/HttpLogging/test/HttpLoggingOptionsTests.cs b/src/Middleware/HttpLogging/test/HttpLoggingOptionsTests.cs index d91f23d2440b..e84d63221390 100644 --- a/src/Middleware/HttpLogging/test/HttpLoggingOptionsTests.cs +++ b/src/Middleware/HttpLogging/test/HttpLoggingOptionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Middleware/HttpLogging/test/HttpLoggingServicesExtensionsTests.cs b/src/Middleware/HttpLogging/test/HttpLoggingServicesExtensionsTests.cs index 3b6c66871a7c..45720dd1dde4 100644 --- a/src/Middleware/HttpLogging/test/HttpLoggingServicesExtensionsTests.cs +++ b/src/Middleware/HttpLogging/test/HttpLoggingServicesExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Middleware/HttpLogging/test/OptionsWrapperMonitor.cs b/src/Middleware/HttpLogging/test/OptionsWrapperMonitor.cs index 68da65738052..b3cffff91774 100644 --- a/src/Middleware/HttpLogging/test/OptionsWrapperMonitor.cs +++ b/src/Middleware/HttpLogging/test/OptionsWrapperMonitor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/Middleware/HttpLogging/test/TestW3CLogger.cs b/src/Middleware/HttpLogging/test/TestW3CLogger.cs index fcc86274e878..5005969edca5 100644 --- a/src/Middleware/HttpLogging/test/TestW3CLogger.cs +++ b/src/Middleware/HttpLogging/test/TestW3CLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Threading.Tasks; diff --git a/src/Middleware/HttpLogging/test/TestW3CLoggerProcessor.cs b/src/Middleware/HttpLogging/test/TestW3CLoggerProcessor.cs index 7cfe460bb4c8..bdfc8c5e9d88 100644 --- a/src/Middleware/HttpLogging/test/TestW3CLoggerProcessor.cs +++ b/src/Middleware/HttpLogging/test/TestW3CLoggerProcessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Middleware/HttpLogging/test/W3CLoggerOptionsTests.cs b/src/Middleware/HttpLogging/test/W3CLoggerOptionsTests.cs index df27d98a9eb1..7289067f07f1 100644 --- a/src/Middleware/HttpLogging/test/W3CLoggerOptionsTests.cs +++ b/src/Middleware/HttpLogging/test/W3CLoggerOptionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/HttpLogging/test/W3CLoggerTests.cs b/src/Middleware/HttpLogging/test/W3CLoggerTests.cs index 6d6d2b329ceb..cba4ed42bf3a 100644 --- a/src/Middleware/HttpLogging/test/W3CLoggerTests.cs +++ b/src/Middleware/HttpLogging/test/W3CLoggerTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpLogging/test/W3CLoggingMiddlewareTests.cs b/src/Middleware/HttpLogging/test/W3CLoggingMiddlewareTests.cs index 9266360a90c4..0928c70b7da4 100644 --- a/src/Middleware/HttpLogging/test/W3CLoggingMiddlewareTests.cs +++ b/src/Middleware/HttpLogging/test/W3CLoggingMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpOverrides/sample/Startup.cs b/src/Middleware/HttpOverrides/sample/Startup.cs index 69423d52e1c4..185b8c8982e1 100644 --- a/src/Middleware/HttpOverrides/sample/Startup.cs +++ b/src/Middleware/HttpOverrides/sample/Startup.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.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/HttpOverrides/src/CertificateForwardingBuilderExtensions.cs b/src/Middleware/HttpOverrides/src/CertificateForwardingBuilderExtensions.cs index 60e58d894d2a..b38396b9ed1f 100644 --- a/src/Middleware/HttpOverrides/src/CertificateForwardingBuilderExtensions.cs +++ b/src/Middleware/HttpOverrides/src/CertificateForwardingBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpOverrides; diff --git a/src/Middleware/HttpOverrides/src/CertificateForwardingFeature.cs b/src/Middleware/HttpOverrides/src/CertificateForwardingFeature.cs index 280177d8deb7..b4836659095a 100644 --- a/src/Middleware/HttpOverrides/src/CertificateForwardingFeature.cs +++ b/src/Middleware/HttpOverrides/src/CertificateForwardingFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography.X509Certificates; diff --git a/src/Middleware/HttpOverrides/src/CertificateForwardingMiddleware.cs b/src/Middleware/HttpOverrides/src/CertificateForwardingMiddleware.cs index 77ff2823612d..f639b82b7a76 100644 --- a/src/Middleware/HttpOverrides/src/CertificateForwardingMiddleware.cs +++ b/src/Middleware/HttpOverrides/src/CertificateForwardingMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpOverrides/src/CertificateForwardingOptions.cs b/src/Middleware/HttpOverrides/src/CertificateForwardingOptions.cs index 4dccdda3b154..262b70eb5eab 100644 --- a/src/Middleware/HttpOverrides/src/CertificateForwardingOptions.cs +++ b/src/Middleware/HttpOverrides/src/CertificateForwardingOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography.X509Certificates; diff --git a/src/Middleware/HttpOverrides/src/CertificateForwardingServiceExtensions.cs b/src/Middleware/HttpOverrides/src/CertificateForwardingServiceExtensions.cs index ffdd4e403bc8..268d486edc48 100644 --- a/src/Middleware/HttpOverrides/src/CertificateForwardingServiceExtensions.cs +++ b/src/Middleware/HttpOverrides/src/CertificateForwardingServiceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpOverrides; diff --git a/src/Middleware/HttpOverrides/src/ForwardedHeaders.cs b/src/Middleware/HttpOverrides/src/ForwardedHeaders.cs index 0da2b1062215..9411473327ca 100644 --- a/src/Middleware/HttpOverrides/src/ForwardedHeaders.cs +++ b/src/Middleware/HttpOverrides/src/ForwardedHeaders.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/HttpOverrides/src/ForwardedHeadersDefaults.cs b/src/Middleware/HttpOverrides/src/ForwardedHeadersDefaults.cs index 959dc295d3b6..0d44e4a8d31d 100644 --- a/src/Middleware/HttpOverrides/src/ForwardedHeadersDefaults.cs +++ b/src/Middleware/HttpOverrides/src/ForwardedHeadersDefaults.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.HttpOverrides { diff --git a/src/Middleware/HttpOverrides/src/ForwardedHeadersExtensions.cs b/src/Middleware/HttpOverrides/src/ForwardedHeadersExtensions.cs index eb50f3a41f78..9c787f6e7717 100644 --- a/src/Middleware/HttpOverrides/src/ForwardedHeadersExtensions.cs +++ b/src/Middleware/HttpOverrides/src/ForwardedHeadersExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpOverrides; diff --git a/src/Middleware/HttpOverrides/src/ForwardedHeadersMiddleware.cs b/src/Middleware/HttpOverrides/src/ForwardedHeadersMiddleware.cs index 17191387ecec..4e7ba21677af 100644 --- a/src/Middleware/HttpOverrides/src/ForwardedHeadersMiddleware.cs +++ b/src/Middleware/HttpOverrides/src/ForwardedHeadersMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpOverrides/src/ForwardedHeadersOptions.cs b/src/Middleware/HttpOverrides/src/ForwardedHeadersOptions.cs index 5c5ae4b8f27e..4247f3bdd043 100644 --- a/src/Middleware/HttpOverrides/src/ForwardedHeadersOptions.cs +++ b/src/Middleware/HttpOverrides/src/ForwardedHeadersOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net; diff --git a/src/Middleware/HttpOverrides/src/HttpMethodOverrideExtensions.cs b/src/Middleware/HttpOverrides/src/HttpMethodOverrideExtensions.cs index 07e3d06517ce..c5f9fddfa252 100644 --- a/src/Middleware/HttpOverrides/src/HttpMethodOverrideExtensions.cs +++ b/src/Middleware/HttpOverrides/src/HttpMethodOverrideExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpOverrides; diff --git a/src/Middleware/HttpOverrides/src/HttpMethodOverrideMiddleware.cs b/src/Middleware/HttpOverrides/src/HttpMethodOverrideMiddleware.cs index 45c458363844..f4fc3436548a 100644 --- a/src/Middleware/HttpOverrides/src/HttpMethodOverrideMiddleware.cs +++ b/src/Middleware/HttpOverrides/src/HttpMethodOverrideMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpOverrides/src/HttpMethodOverrideOptions.cs b/src/Middleware/HttpOverrides/src/HttpMethodOverrideOptions.cs index 93e0fa8e90c5..607daf7767b5 100644 --- a/src/Middleware/HttpOverrides/src/HttpMethodOverrideOptions.cs +++ b/src/Middleware/HttpOverrides/src/HttpMethodOverrideOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.HttpOverrides; diff --git a/src/Middleware/HttpOverrides/src/IPNetwork.cs b/src/Middleware/HttpOverrides/src/IPNetwork.cs index 94fad9d2d850..6387008478a3 100644 --- a/src/Middleware/HttpOverrides/src/IPNetwork.cs +++ b/src/Middleware/HttpOverrides/src/IPNetwork.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpOverrides/src/LoggingExtensions.cs b/src/Middleware/HttpOverrides/src/LoggingExtensions.cs index e713f7e7ece7..6323e2d0f6a0 100644 --- a/src/Middleware/HttpOverrides/src/LoggingExtensions.cs +++ b/src/Middleware/HttpOverrides/src/LoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/HttpOverrides/test/CertificateForwardingTest.cs b/src/Middleware/HttpOverrides/test/CertificateForwardingTest.cs index 0491cca3d36b..f4e31689e505 100644 --- a/src/Middleware/HttpOverrides/test/CertificateForwardingTest.cs +++ b/src/Middleware/HttpOverrides/test/CertificateForwardingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/HttpOverrides/test/ForwardedHeadersMiddlewareTest.cs b/src/Middleware/HttpOverrides/test/ForwardedHeadersMiddlewareTest.cs index 1ea6cc11a384..bb4969aec8eb 100644 --- a/src/Middleware/HttpOverrides/test/ForwardedHeadersMiddlewareTest.cs +++ b/src/Middleware/HttpOverrides/test/ForwardedHeadersMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/HttpOverrides/test/HttpMethodOverrideMiddlewareTest.cs b/src/Middleware/HttpOverrides/test/HttpMethodOverrideMiddlewareTest.cs index d36cc29c77a8..614346d5c8ec 100644 --- a/src/Middleware/HttpOverrides/test/HttpMethodOverrideMiddlewareTest.cs +++ b/src/Middleware/HttpOverrides/test/HttpMethodOverrideMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net.Http; diff --git a/src/Middleware/HttpOverrides/test/IPNetworkTest.cs b/src/Middleware/HttpOverrides/test/IPNetworkTest.cs index 4bd6aad4afb9..025ded7f30d0 100644 --- a/src/Middleware/HttpOverrides/test/IPNetworkTest.cs +++ b/src/Middleware/HttpOverrides/test/IPNetworkTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using Xunit; diff --git a/src/Middleware/HttpsPolicy/sample/Startup.cs b/src/Middleware/HttpsPolicy/sample/Startup.cs index cd83e7f3df7d..13c9bc6cfc7a 100644 --- a/src/Middleware/HttpsPolicy/sample/Startup.cs +++ b/src/Middleware/HttpsPolicy/sample/Startup.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.IO; diff --git a/src/Middleware/HttpsPolicy/src/HstsBuilderExtensions.cs b/src/Middleware/HttpsPolicy/src/HstsBuilderExtensions.cs index 840593c5fbd2..b4aac69c489a 100644 --- a/src/Middleware/HttpsPolicy/src/HstsBuilderExtensions.cs +++ b/src/Middleware/HttpsPolicy/src/HstsBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/HttpsPolicy/src/HstsLoggingExtensions.cs b/src/Middleware/HttpsPolicy/src/HstsLoggingExtensions.cs index 7fcaa1ea2e55..f673b30784cb 100644 --- a/src/Middleware/HttpsPolicy/src/HstsLoggingExtensions.cs +++ b/src/Middleware/HttpsPolicy/src/HstsLoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/src/HstsMiddleware.cs b/src/Middleware/HttpsPolicy/src/HstsMiddleware.cs index b9d946a38453..0c66719cfbbe 100644 --- a/src/Middleware/HttpsPolicy/src/HstsMiddleware.cs +++ b/src/Middleware/HttpsPolicy/src/HstsMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/src/HstsOptions.cs b/src/Middleware/HttpsPolicy/src/HstsOptions.cs index 92803963ebff..0284dc5e3a49 100644 --- a/src/Middleware/HttpsPolicy/src/HstsOptions.cs +++ b/src/Middleware/HttpsPolicy/src/HstsOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/src/HstsServicesExtensions.cs b/src/Middleware/HttpsPolicy/src/HstsServicesExtensions.cs index 425ec9040cb0..891e19b87a62 100644 --- a/src/Middleware/HttpsPolicy/src/HstsServicesExtensions.cs +++ b/src/Middleware/HttpsPolicy/src/HstsServicesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpsPolicy; diff --git a/src/Middleware/HttpsPolicy/src/HttpsLoggingExtensions.cs b/src/Middleware/HttpsPolicy/src/HttpsLoggingExtensions.cs index f3b00416f566..244ec1f07078 100644 --- a/src/Middleware/HttpsPolicy/src/HttpsLoggingExtensions.cs +++ b/src/Middleware/HttpsPolicy/src/HttpsLoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/src/HttpsRedirectionBuilderExtensions.cs b/src/Middleware/HttpsPolicy/src/HttpsRedirectionBuilderExtensions.cs index c6f804763fff..92bf7a97ecd2 100644 --- a/src/Middleware/HttpsPolicy/src/HttpsRedirectionBuilderExtensions.cs +++ b/src/Middleware/HttpsPolicy/src/HttpsRedirectionBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/src/HttpsRedirectionMiddleware.cs b/src/Middleware/HttpsPolicy/src/HttpsRedirectionMiddleware.cs index 6646b3396b42..c9de7b068d5b 100644 --- a/src/Middleware/HttpsPolicy/src/HttpsRedirectionMiddleware.cs +++ b/src/Middleware/HttpsPolicy/src/HttpsRedirectionMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -103,7 +103,7 @@ public Task Invoke(HttpContext context) var request = context.Request; var redirectUrl = UriHelper.BuildAbsolute( - "https", + "https", host, request.PathBase, request.Path, diff --git a/src/Middleware/HttpsPolicy/src/HttpsRedirectionOptions.cs b/src/Middleware/HttpsPolicy/src/HttpsRedirectionOptions.cs index 632b40f709d5..6fd7a32887ca 100644 --- a/src/Middleware/HttpsPolicy/src/HttpsRedirectionOptions.cs +++ b/src/Middleware/HttpsPolicy/src/HttpsRedirectionOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/HttpsPolicy/src/HttpsRedirectionServicesExtensions.cs b/src/Middleware/HttpsPolicy/src/HttpsRedirectionServicesExtensions.cs index 24c9e114e8b9..1062f1c06270 100644 --- a/src/Middleware/HttpsPolicy/src/HttpsRedirectionServicesExtensions.cs +++ b/src/Middleware/HttpsPolicy/src/HttpsRedirectionServicesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.HttpsPolicy; diff --git a/src/Middleware/HttpsPolicy/test/HstsMiddlewareTests.cs b/src/Middleware/HttpsPolicy/test/HstsMiddlewareTests.cs index 7149ba64ad89..ffd17efe2095 100644 --- a/src/Middleware/HttpsPolicy/test/HstsMiddlewareTests.cs +++ b/src/Middleware/HttpsPolicy/test/HstsMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/test/HttpsPolicyTests.cs b/src/Middleware/HttpsPolicy/test/HttpsPolicyTests.cs index d246c6255f01..1e5f13be2436 100644 --- a/src/Middleware/HttpsPolicy/test/HttpsPolicyTests.cs +++ b/src/Middleware/HttpsPolicy/test/HttpsPolicyTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/HttpsPolicy/test/HttpsRedirectionMiddlewareTests.cs b/src/Middleware/HttpsPolicy/test/HttpsRedirectionMiddlewareTests.cs index d4bd8fc7df2e..36369b4614cb 100644 --- a/src/Middleware/HttpsPolicy/test/HttpsRedirectionMiddlewareTests.cs +++ b/src/Middleware/HttpsPolicy/test/HttpsRedirectionMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization.Routing/src/RouteDataRequestCultureProvider.cs b/src/Middleware/Localization.Routing/src/RouteDataRequestCultureProvider.cs index 076ef834d63b..e77e5caf27e4 100644 --- a/src/Middleware/Localization.Routing/src/RouteDataRequestCultureProvider.cs +++ b/src/Middleware/Localization.Routing/src/RouteDataRequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization.Routing/test/RouteDataRequestCultureProviderTest.cs b/src/Middleware/Localization.Routing/test/RouteDataRequestCultureProviderTest.cs index 9aa142ce55a9..3e3dc4d00069 100644 --- a/src/Middleware/Localization.Routing/test/RouteDataRequestCultureProviderTest.cs +++ b/src/Middleware/Localization.Routing/test/RouteDataRequestCultureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/sample/Startup.cs b/src/Middleware/Localization/sample/Startup.cs index e9a303a1cb16..4296e04ca822 100644 --- a/src/Middleware/Localization/sample/Startup.cs +++ b/src/Middleware/Localization/sample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Localization/src/AcceptLanguageHeaderRequestCultureProvider.cs b/src/Middleware/Localization/src/AcceptLanguageHeaderRequestCultureProvider.cs index d811f8f77833..c1fc6e2bf90a 100644 --- a/src/Middleware/Localization/src/AcceptLanguageHeaderRequestCultureProvider.cs +++ b/src/Middleware/Localization/src/AcceptLanguageHeaderRequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/ApplicationBuilderExtensions.cs b/src/Middleware/Localization/src/ApplicationBuilderExtensions.cs index d867607654b4..6ad4e0897574 100644 --- a/src/Middleware/Localization/src/ApplicationBuilderExtensions.cs +++ b/src/Middleware/Localization/src/ApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Localization; diff --git a/src/Middleware/Localization/src/CookieRequestCultureProvider.cs b/src/Middleware/Localization/src/CookieRequestCultureProvider.cs index b9c19f18d200..df90115f9294 100644 --- a/src/Middleware/Localization/src/CookieRequestCultureProvider.cs +++ b/src/Middleware/Localization/src/CookieRequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/CustomRequestCultureProvider.cs b/src/Middleware/Localization/src/CustomRequestCultureProvider.cs index 412deb10aef3..5ee03fed7cb6 100644 --- a/src/Middleware/Localization/src/CustomRequestCultureProvider.cs +++ b/src/Middleware/Localization/src/CustomRequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/IRequestCultureFeature.cs b/src/Middleware/Localization/src/IRequestCultureFeature.cs index 25cffa570829..b459d9ba684f 100644 --- a/src/Middleware/Localization/src/IRequestCultureFeature.cs +++ b/src/Middleware/Localization/src/IRequestCultureFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Localization { diff --git a/src/Middleware/Localization/src/IRequestCultureProvider.cs b/src/Middleware/Localization/src/IRequestCultureProvider.cs index 835e436b2f56..ad1fa5272fb6 100644 --- a/src/Middleware/Localization/src/IRequestCultureProvider.cs +++ b/src/Middleware/Localization/src/IRequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/Localization/src/ProviderCultureResult.cs b/src/Middleware/Localization/src/ProviderCultureResult.cs index 2cb8b50e710e..3b3990510135 100644 --- a/src/Middleware/Localization/src/ProviderCultureResult.cs +++ b/src/Middleware/Localization/src/ProviderCultureResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.Primitives; diff --git a/src/Middleware/Localization/src/QueryStringRequestCultureProvider.cs b/src/Middleware/Localization/src/QueryStringRequestCultureProvider.cs index 46cbb0ad5ce3..be9f3a537252 100644 --- a/src/Middleware/Localization/src/QueryStringRequestCultureProvider.cs +++ b/src/Middleware/Localization/src/QueryStringRequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/RequestCulture.cs b/src/Middleware/Localization/src/RequestCulture.cs index 05dfe31a5e55..e9e6b6a8be11 100644 --- a/src/Middleware/Localization/src/RequestCulture.cs +++ b/src/Middleware/Localization/src/RequestCulture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Localization/src/RequestCultureFeature.cs b/src/Middleware/Localization/src/RequestCultureFeature.cs index ed8ba1e7c818..6056167f3032 100644 --- a/src/Middleware/Localization/src/RequestCultureFeature.cs +++ b/src/Middleware/Localization/src/RequestCultureFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Localization/src/RequestCultureProvider.cs b/src/Middleware/Localization/src/RequestCultureProvider.cs index 20d22f21b44e..bc971943911e 100644 --- a/src/Middleware/Localization/src/RequestCultureProvider.cs +++ b/src/Middleware/Localization/src/RequestCultureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/Localization/src/RequestCultureProviderLoggerExtensions.cs b/src/Middleware/Localization/src/RequestCultureProviderLoggerExtensions.cs index d7af673e74bd..d6ada0b42cf1 100644 --- a/src/Middleware/Localization/src/RequestCultureProviderLoggerExtensions.cs +++ b/src/Middleware/Localization/src/RequestCultureProviderLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs b/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs index d2ef26cd83ed..2b984f6ce68f 100644 --- a/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs +++ b/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/RequestLocalizationOptions.cs b/src/Middleware/Localization/src/RequestLocalizationOptions.cs index 28ed73b83e1e..e8e15cca8054 100644 --- a/src/Middleware/Localization/src/RequestLocalizationOptions.cs +++ b/src/Middleware/Localization/src/RequestLocalizationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/src/RequestLocalizationOptionsExtensions.cs b/src/Middleware/Localization/src/RequestLocalizationOptionsExtensions.cs index d0bf911c744a..86ab583f9bad 100644 --- a/src/Middleware/Localization/src/RequestLocalizationOptionsExtensions.cs +++ b/src/Middleware/Localization/src/RequestLocalizationOptionsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Localization; diff --git a/src/Middleware/Localization/src/RequestLocalizationServiceCollectionExtensions.cs b/src/Middleware/Localization/src/RequestLocalizationServiceCollectionExtensions.cs index 9e0cf69953af..6d6070578e92 100644 --- a/src/Middleware/Localization/src/RequestLocalizationServiceCollectionExtensions.cs +++ b/src/Middleware/Localization/src/RequestLocalizationServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/Localization/test/FunctionalTests/LocalizationSampleTest.cs b/src/Middleware/Localization/test/FunctionalTests/LocalizationSampleTest.cs index f264be58e152..fcbbd2a9e3a1 100644 --- a/src/Middleware/Localization/test/FunctionalTests/LocalizationSampleTest.cs +++ b/src/Middleware/Localization/test/FunctionalTests/LocalizationSampleTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Localization/test/FunctionalTests/LocalizationTest.cs b/src/Middleware/Localization/test/FunctionalTests/LocalizationTest.cs index 7c2cf51063e7..80fd251b3396 100644 --- a/src/Middleware/Localization/test/FunctionalTests/LocalizationTest.cs +++ b/src/Middleware/Localization/test/FunctionalTests/LocalizationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/test/UnitTests/AcceptLanguageHeaderRequestCultureProviderTest.cs b/src/Middleware/Localization/test/UnitTests/AcceptLanguageHeaderRequestCultureProviderTest.cs index d1e6f789f0d0..2f04761a33ff 100644 --- a/src/Middleware/Localization/test/UnitTests/AcceptLanguageHeaderRequestCultureProviderTest.cs +++ b/src/Middleware/Localization/test/UnitTests/AcceptLanguageHeaderRequestCultureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/test/UnitTests/CookieRequestCultureProviderTest.cs b/src/Middleware/Localization/test/UnitTests/CookieRequestCultureProviderTest.cs index 6e5bffcb3d9f..2ad8a3f7ca29 100644 --- a/src/Middleware/Localization/test/UnitTests/CookieRequestCultureProviderTest.cs +++ b/src/Middleware/Localization/test/UnitTests/CookieRequestCultureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/test/UnitTests/CustomRequestCultureProviderTest.cs b/src/Middleware/Localization/test/UnitTests/CustomRequestCultureProviderTest.cs index 2f5c2fb353fd..f23bc446f443 100644 --- a/src/Middleware/Localization/test/UnitTests/CustomRequestCultureProviderTest.cs +++ b/src/Middleware/Localization/test/UnitTests/CustomRequestCultureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Localization/test/UnitTests/QueryStringRequestCultureProviderTest.cs b/src/Middleware/Localization/test/UnitTests/QueryStringRequestCultureProviderTest.cs index 6284e1c022d4..4df31ab24cf0 100644 --- a/src/Middleware/Localization/test/UnitTests/QueryStringRequestCultureProviderTest.cs +++ b/src/Middleware/Localization/test/UnitTests/QueryStringRequestCultureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsExtensionsTest.cs b/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsExtensionsTest.cs index 1910fa95b665..901ac0e0be14 100644 --- a/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsExtensionsTest.cs +++ b/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsTest.cs b/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsTest.cs index c33a67332168..9233c06d7392 100644 --- a/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsTest.cs +++ b/src/Middleware/Localization/test/UnitTests/RequestLocalizationOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/Models/Customer.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/Models/Customer.cs index b38d34e7f1e5..a1adcde593dd 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/Models/Customer.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/Models/Customer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace LocalizationWebsite.Models { diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/Program.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/Program.cs index d736d118654f..6005434e2f37 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/Program.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupBuilderAPIs.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupBuilderAPIs.cs index 4dd4ec41e38c..001ba7045c99 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupBuilderAPIs.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupBuilderAPIs.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using LocalizationWebsite.Models; using Microsoft.AspNetCore.Builder; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupContentLanguageHeader.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupContentLanguageHeader.cs index 8df0ed19aeb3..18945d60ebec 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupContentLanguageHeader.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupContentLanguageHeader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupCustomCulturePreserved.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupCustomCulturePreserved.cs index 6a6f78bc9e1a..52ae31b1582e 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupCustomCulturePreserved.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupCustomCulturePreserved.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupGetAllStrings.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupGetAllStrings.cs index b7ace0d2996b..748c17c68dbb 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupGetAllStrings.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupGetAllStrings.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesAtRootFolder.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesAtRootFolder.cs index 2d54c02c335a..261449f5f599 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesAtRootFolder.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesAtRootFolder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInClassLibrary.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInClassLibrary.cs index 6cab0c27c624..4eaa7e4a8f0c 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInClassLibrary.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInClassLibrary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInFolder.cs b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInFolder.cs index d4c4f9e028e1..f1a92bdfd3fe 100644 --- a/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInFolder.cs +++ b/src/Middleware/Localization/testassets/LocalizationWebsite/StartupResourcesInFolder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Middleware/Localization/testassets/ResourcesClassLibraryNoAttribute/Model.cs b/src/Middleware/Localization/testassets/ResourcesClassLibraryNoAttribute/Model.cs index 9921388c893c..3f603ec9ee4c 100644 --- a/src/Middleware/Localization/testassets/ResourcesClassLibraryNoAttribute/Model.cs +++ b/src/Middleware/Localization/testassets/ResourcesClassLibraryNoAttribute/Model.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace ResourcesClassLibraryNoAttribute { diff --git a/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/AssemblyInfo.cs b/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/AssemblyInfo.cs index bf01e53ef05c..00147c2bbe82 100644 --- a/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/AssemblyInfo.cs +++ b/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.Extensions.Localization; diff --git a/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/Model.cs b/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/Model.cs index b1ff90f523ec..a6d9a7dce611 100644 --- a/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/Model.cs +++ b/src/Middleware/Localization/testassets/ResourcesClassLibraryWithAttribute/Model.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Alternate.Namespace { diff --git a/src/Middleware/MiddlewareAnalysis/samples/MiddlewareAnalysisSample/Startup.cs b/src/Middleware/MiddlewareAnalysis/samples/MiddlewareAnalysisSample/Startup.cs index 76c760b2640a..3a9177610add 100644 --- a/src/Middleware/MiddlewareAnalysis/samples/MiddlewareAnalysisSample/Startup.cs +++ b/src/Middleware/MiddlewareAnalysis/samples/MiddlewareAnalysisSample/Startup.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.Diagnostics; using System.Threading.Tasks; diff --git a/src/Middleware/MiddlewareAnalysis/src/AnalysisBuilder.cs b/src/Middleware/MiddlewareAnalysis/src/AnalysisBuilder.cs index e1e4f837e609..72ac045d7063 100644 --- a/src/Middleware/MiddlewareAnalysis/src/AnalysisBuilder.cs +++ b/src/Middleware/MiddlewareAnalysis/src/AnalysisBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -19,7 +19,7 @@ public class AnalysisBuilder : IApplicationBuilder private const string NextMiddlewareName = "analysis.NextMiddlewareName"; /// - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// The to decorate. public AnalysisBuilder(IApplicationBuilder inner) diff --git a/src/Middleware/MiddlewareAnalysis/src/AnalysisMiddleware.cs b/src/Middleware/MiddlewareAnalysis/src/AnalysisMiddleware.cs index e07540d9bae8..881393cded8c 100644 --- a/src/Middleware/MiddlewareAnalysis/src/AnalysisMiddleware.cs +++ b/src/Middleware/MiddlewareAnalysis/src/AnalysisMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -20,7 +20,7 @@ public class AnalysisMiddleware private readonly string _middlewareName; /// - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// The next middleware in the pipeline. /// The to log when other middleware starts, finishes and throws. @@ -67,7 +67,7 @@ public async Task Invoke(HttpContext httpContext) { var currentTimestamp = Stopwatch.GetTimestamp(); _diagnostics.Write( - "Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareFinished", + "Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareFinished", new { name = _middlewareName, @@ -84,7 +84,7 @@ public async Task Invoke(HttpContext httpContext) { var currentTimestamp = Stopwatch.GetTimestamp(); _diagnostics.Write( - "Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareException", + "Microsoft.AspNetCore.MiddlewareAnalysis.MiddlewareException", new { name = _middlewareName, diff --git a/src/Middleware/MiddlewareAnalysis/src/AnalysisServiceCollectionExtensions.cs b/src/Middleware/MiddlewareAnalysis/src/AnalysisServiceCollectionExtensions.cs index a10a05d4620b..053df8eabf75 100644 --- a/src/Middleware/MiddlewareAnalysis/src/AnalysisServiceCollectionExtensions.cs +++ b/src/Middleware/MiddlewareAnalysis/src/AnalysisServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Middleware/MiddlewareAnalysis/src/AnalysisStartupFilter.cs b/src/Middleware/MiddlewareAnalysis/src/AnalysisStartupFilter.cs index 90baa6ee298d..60ece2606199 100644 --- a/src/Middleware/MiddlewareAnalysis/src/AnalysisStartupFilter.cs +++ b/src/Middleware/MiddlewareAnalysis/src/AnalysisStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/MiddlewareAnalysis/test/MiddlewareAnalysisTests.cs b/src/Middleware/MiddlewareAnalysis/test/MiddlewareAnalysisTests.cs index 4bf4f4eaab69..e3753bd09371 100644 --- a/src/Middleware/MiddlewareAnalysis/test/MiddlewareAnalysisTests.cs +++ b/src/Middleware/MiddlewareAnalysis/test/MiddlewareAnalysisTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/MiddlewareAnalysis/test/TestDiagnosticListener.cs b/src/Middleware/MiddlewareAnalysis/test/TestDiagnosticListener.cs index ef171aff35c0..5ea1c7c18032 100644 --- a/src/Middleware/MiddlewareAnalysis/test/TestDiagnosticListener.cs +++ b/src/Middleware/MiddlewareAnalysis/test/TestDiagnosticListener.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching.Abstractions/src/IResponseCachingFeature.cs b/src/Middleware/ResponseCaching.Abstractions/src/IResponseCachingFeature.cs index bf1f55944f8d..0438a1357c84 100644 --- a/src/Middleware/ResponseCaching.Abstractions/src/IResponseCachingFeature.cs +++ b/src/Middleware/ResponseCaching.Abstractions/src/IResponseCachingFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ResponseCaching { diff --git a/src/Middleware/ResponseCaching/samples/ResponseCachingSample/Startup.cs b/src/Middleware/ResponseCaching/samples/ResponseCachingSample/Startup.cs index 5ca8a27ae16c..91e9d4480324 100644 --- a/src/Middleware/ResponseCaching/samples/ResponseCachingSample/Startup.cs +++ b/src/Middleware/ResponseCaching/samples/ResponseCachingSample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/ResponseCaching/src/CacheEntry/CacheEntryHelpers.cs b/src/Middleware/ResponseCaching/src/CacheEntry/CacheEntryHelpers.cs index 6d1e4ad137b7..d00fba0dcf0a 100644 --- a/src/Middleware/ResponseCaching/src/CacheEntry/CacheEntryHelpers.cs +++ b/src/Middleware/ResponseCaching/src/CacheEntry/CacheEntryHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponse.cs b/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponse.cs index a2bdf1120a46..70fbc2ba57a8 100644 --- a/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponse.cs +++ b/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponse.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponseBody.cs b/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponseBody.cs index b0d6b49136c1..5525209dcc82 100644 --- a/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponseBody.cs +++ b/src/Middleware/ResponseCaching/src/CacheEntry/CachedResponseBody.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/CacheEntry/CachedVaryByRules.cs b/src/Middleware/ResponseCaching/src/CacheEntry/CachedVaryByRules.cs index cbf46c9953b6..1514fe47d18c 100644 --- a/src/Middleware/ResponseCaching/src/CacheEntry/CachedVaryByRules.cs +++ b/src/Middleware/ResponseCaching/src/CacheEntry/CachedVaryByRules.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Middleware/ResponseCaching/src/FastGuid.cs b/src/Middleware/ResponseCaching/src/FastGuid.cs index 0aba388e1a38..8c4bec437470 100644 --- a/src/Middleware/ResponseCaching/src/FastGuid.cs +++ b/src/Middleware/ResponseCaching/src/FastGuid.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCache.cs b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCache.cs index 60b2c032f65d..d33522584704 100644 --- a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCache.cs +++ b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCacheEntry.cs b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCacheEntry.cs index 62590c33d7ac..05f4d90518c1 100644 --- a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCacheEntry.cs +++ b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCacheEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ResponseCaching { diff --git a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingKeyProvider.cs b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingKeyProvider.cs index b3ce9fc4a770..14f5884ef900 100644 --- a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingKeyProvider.cs +++ b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingKeyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingPolicyProvider.cs b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingPolicyProvider.cs index 3717971e9a78..a73219572a5f 100644 --- a/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingPolicyProvider.cs +++ b/src/Middleware/ResponseCaching/src/Interfaces/IResponseCachingPolicyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ResponseCaching { diff --git a/src/Middleware/ResponseCaching/src/Interfaces/ISystemClock.cs b/src/Middleware/ResponseCaching/src/Interfaces/ISystemClock.cs index c68f982927d1..f36d66ab62a2 100644 --- a/src/Middleware/ResponseCaching/src/Interfaces/ISystemClock.cs +++ b/src/Middleware/ResponseCaching/src/Interfaces/ISystemClock.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/ResponseCaching/src/LoggerExtensions.cs b/src/Middleware/ResponseCaching/src/LoggerExtensions.cs index 39600390b6e8..f8c54ba8e323 100644 --- a/src/Middleware/ResponseCaching/src/LoggerExtensions.cs +++ b/src/Middleware/ResponseCaching/src/LoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/MemoryCachedResponse.cs b/src/Middleware/ResponseCaching/src/MemoryCachedResponse.cs index 55b4d67c1183..672212798c16 100644 --- a/src/Middleware/ResponseCaching/src/MemoryCachedResponse.cs +++ b/src/Middleware/ResponseCaching/src/MemoryCachedResponse.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/MemoryResponseCache.cs b/src/Middleware/ResponseCaching/src/MemoryResponseCache.cs index a1f7a7db72df..ef3fdd944aff 100644 --- a/src/Middleware/ResponseCaching/src/MemoryResponseCache.cs +++ b/src/Middleware/ResponseCaching/src/MemoryResponseCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Middleware/ResponseCaching/src/Properties/AssemblyInfo.cs b/src/Middleware/ResponseCaching/src/Properties/AssemblyInfo.cs index 7a0fd0e4de5b..77e08ef261ca 100644 --- a/src/Middleware/ResponseCaching/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/ResponseCaching/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingContext.cs b/src/Middleware/ResponseCaching/src/ResponseCachingContext.cs index 4cc789aa6ff7..90f769160b5a 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingContext.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingExtensions.cs b/src/Middleware/ResponseCaching/src/ResponseCachingExtensions.cs index 8dff8eb2f5f7..b236aef3e372 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingExtensions.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.ResponseCaching; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingFeature.cs b/src/Middleware/ResponseCaching/src/ResponseCachingFeature.cs index ee9ae6b7831d..5b88f5b2b887 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingFeature.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingKeyProvider.cs b/src/Middleware/ResponseCaching/src/ResponseCachingKeyProvider.cs index d227c5a560e7..9f4f10e6d29c 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingKeyProvider.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingKeyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingMiddleware.cs b/src/Middleware/ResponseCaching/src/ResponseCachingMiddleware.cs index 37673a8ca081..0961b148c563 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingMiddleware.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingOptions.cs b/src/Middleware/ResponseCaching/src/ResponseCachingOptions.cs index 0c1dbe6e9edb..179c3f4d4724 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingOptions.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingPolicyProvider.cs b/src/Middleware/ResponseCaching/src/ResponseCachingPolicyProvider.cs index 374ccac42776..a658b576165c 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingPolicyProvider.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingPolicyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/ResponseCaching/src/ResponseCachingServicesExtensions.cs b/src/Middleware/ResponseCaching/src/ResponseCachingServicesExtensions.cs index bbcbc389995f..e592c5e38d4d 100644 --- a/src/Middleware/ResponseCaching/src/ResponseCachingServicesExtensions.cs +++ b/src/Middleware/ResponseCaching/src/ResponseCachingServicesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.ResponseCaching; diff --git a/src/Middleware/ResponseCaching/src/Streams/ResponseCachingStream.cs b/src/Middleware/ResponseCaching/src/Streams/ResponseCachingStream.cs index a9018c4a13c4..b89b5e29dd6a 100644 --- a/src/Middleware/ResponseCaching/src/Streams/ResponseCachingStream.cs +++ b/src/Middleware/ResponseCaching/src/Streams/ResponseCachingStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/ResponseCaching/src/Streams/SegmentWriteStream.cs b/src/Middleware/ResponseCaching/src/Streams/SegmentWriteStream.cs index a8dbee3896e0..57f6d5cd9a2c 100644 --- a/src/Middleware/ResponseCaching/src/Streams/SegmentWriteStream.cs +++ b/src/Middleware/ResponseCaching/src/Streams/SegmentWriteStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/src/Streams/StreamUtilities.cs b/src/Middleware/ResponseCaching/src/Streams/StreamUtilities.cs index b6d228afd838..fb6333de03f2 100644 --- a/src/Middleware/ResponseCaching/src/Streams/StreamUtilities.cs +++ b/src/Middleware/ResponseCaching/src/Streams/StreamUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.ResponseCaching { diff --git a/src/Middleware/ResponseCaching/src/StringBuilderExtensions.cs b/src/Middleware/ResponseCaching/src/StringBuilderExtensions.cs index 17ea61b7e706..e77f985e02c2 100644 --- a/src/Middleware/ResponseCaching/src/StringBuilderExtensions.cs +++ b/src/Middleware/ResponseCaching/src/StringBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; diff --git a/src/Middleware/ResponseCaching/src/SystemClock.cs b/src/Middleware/ResponseCaching/src/SystemClock.cs index c08ddc4f0df8..c4feb6baf7bd 100644 --- a/src/Middleware/ResponseCaching/src/SystemClock.cs +++ b/src/Middleware/ResponseCaching/src/SystemClock.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/ResponseCaching/test/CachedResponseBodyTests.cs b/src/Middleware/ResponseCaching/test/CachedResponseBodyTests.cs index 16db1f0af7ad..8491f7e99585 100644 --- a/src/Middleware/ResponseCaching/test/CachedResponseBodyTests.cs +++ b/src/Middleware/ResponseCaching/test/CachedResponseBodyTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.Collections.Generic; diff --git a/src/Middleware/ResponseCaching/test/ResponseCachingFeatureTests.cs b/src/Middleware/ResponseCaching/test/ResponseCachingFeatureTests.cs index 3d5b57bf65bd..f889a55afe2d 100644 --- a/src/Middleware/ResponseCaching/test/ResponseCachingFeatureTests.cs +++ b/src/Middleware/ResponseCaching/test/ResponseCachingFeatureTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/ResponseCaching/test/ResponseCachingKeyProviderTests.cs b/src/Middleware/ResponseCaching/test/ResponseCachingKeyProviderTests.cs index b207b601acf4..cceeaeb92690 100644 --- a/src/Middleware/ResponseCaching/test/ResponseCachingKeyProviderTests.cs +++ b/src/Middleware/ResponseCaching/test/ResponseCachingKeyProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs b/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs index 4a475691b3f3..e3324ba7e307 100644 --- a/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs +++ b/src/Middleware/ResponseCaching/test/ResponseCachingMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/test/ResponseCachingPolicyProviderTests.cs b/src/Middleware/ResponseCaching/test/ResponseCachingPolicyProviderTests.cs index 5819cefb2c71..5eb343b9762d 100644 --- a/src/Middleware/ResponseCaching/test/ResponseCachingPolicyProviderTests.cs +++ b/src/Middleware/ResponseCaching/test/ResponseCachingPolicyProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/ResponseCaching/test/ResponseCachingTests.cs b/src/Middleware/ResponseCaching/test/ResponseCachingTests.cs index 69c759112569..f75332cafced 100644 --- a/src/Middleware/ResponseCaching/test/ResponseCachingTests.cs +++ b/src/Middleware/ResponseCaching/test/ResponseCachingTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCaching/test/SegmentWriteStreamTests.cs b/src/Middleware/ResponseCaching/test/SegmentWriteStreamTests.cs index 03706ab121c3..eb4b4908b7e6 100644 --- a/src/Middleware/ResponseCaching/test/SegmentWriteStreamTests.cs +++ b/src/Middleware/ResponseCaching/test/SegmentWriteStreamTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/ResponseCaching/test/TestUtils.cs b/src/Middleware/ResponseCaching/test/TestUtils.cs index 7bc23d00db4a..457daa2de028 100644 --- a/src/Middleware/ResponseCaching/test/TestUtils.cs +++ b/src/Middleware/ResponseCaching/test/TestUtils.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCompression/perf/Microbenchmarks/AssemblyInfo.cs b/src/Middleware/ResponseCompression/perf/Microbenchmarks/AssemblyInfo.cs index 409fcf814af9..fcc216d461f3 100644 --- a/src/Middleware/ResponseCompression/perf/Microbenchmarks/AssemblyInfo.cs +++ b/src/Middleware/ResponseCompression/perf/Microbenchmarks/AssemblyInfo.cs @@ -1,4 +1,4 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Middleware/ResponseCompression/perf/Microbenchmarks/ResponseCompressionProviderBenchmark.cs b/src/Middleware/ResponseCompression/perf/Microbenchmarks/ResponseCompressionProviderBenchmark.cs index 2e8d6e98983a..d21436b81f28 100644 --- a/src/Middleware/ResponseCompression/perf/Microbenchmarks/ResponseCompressionProviderBenchmark.cs +++ b/src/Middleware/ResponseCompression/perf/Microbenchmarks/ResponseCompressionProviderBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using BenchmarkDotNet.Attributes; diff --git a/src/Middleware/ResponseCompression/sample/CustomCompressionProvider.cs b/src/Middleware/ResponseCompression/sample/CustomCompressionProvider.cs index 9bbd4c09a293..29687d396a4e 100644 --- a/src/Middleware/ResponseCompression/sample/CustomCompressionProvider.cs +++ b/src/Middleware/ResponseCompression/sample/CustomCompressionProvider.cs @@ -1,4 +1,7 @@ -using System.IO; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.IO; using Microsoft.AspNetCore.ResponseCompression; namespace ResponseCompressionSample diff --git a/src/Middleware/ResponseCompression/sample/LoremIpsum.cs b/src/Middleware/ResponseCompression/sample/LoremIpsum.cs index 34eaab215ac6..9afbf47e91ad 100644 --- a/src/Middleware/ResponseCompression/sample/LoremIpsum.cs +++ b/src/Middleware/ResponseCompression/sample/LoremIpsum.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace ResponseCompressionSample { diff --git a/src/Middleware/ResponseCompression/sample/Startup.cs b/src/Middleware/ResponseCompression/sample/Startup.cs index 5d84f952d0df..502ad5e7fc8b 100644 --- a/src/Middleware/ResponseCompression/sample/Startup.cs +++ b/src/Middleware/ResponseCompression/sample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO.Compression; diff --git a/src/Middleware/ResponseCompression/src/BrotliCompressionProvider.cs b/src/Middleware/ResponseCompression/src/BrotliCompressionProvider.cs index 55f2939b8097..33b945e40b8e 100644 --- a/src/Middleware/ResponseCompression/src/BrotliCompressionProvider.cs +++ b/src/Middleware/ResponseCompression/src/BrotliCompressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/ResponseCompression/src/BrotliCompressionProviderOptions.cs b/src/Middleware/ResponseCompression/src/BrotliCompressionProviderOptions.cs index 029f22b854ee..69c2841c899e 100644 --- a/src/Middleware/ResponseCompression/src/BrotliCompressionProviderOptions.cs +++ b/src/Middleware/ResponseCompression/src/BrotliCompressionProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO.Compression; using Microsoft.Extensions.Options; diff --git a/src/Middleware/ResponseCompression/src/CompressionProviderCollection.cs b/src/Middleware/ResponseCompression/src/CompressionProviderCollection.cs index e4d15ef5b72e..1bf3b250f95b 100644 --- a/src/Middleware/ResponseCompression/src/CompressionProviderCollection.cs +++ b/src/Middleware/ResponseCompression/src/CompressionProviderCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; diff --git a/src/Middleware/ResponseCompression/src/CompressionProviderFactory.cs b/src/Middleware/ResponseCompression/src/CompressionProviderFactory.cs index 50bfd267b3b7..5f4c24ca5502 100644 --- a/src/Middleware/ResponseCompression/src/CompressionProviderFactory.cs +++ b/src/Middleware/ResponseCompression/src/CompressionProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/ResponseCompression/src/GzipCompressionProvider.cs b/src/Middleware/ResponseCompression/src/GzipCompressionProvider.cs index 9f96e5491c61..be254d7a0dcc 100644 --- a/src/Middleware/ResponseCompression/src/GzipCompressionProvider.cs +++ b/src/Middleware/ResponseCompression/src/GzipCompressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/ResponseCompression/src/GzipCompressionProviderOptions.cs b/src/Middleware/ResponseCompression/src/GzipCompressionProviderOptions.cs index 67993f602e69..e80c4a6d0385 100644 --- a/src/Middleware/ResponseCompression/src/GzipCompressionProviderOptions.cs +++ b/src/Middleware/ResponseCompression/src/GzipCompressionProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO.Compression; diff --git a/src/Middleware/ResponseCompression/src/ICompressionProvider.cs b/src/Middleware/ResponseCompression/src/ICompressionProvider.cs index e9f184596f2e..644e427d05e1 100644 --- a/src/Middleware/ResponseCompression/src/ICompressionProvider.cs +++ b/src/Middleware/ResponseCompression/src/ICompressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; diff --git a/src/Middleware/ResponseCompression/src/IResponseCompressionProvider.cs b/src/Middleware/ResponseCompression/src/IResponseCompressionProvider.cs index 4e4613075733..205df6508402 100644 --- a/src/Middleware/ResponseCompression/src/IResponseCompressionProvider.cs +++ b/src/Middleware/ResponseCompression/src/IResponseCompressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/ResponseCompression/src/Properties/AssemblyInfo.cs b/src/Middleware/ResponseCompression/src/Properties/AssemblyInfo.cs index b1067e327c67..05823345d298 100644 --- a/src/Middleware/ResponseCompression/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/ResponseCompression/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Middleware/ResponseCompression/src/ResponseCompressionBody.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionBody.cs index 2c25154d0c8d..28bafedd8c8d 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionBody.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionBody.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/ResponseCompression/src/ResponseCompressionBuilderExtensions.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionBuilderExtensions.cs index 774aa5049aab..3fe3cd502e18 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionBuilderExtensions.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.ResponseCompression; diff --git a/src/Middleware/ResponseCompression/src/ResponseCompressionDefaults.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionDefaults.cs index 95b7827bb0fc..e69ee45f9bda 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionDefaults.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionDefaults.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Middleware/ResponseCompression/src/ResponseCompressionLoggingExtensions.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionLoggingExtensions.cs index d3e243905f7b..cdc9427f5721 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionLoggingExtensions.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionLoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCompression/src/ResponseCompressionMiddleware.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionMiddleware.cs index a68307574f4c..ac63ca7d5e7d 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionMiddleware.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/ResponseCompression/src/ResponseCompressionOptions.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionOptions.cs index e99da5dc46c0..4fbefddaaefd 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionOptions.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Middleware/ResponseCompression/src/ResponseCompressionProvider.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionProvider.cs index be3834799c2c..bc183022b5a4 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionProvider.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/ResponseCompression/src/ResponseCompressionServicesExtensions.cs b/src/Middleware/ResponseCompression/src/ResponseCompressionServicesExtensions.cs index f089cea6a855..eb18c73d922c 100644 --- a/src/Middleware/ResponseCompression/src/ResponseCompressionServicesExtensions.cs +++ b/src/Middleware/ResponseCompression/src/ResponseCompressionServicesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.ResponseCompression; diff --git a/src/Middleware/ResponseCompression/test/ResponseCompressionBodyTest.cs b/src/Middleware/ResponseCompression/test/ResponseCompressionBodyTest.cs index dbf2c94fd5c1..5bbbba9bbab7 100644 --- a/src/Middleware/ResponseCompression/test/ResponseCompressionBodyTest.cs +++ b/src/Middleware/ResponseCompression/test/ResponseCompressionBodyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading; diff --git a/src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs b/src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs index 8c60d8540f84..228ccf212da8 100644 --- a/src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs +++ b/src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/sample/Startup.cs b/src/Middleware/Rewrite/sample/Startup.cs index 253f0247c88c..b7e1666e498a 100644 --- a/src/Middleware/Rewrite/sample/Startup.cs +++ b/src/Middleware/Rewrite/sample/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Net; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/ApacheModRewriteRule.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/ApacheModRewriteRule.cs index 34e003ed15b1..cc8e974cacbe 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/ApacheModRewriteRule.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/ApacheModRewriteRule.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Rewrite.Logging; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/Condition.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/Condition.cs index 3cd27ecb9c89..509818cd0db2 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/Condition.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/Condition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionEvaluator.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionEvaluator.cs index ea2893f744a7..c99d18b99e63 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionEvaluator.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionEvaluator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionPatternParser.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionPatternParser.cs index a5b64c227ab1..060df5fb3126 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionPatternParser.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionPatternParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { /// - /// Parses the "CondPattern" portion of the RewriteCond. + /// Parses the "CondPattern" portion of the RewriteCond. /// RewriteCond TestString CondPattern /// internal class ConditionPatternParser @@ -50,7 +50,7 @@ public ParsedModRewriteInput ParseActionCondition(string condition) } } - // Control Block for strings. Set the operation and type fields based on the sign + // Control Block for strings. Set the operation and type fields based on the sign // Switch on current character switch (context.Current) { @@ -185,7 +185,7 @@ private static ParsedModRewriteInput ParseProperty(ParserContext context, bool i throw new FormatException(Resources.FormatError_InputParserUnrecognizedParameter(context.Template, context.Index)); } case 'l': - // name conflict with -l and -lt/-le, so the assumption is if there is no + // name conflict with -l and -lt/-le, so the assumption is if there is no // charcters after -l, we assume it a symbolic link if (!context.Next()) { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionType.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionType.cs index fae17d1d8c59..b255ba0faaf1 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionType.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/ConditionType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/CookieActionFactory.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/CookieActionFactory.cs index 0181c8fa2358..8914028950d5 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/CookieActionFactory.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/CookieActionFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/Rewrite/src/ApacheModRewrite/FileParser.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/FileParser.cs index 1c02c6d7a32c..4f87afbf6a5a 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/FileParser.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/FileParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/FlagParser.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/FlagParser.cs index 43532bf1aa1a..30d0a7807bc8 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/FlagParser.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/FlagParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/FlagType.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/FlagType.cs index 7567428d342a..2c43a5bbcfab 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/FlagType.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/FlagType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/Flags.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/Flags.cs index e1fad1a02885..d26268429350 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/Flags.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/Flags.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/OperationType.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/OperationType.cs index 483fb0b03fa7..a87f9b5f1cf8 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/OperationType.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/OperationType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/ParsedModRewriteCondition.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/ParsedModRewriteCondition.cs index c76bcccb159f..f57fd5701b2a 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/ParsedModRewriteCondition.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/ParsedModRewriteCondition.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/RuleBuilder.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/RuleBuilder.cs index b09b82d641a2..83c2ef545a08 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/RuleBuilder.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/RuleBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/RuleRegexParser.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/RuleRegexParser.cs index 7003926773be..a944d9010d74 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/RuleRegexParser.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/RuleRegexParser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/SegmentType.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/SegmentType.cs index 1d67818d3612..0fd1cd0f83bd 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/SegmentType.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/SegmentType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.ApacheModRewrite { diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/ServerVariables.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/ServerVariables.cs index fbebb2225cdc..765a06a509d9 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/ServerVariables.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/ServerVariables.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/src/ApacheModRewrite/TestStringParser.cs b/src/Middleware/Rewrite/src/ApacheModRewrite/TestStringParser.cs index 9bd542ad978e..07176addc533 100644 --- a/src/Middleware/Rewrite/src/ApacheModRewrite/TestStringParser.cs +++ b/src/Middleware/Rewrite/src/ApacheModRewrite/TestStringParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -20,7 +20,7 @@ internal class TestStringParser private const char CloseBrace = '}'; /// - /// Creates a pattern, which is a template to create a new test string to + /// Creates a pattern, which is a template to create a new test string to /// compare to the condition pattern. Can contain server variables, back references, etc. /// /// The test string portion of the RewriteCond @@ -82,9 +82,9 @@ public Pattern Parse(string testString) } /// - /// Obtains the condition parameter, which could either be a condition variable or a + /// Obtains the condition parameter, which could either be a condition variable or a /// server variable. Assumes the current character is immediately after the '%'. - /// context, on return will be on the last character of variable captured, such that after + /// context, on return will be on the last character of variable captured, such that after /// Next() is called, it will be on the character immediately after the condition parameter. /// /// The ParserContext @@ -110,7 +110,7 @@ private static void ParseConditionParameter(ParserContext context, IList results // 1. {NAME} - Server Variable, create lambda to get the part of the context // 2. {R:1} - IRule parameter // 3. {C:1} - Condition Parameter - // 4. {function:xxx} - String function + // 4. {function:xxx} - String function // (unless we support Reload) string? parameter; while (context.Next()) @@ -116,7 +116,7 @@ private void ParseParameter(ParserContext context, IList results results.Add(new ToLowerSegment(pattern)); // at this point, we expect our context to be on the ending closing brace, - // because the ParseString() call will increment the context until it + // because the ParseString() call will increment the context until it // has processed the new string. if (context.Current != CloseBrace) { diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/InvalidUrlRewriteFormatException.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/InvalidUrlRewriteFormatException.cs index f7c74be2acc4..601a93f7126a 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/InvalidUrlRewriteFormatException.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/InvalidUrlRewriteFormatException.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml; diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/LogicalGrouping.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/LogicalGrouping.cs index 49b653de1931..2c3b2c0a0412 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/LogicalGrouping.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/LogicalGrouping.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite { diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/MatchType.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/MatchType.cs index fb5ae7c4bab3..abf1c0525275 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/MatchType.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/MatchType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite { diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/PatternSyntax.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/PatternSyntax.cs index 0d19cf46cf5b..354746e69c9b 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/PatternSyntax.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/PatternSyntax.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite { diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/RedirectType.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/RedirectType.cs index 8a02b72bc325..00f5f48a53e9 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/RedirectType.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/RedirectType.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteMapParser.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteMapParser.cs index 13ecfee1e1bd..cdbf576f7e05 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteMapParser.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteMapParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteTags.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteTags.cs index 10d555625e9c..f4ea223801dd 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteTags.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/RewriteTags.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite { diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/ServerVariables.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/ServerVariables.cs index e737bb1ba888..19a50083b32b 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/ServerVariables.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/ServerVariables.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchCondition.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchCondition.cs index c4fbd2e0254f..527ad36e801b 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchCondition.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchCondition.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.RegularExpressions; diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchPart.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchPart.cs index fe3407343d5b..77a0e04c13de 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchPart.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/UriMatchPart.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.IISUrlRewrite { diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteFileParser.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteFileParser.cs index 6a2973b5bd4a..11c522bb1c8f 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteFileParser.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteFileParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteRuleBuilder.cs b/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteRuleBuilder.cs index 1fe234b559f9..d772423895bf 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteRuleBuilder.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewrite/UrlRewriteRuleBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/IISUrlRewriteOptionsExtensions.cs b/src/Middleware/Rewrite/src/IISUrlRewriteOptionsExtensions.cs index 03054552751f..e42d679eb397 100644 --- a/src/Middleware/Rewrite/src/IISUrlRewriteOptionsExtensions.cs +++ b/src/Middleware/Rewrite/src/IISUrlRewriteOptionsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Middleware/Rewrite/src/IRule.cs b/src/Middleware/Rewrite/src/IRule.cs index 4b4561e5514b..6081ddd8517e 100644 --- a/src/Middleware/Rewrite/src/IRule.cs +++ b/src/Middleware/Rewrite/src/IRule.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite { diff --git a/src/Middleware/Rewrite/src/MatchResults.cs b/src/Middleware/Rewrite/src/MatchResults.cs index 97bd54af9239..92ee2c3be1e7 100644 --- a/src/Middleware/Rewrite/src/MatchResults.cs +++ b/src/Middleware/Rewrite/src/MatchResults.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Diagnostics.CodeAnalysis; diff --git a/src/Middleware/Rewrite/src/ParserContext.cs b/src/Middleware/Rewrite/src/ParserContext.cs index cf892b45b40a..308298aace38 100644 --- a/src/Middleware/Rewrite/src/ParserContext.cs +++ b/src/Middleware/Rewrite/src/ParserContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite { diff --git a/src/Middleware/Rewrite/src/Pattern.cs b/src/Middleware/Rewrite/src/Pattern.cs index f6f69806ff72..c4f9c58caee0 100644 --- a/src/Middleware/Rewrite/src/Pattern.cs +++ b/src/Middleware/Rewrite/src/Pattern.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Middleware/Rewrite/src/PatternSegment.cs b/src/Middleware/Rewrite/src/PatternSegment.cs index 70c5910975ef..68ad18e7b223 100644 --- a/src/Middleware/Rewrite/src/PatternSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite { diff --git a/src/Middleware/Rewrite/src/PatternSegments/ConditionMatchSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/ConditionMatchSegment.cs index d4cea50311fc..aa503da79e3d 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/ConditionMatchSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/ConditionMatchSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/DateTimeSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/DateTimeSegment.cs index 8b8098eb2fa2..9033d173f2c6 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/DateTimeSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/DateTimeSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Rewrite/src/PatternSegments/HeaderSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/HeaderSegment.cs index 98c976b39a82..1140aea1cfbd 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/HeaderSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/HeaderSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/IISServerVariableSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/IISServerVariableSegment.cs index 56fcf59aa8bd..1e81133507af 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/IISServerVariableSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/IISServerVariableSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/PatternSegments/IsHttpsModSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/IsHttpsModSegment.cs index 54dcb5ddebad..19a9a9755cb5 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/IsHttpsModSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/IsHttpsModSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/IsHttpsUrlSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/IsHttpsUrlSegment.cs index bfe59d4df7c4..98290e52ba02 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/IsHttpsUrlSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/IsHttpsUrlSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/IsIPV6Segment.cs b/src/Middleware/Rewrite/src/PatternSegments/IsIPV6Segment.cs index e9ef866cca33..90a389b7b851 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/IsIPV6Segment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/IsIPV6Segment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Sockets; diff --git a/src/Middleware/Rewrite/src/PatternSegments/LiteralSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/LiteralSegment.cs index 30c4f7cc9ffc..1c5fb0465be1 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/LiteralSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/LiteralSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/LocalAddressSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/LocalAddressSegment.cs index 30187d708c1f..3ccf1325243b 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/LocalAddressSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/LocalAddressSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/LocalPortSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/LocalPortSegment.cs index b8e5bcd1272c..5524dcdd4ae0 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/LocalPortSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/LocalPortSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; diff --git a/src/Middleware/Rewrite/src/PatternSegments/QueryStringSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/QueryStringSegment.cs index b7e63bc3f211..1912c6e9c177 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/QueryStringSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/QueryStringSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/RemoteAddressSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/RemoteAddressSegment.cs index 46c8e098b054..5d5519b5d04a 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/RemoteAddressSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/RemoteAddressSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/RemotePortSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/RemotePortSegment.cs index 60a747e99aeb..23a945308056 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/RemotePortSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/RemotePortSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; diff --git a/src/Middleware/Rewrite/src/PatternSegments/RequestFilenameSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/RequestFilenameSegment.cs index e4134f69d62c..d0faaeda71b6 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/RequestFilenameSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/RequestFilenameSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/RequestMethodSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/RequestMethodSegment.cs index b68d3f23d2a6..f6ee69c7db6a 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/RequestMethodSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/RequestMethodSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/RewriteMapSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/RewriteMapSegment.cs index c94843bd6da6..9c7387988a5a 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/RewriteMapSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/RewriteMapSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Rewrite.IISUrlRewrite; diff --git a/src/Middleware/Rewrite/src/PatternSegments/RuleMatchSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/RuleMatchSegment.cs index 3076b89815c0..4029b662fea0 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/RuleMatchSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/RuleMatchSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/PatternSegments/SchemeSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/SchemeSegment.cs index b9669facc678..f5a4779f9485 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/SchemeSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/SchemeSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.PatternSegments { diff --git a/src/Middleware/Rewrite/src/PatternSegments/ServerProtocolSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/ServerProtocolSegment.cs index dac434c47c59..0e7735318b86 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/ServerProtocolSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/ServerProtocolSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; diff --git a/src/Middleware/Rewrite/src/PatternSegments/ToLowerSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/ToLowerSegment.cs index 29d15b868632..1ac0b577aaa6 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/ToLowerSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/ToLowerSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; diff --git a/src/Middleware/Rewrite/src/PatternSegments/UrlEncodeSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/UrlEncodeSegment.cs index 9d728494737a..6f16c2ede16c 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/UrlEncodeSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/UrlEncodeSegment.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using System.Text.Encodings.Web; @@ -18,7 +18,7 @@ public UrlEncodeSegment(Pattern pattern) public override string? Evaluate(RewriteContext context, BackReferenceCollection? ruleBackReferences, BackReferenceCollection? conditionBackReferences) { var oldBuilder = context.Builder; - // PERF + // PERF // Because we need to be able to evaluate multiple nested patterns, // we provided a new string builder and evaluate the new pattern, // and restore it after evaluation. diff --git a/src/Middleware/Rewrite/src/PatternSegments/UrlSegment.cs b/src/Middleware/Rewrite/src/PatternSegments/UrlSegment.cs index 34f21519cbca..e8e66af9a203 100644 --- a/src/Middleware/Rewrite/src/PatternSegments/UrlSegment.cs +++ b/src/Middleware/Rewrite/src/PatternSegments/UrlSegment.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Extensions; using Microsoft.AspNetCore.Rewrite.IISUrlRewrite; diff --git a/src/Middleware/Rewrite/src/Properties/AssemblyInfo.cs b/src/Middleware/Rewrite/src/Properties/AssemblyInfo.cs index 3b64da0cff9b..9cd9371510e3 100644 --- a/src/Middleware/Rewrite/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/Rewrite/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Middleware/Rewrite/src/RedirectRule.cs b/src/Middleware/Rewrite/src/RedirectRule.cs index a6720ffb18d6..54df4c4aa70d 100644 --- a/src/Middleware/Rewrite/src/RedirectRule.cs +++ b/src/Middleware/Rewrite/src/RedirectRule.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.RegularExpressions; diff --git a/src/Middleware/Rewrite/src/RedirectToHttpsRule.cs b/src/Middleware/Rewrite/src/RedirectToHttpsRule.cs index b16e40662a98..b4654e91a6d3 100644 --- a/src/Middleware/Rewrite/src/RedirectToHttpsRule.cs +++ b/src/Middleware/Rewrite/src/RedirectToHttpsRule.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Extensions; diff --git a/src/Middleware/Rewrite/src/RedirectToNonWwwRule.cs b/src/Middleware/Rewrite/src/RedirectToNonWwwRule.cs index 18ae85ed96d2..75e1f54f4582 100644 --- a/src/Middleware/Rewrite/src/RedirectToNonWwwRule.cs +++ b/src/Middleware/Rewrite/src/RedirectToNonWwwRule.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/RedirectToWwwHelper.cs b/src/Middleware/Rewrite/src/RedirectToWwwHelper.cs index 6a1b411cf2ef..ebf90f2c32a5 100644 --- a/src/Middleware/Rewrite/src/RedirectToWwwHelper.cs +++ b/src/Middleware/Rewrite/src/RedirectToWwwHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/RedirectToWwwRule.cs b/src/Middleware/Rewrite/src/RedirectToWwwRule.cs index f1d772e96f64..f9c06c793b46 100644 --- a/src/Middleware/Rewrite/src/RedirectToWwwRule.cs +++ b/src/Middleware/Rewrite/src/RedirectToWwwRule.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/RewriteBuilderExtensions.cs b/src/Middleware/Rewrite/src/RewriteBuilderExtensions.cs index a0f3ff17ee94..874fc0f68531 100644 --- a/src/Middleware/Rewrite/src/RewriteBuilderExtensions.cs +++ b/src/Middleware/Rewrite/src/RewriteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite; diff --git a/src/Middleware/Rewrite/src/RewriteContext.cs b/src/Middleware/Rewrite/src/RewriteContext.cs index bf6ac0336358..5012649407e9 100644 --- a/src/Middleware/Rewrite/src/RewriteContext.cs +++ b/src/Middleware/Rewrite/src/RewriteContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/RewriteMiddleware.cs b/src/Middleware/Rewrite/src/RewriteMiddleware.cs index cce21dfc83ce..bfb28fc0fe06 100644 --- a/src/Middleware/Rewrite/src/RewriteMiddleware.cs +++ b/src/Middleware/Rewrite/src/RewriteMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/src/RewriteOptions.cs b/src/Middleware/Rewrite/src/RewriteOptions.cs index c3f9edeab65a..55a043948003 100644 --- a/src/Middleware/Rewrite/src/RewriteOptions.cs +++ b/src/Middleware/Rewrite/src/RewriteOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.FileProviders; diff --git a/src/Middleware/Rewrite/src/RewriteOptionsExtensions.cs b/src/Middleware/Rewrite/src/RewriteOptionsExtensions.cs index 28d2660faec8..bff6c749550e 100644 --- a/src/Middleware/Rewrite/src/RewriteOptionsExtensions.cs +++ b/src/Middleware/Rewrite/src/RewriteOptionsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/RewriteRule.cs b/src/Middleware/Rewrite/src/RewriteRule.cs index d09b915df543..619254a7f101 100644 --- a/src/Middleware/Rewrite/src/RewriteRule.cs +++ b/src/Middleware/Rewrite/src/RewriteRule.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.RegularExpressions; diff --git a/src/Middleware/Rewrite/src/RuleResult.cs b/src/Middleware/Rewrite/src/RuleResult.cs index 9e62b0511b60..485fcce1c342 100644 --- a/src/Middleware/Rewrite/src/RuleResult.cs +++ b/src/Middleware/Rewrite/src/RuleResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite { diff --git a/src/Middleware/Rewrite/src/UrlAction.cs b/src/Middleware/Rewrite/src/UrlAction.cs index efc3f8574d08..a76cb9b0feed 100644 --- a/src/Middleware/Rewrite/src/UrlAction.cs +++ b/src/Middleware/Rewrite/src/UrlAction.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite { diff --git a/src/Middleware/Rewrite/src/UrlActions/AbortAction.cs b/src/Middleware/Rewrite/src/UrlActions/AbortAction.cs index 67f8d06e03cb..098295abd213 100644 --- a/src/Middleware/Rewrite/src/UrlActions/AbortAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/AbortAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Rewrite.Logging; diff --git a/src/Middleware/Rewrite/src/UrlActions/ChangeCookieAction.cs b/src/Middleware/Rewrite/src/UrlActions/ChangeCookieAction.cs index b145d60e20a9..a7a6bdf80df5 100644 --- a/src/Middleware/Rewrite/src/UrlActions/ChangeCookieAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/ChangeCookieAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/UrlActions/CustomResponseAction.cs b/src/Middleware/Rewrite/src/UrlActions/CustomResponseAction.cs index 23fdfba6c105..866c52f75a38 100644 --- a/src/Middleware/Rewrite/src/UrlActions/CustomResponseAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/CustomResponseAction.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Http.Extensions; diff --git a/src/Middleware/Rewrite/src/UrlActions/ForbiddenAction.cs b/src/Middleware/Rewrite/src/UrlActions/ForbiddenAction.cs index e57cac2cdcdd..82fab424a7b9 100644 --- a/src/Middleware/Rewrite/src/UrlActions/ForbiddenAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/ForbiddenAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Rewrite/src/UrlActions/GoneAction.cs b/src/Middleware/Rewrite/src/UrlActions/GoneAction.cs index 968880bb541d..41766dd78a14 100644 --- a/src/Middleware/Rewrite/src/UrlActions/GoneAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/GoneAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Rewrite/src/UrlActions/NoneAction.cs b/src/Middleware/Rewrite/src/UrlActions/NoneAction.cs index efe45ae561c7..dc4b18e6979b 100644 --- a/src/Middleware/Rewrite/src/UrlActions/NoneAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/NoneAction.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.UrlActions { diff --git a/src/Middleware/Rewrite/src/UrlActions/RedirectAction.cs b/src/Middleware/Rewrite/src/UrlActions/RedirectAction.cs index 2bbda91b9180..dcb439116168 100644 --- a/src/Middleware/Rewrite/src/UrlActions/RedirectAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/RedirectAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/UrlActions/RewriteAction.cs b/src/Middleware/Rewrite/src/UrlActions/RewriteAction.cs index b5f51eb5fd35..5f38786818f9 100644 --- a/src/Middleware/Rewrite/src/UrlActions/RewriteAction.cs +++ b/src/Middleware/Rewrite/src/UrlActions/RewriteAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/src/UrlMatch.cs b/src/Middleware/Rewrite/src/UrlMatch.cs index 14e0b9f2f359..3feae5fa457d 100644 --- a/src/Middleware/Rewrite/src/UrlMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite { diff --git a/src/Middleware/Rewrite/src/UrlMatches/ExactMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/ExactMatch.cs index b890d3141654..8fd57b06348c 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/ExactMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/ExactMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Rewrite/src/UrlMatches/FileSizeMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/FileSizeMatch.cs index 8dd07f6fcd28..5cb667fda540 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/FileSizeMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/FileSizeMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.UrlMatches { diff --git a/src/Middleware/Rewrite/src/UrlMatches/IntegerMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/IntegerMatch.cs index 6ff5c78fdddd..854a137ad523 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/IntegerMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/IntegerMatch.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/Rewrite/src/UrlMatches/IntegerOperation.cs b/src/Middleware/Rewrite/src/UrlMatches/IntegerOperation.cs index 64253ff7b801..cb51df86a8cc 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/IntegerOperation.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/IntegerOperation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.UrlMatches { diff --git a/src/Middleware/Rewrite/src/UrlMatches/IsDirectoryMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/IsDirectoryMatch.cs index 1c26360cfea1..e642454cf576 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/IsDirectoryMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/IsDirectoryMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.UrlMatches { diff --git a/src/Middleware/Rewrite/src/UrlMatches/IsFileMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/IsFileMatch.cs index 44fd56bc7aaa..812903107593 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/IsFileMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/IsFileMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.UrlMatches { diff --git a/src/Middleware/Rewrite/src/UrlMatches/RegexMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/RegexMatch.cs index 8c223212d575..c1b355005f01 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/RegexMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/RegexMatch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; diff --git a/src/Middleware/Rewrite/src/UrlMatches/StringMatch.cs b/src/Middleware/Rewrite/src/UrlMatches/StringMatch.cs index bc1c8e0a3ee5..819b0e58ad4b 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/StringMatch.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/StringMatch.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/Rewrite/src/UrlMatches/StringOperation.cs b/src/Middleware/Rewrite/src/UrlMatches/StringOperation.cs index b45a56e86e5d..682fde20cd48 100644 --- a/src/Middleware/Rewrite/src/UrlMatches/StringOperation.cs +++ b/src/Middleware/Rewrite/src/UrlMatches/StringOperation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Rewrite.UrlMatches { diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/ConditionPatternParserTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/ConditionPatternParserTest.cs index 2bd799cb5743..f0df9c331567 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/ConditionPatternParserTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/ConditionPatternParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite.ApacheModRewrite; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/CookieActionFactoryTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/CookieActionFactoryTest.cs index dd6501bf9751..bf278faf827f 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/CookieActionFactoryTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/CookieActionFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite.ApacheModRewrite; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/FlagParserTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/FlagParserTest.cs index 04d623e822b6..0691a03c94bc 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/FlagParserTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/FlagParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/FormatExceptionTests.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/FormatExceptionTests.cs index 44066bcfd11d..c470427c5bf1 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/FormatExceptionTests.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/FormatExceptionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/ModRewriteMiddlewareTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/ModRewriteMiddlewareTest.cs index 003d5f5f993d..179bc9bf814f 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/ModRewriteMiddlewareTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/ModRewriteMiddlewareTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/RewriteTokenizerTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/RewriteTokenizerTest.cs index 0d192e2fe55f..b74f567f1897 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/RewriteTokenizerTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/RewriteTokenizerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/RuleBuilderTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/RuleBuilderTest.cs index fe63d9afe690..5e8291c6feab 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/RuleBuilderTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/RuleBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/RuleRegexParserTest.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/RuleRegexParserTest.cs index 9af8163bf2b4..787ed6339548 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/RuleRegexParserTest.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/RuleRegexParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite.ApacheModRewrite; diff --git a/src/Middleware/Rewrite/test/ApacheModRewrite/TestStringParserTests.cs b/src/Middleware/Rewrite/test/ApacheModRewrite/TestStringParserTests.cs index 3968c9e4037b..0467ec48084a 100644 --- a/src/Middleware/Rewrite/test/ApacheModRewrite/TestStringParserTests.cs +++ b/src/Middleware/Rewrite/test/ApacheModRewrite/TestStringParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/FileParserTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/FileParserTests.cs index b2ed94bf946f..1f9b078dc73e 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/FileParserTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/FileParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/FormatExceptionHandlingTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/FormatExceptionHandlingTests.cs index 17cd5900d5f3..6ae8b525d25e 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/FormatExceptionHandlingTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/FormatExceptionHandlingTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/InputParserTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/InputParserTests.cs index c92ec087c89f..5fa933ad02d4 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/InputParserTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/InputParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/InvalidUrlRewriteFormatExceptionHandlingTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/InvalidUrlRewriteFormatExceptionHandlingTests.cs index 3784e692c9f9..25b6756fd70d 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/InvalidUrlRewriteFormatExceptionHandlingTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/InvalidUrlRewriteFormatExceptionHandlingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Rewrite.IISUrlRewrite; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/MiddleWareTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/MiddleWareTests.cs index fbe2483254b4..e1dae0b79176 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/MiddleWareTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/MiddleWareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/RewriteMapParserTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/RewriteMapParserTests.cs index f100eea479b0..1efe896cda58 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/RewriteMapParserTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/RewriteMapParserTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/ServerVariableTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/ServerVariableTests.cs index 1384d2ad2bdd..79349cd47cbd 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/ServerVariableTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/ServerVariableTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Text.RegularExpressions; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/TestServerVariablesFeature.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/TestServerVariablesFeature.cs index 372039679ada..5b99c692192f 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/TestServerVariablesFeature.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/TestServerVariablesFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Middleware/Rewrite/test/IISUrlRewrite/UrlRewriteApplicationTests.cs b/src/Middleware/Rewrite/test/IISUrlRewrite/UrlRewriteApplicationTests.cs index c78a4787e8fc..790a59ba2a4b 100644 --- a/src/Middleware/Rewrite/test/IISUrlRewrite/UrlRewriteApplicationTests.cs +++ b/src/Middleware/Rewrite/test/IISUrlRewrite/UrlRewriteApplicationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Middleware/Rewrite/test/MiddlewareTests.cs b/src/Middleware/Rewrite/test/MiddlewareTests.cs index 01ade6733a3c..cd38a0a00963 100644 --- a/src/Middleware/Rewrite/test/MiddlewareTests.cs +++ b/src/Middleware/Rewrite/test/MiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Middleware/Rewrite/test/PatternSegments/ConditionMatchSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/ConditionMatchSegmentTests.cs index 22e79dab48d3..c9bd40a7d3fa 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/ConditionMatchSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/ConditionMatchSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/DateTimeSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/DateTimeSegmentTests.cs index 2e142567a6b2..f8df05d3d49c 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/DateTimeSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/DateTimeSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/HeaderSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/HeaderSegmentTests.cs index 67cd4b085c92..97cb57ab5c1e 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/HeaderSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/HeaderSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/IsHttpsModSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/IsHttpsModSegmentTests.cs index bd14c17372b7..3df0999429a8 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/IsHttpsModSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/IsHttpsModSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Rewrite/test/PatternSegments/IsHttpsSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/IsHttpsSegmentTests.cs index 2990ebe011ca..29109234cd71 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/IsHttpsSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/IsHttpsSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Middleware/Rewrite/test/PatternSegments/IsIPV6SegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/IsIPV6SegmentTests.cs index 3fe803be0048..7b2b9525ee65 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/IsIPV6SegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/IsIPV6SegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; diff --git a/src/Middleware/Rewrite/test/PatternSegments/LIteralSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/LIteralSegmentTests.cs index 5269ab07de06..eb9f00972be9 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/LIteralSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/LIteralSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Rewrite.PatternSegments; using Xunit; diff --git a/src/Middleware/Rewrite/test/PatternSegments/LocalAddressSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/LocalAddressSegmentTests.cs index a9f26d33731a..06741b45d888 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/LocalAddressSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/LocalAddressSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; diff --git a/src/Middleware/Rewrite/test/PatternSegments/LocalPortSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/LocalPortSegmentTests.cs index 7dae569646db..9afa729a30b3 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/LocalPortSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/LocalPortSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; diff --git a/src/Middleware/Rewrite/test/PatternSegments/QueryStringSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/QueryStringSegmentTests.cs index 09ad2e4d69e8..ca069f10339d 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/QueryStringSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/QueryStringSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/RemoteAddressSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/RemoteAddressSegmentTests.cs index ec0316535a7f..3fe961078c1f 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/RemoteAddressSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/RemoteAddressSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using Microsoft.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/test/PatternSegments/RemotePortSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/RemotePortSegmentTests.cs index fd016fcd6ea6..e06f9dd62a41 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/RemotePortSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/RemotePortSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/RequestFilenameSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/RequestFilenameSegmentTests.cs index c4f90e5cae29..855db8524d06 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/RequestFilenameSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/RequestFilenameSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/RequestMethodSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/RequestMethodSegmentTests.cs index c86ade7db968..3e9b3cf6f3fe 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/RequestMethodSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/RequestMethodSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/RuleMatchSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/RuleMatchSegmentTests.cs index ac8016dce789..31eb728af179 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/RuleMatchSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/RuleMatchSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/SchemeSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/SchemeSegmentTests.cs index c60463c5a055..75d2eef26eec 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/SchemeSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/SchemeSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/ServerProtocolSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/ServerProtocolSegmentTests.cs index c1ec80de68b1..323c6e4822f8 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/ServerProtocolSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/ServerProtocolSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Middleware/Rewrite/test/PatternSegments/ToLowerSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/ToLowerSegmentTests.cs index be274a57d0be..0ca1fe024835 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/ToLowerSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/ToLowerSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/UrlEncodeSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/UrlEncodeSegmentTests.cs index cf3c65c5e883..8ffccb014574 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/UrlEncodeSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/UrlEncodeSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Rewrite.PatternSegments; diff --git a/src/Middleware/Rewrite/test/PatternSegments/UrlSegmentTests.cs b/src/Middleware/Rewrite/test/PatternSegments/UrlSegmentTests.cs index cf513624a1fb..63b57285054b 100644 --- a/src/Middleware/Rewrite/test/PatternSegments/UrlSegmentTests.cs +++ b/src/Middleware/Rewrite/test/PatternSegments/UrlSegmentTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.IISUrlRewrite; diff --git a/src/Middleware/Rewrite/test/UrlActions/AbortActionTests.cs b/src/Middleware/Rewrite/test/UrlActions/AbortActionTests.cs index 654be9d3e5a2..b23cb6017ed8 100644 --- a/src/Middleware/Rewrite/test/UrlActions/AbortActionTests.cs +++ b/src/Middleware/Rewrite/test/UrlActions/AbortActionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.UrlActions; diff --git a/src/Middleware/Rewrite/test/UrlActions/ChangeCookieActionTests.cs b/src/Middleware/Rewrite/test/UrlActions/ChangeCookieActionTests.cs index a5d58944a117..00bf5e4cc1c4 100644 --- a/src/Middleware/Rewrite/test/UrlActions/ChangeCookieActionTests.cs +++ b/src/Middleware/Rewrite/test/UrlActions/ChangeCookieActionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/test/UrlActions/ForbiddenActionTests.cs b/src/Middleware/Rewrite/test/UrlActions/ForbiddenActionTests.cs index 1dd836879238..8506101f35ba 100644 --- a/src/Middleware/Rewrite/test/UrlActions/ForbiddenActionTests.cs +++ b/src/Middleware/Rewrite/test/UrlActions/ForbiddenActionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.UrlActions; diff --git a/src/Middleware/Rewrite/test/UrlActions/GoneActionTests.cs b/src/Middleware/Rewrite/test/UrlActions/GoneActionTests.cs index b6173320150f..bf5098e5da0f 100644 --- a/src/Middleware/Rewrite/test/UrlActions/GoneActionTests.cs +++ b/src/Middleware/Rewrite/test/UrlActions/GoneActionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.UrlActions; diff --git a/src/Middleware/Rewrite/test/UrlMatches/ExactMatchTests.cs b/src/Middleware/Rewrite/test/UrlMatches/ExactMatchTests.cs index 94fb2f4aa3a0..e8c7bde43158 100644 --- a/src/Middleware/Rewrite/test/UrlMatches/ExactMatchTests.cs +++ b/src/Middleware/Rewrite/test/UrlMatches/ExactMatchTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Rewrite.UrlActions; diff --git a/src/Middleware/Rewrite/test/UrlMatches/IntegerMatchTests.cs b/src/Middleware/Rewrite/test/UrlMatches/IntegerMatchTests.cs index 5979ed683573..af24693c5c54 100644 --- a/src/Middleware/Rewrite/test/UrlMatches/IntegerMatchTests.cs +++ b/src/Middleware/Rewrite/test/UrlMatches/IntegerMatchTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Rewrite/test/UrlMatches/StringMatchTests.cs b/src/Middleware/Rewrite/test/UrlMatches/StringMatchTests.cs index 857bdfc04347..cfe6113aaeac 100644 --- a/src/Middleware/Rewrite/test/UrlMatches/StringMatchTests.cs +++ b/src/Middleware/Rewrite/test/UrlMatches/StringMatchTests.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.Linq; using System.Threading.Tasks; diff --git a/src/Middleware/Session/samples/Startup.cs b/src/Middleware/Session/samples/Startup.cs index c440f6e9b1fd..930f1861ebe9 100644 --- a/src/Middleware/Session/samples/Startup.cs +++ b/src/Middleware/Session/samples/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Session/src/CookieProtection.cs b/src/Middleware/Session/src/CookieProtection.cs index 65f107e49b8b..00c7985899fe 100644 --- a/src/Middleware/Session/src/CookieProtection.cs +++ b/src/Middleware/Session/src/CookieProtection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Middleware/Session/src/DefaultDistributedSessionStore.cs b/src/Middleware/Session/src/DefaultDistributedSessionStore.cs index 9f5608fe0c45..2b13be3ebb72 100644 --- a/src/Middleware/Session/src/DefaultDistributedSessionStore.cs +++ b/src/Middleware/Session/src/DefaultDistributedSessionStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Middleware/Session/src/DistributedSession.cs b/src/Middleware/Session/src/DistributedSession.cs index f3839f009e8f..3888a6a954e6 100644 --- a/src/Middleware/Session/src/DistributedSession.cs +++ b/src/Middleware/Session/src/DistributedSession.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Session/src/DistributedSessionStore.cs b/src/Middleware/Session/src/DistributedSessionStore.cs index 14a0c40a1ced..e72413774caa 100644 --- a/src/Middleware/Session/src/DistributedSessionStore.cs +++ b/src/Middleware/Session/src/DistributedSessionStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -17,7 +17,7 @@ public class DistributedSessionStore : ISessionStore private readonly ILoggerFactory _loggerFactory; /// - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// The used to store the session data. /// The . diff --git a/src/Middleware/Session/src/EncodedKey.cs b/src/Middleware/Session/src/EncodedKey.cs index ea36f20c93ab..a8cfecc49760 100644 --- a/src/Middleware/Session/src/EncodedKey.cs +++ b/src/Middleware/Session/src/EncodedKey.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; diff --git a/src/Middleware/Session/src/IDistributedSessionStore.cs b/src/Middleware/Session/src/IDistributedSessionStore.cs index 79943c55b226..bb1104203e81 100644 --- a/src/Middleware/Session/src/IDistributedSessionStore.cs +++ b/src/Middleware/Session/src/IDistributedSessionStore.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; diff --git a/src/Middleware/Session/src/ISessionStore.cs b/src/Middleware/Session/src/ISessionStore.cs index ef5c3db36ea1..d82d37aee1b1 100644 --- a/src/Middleware/Session/src/ISessionStore.cs +++ b/src/Middleware/Session/src/ISessionStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/Session/src/LoggingExtensions.cs b/src/Middleware/Session/src/LoggingExtensions.cs index 4f304d3a6a0f..635a7d6f4047 100644 --- a/src/Middleware/Session/src/LoggingExtensions.cs +++ b/src/Middleware/Session/src/LoggingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Session/src/NoOpSessionStore.cs b/src/Middleware/Session/src/NoOpSessionStore.cs index c9f4a3bc5dd3..cabb58f8b24e 100644 --- a/src/Middleware/Session/src/NoOpSessionStore.cs +++ b/src/Middleware/Session/src/NoOpSessionStore.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Session/src/SessionDefaults.cs b/src/Middleware/Session/src/SessionDefaults.cs index e9f590a0c7b4..5369719748cc 100644 --- a/src/Middleware/Session/src/SessionDefaults.cs +++ b/src/Middleware/Session/src/SessionDefaults.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Session { @@ -12,7 +12,7 @@ public static class SessionDefaults /// Represent the default cookie name, which is ".AspNetCore.Session". /// public static readonly string CookieName = ".AspNetCore.Session"; - + /// /// Represents the default path used to create the cookie, which is "/". /// diff --git a/src/Middleware/Session/src/SessionFeature.cs b/src/Middleware/Session/src/SessionFeature.cs index 2e34333f0224..0eddaa44a7b7 100644 --- a/src/Middleware/Session/src/SessionFeature.cs +++ b/src/Middleware/Session/src/SessionFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Middleware/Session/src/SessionMiddleware.cs b/src/Middleware/Session/src/SessionMiddleware.cs index ed70e178cdc4..21e52b3e35a9 100644 --- a/src/Middleware/Session/src/SessionMiddleware.cs +++ b/src/Middleware/Session/src/SessionMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/Middleware/Session/src/SessionMiddlewareExtensions.cs b/src/Middleware/Session/src/SessionMiddlewareExtensions.cs index c2731243799f..f557d4e525ca 100644 --- a/src/Middleware/Session/src/SessionMiddlewareExtensions.cs +++ b/src/Middleware/Session/src/SessionMiddlewareExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Session; diff --git a/src/Middleware/Session/src/SessionOptions.cs b/src/Middleware/Session/src/SessionOptions.cs index 8396b09974b8..d5c9ba789a4e 100644 --- a/src/Middleware/Session/src/SessionOptions.cs +++ b/src/Middleware/Session/src/SessionOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Session/src/SessionServiceCollectionExtensions.cs b/src/Middleware/Session/src/SessionServiceCollectionExtensions.cs index 628390fbe3c8..63cbcea6084b 100644 --- a/src/Middleware/Session/src/SessionServiceCollectionExtensions.cs +++ b/src/Middleware/Session/src/SessionServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/Session/src/SipHash.cs b/src/Middleware/Session/src/SipHash.cs index bad98fcab3bb..b2d92ff026bb 100644 --- a/src/Middleware/Session/src/SipHash.cs +++ b/src/Middleware/Session/src/SipHash.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Session { diff --git a/src/Middleware/Session/test/SessionTests.cs b/src/Middleware/Session/test/SessionTests.cs index 6e675cde63a1..b5b8f4b6c80f 100644 --- a/src/Middleware/Session/test/SessionTests.cs +++ b/src/Middleware/Session/test/SessionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaProxy/src/SpaDevelopmentServerOptions.cs b/src/Middleware/Spa/SpaProxy/src/SpaDevelopmentServerOptions.cs index ebf61f06173f..164740ff3d2f 100644 --- a/src/Middleware/Spa/SpaProxy/src/SpaDevelopmentServerOptions.cs +++ b/src/Middleware/Spa/SpaProxy/src/SpaDevelopmentServerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/Spa/SpaProxy/src/SpaHostingStartup.cs b/src/Middleware/Spa/SpaProxy/src/SpaHostingStartup.cs index 01b9259e3a7c..333226ad73ac 100644 --- a/src/Middleware/Spa/SpaProxy/src/SpaHostingStartup.cs +++ b/src/Middleware/Spa/SpaProxy/src/SpaHostingStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs b/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs index f7a7847caa59..336f4e1b2299 100644 --- a/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs +++ b/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; diff --git a/src/Middleware/Spa/SpaProxy/src/SpaProxyMiddleware.cs b/src/Middleware/Spa/SpaProxy/src/SpaProxyMiddleware.cs index da2ea951a1b2..1571ee306cb5 100644 --- a/src/Middleware/Spa/SpaProxy/src/SpaProxyMiddleware.cs +++ b/src/Middleware/Spa/SpaProxy/src/SpaProxyMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Spa/SpaProxy/src/SpaProxyStartupFilter.cs b/src/Middleware/Spa/SpaProxy/src/SpaProxyStartupFilter.cs index 67eb2bc883e4..e60f953ba89a 100644 --- a/src/Middleware/Spa/SpaProxy/src/SpaProxyStartupFilter.cs +++ b/src/Middleware/Spa/SpaProxy/src/SpaProxyStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliBuilder.cs b/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliBuilder.cs index 8be7bbfa2267..5603e72abf41 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliBuilder.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs b/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs index cc89d6b492a2..a089ac0db065 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddlewareExtensions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddlewareExtensions.cs index 8f8176447b9d..26a2343b5dac 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddlewareExtensions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/AngularCli/AngularCliMiddlewareExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/DefaultSpaBuilder.cs b/src/Middleware/Spa/SpaServices.Extensions/src/DefaultSpaBuilder.cs index b1517a71e325..a31eab30d219 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/DefaultSpaBuilder.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/DefaultSpaBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System; @@ -14,7 +14,7 @@ internal class DefaultSpaBuilder : ISpaBuilder public DefaultSpaBuilder(IApplicationBuilder applicationBuilder, SpaOptions options) { - ApplicationBuilder = applicationBuilder + ApplicationBuilder = applicationBuilder ?? throw new ArgumentNullException(nameof(applicationBuilder)); Options = options diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/ISpaBuilder.cs b/src/Middleware/Spa/SpaServices.Extensions/src/ISpaBuilder.cs index 491179268dee..2ebae3659a5e 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/ISpaBuilder.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/ISpaBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Npm/NodeScriptRunner.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Npm/NodeScriptRunner.cs index 49766eaf9ae8..314cb534cea4 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Npm/NodeScriptRunner.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Npm/NodeScriptRunner.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/ISpaPrerendererBuilder.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/ISpaPrerendererBuilder.cs index 4f98a0461add..3d6578ff13f3 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/ISpaPrerendererBuilder.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/ISpaPrerendererBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/SpaPrerenderingOptions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/SpaPrerenderingOptions.cs index 73d653cf3341..b689ce6c9db3 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/SpaPrerenderingOptions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Prerendering/SpaPrerenderingOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.SpaServices.Prerendering; @@ -19,7 +19,7 @@ public class SpaPrerenderingOptions /// /// Gets or sets an that the prerenderer will invoke before /// looking for the boot module file. - /// + /// /// This is only intended to be used during development as a way of generating the JavaScript boot /// file automatically when the application runs. This property should be left as null in /// production applications. diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/ConditionalProxyMiddleware.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/ConditionalProxyMiddleware.cs index 8915a308a0eb..9caf6c91b733 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/ConditionalProxyMiddleware.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/ConditionalProxyMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxy.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxy.cs index 41337cbd7626..3dd9aa3aae26 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxy.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxy.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using System; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxyingExtensions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxyingExtensions.cs index e37c080cf7cc..be56236bd6fb 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxyingExtensions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxyingExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.AspNetCore.SpaServices; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddleware.cs b/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddleware.cs index 0720325277f4..dba1596d28ab 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddleware.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddlewareExtensions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddlewareExtensions.cs index 0c560c0b7578..1a8d4f555c2b 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddlewareExtensions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/ReactDevelopmentServer/ReactDevelopmentServerMiddlewareExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/SpaApplicationBuilderExtensions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/SpaApplicationBuilderExtensions.cs index 3d9eec394baa..73c9b912014b 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/SpaApplicationBuilderExtensions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/SpaApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.SpaServices; using Microsoft.Extensions.DependencyInjection; @@ -17,7 +17,7 @@ public static class SpaApplicationBuilderExtensions /// /// Handles all requests from this point in the middleware chain by returning /// the default page for the Single Page Application (SPA). - /// + /// /// This middleware should be placed late in the chain, so that other middleware /// for serving static files, MVC actions, etc., takes precedence. /// diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/SpaDefaultPageMiddleware.cs b/src/Middleware/Spa/SpaServices.Extensions/src/SpaDefaultPageMiddleware.cs index 3a65a46ed914..5a8034fa85cf 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/SpaDefaultPageMiddleware.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/SpaDefaultPageMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/SpaOptions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/SpaOptions.cs index 1ad9c5bb5e6e..86e35ff49979 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/SpaOptions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/SpaOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/DefaultSpaStaticFileProvider.cs b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/DefaultSpaStaticFileProvider.cs index cdd2ac8c3cfa..7aeeba8e6599 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/DefaultSpaStaticFileProvider.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/DefaultSpaStaticFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/ISpaStaticFileProvider.cs b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/ISpaStaticFileProvider.cs index 16f0615a5f00..79b4d576dd16 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/ISpaStaticFileProvider.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/ISpaStaticFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.FileProviders; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesExtensions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesExtensions.cs index 52200f2f85ee..86f59822393c 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesExtensions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.SpaServices.StaticFiles; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesOptions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesOptions.cs index 85bd93188cee..34118be0885e 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesOptions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/StaticFiles/SpaStaticFilesOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; @@ -13,7 +13,7 @@ public class SpaStaticFilesOptions /// /// Gets or sets the path, relative to the application root, of the directory in which /// the physical files are located. - /// + /// /// If the specified directory does not exist, then the /// /// middleware will not serve any static files. diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamReader.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamReader.cs index 3e5ce52ff080..12bab5e208c5 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamReader.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamStringReader.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamStringReader.cs index d69d236ad853..65165e661660 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamStringReader.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Util/EventedStreamStringReader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Util/LoggerFinder.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Util/LoggerFinder.cs index d49b60c0816f..f4b6d89da0db 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Util/LoggerFinder.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Util/LoggerFinder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Util/TaskTimeoutExtensions.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Util/TaskTimeoutExtensions.cs index fe4d6b9c970e..debfe19be603 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Util/TaskTimeoutExtensions.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Util/TaskTimeoutExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/Spa/SpaServices.Extensions/src/Util/TcpPortFinder.cs b/src/Middleware/Spa/SpaServices.Extensions/src/Util/TcpPortFinder.cs index 1682ff7dd95f..630440999672 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/src/Util/TcpPortFinder.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/src/Util/TcpPortFinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Sockets; diff --git a/src/Middleware/Spa/SpaServices.Extensions/test/ListLoggerFactory.cs b/src/Middleware/Spa/SpaServices.Extensions/test/ListLoggerFactory.cs index 123880fd14be..322c7394c873 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/test/ListLoggerFactory.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/test/ListLoggerFactory.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 Microsoft.Extensions.Logging; diff --git a/src/Middleware/Spa/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs b/src/Middleware/Spa/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs index 22ea2e7062a7..adb861d13716 100644 --- a/src/Middleware/Spa/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs +++ b/src/Middleware/Spa/SpaServices.Extensions/test/SpaServicesExtensionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/StaticFiles/samples/StaticFileSample/Startup.cs b/src/Middleware/StaticFiles/samples/StaticFileSample/Startup.cs index bbaea9dcd43a..1c4dd452b16b 100644 --- a/src/Middleware/StaticFiles/samples/StaticFileSample/Startup.cs +++ b/src/Middleware/StaticFiles/samples/StaticFileSample/Startup.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.IO; using System.Threading.Tasks; diff --git a/src/Middleware/StaticFiles/src/Constants.cs b/src/Middleware/StaticFiles/src/Constants.cs index 275a90fd34dd..3484aec273cc 100644 --- a/src/Middleware/StaticFiles/src/Constants.cs +++ b/src/Middleware/StaticFiles/src/Constants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Middleware/StaticFiles/src/DefaultFilesExtensions.cs b/src/Middleware/StaticFiles/src/DefaultFilesExtensions.cs index 2e8bea69777a..bd7762aa8c92 100644 --- a/src/Middleware/StaticFiles/src/DefaultFilesExtensions.cs +++ b/src/Middleware/StaticFiles/src/DefaultFilesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/DefaultFilesMiddleware.cs b/src/Middleware/StaticFiles/src/DefaultFilesMiddleware.cs index 9232197fa224..d64894dee1e9 100644 --- a/src/Middleware/StaticFiles/src/DefaultFilesMiddleware.cs +++ b/src/Middleware/StaticFiles/src/DefaultFilesMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/src/DefaultFilesOptions.cs b/src/Middleware/StaticFiles/src/DefaultFilesOptions.cs index 646774315d4d..426de655be76 100644 --- a/src/Middleware/StaticFiles/src/DefaultFilesOptions.cs +++ b/src/Middleware/StaticFiles/src/DefaultFilesOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.StaticFiles.Infrastructure; diff --git a/src/Middleware/StaticFiles/src/DirectoryBrowserExtensions.cs b/src/Middleware/StaticFiles/src/DirectoryBrowserExtensions.cs index dce00489f192..bd246e9d79c2 100644 --- a/src/Middleware/StaticFiles/src/DirectoryBrowserExtensions.cs +++ b/src/Middleware/StaticFiles/src/DirectoryBrowserExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/DirectoryBrowserMiddleware.cs b/src/Middleware/StaticFiles/src/DirectoryBrowserMiddleware.cs index c4cc0049ad5f..bd43e170b4f8 100644 --- a/src/Middleware/StaticFiles/src/DirectoryBrowserMiddleware.cs +++ b/src/Middleware/StaticFiles/src/DirectoryBrowserMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Encodings.Web; diff --git a/src/Middleware/StaticFiles/src/DirectoryBrowserOptions.cs b/src/Middleware/StaticFiles/src/DirectoryBrowserOptions.cs index bb704749df30..1d36511ce18e 100644 --- a/src/Middleware/StaticFiles/src/DirectoryBrowserOptions.cs +++ b/src/Middleware/StaticFiles/src/DirectoryBrowserOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.StaticFiles; using Microsoft.AspNetCore.StaticFiles.Infrastructure; diff --git a/src/Middleware/StaticFiles/src/DirectoryBrowserServiceExtensions.cs b/src/Middleware/StaticFiles/src/DirectoryBrowserServiceExtensions.cs index 36d164c443c2..1807510247b8 100644 --- a/src/Middleware/StaticFiles/src/DirectoryBrowserServiceExtensions.cs +++ b/src/Middleware/StaticFiles/src/DirectoryBrowserServiceExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs b/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs index 3dad54bc5399..044c4e9823e3 100644 --- a/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs +++ b/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -338,7 +338,7 @@ public FileExtensionContentTypeProvider() { ".vsto", "application/x-ms-vsto" }, { ".vsw", "application/vnd.visio" }, { ".vsx", "application/vnd.visio" }, - { ".vtx", "application/vnd.visio" }, + { ".vtx", "application/vnd.visio" }, { ".wasm", "application/wasm" }, { ".wav", "audio/wav" }, { ".wax", "audio/x-ms-wax" }, diff --git a/src/Middleware/StaticFiles/src/FileServerExtensions.cs b/src/Middleware/StaticFiles/src/FileServerExtensions.cs index c9eb06e4c348..7f06af7d745c 100644 --- a/src/Middleware/StaticFiles/src/FileServerExtensions.cs +++ b/src/Middleware/StaticFiles/src/FileServerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/FileServerOptions.cs b/src/Middleware/StaticFiles/src/FileServerOptions.cs index f46e274cc1db..f3ac6cbf5f6c 100644 --- a/src/Middleware/StaticFiles/src/FileServerOptions.cs +++ b/src/Middleware/StaticFiles/src/FileServerOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.StaticFiles.Infrastructure; diff --git a/src/Middleware/StaticFiles/src/Helpers.cs b/src/Middleware/StaticFiles/src/Helpers.cs index 2fc0c8380439..b4fb5c340c68 100644 --- a/src/Middleware/StaticFiles/src/Helpers.cs +++ b/src/Middleware/StaticFiles/src/Helpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs b/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs index 83a19d219456..d723f54c240b 100644 --- a/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs +++ b/src/Middleware/StaticFiles/src/HtmlDirectoryFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/StaticFiles/src/IContentTypeProvider.cs b/src/Middleware/StaticFiles/src/IContentTypeProvider.cs index 15a4864cdb35..3e62331409e5 100644 --- a/src/Middleware/StaticFiles/src/IContentTypeProvider.cs +++ b/src/Middleware/StaticFiles/src/IContentTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Middleware/StaticFiles/src/IDirectoryFormatter.cs b/src/Middleware/StaticFiles/src/IDirectoryFormatter.cs index 6f379dea98da..3c9194363954 100644 --- a/src/Middleware/StaticFiles/src/IDirectoryFormatter.cs +++ b/src/Middleware/StaticFiles/src/IDirectoryFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Middleware/StaticFiles/src/Infrastructure/SharedOptions.cs b/src/Middleware/StaticFiles/src/Infrastructure/SharedOptions.cs index 879fa3a72ab7..ec58d6e41473 100644 --- a/src/Middleware/StaticFiles/src/Infrastructure/SharedOptions.cs +++ b/src/Middleware/StaticFiles/src/Infrastructure/SharedOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/Infrastructure/SharedOptionsBase.cs b/src/Middleware/StaticFiles/src/Infrastructure/SharedOptionsBase.cs index 444477f1b56f..0a8343ade4c1 100644 --- a/src/Middleware/StaticFiles/src/Infrastructure/SharedOptionsBase.cs +++ b/src/Middleware/StaticFiles/src/Infrastructure/SharedOptionsBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/LoggerExtensions.cs b/src/Middleware/StaticFiles/src/LoggerExtensions.cs index 76be097d0530..b5f37e512311 100644 --- a/src/Middleware/StaticFiles/src/LoggerExtensions.cs +++ b/src/Middleware/StaticFiles/src/LoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/src/Properties/AssemblyInfo.cs b/src/Middleware/StaticFiles/src/Properties/AssemblyInfo.cs index 3af9731ac713..b9b9e1b47965 100644 --- a/src/Middleware/StaticFiles/src/Properties/AssemblyInfo.cs +++ b/src/Middleware/StaticFiles/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Middleware/StaticFiles/src/StaticFileContext.cs b/src/Middleware/StaticFiles/src/StaticFileContext.cs index 5b787ef3f9b4..d67b11603e30 100644 --- a/src/Middleware/StaticFiles/src/StaticFileContext.cs +++ b/src/Middleware/StaticFiles/src/StaticFileContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/StaticFiles/src/StaticFileExtensions.cs b/src/Middleware/StaticFiles/src/StaticFileExtensions.cs index 1f9270a432e0..8ed4dfaae9f2 100644 --- a/src/Middleware/StaticFiles/src/StaticFileExtensions.cs +++ b/src/Middleware/StaticFiles/src/StaticFileExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/StaticFileMiddleware.cs b/src/Middleware/StaticFiles/src/StaticFileMiddleware.cs index b9b15431b1e6..5da042e54df1 100644 --- a/src/Middleware/StaticFiles/src/StaticFileMiddleware.cs +++ b/src/Middleware/StaticFiles/src/StaticFileMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Middleware/StaticFiles/src/StaticFileOptions.cs b/src/Middleware/StaticFiles/src/StaticFileOptions.cs index 62fd3c572030..ac99265c792a 100644 --- a/src/Middleware/StaticFiles/src/StaticFileOptions.cs +++ b/src/Middleware/StaticFiles/src/StaticFileOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs b/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs index 9c435547c2cb..0e37d4f2f17b 100644 --- a/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs +++ b/src/Middleware/StaticFiles/src/StaticFileResponseContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/src/StaticFilesEndpointRouteBuilderExtensions.cs b/src/Middleware/StaticFiles/src/StaticFilesEndpointRouteBuilderExtensions.cs index 41ceb88acce7..16afbe39be4e 100644 --- a/src/Middleware/StaticFiles/src/StaticFilesEndpointRouteBuilderExtensions.cs +++ b/src/Middleware/StaticFiles/src/StaticFilesEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/StaticFiles/test/FunctionalTests/FallbackStaticFileTest.cs b/src/Middleware/StaticFiles/test/FunctionalTests/FallbackStaticFileTest.cs index dff351cedf41..b9e0f0832fe9 100644 --- a/src/Middleware/StaticFiles/test/FunctionalTests/FallbackStaticFileTest.cs +++ b/src/Middleware/StaticFiles/test/FunctionalTests/FallbackStaticFileTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/StaticFiles/test/FunctionalTests/Helpers.cs b/src/Middleware/StaticFiles/test/FunctionalTests/Helpers.cs index 57e0e30da5c6..804475028482 100644 --- a/src/Middleware/StaticFiles/test/FunctionalTests/Helpers.cs +++ b/src/Middleware/StaticFiles/test/FunctionalTests/Helpers.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/StaticFiles/test/FunctionalTests/StaticFileMiddlewareTests.cs b/src/Middleware/StaticFiles/test/FunctionalTests/StaticFileMiddlewareTests.cs index ea3008700d7e..1dec6376c86d 100644 --- a/src/Middleware/StaticFiles/test/FunctionalTests/StaticFileMiddlewareTests.cs +++ b/src/Middleware/StaticFiles/test/FunctionalTests/StaticFileMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/test/UnitTests/CacheHeaderTests.cs b/src/Middleware/StaticFiles/test/UnitTests/CacheHeaderTests.cs index 321e9c408f9d..0c868e84e051 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/CacheHeaderTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/CacheHeaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/test/UnitTests/DefaultContentTypeProviderTests.cs b/src/Middleware/StaticFiles/test/UnitTests/DefaultContentTypeProviderTests.cs index 5df588c8023f..6f51d4a86109 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/DefaultContentTypeProviderTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/DefaultContentTypeProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Middleware/StaticFiles/test/UnitTests/DefaultFilesMiddlewareTests.cs b/src/Middleware/StaticFiles/test/UnitTests/DefaultFilesMiddlewareTests.cs index 239c270677db..7dca0eb442f5 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/DefaultFilesMiddlewareTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/DefaultFilesMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/StaticFiles/test/UnitTests/DirectoryBrowserMiddlewareTests.cs b/src/Middleware/StaticFiles/test/UnitTests/DirectoryBrowserMiddlewareTests.cs index e3cc2fa32dbf..5b619a6d2277 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/DirectoryBrowserMiddlewareTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/DirectoryBrowserMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/StaticFiles/test/UnitTests/RangeHeaderTests.cs b/src/Middleware/StaticFiles/test/UnitTests/RangeHeaderTests.cs index 2879616c8bbc..7d7dcbaf4ddb 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/RangeHeaderTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/RangeHeaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/test/UnitTests/RangeHelperTests.cs b/src/Middleware/StaticFiles/test/UnitTests/RangeHelperTests.cs index c82229b05ac0..9e9af5bdab92 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/RangeHelperTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/RangeHelperTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.Extensions.Logging.Abstractions; diff --git a/src/Middleware/StaticFiles/test/UnitTests/StaticFileContextTest.cs b/src/Middleware/StaticFiles/test/UnitTests/StaticFileContextTest.cs index 409cda5b5b4d..4f3fa12589f5 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/StaticFileContextTest.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/StaticFileContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs b/src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs index ce127de3da55..370a213b5ab9 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/StaticFileMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/StaticFiles/test/UnitTests/StaticFilesTestServer.cs b/src/Middleware/StaticFiles/test/UnitTests/StaticFilesTestServer.cs index 8f2723745097..0c5c447a947f 100644 --- a/src/Middleware/StaticFiles/test/UnitTests/StaticFilesTestServer.cs +++ b/src/Middleware/StaticFiles/test/UnitTests/StaticFilesTestServer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/samples/EchoApp/Program.cs b/src/Middleware/WebSockets/samples/EchoApp/Program.cs index 0723252c76e7..f6d842af7d18 100644 --- a/src/Middleware/WebSockets/samples/EchoApp/Program.cs +++ b/src/Middleware/WebSockets/samples/EchoApp/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.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; diff --git a/src/Middleware/WebSockets/samples/EchoApp/Startup.cs b/src/Middleware/WebSockets/samples/EchoApp/Startup.cs index f1d828955aab..4148f8d76e39 100644 --- a/src/Middleware/WebSockets/samples/EchoApp/Startup.cs +++ b/src/Middleware/WebSockets/samples/EchoApp/Startup.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/Middleware/WebSockets/samples/TestServer/Program.cs b/src/Middleware/WebSockets/samples/TestServer/Program.cs index 68e62bfdf6da..1a0a302979e4 100644 --- a/src/Middleware/WebSockets/samples/TestServer/Program.cs +++ b/src/Middleware/WebSockets/samples/TestServer/Program.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.Linq; using System.Net; diff --git a/src/Middleware/WebSockets/src/Constants.cs b/src/Middleware/WebSockets/src/Constants.cs index ca07a77b386e..75260c5dee03 100644 --- a/src/Middleware/WebSockets/src/Constants.cs +++ b/src/Middleware/WebSockets/src/Constants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.WebSockets { diff --git a/src/Middleware/WebSockets/src/ExtendedWebSocketAcceptContext.cs b/src/Middleware/WebSockets/src/ExtendedWebSocketAcceptContext.cs index 2e85ef2d41f8..37d6fea5569f 100644 --- a/src/Middleware/WebSockets/src/ExtendedWebSocketAcceptContext.cs +++ b/src/Middleware/WebSockets/src/ExtendedWebSocketAcceptContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Middleware/WebSockets/src/HandshakeHelpers.cs b/src/Middleware/WebSockets/src/HandshakeHelpers.cs index a242a281154a..9f70c868aff8 100644 --- a/src/Middleware/WebSockets/src/HandshakeHelpers.cs +++ b/src/Middleware/WebSockets/src/HandshakeHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Middleware/WebSockets/src/WebSocketDeflateConstants.cs b/src/Middleware/WebSockets/src/WebSocketDeflateConstants.cs index aff0a93dccf4..309f8dbf1450 100644 --- a/src/Middleware/WebSockets/src/WebSocketDeflateConstants.cs +++ b/src/Middleware/WebSockets/src/WebSocketDeflateConstants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.WebSockets { diff --git a/src/Middleware/WebSockets/src/WebSocketMiddleware.cs b/src/Middleware/WebSockets/src/WebSocketMiddleware.cs index c640ed4b368d..8963e1bad848 100644 --- a/src/Middleware/WebSockets/src/WebSocketMiddleware.cs +++ b/src/Middleware/WebSockets/src/WebSocketMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs b/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs index 4b2ce7134ef8..01c360efba1c 100644 --- a/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs +++ b/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.WebSockets; diff --git a/src/Middleware/WebSockets/src/WebSocketOptions.cs b/src/Middleware/WebSockets/src/WebSocketOptions.cs index 2147e6003611..21682de70a80 100644 --- a/src/Middleware/WebSockets/src/WebSocketOptions.cs +++ b/src/Middleware/WebSockets/src/WebSocketOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/src/WebSocketsDependencyInjectionExtensions.cs b/src/Middleware/WebSockets/src/WebSocketsDependencyInjectionExtensions.cs index 436783d73386..8a5b15beefad 100644 --- a/src/Middleware/WebSockets/src/WebSocketsDependencyInjectionExtensions.cs +++ b/src/Middleware/WebSockets/src/WebSocketsDependencyInjectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnCaseResult.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnCaseResult.cs index 2cba13cf2566..bfb956c7da68 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnCaseResult.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnCaseResult.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.Linq; using Newtonsoft.Json.Linq; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnExpectations.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnExpectations.cs index f1dbf67495a3..d77ae2f6ff6f 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnExpectations.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnExpectations.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 Microsoft.AspNetCore.Server.IntegrationTesting; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnResult.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnResult.cs index df3c025741e9..df9182264b16 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnResult.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnResult.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnServerResult.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnServerResult.cs index 8e53f8091d78..459517a0c79f 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnServerResult.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnServerResult.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.Linq; using Microsoft.AspNetCore.Server.IntegrationTesting; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnSpec.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnSpec.cs index 0d48db4eab71..3f255fc859b0 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnSpec.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnSpec.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.IO; using System.Linq; using Newtonsoft.Json; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnTester.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnTester.cs index ecdcd1ef0c58..fff7752e26e0 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnTester.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnTester.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.IO; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Executable.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Executable.cs index c20f55786bc0..64868e661f2e 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Executable.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Executable.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.Diagnostics; using System.IO; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Expectation.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Expectation.cs index 28ba5005c160..271df61e9acf 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Expectation.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Expectation.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn { public enum Expectation { diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/ServerSpec.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/ServerSpec.cs index 6b149d14d24e..a0118a369f14 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/ServerSpec.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/ServerSpec.cs @@ -1,4 +1,7 @@ -using Newtonsoft.Json.Linq; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Newtonsoft.Json.Linq; namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn { diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Wstest.cs b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Wstest.cs index f02f23b231d4..30448f75acb5 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Wstest.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Wstest.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.IO; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Program.cs b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Program.cs index c65ab23ac2dc..045029d8d299 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Program.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/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.IO; using System.Net; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Startup.cs b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Startup.cs index c351ae285e6f..1801471aa45f 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Startup.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Startup.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.WebSockets; using System.Threading; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTests.cs b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTests.cs index 5960ec9cb48d..fe40ab6eb1c0 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTests.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTests.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.Diagnostics; using System.IO; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs b/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs index 7c35b1730586..95d9989ad443 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Helpers.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.IO; diff --git a/src/Middleware/WebSockets/test/ConformanceTests/SkipIfWsTestNotPresentAttribute.cs b/src/Middleware/WebSockets/test/ConformanceTests/SkipIfWsTestNotPresentAttribute.cs index 6402aedaec18..95bfa79c9570 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/SkipIfWsTestNotPresentAttribute.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/SkipIfWsTestNotPresentAttribute.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.AspNetCore.Testing; using Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn; diff --git a/src/Middleware/WebSockets/test/UnitTests/AddWebSocketsTests.cs b/src/Middleware/WebSockets/test/UnitTests/AddWebSocketsTests.cs index 255d17f24f57..21e019cd12d2 100644 --- a/src/Middleware/WebSockets/test/UnitTests/AddWebSocketsTests.cs +++ b/src/Middleware/WebSockets/test/UnitTests/AddWebSocketsTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Middleware/WebSockets/test/UnitTests/BufferStream.cs b/src/Middleware/WebSockets/test/UnitTests/BufferStream.cs index 5f18539bdf1f..937c3b7fa02c 100644 --- a/src/Middleware/WebSockets/test/UnitTests/BufferStream.cs +++ b/src/Middleware/WebSockets/test/UnitTests/BufferStream.cs @@ -1,4 +1,5 @@ -// Copyright (c) .NET Foundation. All rights reserved. See License.txt in the project root for license information. +// 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.Concurrent; diff --git a/src/Middleware/WebSockets/test/UnitTests/DuplexStream.cs b/src/Middleware/WebSockets/test/UnitTests/DuplexStream.cs index 03ae00f900e7..9542d31ae906 100644 --- a/src/Middleware/WebSockets/test/UnitTests/DuplexStream.cs +++ b/src/Middleware/WebSockets/test/UnitTests/DuplexStream.cs @@ -1,4 +1,5 @@ -// Copyright (c) .NET Foundation. All rights reserved. See License.txt in the project root for license information. +// 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.IO; diff --git a/src/Middleware/WebSockets/test/UnitTests/HandshakeTests.cs b/src/Middleware/WebSockets/test/UnitTests/HandshakeTests.cs index 163fc71db4c3..39a02b6f7bb3 100644 --- a/src/Middleware/WebSockets/test/UnitTests/HandshakeTests.cs +++ b/src/Middleware/WebSockets/test/UnitTests/HandshakeTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Middleware/WebSockets/test/UnitTests/IHostPortExtensions.cs b/src/Middleware/WebSockets/test/UnitTests/IHostPortExtensions.cs index 3cea6f8e92f4..9a48af00358b 100644 --- a/src/Middleware/WebSockets/test/UnitTests/IHostPortExtensions.cs +++ b/src/Middleware/WebSockets/test/UnitTests/IHostPortExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/test/UnitTests/KestrelWebSocketHelpers.cs b/src/Middleware/WebSockets/test/UnitTests/KestrelWebSocketHelpers.cs index 037b9422d32b..e4016a3b0508 100644 --- a/src/Middleware/WebSockets/test/UnitTests/KestrelWebSocketHelpers.cs +++ b/src/Middleware/WebSockets/test/UnitTests/KestrelWebSocketHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/test/UnitTests/SendReceiveTests.cs b/src/Middleware/WebSockets/test/UnitTests/SendReceiveTests.cs index afa9f707419e..e289a85cfbab 100644 --- a/src/Middleware/WebSockets/test/UnitTests/SendReceiveTests.cs +++ b/src/Middleware/WebSockets/test/UnitTests/SendReceiveTests.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.Linq; using System.Net.WebSockets; using System.Text; diff --git a/src/Middleware/WebSockets/test/UnitTests/WebSocketCompressionMiddlewareTests.cs b/src/Middleware/WebSockets/test/UnitTests/WebSocketCompressionMiddlewareTests.cs index 3803e52f9808..c042b322aed3 100644 --- a/src/Middleware/WebSockets/test/UnitTests/WebSocketCompressionMiddlewareTests.cs +++ b/src/Middleware/WebSockets/test/UnitTests/WebSocketCompressionMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/test/UnitTests/WebSocketMiddlewareTests.cs b/src/Middleware/WebSockets/test/UnitTests/WebSocketMiddlewareTests.cs index a90798c5da16..aa67be817719 100644 --- a/src/Middleware/WebSockets/test/UnitTests/WebSocketMiddlewareTests.cs +++ b/src/Middleware/WebSockets/test/UnitTests/WebSocketMiddlewareTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/WebSockets/test/UnitTests/WebSocketPair.cs b/src/Middleware/WebSockets/test/UnitTests/WebSocketPair.cs index efb11af60c7a..ca838a4eefd8 100644 --- a/src/Middleware/WebSockets/test/UnitTests/WebSocketPair.cs +++ b/src/Middleware/WebSockets/test/UnitTests/WebSocketPair.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.WebSockets; diff --git a/src/Middleware/perf/Microbenchmarks/AssemblyInfo.cs b/src/Middleware/perf/Microbenchmarks/AssemblyInfo.cs index 32248e0d1b0a..09f49228e9e6 100644 --- a/src/Middleware/perf/Microbenchmarks/AssemblyInfo.cs +++ b/src/Middleware/perf/Microbenchmarks/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Middleware/perf/Microbenchmarks/HandshakeBenchmark.cs b/src/Middleware/perf/Microbenchmarks/HandshakeBenchmark.cs index 9e2872475553..2d72dc55db4e 100644 --- a/src/Middleware/perf/Microbenchmarks/HandshakeBenchmark.cs +++ b/src/Middleware/perf/Microbenchmarks/HandshakeBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; diff --git a/src/Middleware/perf/ResponseCaching.Microbenchmarks/AssemblyInfo.cs b/src/Middleware/perf/ResponseCaching.Microbenchmarks/AssemblyInfo.cs index 32248e0d1b0a..09f49228e9e6 100644 --- a/src/Middleware/perf/ResponseCaching.Microbenchmarks/AssemblyInfo.cs +++ b/src/Middleware/perf/ResponseCaching.Microbenchmarks/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Middleware/perf/ResponseCaching.Microbenchmarks/ResponseCachingBenchmark.cs b/src/Middleware/perf/ResponseCaching.Microbenchmarks/ResponseCachingBenchmark.cs index 1af346a0305d..bcac8ef49384 100644 --- a/src/Middleware/perf/ResponseCaching.Microbenchmarks/ResponseCachingBenchmark.cs +++ b/src/Middleware/perf/ResponseCaching.Microbenchmarks/ResponseCachingBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Middleware/tools/RazorPageGenerator/Program.cs b/src/Middleware/tools/RazorPageGenerator/Program.cs index 11079e44bd65..345666d1bc1f 100644 --- a/src/Middleware/tools/RazorPageGenerator/Program.cs +++ b/src/Middleware/tools/RazorPageGenerator/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Middleware/tools/RazorPageGenerator/RazorPageGeneratorResults.cs b/src/Middleware/tools/RazorPageGenerator/RazorPageGeneratorResults.cs index 5d95668f0515..9bb9fdfe43df 100644 --- a/src/Middleware/tools/RazorPageGenerator/RazorPageGeneratorResults.cs +++ b/src/Middleware/tools/RazorPageGenerator/RazorPageGeneratorResults.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorPageGenerator { diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs index a5410789a1c6..5051d0a698b3 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorExtensions.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorExtensions.cs index 4b7a88ef2cf7..614a9798a025 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorExtensions.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorProviderContext.cs index a87e51fc664b..8d6f06c0220c 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionDescriptorProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionInvokerProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionInvokerProviderContext.cs index ccb5af263c2c..f2a15e8415f1 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionInvokerProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/ActionInvokerProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionDescriptorProvider.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionDescriptorProvider.cs index b5bcdaba4f05..9f59b1635382 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionDescriptorProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Abstractions { @@ -8,9 +8,9 @@ namespace Microsoft.AspNetCore.Mvc.Abstractions /// /// /// - /// On application initialization, MVC invokes all registered instances of to - /// perform discovery. - /// instances are invoked in the ascending sort order of . + /// On application initialization, MVC invokes all registered instances of to + /// perform discovery. + /// instances are invoked in the ascending sort order of . /// /// /// Each provider has its method @@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Mvc.Abstractions /// /// /// As providers are called in a predefined sequence, each provider has a chance to observe and decorate the - /// result of the providers that have already run. + /// result of the providers that have already run. /// /// public interface IActionDescriptorProvider @@ -47,7 +47,7 @@ public interface IActionDescriptorProvider int Order { get; } /// - /// Called to execute the provider. + /// Called to execute the provider. /// for details on the order of execution of . /// /// The . diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvoker.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvoker.cs index ed3650cc2302..6927c35154b3 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvoker.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvoker.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Mvc.Abstractions /// /// /// An is created for each request the MVC handles by querying the set of - /// instances. See for more information. + /// instances. See for more information. /// public interface IActionInvoker { diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvokerProvider.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvokerProvider.cs index c324d7b3301f..9819db7e3a2e 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvokerProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/IActionInvokerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Abstractions { @@ -11,17 +11,17 @@ namespace Microsoft.AspNetCore.Mvc.Abstractions /// /// instances form a pipeline that results in the creation of an /// . The instances are ordered by - /// an ascending sort of the . + /// an ascending sort of the . /// /// /// To create an , each provider has its method /// called in sequence and given the same instance of . Then each /// provider has its method called in the reverse order. The result is - /// the value of . + /// the value of . /// /// /// As providers are called in a predefined sequence, each provider has a chance to observe and decorate the - /// result of the providers that have already run. + /// result of the providers that have already run. /// /// public interface IActionInvokerProvider @@ -48,7 +48,7 @@ public interface IActionInvokerProvider int Order { get; } /// - /// Called to execute the provider. + /// Called to execute the provider. /// /// The . void OnProvidersExecuting(ActionInvokerProviderContext context); diff --git a/src/Mvc/Mvc.Abstractions/src/Abstractions/ParameterDescriptor.cs b/src/Mvc/Mvc.Abstractions/src/Abstractions/ParameterDescriptor.cs index b0ff42d4ac50..a92f01491623 100644 --- a/src/Mvc/Mvc.Abstractions/src/Abstractions/ParameterDescriptor.cs +++ b/src/Mvc/Mvc.Abstractions/src/Abstractions/ParameterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintContext.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintContext.cs index c475f0a634d2..dfcb9df2bd94 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintItem.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintItem.cs index 81cfd595af2e..409170838f70 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintItem.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintProviderContext.cs index 7d23cd50f554..bbf90c3f20c1 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionConstraintProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionSelectorCandidate.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionSelectorCandidate.cs index 47f2c4727e70..c42f5683dea7 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionSelectorCandidate.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/ActionSelectorCandidate.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraint.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraint.cs index bd59ab6c506a..39785a5b44f0 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraint.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ActionConstraints { diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintFactory.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintFactory.cs index 9c0f5972288d..5245af2314e6 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintFactory.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintMetadata.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintMetadata.cs index cbfd0970c088..8c4eccbf4ff6 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintMetadata.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ActionConstraints { diff --git a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintProvider.cs b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintProvider.cs index 262a296d1c37..288519305bff 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionConstraints/IActionConstraintProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ActionConstraints { @@ -30,7 +30,7 @@ public interface IActionConstraintProvider int Order { get; } /// - /// Called to execute the provider. + /// Called to execute the provider. /// for details on the order of execution of . /// /// The . diff --git a/src/Mvc/Mvc.Abstractions/src/ActionContext.cs b/src/Mvc/Mvc.Abstractions/src/ActionContext.cs index 000e55558c6f..5eb299ef3654 100644 --- a/src/Mvc/Mvc.Abstractions/src/ActionContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ActionContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescription.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescription.cs index ef14312ddec7..2387a03e66f1 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescription.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescription.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescriptionProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescriptionProviderContext.cs index aa9d199089c2..30c271fc6602 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescriptionProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiDescriptionProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterDescription.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterDescription.cs index 7b6d8f548a23..e888181acf89 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterDescription.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterDescription.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterRouteInfo.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterRouteInfo.cs index fbb79452d4ba..db2ca6428314 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterRouteInfo.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiParameterRouteInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Routing; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiRequestFormat.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiRequestFormat.cs index 3e063da212ff..545a10a6e5db 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiRequestFormat.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiRequestFormat.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseFormat.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseFormat.cs index 9830ef279ac2..5b4e4976bb03 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseFormat.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseFormat.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseType.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseType.cs index 1029ec343738..4b2a1530b495 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseType.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/ApiResponseType.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/IApiDescriptionProvider.cs b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/IApiDescriptionProvider.cs index a95c84ee3f14..2e47ad50a87b 100644 --- a/src/Mvc/Mvc.Abstractions/src/ApiExplorer/IApiDescriptionProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ApiExplorer/IApiDescriptionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Abstractions; @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.ApiExplorer /// /// /// On the first query for , MVC invokes all registered instances of - /// in the ascending sort order of . + /// in the ascending sort order of . /// /// /// Each provider has its method @@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Mvc.ApiExplorer /// /// /// As providers are called in a predefined sequence, each provider has a chance to observe and decorate the - /// result of the providers that have already run. + /// result of the providers that have already run. /// /// public interface IApiDescriptionProvider diff --git a/src/Mvc/Mvc.Abstractions/src/Authorization/IAllowAnonymousFilter.cs b/src/Mvc/Mvc.Abstractions/src/Authorization/IAllowAnonymousFilter.cs index a015f05967a6..c3018f9150f7 100644 --- a/src/Mvc/Mvc.Abstractions/src/Authorization/IAllowAnonymousFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Authorization/IAllowAnonymousFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutedContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutedContext.cs index 5e8fd95b23c3..bdf7088b0b9d 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutedContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutedContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutingContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutingContext.cs index 79f77c211b0b..b4f85db01a10 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutingContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutingContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutionDelegate.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutionDelegate.cs index 0ee53b4493f4..3ad1d17ad59b 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutionDelegate.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ActionExecutionDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/AuthorizationFilterContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/AuthorizationFilterContext.cs index 0854a422d2b6..c6ecdf0b0eac 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/AuthorizationFilterContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/AuthorizationFilterContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ExceptionContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ExceptionContext.cs index d151134b8aca..04599e2386a8 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ExceptionContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ExceptionContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/FilterContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/FilterContext.cs index 97e0a294b65b..e190499a4024 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/FilterContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/FilterContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -47,8 +47,8 @@ public FilterContext( /// /// /// The method is used to implement a common convention - /// for filters that define an overriding behavior. When multiple filters may apply to the same - /// cross-cutting concern, define a common interface for the filters () and + /// for filters that define an overriding behavior. When multiple filters may apply to the same + /// cross-cutting concern, define a common interface for the filters () and /// implement the filters such that all of the implementations call this method to determine if they should /// take action. /// @@ -58,7 +58,7 @@ public FilterContext( /// /// /// This mechanism for overriding relies on the rules of order and scope that the filter system - /// provides to control ordering of filters. It is up to the implementor of filters to implement this + /// provides to control ordering of filters. It is up to the implementor of filters to implement this /// protocol cooperatively. The filter system has no innate notion of overrides, this is a recommended /// convention. /// @@ -75,7 +75,7 @@ public bool IsEffectivePolicy(TMetadata policy) where TMetadata : IFi } /// - /// Returns the most effective (most specific) policy of type applied to + /// Returns the most effective (most specific) policy of type applied to /// the action associated with the . /// /// The type of the filter policy. diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/FilterDescriptor.cs b/src/Mvc/Mvc.Abstractions/src/Filters/FilterDescriptor.cs index a84ea301332b..bcb04b2bf244 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/FilterDescriptor.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/FilterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Abstractions/src/Filters/FilterItem.cs b/src/Mvc/Mvc.Abstractions/src/Filters/FilterItem.cs index f7a2e6a63d1d..b6a744de36fa 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/FilterItem.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/FilterItem.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Abstractions/src/Filters/FilterProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/FilterProviderContext.cs index 057654eaa493..6a7ca602e597 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/FilterProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/FilterProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IActionFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IActionFilter.cs index cb37ded4c792..51bf11c8b1ef 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IActionFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IActionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAlwaysRunResultFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAlwaysRunResultFilter.cs index e119fd8d9304..2cfcfd680b5e 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAlwaysRunResultFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAlwaysRunResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncActionFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncActionFilter.cs index 3342e2b1ffd5..a394ac7dc4ca 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncActionFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncActionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAlwaysRunResultFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAlwaysRunResultFilter.cs index f3c0c94dd8a2..e90ba32a6f34 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAlwaysRunResultFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAlwaysRunResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAuthorizationFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAuthorizationFilter.cs index dd1a797e13ff..a83e12f65084 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAuthorizationFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncExceptionFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncExceptionFilter.cs index ce3343b4633c..61175cc9f836 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncExceptionFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncExceptionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResourceFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResourceFilter.cs index 6b4eb7ba9ed4..f3b725a4d1ad 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResourceFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResourceFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResultFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResultFilter.cs index d6583cbc6004..8f769fd17d20 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResultFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAsyncResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IAuthorizationFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IAuthorizationFilter.cs index 3dbc4159a0ae..143a1c238123 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IAuthorizationFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IExceptionFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IExceptionFilter.cs index 5908c2aac9ae..8ac9fad7dd43 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IExceptionFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IExceptionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterContainer.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterContainer.cs index 26199e6dcffd..00de1e59127e 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterContainer.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterContainer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterFactory.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterFactory.cs index e0e844a79068..168968e19ef1 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterFactory.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterMetadata.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterMetadata.cs index 458bfdc35c5a..b72cde3e7c6c 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterMetadata.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterProvider.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterProvider.cs index 46f121b4e84f..4f6389a2527a 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IFilterProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IFilterProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IOrderedFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IOrderedFilter.cs index 36876091ce6f..8cc65815df17 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IOrderedFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IOrderedFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IResourceFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IResourceFilter.cs index 410a03c939f0..77d6cdc9518e 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IResourceFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IResourceFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/IResultFilter.cs b/src/Mvc/Mvc.Abstractions/src/Filters/IResultFilter.cs index bb0ba46bbb1e..18880b5c57ec 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/IResultFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/IResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutedContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutedContext.cs index 8dfe78bba685..6133ebc0ecbb 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutedContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutedContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutingContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutingContext.cs index 37985fc1af57..6b50298541c6 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutingContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutionDelegate.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutionDelegate.cs index ef3531d208d4..417f1a6d7e51 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutionDelegate.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ResourceExecutionDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutedContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutedContext.cs index 01eae1d8cf06..ecb203520887 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutedContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutedContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutingContext.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutingContext.cs index cd4e8775ac18..f403e1d4e75f 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutingContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutingContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutionDelegate.cs b/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutionDelegate.cs index d0ecea691414..49e740e2e479 100644 --- a/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutionDelegate.cs +++ b/src/Mvc/Mvc.Abstractions/src/Filters/ResultExecutionDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/FormatterCollection.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/FormatterCollection.cs index ad16757da44b..995b42c40691 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/FormatterCollection.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/FormatterCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatter.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatter.cs index c56633d16aff..f192ea366dd8 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatterExceptionPolicy.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatterExceptionPolicy.cs index c2032c0e054a..23ba6f1af817 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatterExceptionPolicy.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/IInputFormatterExceptionPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Formatters { diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/IOutputFormatter.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/IOutputFormatter.cs index a266cf2df78e..d770d3526de1 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/IOutputFormatter.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/IOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterContext.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterContext.cs index 001a24dd99b7..2f194ac8441f 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterException.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterException.cs index 7fc5cfefa34a..d73e6ef6cdc1 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterException.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterExceptionPolicy.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterExceptionPolicy.cs index d705fb70c0b0..5f1e136f99f9 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterExceptionPolicy.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterExceptionPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterResult.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterResult.cs index b071226cc50d..66119d37c944 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterResult.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/InputFormatterResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterCanWriteContext.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterCanWriteContext.cs index daf10315f02f..db00d6ddd4bc 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterCanWriteContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterCanWriteContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterWriteContext.cs b/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterWriteContext.cs index c475b439eb7c..8d6ba4c6b84a 100644 --- a/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterWriteContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Formatters/OutputFormatterWriteContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Abstractions/src/IActionResult.cs b/src/Mvc/Mvc.Abstractions/src/IActionResult.cs index 8cfbee8a9c0e..7a3c9cb9f807 100644 --- a/src/Mvc/Mvc.Abstractions/src/IActionResult.cs +++ b/src/Mvc/Mvc.Abstractions/src/IActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/IUrlHelper.cs b/src/Mvc/Mvc.Abstractions/src/IUrlHelper.cs index c60e817a2a18..7f986dc3c67f 100644 --- a/src/Mvc/Mvc.Abstractions/src/IUrlHelper.cs +++ b/src/Mvc/Mvc.Abstractions/src/IUrlHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingInfo.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingInfo.cs index b7379ae4e0be..ca76f58ff027 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingInfo.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -248,7 +248,7 @@ public bool TryApplyBindingInfo(ModelMetadata modelMetadata) PropertyFilterProvider = modelMetadata.PropertyFilterProvider; } - // There isn't a ModelMetadata feature to configure AllowEmptyInputInBodyModelBinding, + // There isn't a ModelMetadata feature to configure AllowEmptyInputInBodyModelBinding, // so nothing to infer from it. return isBindingInfoPresent; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingSource.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingSource.cs index ea06036844ff..5df87c9207b9 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingSource.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/BindingSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Abstractions/src/ModelBinding/CompositeBindingSource.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/CompositeBindingSource.cs index 99044400b522..e307ef8e2158 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/CompositeBindingSource.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/CompositeBindingSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/EmptyBodyBehavior.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/EmptyBodyBehavior.cs index 56f19baeabbb..b825bb7d0549 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/EmptyBodyBehavior.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/EmptyBodyBehavior.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { @@ -13,7 +13,7 @@ public enum EmptyBodyBehavior /// This is typically configured using MvcOptions.AllowEmptyInputInBodyModelBinding. /// Default, - + /// /// Empty bodies are treated as valid inputs. /// diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/EnumGroupAndName.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/EnumGroupAndName.cs index d4a141ed00ae..081f408d3506 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/EnumGroupAndName.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/EnumGroupAndName.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -13,7 +13,7 @@ public readonly struct EnumGroupAndName private readonly Func _name; /// - /// Initializes a new instance of the structure. This constructor should + /// Initializes a new instance of the structure. This constructor should /// not be used in any site where localization is important. /// /// The group name. diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IAllowEmptyInputInBodyModelBinding.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IAllowEmptyInputInBodyModelBinding.cs index 3184da3e5bc9..4417f7f52f8c 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IAllowEmptyInputInBodyModelBinding.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IAllowEmptyInputInBodyModelBinding.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBinderTypeProviderMetadata.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBinderTypeProviderMetadata.cs index 8c3db06e2667..13923c6c8f23 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBinderTypeProviderMetadata.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBinderTypeProviderMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBindingSourceMetadata.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBindingSourceMetadata.cs index 8639ce826e86..fa0056c3eaa1 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBindingSourceMetadata.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IBindingSourceMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding public interface IBindingSourceMetadata { /// - /// Gets the . + /// Gets the . /// /// /// The is metadata which can be used to determine which data diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinder.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinder.cs index d102fa71889c..7c7ae6861bfe 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinder.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinderProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinderProvider.cs index a2807b3598f4..1983d0c3f456 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinderProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelMetadataProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelMetadataProvider.cs index 45d2bfbab722..4f7657383fce 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelMetadataProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelNameProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelNameProvider.cs index 704772c36a3a..c3afd1e9bb16 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelNameProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IModelNameProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IPropertyFilterProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IPropertyFilterProvider.cs index 0c364c5cc266..edce2e62e0fd 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IPropertyFilterProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IPropertyFilterProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IRequestPredicateProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IRequestPredicateProvider.cs index ab72771f2251..fbd93359e37f 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IRequestPredicateProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IRequestPredicateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProvider.cs index 55d1f63af9d9..588a4da0bb9c 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProviderFactory.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProviderFactory.cs index 39b2948fe716..1f224e9c4508 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProviderFactory.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/IValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelBindingMessageProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelBindingMessageProvider.cs index fa9f3a4ff7ca..9a7263fd640c 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelBindingMessageProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelBindingMessageProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataIdentity.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataIdentity.cs index 14395c5fc4fc..5ec65b49f7cc 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataIdentity.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataIdentity.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataKind.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataKind.cs index b964992d1afe..638795afd86c 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataKind.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Metadata/ModelMetadataKind.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBinderProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBinderProviderContext.cs index c35c8c4814fa..121fd789e585 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBinderProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBinderProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingContext.cs index 18a4d48ee85c..bb3995559beb 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingResult.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingResult.cs index b29736cd5705..0feb01dafe71 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingResult.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelBindingResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelError.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelError.cs index d30796e08118..8d6ea62f9839 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelError.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelError.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelErrorCollection.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelErrorCollection.cs index 6b5b7d52d566..e9ef517c3cc3 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelErrorCollection.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelErrorCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadata.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadata.cs index 1b2cf13493c0..4f1613522898 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadata.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadataProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadataProvider.cs index 7e22b3cbb69e..5716f8afdfc4 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadataProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelPropertyCollection.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelPropertyCollection.cs index 797e1b951493..bbae0dda0c4a 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelPropertyCollection.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelPropertyCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs index 6987e10200b3..e72d6443c4e1 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateEntry.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateEntry.cs index d56ef3dd811a..ac4c1e311e79 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateEntry.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelValidationState.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelValidationState.cs index 6d24c2bb403b..78a3d4ad76de 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelValidationState.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelValidationState.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding { @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding /// /// of is used to determine the validity /// of . is , when - /// the aggregate validity () + /// the aggregate validity () /// of the root node is . /// /// diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/TooManyModelErrorsException.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/TooManyModelErrorsException.cs index 58f3cdbe42ac..f71fa5974eed 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/TooManyModelErrorsException.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/TooManyModelErrorsException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientModelValidationContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientModelValidationContext.cs index 7d04881119ae..c82ab536d51c 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientModelValidationContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientModelValidationContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorItem.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorItem.cs index fbafff212d6c..21893557d830 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorItem.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorProviderContext.cs index 84b02119b382..682f7f2e050a 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ClientValidatorProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidator.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidator.cs index 05f6939ee8fd..9cd58164d265 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidator.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidatorProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidatorProvider.cs index adf01cf8f850..aeffbdd79662 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidatorProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IClientModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidator.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidator.cs index f2f0ae34ef82..58094fb3c9d1 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidator.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidatorProvider.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidatorProvider.cs index 9ed1704ca9fc..d0be8b129add 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidatorProvider.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IPropertyValidationFilter.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IPropertyValidationFilter.cs index 622b41f70cc9..dd38df2c7437 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IPropertyValidationFilter.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IPropertyValidationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IValidationStrategy.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IValidationStrategy.cs index 441995723000..f4953e6f0e5f 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IValidationStrategy.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/IValidationStrategy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContext.cs index 4e4de3644dcc..f1f1a9986431 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContextBase.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContextBase.cs index ea341ef62ed2..ca7a30bb6169 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContextBase.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationContextBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationResult.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationResult.cs index e21434969841..7eab8df503bb 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationResult.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidationResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidatorProviderContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidatorProviderContext.cs index 8076c82da4e9..dd9e501d33a5 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidatorProviderContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ModelValidatorProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationEntry.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationEntry.cs index d42b82a60645..e6bee3c375d5 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationEntry.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateDictionary.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateDictionary.cs index 08a48a4b583e..a392173fe245 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateDictionary.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateEntry.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateEntry.cs index ee9433428382..d2d1afe5fe53 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateEntry.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidationStateEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidatorItem.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidatorItem.cs index 4bf3ecd92bba..2eb82536e3c3 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidatorItem.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/Validation/ValidatorItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Validation { diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderException.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderException.cs index 7607c7272229..e02f12b508d7 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderException.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderFactoryContext.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderFactoryContext.cs index cf48d9072df3..4049fe7b60af 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderFactoryContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderFactoryContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderResult.cs b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderResult.cs index 8f3e7a8405fa..9fcc01cfd102 100644 --- a/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderResult.cs +++ b/src/Mvc/Mvc.Abstractions/src/ModelBinding/ValueProviderResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Abstractions/src/Properties/AssemblyInfo.cs index ae3b2c662bd5..306d340464c8 100644 --- a/src/Mvc/Mvc.Abstractions/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Abstractions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Abstractions/src/Routing/AttributeRouteInfo.cs b/src/Mvc/Mvc.Abstractions/src/Routing/AttributeRouteInfo.cs index 279d41503371..73516716b39f 100644 --- a/src/Mvc/Mvc.Abstractions/src/Routing/AttributeRouteInfo.cs +++ b/src/Mvc/Mvc.Abstractions/src/Routing/AttributeRouteInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing; diff --git a/src/Mvc/Mvc.Abstractions/src/Routing/UrlActionContext.cs b/src/Mvc/Mvc.Abstractions/src/Routing/UrlActionContext.cs index 09853000d0e6..a9ebba875af9 100644 --- a/src/Mvc/Mvc.Abstractions/src/Routing/UrlActionContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Routing/UrlActionContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Routing { diff --git a/src/Mvc/Mvc.Abstractions/src/Routing/UrlRouteContext.cs b/src/Mvc/Mvc.Abstractions/src/Routing/UrlRouteContext.cs index d713e6921249..de1da240b996 100644 --- a/src/Mvc/Mvc.Abstractions/src/Routing/UrlRouteContext.cs +++ b/src/Mvc/Mvc.Abstractions/src/Routing/UrlRouteContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Routing { diff --git a/src/Mvc/Mvc.Abstractions/test/Filters/FilterContextTest.cs b/src/Mvc/Mvc.Abstractions/test/Filters/FilterContextTest.cs index 0902e7f17938..988595b600c6 100644 --- a/src/Mvc/Mvc.Abstractions/test/Filters/FilterContextTest.cs +++ b/src/Mvc/Mvc.Abstractions/test/Filters/FilterContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; @@ -122,7 +122,7 @@ internal class IAnotherTestFilterPolicy : IFilterMetadata private class TestFilterContext : FilterContext { - public TestFilterContext(IList filters) + public TestFilterContext(IList filters) : base(new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor()), filters) { } diff --git a/src/Mvc/Mvc.Abstractions/test/ModelBinding/BindingInfoTest.cs b/src/Mvc/Mvc.Abstractions/test/ModelBinding/BindingInfoTest.cs index 8d0d0c39dd75..e9d99c906440 100644 --- a/src/Mvc/Mvc.Abstractions/test/ModelBinding/BindingInfoTest.cs +++ b/src/Mvc/Mvc.Abstractions/test/ModelBinding/BindingInfoTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding.Binders; diff --git a/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelMetadataTest.cs b/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelMetadataTest.cs index f9e24ea41546..e0c133a10a45 100644 --- a/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelMetadataTest.cs +++ b/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelMetadataTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelStateDictionaryTest.cs b/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelStateDictionaryTest.cs index d5f13654f519..229457d71006 100644 --- a/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelStateDictionaryTest.cs +++ b/src/Mvc/Mvc.Abstractions/test/ModelBinding/ModelStateDictionaryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Abstractions/test/ModelBinding/ValueProviderResultTest.cs b/src/Mvc/Mvc.Abstractions/test/ModelBinding/ValueProviderResultTest.cs index dd639bc564e3..761463539c65 100644 --- a/src/Mvc/Mvc.Abstractions/test/ModelBinding/ValueProviderResultTest.cs +++ b/src/Mvc/Mvc.Abstractions/test/ModelBinding/ValueProviderResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; using Xunit; diff --git a/src/Mvc/Mvc.Abstractions/test/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Abstractions/test/Properties/AssemblyInfo.cs index 3337ebeac24b..fb33a59c5309 100644 --- a/src/Mvc/Mvc.Abstractions/test/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Abstractions/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Analyzers/src/AttributesShouldNotBeAppliedToPageModelAnalyzer.cs b/src/Mvc/Mvc.Analyzers/src/AttributesShouldNotBeAppliedToPageModelAnalyzer.cs index ee91bde64e8a..2f02d36ed19d 100644 --- a/src/Mvc/Mvc.Analyzers/src/AttributesShouldNotBeAppliedToPageModelAnalyzer.cs +++ b/src/Mvc/Mvc.Analyzers/src/AttributesShouldNotBeAppliedToPageModelAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Analyzers/src/AvoidHtmlPartialAnalyzer.cs b/src/Mvc/Mvc.Analyzers/src/AvoidHtmlPartialAnalyzer.cs index c4ba61910d5a..7d1bcb9600ab 100644 --- a/src/Mvc/Mvc.Analyzers/src/AvoidHtmlPartialAnalyzer.cs +++ b/src/Mvc/Mvc.Analyzers/src/AvoidHtmlPartialAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Analyzers/src/CodeAnalysisExtensions.cs b/src/Mvc/Mvc.Analyzers/src/CodeAnalysisExtensions.cs index 186083aca179..d85e59292cd4 100644 --- a/src/Mvc/Mvc.Analyzers/src/CodeAnalysisExtensions.cs +++ b/src/Mvc/Mvc.Analyzers/src/CodeAnalysisExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Analyzers/src/DiagnosticDescriptors.cs b/src/Mvc/Mvc.Analyzers/src/DiagnosticDescriptors.cs index 8c374422f8c9..213c30826278 100644 --- a/src/Mvc/Mvc.Analyzers/src/DiagnosticDescriptors.cs +++ b/src/Mvc/Mvc.Analyzers/src/DiagnosticDescriptors.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Analyzers/src/MvcFacts.cs b/src/Mvc/Mvc.Analyzers/src/MvcFacts.cs index 46ad96f4c38a..d472d69aee53 100644 --- a/src/Mvc/Mvc.Analyzers/src/MvcFacts.cs +++ b/src/Mvc/Mvc.Analyzers/src/MvcFacts.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Analyzers/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Analyzers/src/Properties/AssemblyInfo.cs index 9b669e0fb2fb..e44a582441c0 100644 --- a/src/Mvc/Mvc.Analyzers/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Analyzers/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Analyzers/src/SymbolNames.cs b/src/Mvc/Mvc.Analyzers/src/SymbolNames.cs index 7b08c9082f55..2742342dc931 100644 --- a/src/Mvc/Mvc.Analyzers/src/SymbolNames.cs +++ b/src/Mvc/Mvc.Analyzers/src/SymbolNames.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/src/TagHelpersInCodeBlocksAnalyzer.cs b/src/Mvc/Mvc.Analyzers/src/TagHelpersInCodeBlocksAnalyzer.cs index e14350ec1bd1..cafba43ae734 100644 --- a/src/Mvc/Mvc.Analyzers/src/TagHelpersInCodeBlocksAnalyzer.cs +++ b/src/Mvc/Mvc.Analyzers/src/TagHelpersInCodeBlocksAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Mvc/Mvc.Analyzers/src/TopLevelParameterNameAnalyzer.cs b/src/Mvc/Mvc.Analyzers/src/TopLevelParameterNameAnalyzer.cs index 9de0b3dd17de..73502892634b 100644 --- a/src/Mvc/Mvc.Analyzers/src/TopLevelParameterNameAnalyzer.cs +++ b/src/Mvc/Mvc.Analyzers/src/TopLevelParameterNameAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -56,7 +56,7 @@ private void InitializeWorker(CompilationStartAnalysisContext compilationStartAn if (method.ContainingType.HasAttribute(symbolCache.IApiBehaviorMetadata, inherit: true)) { - // The issue of parameter name collision with properties affects complex model-bound types + // The issue of parameter name collision with properties affects complex model-bound types // and not input formatting. Ignore ApiController instances since they default to formatting. return; } diff --git a/src/Mvc/Mvc.Analyzers/src/ViewFeatureAnalyzerBase.cs b/src/Mvc/Mvc.Analyzers/src/ViewFeatureAnalyzerBase.cs index 45df7c7ffb10..62ec1f370c6e 100644 --- a/src/Mvc/Mvc.Analyzers/src/ViewFeatureAnalyzerBase.cs +++ b/src/Mvc/Mvc.Analyzers/src/ViewFeatureAnalyzerBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Analyzers/src/ViewFeaturesAnalyzerContext.cs b/src/Mvc/Mvc.Analyzers/src/ViewFeaturesAnalyzerContext.cs index 221d077c638a..e262afdb17f7 100644 --- a/src/Mvc/Mvc.Analyzers/src/ViewFeaturesAnalyzerContext.cs +++ b/src/Mvc/Mvc.Analyzers/src/ViewFeaturesAnalyzerContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; diff --git a/src/Mvc/Mvc.Analyzers/test/AttributesShouldNotBeAppliedToPageModelAnalyzerTest.cs b/src/Mvc/Mvc.Analyzers/test/AttributesShouldNotBeAppliedToPageModelAnalyzerTest.cs index 2c271ff9323e..8e0cf5396bf9 100644 --- a/src/Mvc/Mvc.Analyzers/test/AttributesShouldNotBeAppliedToPageModelAnalyzerTest.cs +++ b/src/Mvc/Mvc.Analyzers/test/AttributesShouldNotBeAppliedToPageModelAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Analyzers/test/AvoidHtmlPartialAnalyzerTest.cs b/src/Mvc/Mvc.Analyzers/test/AvoidHtmlPartialAnalyzerTest.cs index 98bc7807155c..cc371ba7066b 100644 --- a/src/Mvc/Mvc.Analyzers/test/AvoidHtmlPartialAnalyzerTest.cs +++ b/src/Mvc/Mvc.Analyzers/test/AvoidHtmlPartialAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Analyzers/test/CodeAnalysisExtensionsTest.cs b/src/Mvc/Mvc.Analyzers/test/CodeAnalysisExtensionsTest.cs index 129ed81059fa..f682243201c2 100644 --- a/src/Mvc/Mvc.Analyzers/test/CodeAnalysisExtensionsTest.cs +++ b/src/Mvc/Mvc.Analyzers/test/CodeAnalysisExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcDiagnosticAnalyzerRunner.cs b/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcDiagnosticAnalyzerRunner.cs index 2b4b8dca9a9c..1a058f1cdaea 100644 --- a/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcDiagnosticAnalyzerRunner.cs +++ b/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcDiagnosticAnalyzerRunner.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Immutable; diff --git a/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcTestSource.cs b/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcTestSource.cs index ab9cd6cfdc5d..550669d2fe56 100644 --- a/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcTestSource.cs +++ b/src/Mvc/Mvc.Analyzers/test/Infrastructure/MvcTestSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Analyzers/test/TagHelpersInCodeBlocksAnalyzerTest.cs b/src/Mvc/Mvc.Analyzers/test/TagHelpersInCodeBlocksAnalyzerTest.cs index c5d545cf1dc2..daf60c7aa95a 100644 --- a/src/Mvc/Mvc.Analyzers/test/TagHelpersInCodeBlocksAnalyzerTest.cs +++ b/src/Mvc/Mvc.Analyzers/test/TagHelpersInCodeBlocksAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageHandlerMethod.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageHandlerMethod.cs index c070495950db..165da70c1449 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageHandlerMethod.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageHandlerMethod.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAttributeIsAppliedToBaseType.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAttributeIsAppliedToBaseType.cs index 9ca5e1e25102..f2494382c1bd 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAttributeIsAppliedToBaseType.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAttributeIsAppliedToBaseType.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageHandlerMethod.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageHandlerMethod.cs index 7bbfe32c0742..9f8352a50ff9 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageHandlerMethod.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageHandlerMethod.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethod.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethod.cs index d91567c8cc63..016e7bd68365 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethod.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethod.cs @@ -1,4 +1,7 @@ -using System.Runtime.CompilerServices; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodDerivingFromCustomModel.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodDerivingFromCustomModel.cs index 946d5e42beab..6b63fd2f9928 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodDerivingFromCustomModel.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodDerivingFromCustomModel.cs @@ -1,4 +1,7 @@ -using System.Runtime.CompilerServices; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodForTypeWithPageModelAttribute.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodForTypeWithPageModelAttribute.cs index 1a07dfe84a06..2ec2de2aa36b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodForTypeWithPageModelAttribute.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfFiltersAreAppliedToPageHandlerMethodForTypeWithPageModelAttribute.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +// 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.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttribute_IsAppliedToPageModel.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttribute_IsAppliedToPageModel.cs index 3d865c3269ef..7a7fbf18bc58 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttribute_IsAppliedToPageModel.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttribute_IsAppliedToPageModel.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +// 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.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttributesAreAppliedToPageHandlerMethod.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttributesAreAppliedToPageHandlerMethod.cs index 889272bc2c51..221d416a0c5a 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttributesAreAppliedToPageHandlerMethod.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/DiagnosticsAreReturned_IfRouteAttributesAreAppliedToPageHandlerMethod.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +// 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.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerActions.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerActions.cs index c187cc2ff324..887d88260812 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerActions.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerActions.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerBaseActions.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerBaseActions.cs index ce077e6b9fe0..cdaa5e67e364 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerBaseActions.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForControllerBaseActions.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForNonHandlerMethodsWithAttributes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForNonHandlerMethodsWithAttributes.cs index b3aa481c2d2b..596525677180 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForNonHandlerMethodsWithAttributes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForNonHandlerMethodsWithAttributes.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForPageHandlersWithNonFilterAttributes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForPageHandlersWithNonFilterAttributes.cs index 3e593db2d428..0b1b096534bc 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForPageHandlersWithNonFilterAttributes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_ForPageHandlersWithNonFilterAttributes.cs @@ -1,4 +1,7 @@ -using System.Runtime.CompilerServices; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageModel.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageModel.cs index c298c43ff28d..c58f8defcecd 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageModel.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAllowAnonymousIsAppliedToPageModel.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageModel.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageModel.cs index 47c778eb9ed2..1e4b41022d34 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageModel.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfAuthorizeAttributeIsAppliedToPageModel.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfFiltersAreAppliedToPageModel.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfFiltersAreAppliedToPageModel.cs index 5d0198174c52..fa6b55faaaac 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfFiltersAreAppliedToPageModel.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AttributesShouldNotBeAppliedToPageModelAnalyzerTest/NoDiagnosticsAreReturned_IfFiltersAreAppliedToPageModel.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Authorization; +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Analyzers.Test diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial.cs index 7b00e3249f04..9d4f04be6156 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_InSections.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_InSections.cs index 6daed38d2f99..9dee0ff00722 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_InSections.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_InSections.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_WithAdditionalParameters.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_WithAdditionalParameters.cs index 3d26ae36f955..6b6bc5301dd8 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_WithAdditionalParameters.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfHtmlPartial_WithAdditionalParameters.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial.cs index 827b3d938ead..c2b63356a5ff 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_InSections.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_InSections.cs index 39c1c4bcbc7d..d9a003aca83d 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_InSections.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_InSections.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_WithAdditionalParameters.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_WithAdditionalParameters.cs index cbff6f75ee27..d598d4a68fef 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_WithAdditionalParameters.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/DiagnosticsAreReturned_ForUseOfRenderPartial_WithAdditionalParameters.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForNonUseOfHtmlPartial.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForNonUseOfHtmlPartial.cs index b41217ac9003..e148e727ff05 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForNonUseOfHtmlPartial.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForNonUseOfHtmlPartial.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfHtmlPartialAsync.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfHtmlPartialAsync.cs index 72e9baf096dd..efa83588383a 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfHtmlPartialAsync.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfHtmlPartialAsync.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfRenderPartialAsync.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfRenderPartialAsync.cs index e1edee2686ec..e364547030d7 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfRenderPartialAsync.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/AvoidHtmlPartialAnalyzerTest/NoDiagnosticsAreReturned_ForUseOfRenderPartialAsync.cs @@ -1,4 +1,7 @@ -namespace AspNetCore +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace AspNetCore { using System; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_BaseTypeWithAttributes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_BaseTypeWithAttributes.cs index 8e0ee1e5dc00..494a48694b6b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_BaseTypeWithAttributes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_BaseTypeWithAttributes.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { [ApiConventionType(typeof(object))] [ApiController] diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnMethodWithoutAttributes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnMethodWithoutAttributes.cs index 9b28469109fe..434d8a660d8a 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnMethodWithoutAttributes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnMethodWithoutAttributes.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class GetAttributes_OnMethodWithoutAttributesClass { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithAttributes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithAttributes.cs index a402f5cea959..f56b8bedca3b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithAttributes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithAttributes.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { [ApiConventionType(typeof(object))] [ApiController] diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithoutAttributes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithoutAttributes.cs index e4aea556747b..71e55c2414f7 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithoutAttributes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_OnTypeWithoutAttributes.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithMethodOverridding.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithMethodOverridding.cs index 43b2710d581e..13cf4dd85407 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithMethodOverridding.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithMethodOverridding.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class GetAttributes_WithInheritFalse_ReturnsAllAttributesOnCurrentActionBase { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithNewMethod.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithNewMethod.cs index 3455cc21dd1d..e0193b4c45d2 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithNewMethod.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithNewMethod.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class GetAttributes_WithNewMethodBase { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs index 79c2be699b31..af439f92cef7 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class GetAttributes_WithoutMethodOverriding { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsFalseIfSymbolDoesNotHaveAttribute.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsFalseIfSymbolDoesNotHaveAttribute.cs index db5c15882f54..f7c7c5ef6599 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsFalseIfSymbolDoesNotHaveAttribute.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsFalseIfSymbolDoesNotHaveAttribute.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnMethods.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnMethods.cs index 4dd452410e9f..bedac7ec1896 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnMethods.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnMethods.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverriddenMethods.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverriddenMethods.cs index 64ef7b87b957..a5ca5372b128 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverriddenMethods.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverriddenMethods.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverridenProperties.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverridenProperties.cs index 872f35fbfbfc..49295a9440a4 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverridenProperties.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnOverridenProperties.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnProperties.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnProperties.cs index 7b36527ddba2..37d712ee62ab 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnProperties.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForAttributesOnProperties.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForInterfaceContractOnAttribute.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForInterfaceContractOnAttribute.cs index 25a966df8ee8..80cb18e4c086 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForInterfaceContractOnAttribute.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueForInterfaceContractOnAttribute.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; namespace Microsoft.AspNetCore.Mvc.Analyzers { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfBaseTypeHasAttribute.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfBaseTypeHasAttribute.cs index 39851099c26c..38ba63b53d83 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfBaseTypeHasAttribute.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfBaseTypeHasAttribute.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { [Controller] public class HasAttribute_ReturnsTrueIfBaseTypeHasAttributeBase { } diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfTypeHasAttribute.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfTypeHasAttribute.cs index 31c6cf70cca5..8fd170a0fa1c 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfTypeHasAttribute.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/HasAttribute_ReturnsTrueIfTypeHasAttribute.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { [Controller] public class HasAttribute_ReturnsTrueIfTypeHasAttribute { } diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsFalseForDifferentTypes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsFalseForDifferentTypes.cs index ceef09cde4e4..5e52aed1a23b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsFalseForDifferentTypes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsFalseForDifferentTypes.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class IsAssignable_ReturnsFalseForDifferentTypesA { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfAncestorTypeImplementsInterface.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfAncestorTypeImplementsInterface.cs index 60d8aecb48b1..10ccf906f565 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfAncestorTypeImplementsInterface.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfAncestorTypeImplementsInterface.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public interface IsAssignable_ReturnsTrueIfAncestorTypeImplementsInterface { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeImplementsInterface.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeImplementsInterface.cs index a60d9fa56d96..4f75bde28c13 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeImplementsInterface.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeImplementsInterface.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public interface IsAssignable_ReturnsTrueIfTypeImplementsInterface { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeIsBaseClass.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeIsBaseClass.cs index 8ed1087a7986..8d9530414d6c 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeIsBaseClass.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypeIsBaseClass.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class IsAssignable_ReturnsTrueIfTypeIsBaseClassBase { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypesAreExact.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypesAreExact.cs index e47fa67dcced..ed6263971573 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypesAreExact.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/CodeAnalysisExtensionsTest/IsAssignable_ReturnsTrueIfTypesAreExact.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers { public class IsAssignable_ReturnsTrueIfTypesAreExact { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForControllerActionsWithParametersThatMatchProperties.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForControllerActionsWithParametersThatMatchProperties.cs index 85642db52a4a..604eb0409bb8 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForControllerActionsWithParametersThatMatchProperties.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForControllerActionsWithParametersThatMatchProperties.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class DiagnosticsAreReturned_ForControllerActionsWithParametersThatMatchProperties : Controller { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForModelBoundParameters.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForModelBoundParameters.cs index be2bc2d7f0cd..ad89537262d2 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForModelBoundParameters.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_ForModelBoundParameters.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class DiagnosticsAreReturned_ForModelBoundParameters : Controller { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_IfModelNameProviderIsUsedToModifyParameterName.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_IfModelNameProviderIsUsedToModifyParameterName.cs index ed15be578a0b..63820744e8f5 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_IfModelNameProviderIsUsedToModifyParameterName.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/DiagnosticsAreReturned_IfModelNameProviderIsUsedToModifyParameterName.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class DiagnosticsAreReturned_IfModelNameProviderIsUsedToModifyParameterName : Controller { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/GetNameTests.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/GetNameTests.cs index 2810ab1f49a8..891d24a3fe8f 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/GetNameTests.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/GetNameTests.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class GetNameTests { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresFields.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresFields.cs index e0136bc5f3af..99782cd78515 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresFields.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresFields.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_IgnoresFields { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresMethods.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresMethods.cs index b5f79812d60c..8b60e04e90b3 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresMethods.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresMethods.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_IgnoresMethods { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresNonPublicProperties.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresNonPublicProperties.cs index fbfb437f5458..7001e5e33a4f 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresNonPublicProperties.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresNonPublicProperties.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_IgnoresNonPublicProperties { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresStaticProperties.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresStaticProperties.cs index 065fca633fe5..41eda3986c28 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresStaticProperties.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_IgnoresStaticProperties.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_IgnoresStaticProperties { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForFromBodyParameter.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForFromBodyParameter.cs index f1b001129133..7771909289f3 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForFromBodyParameter.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForFromBodyParameter.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_ReturnsFalse_ForFromBodyParameter { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForParametersWithCustomModelBinder.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForParametersWithCustomModelBinder.cs index 38732f710218..e6f68b95db4b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForParametersWithCustomModelBinder.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForParametersWithCustomModelBinder.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; +// 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.Mvc.ModelBinding.Binders; namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForSimpleTypes.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForSimpleTypes.cs index 50aded8121a2..b0dceb2c39f5 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForSimpleTypes.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_ForSimpleTypes.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; namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameParameter.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameParameter.cs index 20c2a39c3d00..f4da0a04840e 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameParameter.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameParameter.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameParameter { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameProperty.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameProperty.cs index 902465213fd9..0d409eeb3fd8 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameProperty.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameProperty.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_ReturnsFalse_IfBindingSourceAttributeIsUsedToRenameProperty { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfModelBinderAttributeIsUsedToRenameParameter.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfModelBinderAttributeIsUsedToRenameParameter.cs index 0c28fb11321a..c4e687e4790e 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfModelBinderAttributeIsUsedToRenameParameter.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfModelBinderAttributeIsUsedToRenameParameter.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_ReturnsTrue_IfModelBinderAttributeIsUsedToRenameParameter { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameIsTheSameAsModelProperty.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameIsTheSameAsModelProperty.cs index adfcf507d034..ead1f4c0995b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameIsTheSameAsModelProperty.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameIsTheSameAsModelProperty.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_ReturnsTrue_IfParameterNameIsTheSameAsModelProperty { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameWithBinderAttributeIsTheSameNameAsModelProperty.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameWithBinderAttributeIsTheSameNameAsModelProperty.cs index 2b96ecc57969..bc07d0bf2513 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameWithBinderAttributeIsTheSameNameAsModelProperty.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfParameterNameWithBinderAttributeIsTheSameNameAsModelProperty.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class IsProblematicParameter_ReturnsTrue_IfParameterNameWithBinderAttributeIsTheSameNameAsModelProperty { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfPropertyWithModelBindingAttributeHasSameNameAsParameter.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfPropertyWithModelBindingAttributeHasSameNameAsParameter.cs index 5f2f1c5ecd96..8cae94f64dcf 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfPropertyWithModelBindingAttributeHasSameNameAsParameter.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/IsProblematicParameter_ReturnsTrue_IfPropertyWithModelBindingAttributeHasSameNameAsParameter.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; +// 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.Mvc.ModelBinding.Binders; namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForApiControllers.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForApiControllers.cs index 3be2d2a07a31..d36742fc457b 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForApiControllers.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForApiControllers.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { [ApiController] public class NoDiagnosticsAreReturnedForApiControllers : Controller diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForNonActions.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForNonActions.cs index d6e7edce315b..5712c85b3151 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForNonActions.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedForNonActions.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class NoDiagnosticsAreReturnedForNonActions : Controller { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedIfParameterIsRenamedUsingBindingAttribute.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedIfParameterIsRenamedUsingBindingAttribute.cs index e870af370439..02eea577e520 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedIfParameterIsRenamedUsingBindingAttribute.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/NoDiagnosticsAreReturnedIfParameterIsRenamedUsingBindingAttribute.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { public class NoDiagnosticsAreReturnedIfParameterIsRenamedUsingBindingAttribute : Controller { diff --git a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/SpecifiesModelTypeTests.cs b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/SpecifiesModelTypeTests.cs index 95b2107935c6..fb9bd5bd3d15 100644 --- a/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/SpecifiesModelTypeTests.cs +++ b/src/Mvc/Mvc.Analyzers/test/TestFiles/TopLevelParameterNameAnalyzerTest/SpecifiesModelTypeTests.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.ModelBinding.Binders; +// 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.Mvc.ModelBinding.Binders; namespace Microsoft.AspNetCore.Mvc.Analyzers.TopLevelParameterNameAnalyzerTestFiles { diff --git a/src/Mvc/Mvc.Analyzers/test/TopLevelParameterNameAnalyzerTest.cs b/src/Mvc/Mvc.Analyzers/test/TopLevelParameterNameAnalyzerTest.cs index 2f82d63b1f06..1c1c25a0a01a 100644 --- a/src/Mvc/Mvc.Analyzers/test/TopLevelParameterNameAnalyzerTest.cs +++ b/src/Mvc/Mvc.Analyzers/test/TopLevelParameterNameAnalyzerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Linq; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadata.cs b/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadata.cs index 271f62f2cd0c..1660e2ffa8fe 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadata.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadataFactory.cs b/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadataFactory.cs index e83c9efe1166..05d09221894f 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadataFactory.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadataFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixAction.cs b/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixAction.cs index 10dde8a026e8..90b88574f684 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixAction.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixAction.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixProvider.cs b/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixProvider.cs index c42b3c0638bc..77f54ec53fa3 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixProvider.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/AddResponseTypeAttributeCodeFixProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using System.Composition; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs index bb79c18c1dc5..d6573c7e09a1 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs index faf41d0b5f3f..293c7dfd260f 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Immutable; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerFacts.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerFacts.cs index d010d588943b..aaf8cd927170 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerFacts.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerFacts.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Analyzers; using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerSymbolCache.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerSymbolCache.cs index 2a418028895f..39631f116116 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerSymbolCache.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiControllerSymbolCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiConventionAnalyzer.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiConventionAnalyzer.cs index 224476bccb73..a9253f8a3212 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiConventionAnalyzer.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiConventionAnalyzer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiDiagnosticDescriptors.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiDiagnosticDescriptors.cs index da4184604c18..8ba624a13efc 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiDiagnosticDescriptors.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiDiagnosticDescriptors.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/ApiSymbolNames.cs b/src/Mvc/Mvc.Api.Analyzers/src/ApiSymbolNames.cs index 1beb0aa41e1a..fdd305351eb8 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/ApiSymbolNames.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/ApiSymbolNames.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/src/DeclaredApiResponseMetadata.cs b/src/Mvc/Mvc.Api.Analyzers/src/DeclaredApiResponseMetadata.cs index c8f2a9c48f1f..8cea6b7292c8 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/DeclaredApiResponseMetadata.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/DeclaredApiResponseMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.CodeAnalysis; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Api.Analyzers/src/Properties/AssemblyInfo.cs index 1ed7ae5ed295..ad0ecfad0d39 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiConventionMatcher.cs b/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiConventionMatcher.cs index 3d30ad074faf..c0f0c3bf470b 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiConventionMatcher.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiConventionMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiResponseMetadataProvider.cs b/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiResponseMetadataProvider.cs index e8c85489e780..8e463fe0f9db 100644 --- a/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiResponseMetadataProvider.cs +++ b/src/Mvc/Mvc.Api.Analyzers/src/SymbolApiResponseMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -50,8 +50,8 @@ public static ITypeSymbol GetErrorResponseType( method.ContainingAssembly.GetAttributes(symbolCache.ProducesErrorResponseTypeAttribute).FirstOrDefault(); ITypeSymbol errorType = symbolCache.ProblemDetails; - if (errorTypeAttribute != null && - errorTypeAttribute.ConstructorArguments.Length == 1 && + if (errorTypeAttribute != null && + errorTypeAttribute.ConstructorArguments.Length == 1 && errorTypeAttribute.ConstructorArguments[0].Kind == TypedConstantKind.Type && errorTypeAttribute.ConstructorArguments[0].Value is ITypeSymbol typeSymbol) { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/ActualApiResponseMetadataFactoryTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/ActualApiResponseMetadataFactoryTest.cs index 9199ec90e1ec..8531cc81ab37 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/ActualApiResponseMetadataFactoryTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/ActualApiResponseMetadataFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs index 1f4aec10fca3..13ddfd1f2cf9 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/AddResponseTypeAttributeCodeFixProviderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs index e101450c4764..f8739fa2cd7f 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs index 486ad71a89be..c9bd0819088b 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/ApiControllerFactsTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/ApiControllerFactsTest.cs index 6c2f5a81d17e..b0555415af8a 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/ApiControllerFactsTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/ApiControllerFactsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/ApiConventionAnalyzerIntegrationTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/ApiConventionAnalyzerIntegrationTest.cs index b5b2bd2c3d77..5e551087ec11 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/ApiConventionAnalyzerIntegrationTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/ApiConventionAnalyzerIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/DeclaredApiResponseMetadataTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/DeclaredApiResponseMetadataTest.cs index 4dc929182634..8268c49ded87 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/DeclaredApiResponseMetadataTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/DeclaredApiResponseMetadataTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/IgnoreCS1701WarningCodeFixRunner.cs b/src/Mvc/Mvc.Api.Analyzers/test/IgnoreCS1701WarningCodeFixRunner.cs index e46b39f1458b..c9fb62f1ee3c 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/IgnoreCS1701WarningCodeFixRunner.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/IgnoreCS1701WarningCodeFixRunner.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Analyzer.Testing; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/Infrastructure/MvcTestSource.cs b/src/Mvc/Mvc.Api.Analyzers/test/Infrastructure/MvcTestSource.cs index ab9cd6cfdc5d..550669d2fe56 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/Infrastructure/MvcTestSource.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/Infrastructure/MvcTestSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/MvcFactsTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/MvcFactsTest.cs index 4498d009f174..68f01531e6c9 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/MvcFactsTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/MvcFactsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiConventionMatcherTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiConventionMatcherTest.cs index 011485292c1c..7a83a3fafaa7 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiConventionMatcherTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiConventionMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiResponseMetadataProviderTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiResponseMetadataProviderTest.cs index daf18e83f179..aafced4c46d1 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiResponseMetadataProviderTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/SymbolApiResponseMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/GetDefaultStatusCodeTest.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/GetDefaultStatusCodeTest.cs index 8fb75a9e4935..63197e456be0 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/GetDefaultStatusCodeTest.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/GetDefaultStatusCodeTest.cs @@ -1,4 +1,7 @@ -using System.Net; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Net; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/InspectReturnExpressionTests.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/InspectReturnExpressionTests.cs index c7e12719f4e7..612c2bc2b164 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/InspectReturnExpressionTests.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/InspectReturnExpressionTests.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.InspectReturnExpressionTests { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/TryGetActualResponseMetadataTests.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/TryGetActualResponseMetadataTests.cs index 1a7c9b05a89a..ac928d9aae58 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/TryGetActualResponseMetadataTests.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ActualApiResponseMetadataFactoryTest/TryGetActualResponseMetadataTests.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.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/.editorconfig b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/.editorconfig new file mode 100644 index 000000000000..9a43210f0124 --- /dev/null +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/.editorconfig @@ -0,0 +1,3 @@ +# Disable file header warnings, since some code fixes don't do the right thing with them +[*.cs] +dotnet_diagnostic.IDE0073.severity = suggestion diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Input.cs index e1b19d61a74b..c1c3b60b46d6 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Input.cs @@ -1,4 +1,3 @@ - [assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))] namespace TestApp._INPUT_ diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Output.cs index accec3f2d414..d7c6dc47d885 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsFullyQualifiedProducesResponseType.Output.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; [assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Input.cs index 65eb3a68ae80..c470ef97fd7b 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Output.cs index 8453b10ac5a5..81f746c100d6 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodes.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Input.cs index 43f07eca63b8..242841bc30b8 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Output.cs index a758564bcf58..6b1ee2b20454 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsMissingStatusCodesAndTypes.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs index 93668878b1cc..047c077c9b94 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { [ApiController] [Route("[controller]/[action]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs index 82a8f44a3b72..106e96aa8878 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs index 02d2e72efb0d..34bc3a66436d 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { [ProducesErrorResponseType(typeof(CodeFixAddsResponseTypeWhenDifferentErrorModel))] [ApiController] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs index f6be4784e5ac..e676e0fa87cb 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Input.cs index 7c3e0276081b..b9e4d2f622e8 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Input.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { [ApiController] [Route("[controller]/[action]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Output.cs index 0da7b06e5ca0..2109e4bbe986 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodes.Output.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Input.cs index 0fe46370373d..47cd145c9e0b 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Output.cs index dbdf8d7fae12..30708316cb25 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromConstructorParameters.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Input.cs index 8bc4a372e15e..89e9f94a3718 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Output.cs index d1ad5d182d32..9bd4298befe4 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromMethodParameters.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Input.cs index 7041164c5e57..1c64050b2622 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Output.cs index 8f35baeee74c..da1a627f3b6f 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsStatusCodesFromObjectInitializer.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Http; +// 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.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Input.cs index ff32f9b56df0..ab94f7a9a74a 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Output.cs index dc640992898a..20979662c177 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixAddsSuccessStatusCode.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; using Microsoft.AspNetCore.Http; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Input.cs index 55a1e429b7c2..650aef984145 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Input.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Output.cs index 657b5e969071..2976fa8d488f 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionAddsMissingStatusCodes.Output.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; using Microsoft.AspNetCore.Http; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs index 96e622e16bdb..0e52fee1a014 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { [ApiController] [Route("[controller]/[action]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs index d8d7215a5947..5fd731f9a439 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Input.cs index 463e5a9ce57f..f46245024b69 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Input.cs @@ -1,4 +1,4 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ { [ApiController] [Route("[controller]/[action]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Output.cs index ef8ceb6c063d..4fd4a49a97c0 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksOnExpressionBodiedMethod.Output.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._OUTPUT_ { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs index 19d51ee71061..58d1ed31ac82 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Input.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.Linq; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers._INPUT_ diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs index cd7b5dad5838..fd0371f0653c 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/AddResponseTypeAttributeCodeFixProviderIntegrationTest/CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs index 2966097a0fcd..7868098e6d2c 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs index 432789e86efa..89e103215220 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs index e62ee6801479..c0d5a47498ae 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs index 8ed22e69b9cb..1ff3f2a7e8c0 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs index 698fa7247601..0dfee31d12d2 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs index 86659db6f9b5..4fae36c1d445 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks.cs index e24c0945624e..abc895fc2c5c 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { [ApiController] public class NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks : ControllerBase diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs index c9b044457f79..7d31024a6abe 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { public class NoDiagnosticsAreReturned_ForNonApiController : ControllerBase { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs index 30b7c5ccebc6..65900e590fdf 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +// 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.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Input.cs index 2608c14bc5c0..117ad5341bae 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Input.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._INPUT_ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._INPUT_ { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Output.cs index 9d10cebb3115..4aeaa20c34e0 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesIfBlockWithoutBraces.Output.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._OUTPUT_ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._OUTPUT_ { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs index 9a129687230d..6d2a441dae44 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._INPUT_ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._INPUT_ { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs index 8ba42c4bfd53..f117fd850733 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._OUTPUT_ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._OUTPUT_ { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs index f737c35206b3..610c2ca38cb3 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._INPUT_ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._INPUT_ { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs index a61edaf518e2..b573ed128b39 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest/CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._OUTPUT_ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest._OUTPUT_ { [ApiController] [Route("/api/[controller]")] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/IsApiControllerAction_ReturnsTrue_IfAttributeIsDeclaredOnAssembly.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/IsApiControllerAction_ReturnsTrue_IfAttributeIsDeclaredOnAssembly.cs index a8b5d0ee8b58..a37e73bb8502 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/IsApiControllerAction_ReturnsTrue_IfAttributeIsDeclaredOnAssembly.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/IsApiControllerAction_ReturnsTrue_IfAttributeIsDeclaredOnAssembly.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ApiController] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/TestFile.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/TestFile.cs index 7eb8c8584cbf..bbe10a41fb8e 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/TestFile.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiControllerFactsTest/TestFile.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +// 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.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs index 275941debea4..5461cec115c5 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.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 Microsoft.AspNetCore.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutSomeAttributes.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutSomeAttributes.cs index 2769af3e56d0..e40474e8eb19 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutSomeAttributes.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutSomeAttributes.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForControllerWithCustomConvention.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForControllerWithCustomConvention.cs index 798f3cd7420f..605c755c0117 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForControllerWithCustomConvention.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_ForControllerWithCustomConvention.cs @@ -1,4 +1,7 @@ -using System.Threading.Tasks; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Api.Analyzers; diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs index 94e988549362..45bf4c59fc71 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs @@ -1,4 +1,7 @@ -using System.Threading.Tasks; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs index 2f43a890d256..ca9377a7bcb1 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs @@ -1,4 +1,7 @@ -using System.Threading.Tasks; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs index ef063d3004c7..823531e4ac0e 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeAsynchronouslyReturnsValue_WithoutDocumentation.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeAsynchronouslyReturnsValue_WithoutDocumentation.cs index 025cfd754060..9efc70a86d79 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeAsynchronouslyReturnsValue_WithoutDocumentation.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeAsynchronouslyReturnsValue_WithoutDocumentation.cs @@ -1,4 +1,7 @@ -using System.Threading.Tasks; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Threading.Tasks; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeReturnsValue_WithoutDocumentation.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeReturnsValue_WithoutDocumentation.cs index 69f2b29eb9f3..77fe398767da 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeReturnsValue_WithoutDocumentation.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttributeReturnsValue_WithoutDocumentation.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { [ApiController] public class DiagnosticsAreReturned_IfMethodWithAttributeReturnsValue_WithoutDocumentation : ControllerBase diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttribute_ReturnsDerivedType.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttribute_ReturnsDerivedType.cs index 5fff480419c4..710dce1b95b0 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttribute_ReturnsDerivedType.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithAttribute_ReturnsDerivedType.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs index 62929c1f2e3a..1d772eb087a6 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs index a7502e0fe7a1..bc62dd923627 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Api.Analyzers; [assembly: ApiConventionType(typeof(DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCodeConvention))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotDocumentSuccessStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotDocumentSuccessStatusCode.cs index a45428d467ef..f2d791bcbb79 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotDocumentSuccessStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotDocumentSuccessStatusCode.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; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotReturnDocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotReturnDocumentedStatusCode.cs index 59b1c99c882e..443b145ab911 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotReturnDocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotReturnDocumentedStatusCode.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs index 1de34d05bbbd..929d9963f890 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { [ApiController] public class DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode : ControllerBase diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred.cs index e2866071d410..21c134fd3911 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { [ApiController] public class NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred : ControllerBase diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs index c7aaac359634..33d1caea334e 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs index 1d790dab91eb..6a915777796d 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForNonApiController.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForOkResultReturningAction.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForOkResultReturningAction.cs index e5ae8feb2c9e..461fa4f31fb2 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForOkResultReturningAction.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForOkResultReturningAction.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs index 65d7167e6cb4..db176cce5072 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForRazorPageModels.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.RazorPages; +// 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.Mvc.RazorPages; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs index 0770de818d23..9e12429c4c54 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.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 Microsoft.AspNetCore.Mvc; [assembly: ApiConventionType(typeof(DefaultApiConventions))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions.cs index 329bde822db4..249c5d191638 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/ApiConventionAnalyzerIntegrationTest/NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { [ApiController] public class NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions : ControllerBase diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerActionTests.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerActionTests.cs index 085ba88d9a79..a81ec72a8056 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerActionTests.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerActionTests.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; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerTests.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerTests.cs index 1c765c6fd3bc..f53dcd578872 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerTests.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/MvcFactsTest/IsControllerTests.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers { public interface ITestController { } diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiConventionMatcherTest/SymbolApiConventionMatcherTestFile.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiConventionMatcherTest/SymbolApiConventionMatcherTestFile.cs index 3d27daef10c1..d1a2f1c24fd7 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiConventionMatcherTest/SymbolApiConventionMatcherTestFile.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiConventionMatcherTest/SymbolApiConventionMatcherTestFile.cs @@ -1,4 +1,7 @@ -using System.Runtime.CompilerServices; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.ApiExplorer; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsProblemDetails_IfNoAttributeIsDiscovered.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsProblemDetails_IfNoAttributeIsDiscovered.cs index 7e7834edbe24..0cd872888b65 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsProblemDetails_IfNoAttributeIsDiscovered.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsProblemDetails_IfNoAttributeIsDiscovered.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.SymbolApiResponseMetadataProviderTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.SymbolApiResponseMetadataProviderTest { public class GetErrorResponseType_ReturnsProblemDetails_IfNoAttributeIsDiscoveredController { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAction.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAction.cs index 9e8f37d0c64e..55743dcb39c6 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAction.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAction.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc.ModelBinding; +// 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.Mvc.ModelBinding; namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.SymbolApiResponseMetadataProviderTest { diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAssembly.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAssembly.cs index b5199490d388..dc664122854a 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAssembly.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtAssembly.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; [assembly: ProducesErrorResponseType(typeof(Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.SymbolApiResponseMetadataProviderTest.GetErrorResponseType_ReturnsTypeDefinedAtAssemblyModel))] diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtController.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtController.cs index b731f3f0eb76..e606021fe1b3 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtController.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetErrorResponseType_ReturnsTypeDefinedAtController.cs @@ -1,4 +1,7 @@ -namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.SymbolApiResponseMetadataProviderTest +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace Microsoft.AspNetCore.Mvc.Api.Analyzers.TestFiles.SymbolApiResponseMetadataProviderTest { [ProducesErrorResponseType(typeof(GetErrorResponseType_ReturnsTypeDefinedAtControllerModel))] public class GetErrorResponseType_ReturnsTypeDefinedAtControllerController diff --git a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetResponseMetadataTests.cs b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetResponseMetadataTests.cs index bcf250847460..6bf00e9c555d 100644 --- a/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetResponseMetadataTests.cs +++ b/src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetResponseMetadataTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionExtensions.cs b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionExtensions.cs index d91ddfbe70ac..576c398883be 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionExtensions.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroup.cs b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroup.cs index 1d9bcc152d7b..d2b598e6e454 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroup.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollection.cs b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollection.cs index b071f1c2c9c5..e1bb301efa1b 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollection.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollectionProvider.cs b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollectionProvider.cs index 1ff971bc6af7..1af2783aad5e 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollectionProvider.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/ApiDescriptionGroupCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.ApiExplorer/src/ApiParameterContext.cs b/src/Mvc/Mvc.ApiExplorer/src/ApiParameterContext.cs index d88281f49037..3c001ace8445 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/ApiParameterContext.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/ApiParameterContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Controllers; diff --git a/src/Mvc/Mvc.ApiExplorer/src/ApiResponseTypeProvider.cs b/src/Mvc/Mvc.ApiExplorer/src/ApiResponseTypeProvider.cs index fcf7dfcf05ab..b7cad53ad3e7 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/ApiResponseTypeProvider.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/ApiResponseTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ApiExplorer/src/DefaultApiDescriptionProvider.cs b/src/Mvc/Mvc.ApiExplorer/src/DefaultApiDescriptionProvider.cs index a2f5a827523a..5a87ad2089fe 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/DefaultApiDescriptionProvider.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/DefaultApiDescriptionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs b/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs index 0be4f4c89410..f2728f8e321d 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ApiExplorer; diff --git a/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/MvcApiExplorerMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/MvcApiExplorerMvcCoreBuilderExtensions.cs index 4004adc970b2..1318a7fef537 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/MvcApiExplorerMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/DependencyInjection/MvcApiExplorerMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApiExplorer; diff --git a/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs b/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs index 2cd8275d8004..0eccb64e7b35 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ApiExplorer/src/EndpointModelMetadata.cs b/src/Mvc/Mvc.ApiExplorer/src/EndpointModelMetadata.cs index fc5fc4267632..e78a8eaa61d6 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/EndpointModelMetadata.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/EndpointModelMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ApiExplorer/src/IApiDescriptionGroupCollectionProvider.cs b/src/Mvc/Mvc.ApiExplorer/src/IApiDescriptionGroupCollectionProvider.cs index 5227a62cbe3e..b0b13535c601 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/IApiDescriptionGroupCollectionProvider.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/IApiDescriptionGroupCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApiExplorer { diff --git a/src/Mvc/Mvc.ApiExplorer/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.ApiExplorer/src/Properties/AssemblyInfo.cs index 40008c2f22b0..c446015eef06 100644 --- a/src/Mvc/Mvc.ApiExplorer/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.ApiExplorer/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.ApiExplorer/test/ApiResponseTypeProviderTest.cs b/src/Mvc/Mvc.ApiExplorer/test/ApiResponseTypeProviderTest.cs index 8f3029a64795..8a8f0e2091a4 100644 --- a/src/Mvc/Mvc.ApiExplorer/test/ApiResponseTypeProviderTest.cs +++ b/src/Mvc/Mvc.ApiExplorer/test/ApiResponseTypeProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ApiExplorer/test/DefaultApiDescriptionProviderTest.cs b/src/Mvc/Mvc.ApiExplorer/test/DefaultApiDescriptionProviderTest.cs index 9e54bbf3a0ca..c3492411df05 100644 --- a/src/Mvc/Mvc.ApiExplorer/test/DefaultApiDescriptionProviderTest.cs +++ b/src/Mvc/Mvc.ApiExplorer/test/DefaultApiDescriptionProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -1443,7 +1443,7 @@ public void GetApiDescription_ParameterDescription_FromQueryEmployee() Assert.Same(BindingSource.Query, id.Source); Assert.Equal(typeof(string), id.Type); } - + [Fact] public void GetApiDescription_ParameterDescription_FromQueryManager() { diff --git a/src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs b/src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs index e222305fd646..afd698344d74 100644 --- a/src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs +++ b/src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/AcceptVerbsAttribute.cs b/src/Mvc/Mvc.Core/src/AcceptVerbsAttribute.cs index 3e654b0837c1..d151c528f16c 100644 --- a/src/Mvc/Mvc.Core/src/AcceptVerbsAttribute.cs +++ b/src/Mvc/Mvc.Core/src/AcceptVerbsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/AcceptedAtActionResult.cs b/src/Mvc/Mvc.Core/src/AcceptedAtActionResult.cs index 2c352d1fc79d..cf701213b65b 100644 --- a/src/Mvc/Mvc.Core/src/AcceptedAtActionResult.cs +++ b/src/Mvc/Mvc.Core/src/AcceptedAtActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/AcceptedAtRouteResult.cs b/src/Mvc/Mvc.Core/src/AcceptedAtRouteResult.cs index 59248c37065b..bc0b91ff5dd9 100644 --- a/src/Mvc/Mvc.Core/src/AcceptedAtRouteResult.cs +++ b/src/Mvc/Mvc.Core/src/AcceptedAtRouteResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/AcceptedResult.cs b/src/Mvc/Mvc.Core/src/AcceptedResult.cs index 62aea680e234..ced7ff659e0c 100644 --- a/src/Mvc/Mvc.Core/src/AcceptedResult.cs +++ b/src/Mvc/Mvc.Core/src/AcceptedResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -19,7 +19,7 @@ public class AcceptedResult : ObjectResult /// /// Initializes a new instance of the class with the values /// provided. - /// + /// public AcceptedResult() : base(value: null) { diff --git a/src/Mvc/Mvc.Core/src/ActionConstraints/ActionConstraintCache.cs b/src/Mvc/Mvc.Core/src/ActionConstraints/ActionConstraintCache.cs index 7663ad7eb963..6c6aa76da3b0 100644 --- a/src/Mvc/Mvc.Core/src/ActionConstraints/ActionConstraintCache.cs +++ b/src/Mvc/Mvc.Core/src/ActionConstraints/ActionConstraintCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/ActionConstraints/ActionMethodSelectorAttribute.cs b/src/Mvc/Mvc.Core/src/ActionConstraints/ActionMethodSelectorAttribute.cs index 6cf3d35952fa..b18cc2a99acb 100644 --- a/src/Mvc/Mvc.Core/src/ActionConstraints/ActionMethodSelectorAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ActionConstraints/ActionMethodSelectorAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Core/src/ActionConstraints/DefaultActionConstraintProvider.cs b/src/Mvc/Mvc.Core/src/ActionConstraints/DefaultActionConstraintProvider.cs index fe44d25be74c..020395773e21 100644 --- a/src/Mvc/Mvc.Core/src/ActionConstraints/DefaultActionConstraintProvider.cs +++ b/src/Mvc/Mvc.Core/src/ActionConstraints/DefaultActionConstraintProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/ActionConstraints/HttpMethodActionConstraint.cs b/src/Mvc/Mvc.Core/src/ActionConstraints/HttpMethodActionConstraint.cs index 6ee65d9f8b20..0059a208f361 100644 --- a/src/Mvc/Mvc.Core/src/ActionConstraints/HttpMethodActionConstraint.cs +++ b/src/Mvc/Mvc.Core/src/ActionConstraints/HttpMethodActionConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ActionConstraints/IConsumesActionConstraint.cs b/src/Mvc/Mvc.Core/src/ActionConstraints/IConsumesActionConstraint.cs index 9e368fe825ae..544dc2cb165c 100644 --- a/src/Mvc/Mvc.Core/src/ActionConstraints/IConsumesActionConstraint.cs +++ b/src/Mvc/Mvc.Core/src/ActionConstraints/IConsumesActionConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ActionConstraints { diff --git a/src/Mvc/Mvc.Core/src/ActionContextAttribute.cs b/src/Mvc/Mvc.Core/src/ActionContextAttribute.cs index 2923ae399b29..7c0dd8c5d020 100644 --- a/src/Mvc/Mvc.Core/src/ActionContextAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ActionContextAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/ActionNameAttribute.cs b/src/Mvc/Mvc.Core/src/ActionNameAttribute.cs index 78a374b517aa..6f9e061d8ccd 100644 --- a/src/Mvc/Mvc.Core/src/ActionNameAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ActionNameAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/ActionResult.cs b/src/Mvc/Mvc.Core/src/ActionResult.cs index 413d47aab6f5..c2da624b4f76 100644 --- a/src/Mvc/Mvc.Core/src/ActionResult.cs +++ b/src/Mvc/Mvc.Core/src/ActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Core/src/ActionResultOfT.cs b/src/Mvc/Mvc.Core/src/ActionResultOfT.cs index 0e0ffff83b5d..17d5d83bce78 100644 --- a/src/Mvc/Mvc.Core/src/ActionResultOfT.cs +++ b/src/Mvc/Mvc.Core/src/ActionResultOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/AntiforgeryValidationFailedResult.cs b/src/Mvc/Mvc.Core/src/AntiforgeryValidationFailedResult.cs index 95e064312759..7f758c3b1674 100644 --- a/src/Mvc/Mvc.Core/src/AntiforgeryValidationFailedResult.cs +++ b/src/Mvc/Mvc.Core/src/AntiforgeryValidationFailedResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Core.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/ApiBehaviorOptions.cs b/src/Mvc/Mvc.Core/src/ApiBehaviorOptions.cs index 2c0b9b47b830..6ce4f995381e 100644 --- a/src/Mvc/Mvc.Core/src/ApiBehaviorOptions.cs +++ b/src/Mvc/Mvc.Core/src/ApiBehaviorOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApiControllerAttribute.cs b/src/Mvc/Mvc.Core/src/ApiControllerAttribute.cs index 2b1abed7f634..a1dd103cebb5 100644 --- a/src/Mvc/Mvc.Core/src/ApiControllerAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApiControllerAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/ApiConventionMethodAttribute.cs b/src/Mvc/Mvc.Core/src/ApiConventionMethodAttribute.cs index 452cd81941c6..17996c92852d 100644 --- a/src/Mvc/Mvc.Core/src/ApiConventionMethodAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApiConventionMethodAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApiConventionTypeAttribute.cs b/src/Mvc/Mvc.Core/src/ApiConventionTypeAttribute.cs index 866ae5c015f4..06059ddb1563 100644 --- a/src/Mvc/Mvc.Core/src/ApiConventionTypeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApiConventionTypeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Mvc /// /// API conventions to be applied to an assembly containing MVC controllers or a single controller. /// - /// API conventions are used to influence the output of ApiExplorer. + /// API conventions are used to influence the output of ApiExplorer. /// Conventions must be static types. Methods in a convention are /// matched to an action method using rules specified by /// that may be applied to a method name or its parameters and @@ -32,7 +32,7 @@ public sealed class ApiConventionTypeAttribute : Attribute /// Initializes an instance using . /// /// - /// The of the convention. + /// The of the convention. /// /// Conventions must be static types. Methods in a convention are /// matched to an action method using rules specified by diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionMatcher.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionMatcher.cs index cb55e61827b1..bb221116c5b7 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionMatcher.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchAttribute.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchAttribute.cs index 2da8950decbb..72bfe243ce6a 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchAttribute.cs @@ -1,13 +1,13 @@ -// 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. +// 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 Microsoft.AspNetCore.Mvc.ApiExplorer { /// - /// Determines the matching behavior an API convention method or parameter by name. - /// for supported options. + /// Determines the matching behavior an API convention method or parameter by name. + /// for supported options. /// . /// /// diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchBehavior.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchBehavior.cs index 2d4ed01d9392..c138768ab166 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchBehavior.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionNameMatchBehavior.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApiExplorer { @@ -21,7 +21,7 @@ public enum ApiConventionNameMatchBehavior /// /// The parameter or method name in the convention is a proper prefix. /// - /// Casing is used to delineate words in a given name. For instance, with this behavior + /// Casing is used to delineate words in a given name. For instance, with this behavior /// the convention name "Get" will match "Get", "GetPerson" or "GetById", but not "getById", "Getaway". /// /// @@ -30,7 +30,7 @@ public enum ApiConventionNameMatchBehavior /// /// The parameter or method name in the convention is a proper suffix. /// - /// Casing is used to delineate words in a given name. For instance, with this behavior + /// Casing is used to delineate words in a given name. For instance, with this behavior /// the convention name "id" will match "id", or "personId" but not "grid" or "personid". /// /// diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionResult.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionResult.cs index f5b5ef4f49b9..8cdebaa09893 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionResult.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchAttribute.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchAttribute.cs index 5aa6b7cb08f7..c1304fa7df8a 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchAttribute.cs @@ -1,12 +1,12 @@ -// 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. +// 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 Microsoft.AspNetCore.Mvc.ApiExplorer { /// - /// Determines the matching behavior an API convention parameter by type. + /// Determines the matching behavior an API convention parameter by type. /// for supported options. /// . /// diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchBehavior.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchBehavior.cs index fcd7162aae8c..88407626b166 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchBehavior.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchBehavior.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApiExplorer { diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs index 8ee745de5919..70494dd48186 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDefaultResponseMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDefaultResponseMetadataProvider.cs index a841fc9f0a7a..eb9bc1234790 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDefaultResponseMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDefaultResponseMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApiExplorer { diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionGroupNameProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionGroupNameProvider.cs index 33a31251bc67..dadc1fa3b10e 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionGroupNameProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionGroupNameProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApiExplorer { diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionVisibilityProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionVisibilityProvider.cs index 5f4be13cc0bd..dde63305934a 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionVisibilityProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiDescriptionVisibilityProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApiExplorer { diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestFormatMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestFormatMetadataProvider.cs index f93232e81ab3..c581774cde81 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestFormatMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestFormatMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestMetadataProvider.cs index e24ca509f4d6..1df6dc86aca2 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiRequestMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; using Microsoft.AspNetCore.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseMetadataProvider.cs index 8a30df15a4a4..2c6e70f374ac 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseTypeMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseTypeMetadataProvider.cs index 8ae06b974fa8..153f8ae74435 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseTypeMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/IApiResponseTypeMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApiExplorerSettingsAttribute.cs b/src/Mvc/Mvc.Core/src/ApiExplorerSettingsAttribute.cs index 314bfaf6e3ba..74be790f50bc 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorerSettingsAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorerSettingsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApiExplorer; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ActionAttributeRouteModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ActionAttributeRouteModel.cs index 5496f985d787..ab5483f3ba0f 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ActionAttributeRouteModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ActionAttributeRouteModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; @@ -12,7 +12,7 @@ internal static class ActionAttributeRouteModel { public static IEnumerable FlattenSelectors(ActionModel actionModel) { - // Loop through all attribute routes defined on the controller. + // Loop through all attribute routes defined on the controller. // These perform a cross-product with all of the action-level attribute routes. var controllerSelectors = actionModel.Controller.Selectors .Where(sm => sm.AttributeRouteModel != null) @@ -24,9 +24,9 @@ public static IEnumerable FlattenSelectors(ActionModel actionMode if (actionModel.Controller.Selectors.Count > 0) { // This logic seems arbitrary but there's a good reason for it. - // + // // When we build the controller level selectors, any metadata or action constraints - // that aren't IRouteTemplateProvider will be included in all selectors. So we + // that aren't IRouteTemplateProvider will be included in all selectors. So we // pick any selector and then grab all of the stuff that isn't IRouteTemplateProvider // then we've found all of the items that aren't routes. // diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ActionModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ActionModel.cs index 42873616d9d9..e95cd0eba23c 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ActionModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ActionModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -122,7 +122,7 @@ public ActionModel(ActionModel other) public IList Parameters { get; } /// - /// Gets or sets an that will be used to transform + /// Gets or sets an that will be used to transform /// built-in route parameters such as action, controller, and area as well as /// additional parameters specified by into static segments in the route template. /// @@ -134,7 +134,7 @@ public ActionModel(ActionModel other) public IOutboundParameterTransformer? RouteParameterTransformer { get; set; } /// - /// Gets a collection of route values that must be present in the + /// Gets a collection of route values that must be present in the /// for the corresponding action to be selected. /// /// diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiBehaviorApplicationModelProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiBehaviorApplicationModelProvider.cs index abc14ea6992d..59012e1de445 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiBehaviorApplicationModelProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiBehaviorApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiConventionApplicationModelConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiConventionApplicationModelConvention.cs index 867eee9f50f2..7c271b98f66e 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiConventionApplicationModelConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiConventionApplicationModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiExplorerModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiExplorerModel.cs index 8632d75e30c1..9dacc18ea206 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiExplorerModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiExplorerModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiVisibilityConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiVisibilityConvention.cs index 0a494bc050bc..13e7ed33876b 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApiVisibilityConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApiVisibilityConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModel.cs index 86836c1a6693..bfa89bd448ac 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; @@ -29,9 +29,9 @@ public ApplicationModel() /// /// /// allows configuration of default settings - /// for ApiExplorer that apply to all actions unless overridden by + /// for ApiExplorer that apply to all actions unless overridden by /// or . - /// + /// /// If using to set to /// true, this setting will only be honored for actions which use attribute routing. /// diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelConventions.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelConventions.cs index 6bd39d339161..3382fd7ef7af 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelConventions.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelConventions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelFactory.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelFactory.cs index ce8d82248ef1..597126a01b4d 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelFactory.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelProviderContext.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelProviderContext.cs index 5e357e37780b..a38a97073405 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelProviderContext.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/AttributeRouteModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/AttributeRouteModel.cs index 6f2108f9bcfa..9d80219c94ee 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/AttributeRouteModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/AttributeRouteModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/AuthorizationApplicationModelProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/AuthorizationApplicationModelProvider.cs index 31a3b1427ec1..d840fb9c5559 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/AuthorizationApplicationModelProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/AuthorizationApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ClientErrorResultFilterConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ClientErrorResultFilterConvention.cs index d7afdeb0eb6c..3eddbbd44e1b 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ClientErrorResultFilterConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ClientErrorResultFilterConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ConsumesConstraintForFormFileParameterConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ConsumesConstraintForFormFileParameterConvention.cs index b6bb13a9bff6..972fbf0c0eea 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ConsumesConstraintForFormFileParameterConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ConsumesConstraintForFormFileParameterConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorBuilder.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorBuilder.cs index 9b2e8a951af1..6e7ca5d2a2fc 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorBuilder.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -72,7 +72,7 @@ private static void AddParameterDescriptors(ActionDescriptor actionDescriptor, A actionDescriptor.Parameters = parameterDescriptors; } - + private static ParameterDescriptor CreateParameterDescriptor(ParameterModel parameterModel) { var parameterDescriptor = new ControllerParameterDescriptor() diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorProvider.cs index e82b71569742..c481b8eed416 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerActionDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs index 2ab748194c12..9b617cb73123 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ControllerModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -132,7 +132,7 @@ public ControllerModel(ControllerModel other) public IList Filters { get; } /// - /// Gets a collection of route values that must be present in the + /// Gets a collection of route values that must be present in the /// for the corresponding action to be selected. /// /// diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/DefaultApplicationModelProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/DefaultApplicationModelProvider.cs index ee1d36cf2a46..d2e1e202ab0f 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/DefaultApplicationModelProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/DefaultApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IActionModelConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IActionModelConvention.cs index 6d235666f96b..16299c4365c5 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IActionModelConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IActionModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IApiExplorerModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IApiExplorerModel.cs index 6d3705e6d92c..ef81a0fedf88 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IApiExplorerModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IApiExplorerModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelConvention.cs index 7388b7f5e480..82d2b903f557 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelProvider.cs index 8d8814ad4391..4b9cfad715c5 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IBindingModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IBindingModel.cs index b48db3bb0144..97618c60c508 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IBindingModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IBindingModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ICommonModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ICommonModel.cs index a495fce0f3b3..620c418b0ede 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ICommonModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ICommonModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IControllerModelConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IControllerModelConvention.cs index 37d08ec44086..510ad335afe1 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IControllerModelConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IControllerModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IFilterModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IFilterModel.cs index 22f8a7d1fb17..3277a4fa6b20 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IFilterModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IFilterModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelBaseConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelBaseConvention.cs index 2457b89f9559..55f80d532b60 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelBaseConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelBaseConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelConvention.cs index 76924e27abfa..495effb91181 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IParameterModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/IPropertyModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/IPropertyModel.cs index 4f1f4e99ca2f..3998946cdf03 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/IPropertyModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/IPropertyModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/InferParameterBindingInfoConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/InferParameterBindingInfoConvention.cs index 8f0a33a497ab..919758219732 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/InferParameterBindingInfoConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/InferParameterBindingInfoConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/InvalidModelStateFilterConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/InvalidModelStateFilterConvention.cs index cb3a865636af..62cd9a6da2fb 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/InvalidModelStateFilterConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/InvalidModelStateFilterConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModel.cs index d3de0c8574e9..5d1d1b9433a6 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModelBase.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModelBase.cs index b850b2c792ae..e817d9050d77 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModelBase.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/ParameterModelBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/PropertyModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/PropertyModel.cs index d264d72d1f27..6aa6ab3fa54a 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/PropertyModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/PropertyModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/RouteTokenTransformerConvention.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/RouteTokenTransformerConvention.cs index d7c4e78f5ff5..bfa6a411bf66 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/RouteTokenTransformerConvention.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/RouteTokenTransformerConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Mvc/Mvc.Core/src/ApplicationModels/SelectorModel.cs b/src/Mvc/Mvc.Core/src/ApplicationModels/SelectorModel.cs index c1c137db320d..a6639c3b0359 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationModels/SelectorModel.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationModels/SelectorModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPart.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPart.cs index 807af25a9d3d..b41f7eb52d84 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPart.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPart.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationParts { diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartAttribute.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartAttribute.cs index e69839692955..147d6e4afcb8 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartFactory.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartFactory.cs index ac215409bf29..c6e0e4c82ebf 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartFactory.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartManager.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartManager.cs index 796c4309039f..8895780f007d 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartManager.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/ApplicationPartManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/AssemblyPart.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/AssemblyPart.cs index 7dd653550de2..ccc3c6f4a508 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/AssemblyPart.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/AssemblyPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/DefaultApplicationPartFactory.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/DefaultApplicationPartFactory.cs index 60a08f797498..f65c930d5cd2 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/DefaultApplicationPartFactory.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/DefaultApplicationPartFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProvider.cs index 2ee9ece9f091..d04c0dfd1038 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationParts { diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProviderOfT.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProviderOfT.cs index cf7f870bca38..e8c3c8504b54 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProviderOfT.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationFeatureProviderOfT.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationPartTypeProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationPartTypeProvider.cs index 616c9a9aea4d..142f756ba51c 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationPartTypeProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/IApplicationPartTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/ICompilationReferencesProvider.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/ICompilationReferencesProvider.cs index bb2691bedd09..b05aaea3ef8b 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/ICompilationReferencesProvider.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/ICompilationReferencesProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/NullApplicationPartFactory.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/NullApplicationPartFactory.cs index 6fe7ff39ff76..138c6e27cc28 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/NullApplicationPartFactory.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/NullApplicationPartFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/ProvideApplicationPartFactoryAttribute.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/ProvideApplicationPartFactoryAttribute.cs index 1437d3b78deb..097467565c64 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/ProvideApplicationPartFactoryAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/ProvideApplicationPartFactoryAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Core; diff --git a/src/Mvc/Mvc.Core/src/ApplicationParts/RelatedAssemblyAttribute.cs b/src/Mvc/Mvc.Core/src/ApplicationParts/RelatedAssemblyAttribute.cs index b2078809b4a1..2d1bd2b822f0 100644 --- a/src/Mvc/Mvc.Core/src/ApplicationParts/RelatedAssemblyAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ApplicationParts/RelatedAssemblyAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/AreaAttribute.cs b/src/Mvc/Mvc.Core/src/AreaAttribute.cs index 3e16b8929750..1c6b0886dae4 100644 --- a/src/Mvc/Mvc.Core/src/AreaAttribute.cs +++ b/src/Mvc/Mvc.Core/src/AreaAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Core; diff --git a/src/Mvc/Mvc.Core/src/Authorization/AllowAnonymousFilter.cs b/src/Mvc/Mvc.Core/src/Authorization/AllowAnonymousFilter.cs index 34b785cbecd0..2ae3c631a1f6 100644 --- a/src/Mvc/Mvc.Core/src/Authorization/AllowAnonymousFilter.cs +++ b/src/Mvc/Mvc.Core/src/Authorization/AllowAnonymousFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Authorization { diff --git a/src/Mvc/Mvc.Core/src/Authorization/AuthorizeFilter.cs b/src/Mvc/Mvc.Core/src/Authorization/AuthorizeFilter.cs index 0d86160b186e..9dfd5e43bdc1 100644 --- a/src/Mvc/Mvc.Core/src/Authorization/AuthorizeFilter.cs +++ b/src/Mvc/Mvc.Core/src/Authorization/AuthorizeFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/BadRequestObjectResult.cs b/src/Mvc/Mvc.Core/src/BadRequestObjectResult.cs index fd3e398d9881..68c0ae4c0625 100644 --- a/src/Mvc/Mvc.Core/src/BadRequestObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/BadRequestObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/BadRequestResult.cs b/src/Mvc/Mvc.Core/src/BadRequestResult.cs index 5a034b181acf..0aeebe18e1cb 100644 --- a/src/Mvc/Mvc.Core/src/BadRequestResult.cs +++ b/src/Mvc/Mvc.Core/src/BadRequestResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/BindAttribute.cs b/src/Mvc/Mvc.Core/src/BindAttribute.cs index 0091eabd2ebf..bdd5e5add54e 100644 --- a/src/Mvc/Mvc.Core/src/BindAttribute.cs +++ b/src/Mvc/Mvc.Core/src/BindAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/BindPropertiesAttribute.cs b/src/Mvc/Mvc.Core/src/BindPropertiesAttribute.cs index 28a155829053..e4c5d1b5c529 100644 --- a/src/Mvc/Mvc.Core/src/BindPropertiesAttribute.cs +++ b/src/Mvc/Mvc.Core/src/BindPropertiesAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/BindPropertyAttribute.cs b/src/Mvc/Mvc.Core/src/BindPropertyAttribute.cs index 22430cf6567f..577cb994b1b1 100644 --- a/src/Mvc/Mvc.Core/src/BindPropertyAttribute.cs +++ b/src/Mvc/Mvc.Core/src/BindPropertyAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/Builder/ControllerActionEndpointConventionBuilder.cs b/src/Mvc/Mvc.Core/src/Builder/ControllerActionEndpointConventionBuilder.cs index e5b61baede09..b3b8fcef9f85 100644 --- a/src/Mvc/Mvc.Core/src/Builder/ControllerActionEndpointConventionBuilder.cs +++ b/src/Mvc/Mvc.Core/src/Builder/ControllerActionEndpointConventionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Builder/ControllerEndpointRouteBuilderExtensions.cs b/src/Mvc/Mvc.Core/src/Builder/ControllerEndpointRouteBuilderExtensions.cs index 1dfe8ee24c94..7b28aabf7120 100644 --- a/src/Mvc/Mvc.Core/src/Builder/ControllerEndpointRouteBuilderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/Builder/ControllerEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Builder/MvcApplicationBuilderExtensions.cs b/src/Mvc/Mvc.Core/src/Builder/MvcApplicationBuilderExtensions.cs index fb7bb53fc5c6..a910cfc79b08 100644 --- a/src/Mvc/Mvc.Core/src/Builder/MvcApplicationBuilderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/Builder/MvcApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Builder/MvcAreaRouteBuilderExtensions.cs b/src/Mvc/Mvc.Core/src/Builder/MvcAreaRouteBuilderExtensions.cs index e2cdf09f8a21..4626277a8ec1 100644 --- a/src/Mvc/Mvc.Core/src/Builder/MvcAreaRouteBuilderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/Builder/MvcAreaRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Core; diff --git a/src/Mvc/Mvc.Core/src/CacheProfile.cs b/src/Mvc/Mvc.Core/src/CacheProfile.cs index e42a71985151..956fb77de4b2 100644 --- a/src/Mvc/Mvc.Core/src/CacheProfile.cs +++ b/src/Mvc/Mvc.Core/src/CacheProfile.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/Mvc.Core/src/ChallengeResult.cs b/src/Mvc/Mvc.Core/src/ChallengeResult.cs index 4b21053cac92..178afecd2289 100644 --- a/src/Mvc/Mvc.Core/src/ChallengeResult.cs +++ b/src/Mvc/Mvc.Core/src/ChallengeResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ClientErrorData.cs b/src/Mvc/Mvc.Core/src/ClientErrorData.cs index 554b61d6ca82..4105efc4dbec 100644 --- a/src/Mvc/Mvc.Core/src/ClientErrorData.cs +++ b/src/Mvc/Mvc.Core/src/ClientErrorData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/Mvc.Core/src/CompatibilityVersion.cs b/src/Mvc/Mvc.Core/src/CompatibilityVersion.cs index 285379364549..5053366fb032 100644 --- a/src/Mvc/Mvc.Core/src/CompatibilityVersion.cs +++ b/src/Mvc/Mvc.Core/src/CompatibilityVersion.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Mvc/Mvc.Core/src/ConflictObjectResult.cs b/src/Mvc/Mvc.Core/src/ConflictObjectResult.cs index eb7f16d2b1fb..4922b11be2f1 100644 --- a/src/Mvc/Mvc.Core/src/ConflictObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/ConflictObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/ConflictResult.cs b/src/Mvc/Mvc.Core/src/ConflictResult.cs index a97acb8c315b..b4f3c0f1b9c3 100644 --- a/src/Mvc/Mvc.Core/src/ConflictResult.cs +++ b/src/Mvc/Mvc.Core/src/ConflictResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/ConsumesAttribute.cs b/src/Mvc/Mvc.Core/src/ConsumesAttribute.cs index 150781c49c27..ea4e3a6ae635 100644 --- a/src/Mvc/Mvc.Core/src/ConsumesAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ConsumesAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ContentResult.cs b/src/Mvc/Mvc.Core/src/ContentResult.cs index e1d86fc1f03f..e125f43f02b6 100644 --- a/src/Mvc/Mvc.Core/src/ContentResult.cs +++ b/src/Mvc/Mvc.Core/src/ContentResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ControllerAttribute.cs b/src/Mvc/Mvc.Core/src/ControllerAttribute.cs index 2e225dac6d6b..9082d8d3ce2b 100644 --- a/src/Mvc/Mvc.Core/src/ControllerAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ControllerAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/ControllerBase.cs b/src/Mvc/Mvc.Core/src/ControllerBase.cs index 317e298a8aed..1f0d761311c9 100644 --- a/src/Mvc/Mvc.Core/src/ControllerBase.cs +++ b/src/Mvc/Mvc.Core/src/ControllerBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -365,7 +365,7 @@ public virtual RedirectResult RedirectPermanent(string url) /// /// Creates a object with set to false - /// and set to true () + /// and set to true () /// using the specified . /// /// The URL to redirect to. @@ -383,7 +383,7 @@ public virtual RedirectResult RedirectPreserveMethod(string url) /// /// Creates a object with set to true - /// and set to true () + /// and set to true () /// using the specified . /// /// The URL to redirect to. @@ -400,7 +400,7 @@ public virtual RedirectResult RedirectPermanentPreserveMethod(string url) } /// - /// Creates a object that redirects + /// Creates a object that redirects /// () to the specified local . /// /// The local URL to redirect to. @@ -435,7 +435,7 @@ public virtual LocalRedirectResult LocalRedirectPermanent(string localUrl) /// /// Creates a object with set to - /// false and set to true + /// false and set to true /// () using the specified . /// /// The local URL to redirect to. @@ -453,7 +453,7 @@ public virtual LocalRedirectResult LocalRedirectPreserveMethod(string localUrl) /// /// Creates a object with set to - /// true and set to true + /// true and set to true /// () using the specified . /// /// The local URL to redirect to. @@ -507,7 +507,7 @@ public virtual RedirectToActionResult RedirectToAction(string? actionName) => RedirectToAction(actionName, routeValues: null); /// - /// Redirects () to the specified action using the + /// Redirects () to the specified action using the /// and . /// /// The name of the action. @@ -518,7 +518,7 @@ public virtual RedirectToActionResult RedirectToAction(string? actionName, objec => RedirectToAction(actionName, controllerName: null, routeValues: routeValues); /// - /// Redirects () to the specified action using the + /// Redirects () to the specified action using the /// and the . /// /// The name of the action. @@ -581,15 +581,15 @@ public virtual RedirectToActionResult RedirectToAction( } /// - /// Redirects () to the specified action with - /// set to false and - /// set to true, using the specified , , + /// Redirects () to the specified action with + /// set to false and + /// set to true, using the specified , , /// , and . /// /// The name of the action. /// The name of the controller. /// The route data to use for generating the URL. - /// The fragment to add to the URL. + /// The fragment to add to the URL. /// The created for the response. [NonAction] public virtual RedirectToActionResult RedirectToActionPreserveMethod( @@ -611,7 +611,7 @@ public virtual RedirectToActionResult RedirectToActionPreserveMethod( } /// - /// Redirects () to the specified action with + /// Redirects () to the specified action with /// set to true using the specified . /// /// The name of the action. @@ -621,8 +621,8 @@ public virtual RedirectToActionResult RedirectToActionPermanent(string? actionNa => RedirectToActionPermanent(actionName, routeValues: null); /// - /// Redirects () to the specified action with - /// set to true using the specified + /// Redirects () to the specified action with + /// set to true using the specified /// and . /// /// The name of the action. @@ -633,8 +633,8 @@ public virtual RedirectToActionResult RedirectToActionPermanent(string? actionNa => RedirectToActionPermanent(actionName, controllerName: null, routeValues: routeValues); /// - /// Redirects () to the specified action with - /// set to true using the specified + /// Redirects () to the specified action with + /// set to true using the specified /// and . /// /// The name of the action. @@ -645,7 +645,7 @@ public virtual RedirectToActionResult RedirectToActionPermanent(string? actionNa => RedirectToActionPermanent(actionName, controllerName, routeValues: null); /// - /// Redirects () to the specified action with + /// Redirects () to the specified action with /// set to true using the specified , /// , and . /// @@ -661,7 +661,7 @@ public virtual RedirectToActionResult RedirectToActionPermanent( => RedirectToActionPermanent(actionName, controllerName, routeValues: null, fragment: fragment); /// - /// Redirects () to the specified action with + /// Redirects () to the specified action with /// set to true using the specified , /// , and . /// @@ -677,7 +677,7 @@ public virtual RedirectToActionResult RedirectToActionPermanent( => RedirectToActionPermanent(actionName, controllerName, routeValues, fragment: null); /// - /// Redirects () to the specified action with + /// Redirects () to the specified action with /// set to true using the specified , /// , , and . /// @@ -705,16 +705,16 @@ public virtual RedirectToActionResult RedirectToActionPermanent( } /// - /// Redirects () to the specified action with + /// Redirects () to the specified action with /// set to true and - /// set to true, using the specified , , + /// set to true, using the specified , , /// , and . /// /// The name of the action. /// The name of the controller. /// The route data to use for generating the URL. /// The fragment to add to the URL. - /// The created for the response. + /// The created for the response. [NonAction] public virtual RedirectToActionResult RedirectToActionPermanentPreserveMethod( string? actionName = null, @@ -795,14 +795,14 @@ public virtual RedirectToRouteResult RedirectToRoute( } /// - /// Redirects () to the specified route with + /// Redirects () to the specified route with /// set to false and /// set to true, using the specified , , and . /// /// The name of the route. /// The route data to use for generating the URL. /// The fragment to add to the URL. - /// The created for the response. + /// The created for the response. [NonAction] public virtual RedirectToRouteResult RedirectToRoutePreserveMethod( string? routeName = null, @@ -821,7 +821,7 @@ public virtual RedirectToRouteResult RedirectToRoutePreserveMethod( } /// - /// Redirects () to the specified route with + /// Redirects () to the specified route with /// set to true using the specified . /// /// The name of the route. @@ -831,7 +831,7 @@ public virtual RedirectToRouteResult RedirectToRoutePermanent(string? routeName) => RedirectToRoutePermanent(routeName, routeValues: null); /// - /// Redirects () to the specified route with + /// Redirects () to the specified route with /// set to true using the specified . /// /// The parameters for a route. @@ -853,7 +853,7 @@ public virtual RedirectToRouteResult RedirectToRoutePermanent(string? routeName, => RedirectToRoutePermanent(routeName, routeValues, fragment: null); /// - /// Redirects () to the specified route with + /// Redirects () to the specified route with /// set to true using the specified /// and . /// @@ -893,7 +893,7 @@ public virtual RedirectToRouteResult RedirectToRoutePermanent( /// The name of the route. /// The route data to use for generating the URL. /// The fragment to add to the URL. - /// The created for the response. + /// The created for the response. [NonAction] public virtual RedirectToRouteResult RedirectToRoutePermanentPreserveMethod( string? routeName = null, @@ -1039,7 +1039,7 @@ public virtual RedirectToPageResult RedirectToPagePermanent( => new RedirectToPageResult(pageName, pageHandler, routeValues, permanent: true, fragment: fragment); /// - /// Redirects () to the specified page with + /// Redirects () to the specified page with /// set to false and /// set to true, using the specified , , and . /// @@ -1047,7 +1047,7 @@ public virtual RedirectToPageResult RedirectToPagePermanent( /// The page handler to redirect to. /// The route data to use for generating the URL. /// The fragment to add to the URL. - /// The created for the response. + /// The created for the response. [NonAction] public virtual RedirectToPageResult RedirectToPagePreserveMethod( string pageName, @@ -1078,7 +1078,7 @@ public virtual RedirectToPageResult RedirectToPagePreserveMethod( /// The page handler to redirect to. /// The route data to use for generating the URL. /// The fragment to add to the URL. - /// The created for the response. + /// The created for the response. [NonAction] public virtual RedirectToPageResult RedirectToPagePermanentPreserveMethod( string pageName, @@ -1163,7 +1163,7 @@ public virtual FileContentResult File(byte[] fileContents, string contentType, s }; /// - /// Returns a file with the specified as content (), + /// Returns a file with the specified as content (), /// and the specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1184,7 +1184,7 @@ public virtual FileContentResult File(byte[] fileContents, string contentType, D } /// - /// Returns a file with the specified as content (), + /// Returns a file with the specified as content (), /// and the specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1207,7 +1207,7 @@ public virtual FileContentResult File(byte[] fileContents, string contentType, D } /// - /// Returns a file with the specified as content (), the + /// Returns a file with the specified as content (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1230,7 +1230,7 @@ public virtual FileContentResult File(byte[] fileContents, string contentType, s } /// - /// Returns a file with the specified as content (), the + /// Returns a file with the specified as content (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1255,7 +1255,7 @@ public virtual FileContentResult File(byte[] fileContents, string contentType, s } /// - /// Returns a file in the specified (), with the + /// Returns a file in the specified (), with the /// specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1271,7 +1271,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType) => File(fileStream, contentType, fileDownloadName: null); /// - /// Returns a file in the specified (), with the + /// Returns a file in the specified (), with the /// specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1282,7 +1282,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType) /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, bool enableRangeProcessing) => File(fileStream, contentType, fileDownloadName: null, enableRangeProcessing: enableRangeProcessing); @@ -1300,7 +1300,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, bool /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, string? fileDownloadName) => new FileStreamResult(fileStream, contentType) { FileDownloadName = fileDownloadName }; @@ -1319,7 +1319,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, stri /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, string? fileDownloadName, bool enableRangeProcessing) => new FileStreamResult(fileStream, contentType) @@ -1329,7 +1329,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, stri }; /// - /// Returns a file in the specified (), + /// Returns a file in the specified (), /// and the specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1341,7 +1341,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, stri /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag) { @@ -1353,7 +1353,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, Date } /// - /// Returns a file in the specified (), + /// Returns a file in the specified (), /// and the specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1366,7 +1366,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, Date /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing) { @@ -1379,7 +1379,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, Date } /// - /// Returns a file in the specified (), the + /// Returns a file in the specified (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1392,7 +1392,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, Date /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag) { @@ -1405,7 +1405,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, stri } /// - /// Returns a file in the specified (), the + /// Returns a file in the specified (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1419,7 +1419,7 @@ public virtual FileStreamResult File(Stream fileStream, string contentType, stri /// The created for the response. /// /// The parameter is disposed after the response is sent. - /// + /// [NonAction] public virtual FileStreamResult File(Stream fileStream, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing) { @@ -1495,7 +1495,7 @@ public virtual VirtualFileResult File(string virtualPath, string contentType, st }; /// - /// Returns the file specified by (), and the + /// Returns the file specified by (), and the /// specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1516,7 +1516,7 @@ public virtual VirtualFileResult File(string virtualPath, string contentType, Da } /// - /// Returns the file specified by (), and the + /// Returns the file specified by (), and the /// specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1539,7 +1539,7 @@ public virtual VirtualFileResult File(string virtualPath, string contentType, Da } /// - /// Returns the file specified by (), the + /// Returns the file specified by (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1562,7 +1562,7 @@ public virtual VirtualFileResult File(string virtualPath, string contentType, st } /// - /// Returns the file specified by (), the + /// Returns the file specified by (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1656,7 +1656,7 @@ public virtual PhysicalFileResult PhysicalFile( }; /// - /// Returns the file specified by (), and + /// Returns the file specified by (), and /// the specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1677,7 +1677,7 @@ public virtual PhysicalFileResult PhysicalFile(string physicalPath, string conte } /// - /// Returns the file specified by (), and + /// Returns the file specified by (), and /// the specified as the Content-Type. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1700,7 +1700,7 @@ public virtual PhysicalFileResult PhysicalFile(string physicalPath, string conte } /// - /// Returns the file specified by (), the + /// Returns the file specified by (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1723,7 +1723,7 @@ public virtual PhysicalFileResult PhysicalFile(string physicalPath, string conte } /// - /// Returns the file specified by (), the + /// Returns the file specified by (), the /// specified as the Content-Type, and the specified as the suggested file name. /// This supports range requests ( or /// if the range is not satisfiable). @@ -1963,7 +1963,7 @@ public virtual ActionResult ValidationProblem() /// The status code. /// The value for . /// The value for . - /// The . + /// The . /// When uses . /// The created for the response. [NonAction] @@ -2398,7 +2398,7 @@ public virtual ForbidResult Forbid(params string[] authenticationSchemes) /// challenge. /// The created for the response. /// - /// Some authentication schemes, such as cookies, will convert to + /// Some authentication schemes, such as cookies, will convert to /// a redirect to show a login page. /// [NonAction] @@ -2406,7 +2406,7 @@ public virtual ForbidResult Forbid(AuthenticationProperties properties) => new ForbidResult(properties); /// - /// Creates a ( by default) with the + /// Creates a ( by default) with the /// specified authentication schemes and . /// /// used to perform the authentication diff --git a/src/Mvc/Mvc.Core/src/ControllerContext.cs b/src/Mvc/Mvc.Core/src/ControllerContext.cs index 2ec174ec11c5..b7637918fefd 100644 --- a/src/Mvc/Mvc.Core/src/ControllerContext.cs +++ b/src/Mvc/Mvc.Core/src/ControllerContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ControllerContextAttribute.cs b/src/Mvc/Mvc.Core/src/ControllerContextAttribute.cs index d2210420ba81..87f3722292fd 100644 --- a/src/Mvc/Mvc.Core/src/ControllerContextAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ControllerContextAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerActionDescriptor.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerActionDescriptor.cs index df14307988fb..c3228b891e3b 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerActionDescriptor.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerActionDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Core/src/Controllers/ControllerActivatorProvider.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerActivatorProvider.cs index f3f25c1dd62d..02c6a3e1f11d 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerActivatorProvider.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegate.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegate.cs index 101bb0cabb3e..412810d6e95c 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegate.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegateProvider.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegateProvider.cs index 3d1b0743e32d..415df1078993 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegateProvider.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerBinderDelegateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerBoundPropertyDescriptor.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerBoundPropertyDescriptor.cs index 62b5a2e6f1b6..a43967ec1ef4 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerBoundPropertyDescriptor.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerBoundPropertyDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerFactoryProvider.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerFactoryProvider.cs index 513a4a2fa4a7..6fc11352775b 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerFactoryProvider.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerFeature.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerFeature.cs index e3c8eaafc509..8fc2ea98025a 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerFeature.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerFeatureProvider.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerFeatureProvider.cs index caff2fc22b9c..749a7fecb71e 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerFeatureProvider.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ControllerParameterDescriptor.cs b/src/Mvc/Mvc.Core/src/Controllers/ControllerParameterDescriptor.cs index 0e1c01c0bb11..abb58f9024f0 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ControllerParameterDescriptor.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ControllerParameterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerActivator.cs b/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerActivator.cs index 013c4eca7853..dfdd661577d4 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerActivator.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerFactory.cs b/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerFactory.cs index b520d4871a72..d32ca0c50289 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerFactory.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerPropertyActivator.cs b/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerPropertyActivator.cs index b246f143e7db..d04d2d815375 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerPropertyActivator.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/DefaultControllerPropertyActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Core/src/Controllers/IControllerActivator.cs b/src/Mvc/Mvc.Core/src/Controllers/IControllerActivator.cs index 0fb0feacc169..f75651ae6e64 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/IControllerActivator.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/IControllerActivator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Core/src/Controllers/IControllerActivatorProvider.cs b/src/Mvc/Mvc.Core/src/Controllers/IControllerActivatorProvider.cs index 00a911c7802f..18ae6c795670 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/IControllerActivatorProvider.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/IControllerActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/IControllerFactory.cs b/src/Mvc/Mvc.Core/src/Controllers/IControllerFactory.cs index 1fc5897921b6..6a112a93176d 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/IControllerFactory.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/IControllerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Core/src/Controllers/IControllerFactoryProvider.cs b/src/Mvc/Mvc.Core/src/Controllers/IControllerFactoryProvider.cs index 8076487697e2..16a1aa7324ea 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/IControllerFactoryProvider.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/IControllerFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Controllers/IControllerPropertyActivatorFactory.cs b/src/Mvc/Mvc.Core/src/Controllers/IControllerPropertyActivatorFactory.cs index 95d9cff4a5f3..e62f7278295d 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/IControllerPropertyActivatorFactory.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/IControllerPropertyActivatorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Controllers/ServiceBasedControllerActivator.cs b/src/Mvc/Mvc.Core/src/Controllers/ServiceBasedControllerActivator.cs index 663a31daa0b9..e06d0065afd1 100644 --- a/src/Mvc/Mvc.Core/src/Controllers/ServiceBasedControllerActivator.cs +++ b/src/Mvc/Mvc.Core/src/Controllers/ServiceBasedControllerActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Mvc/Mvc.Core/src/CreatedAtActionResult.cs b/src/Mvc/Mvc.Core/src/CreatedAtActionResult.cs index 0e0a22cb98e3..bd28d01f7e12 100644 --- a/src/Mvc/Mvc.Core/src/CreatedAtActionResult.cs +++ b/src/Mvc/Mvc.Core/src/CreatedAtActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/CreatedAtRouteResult.cs b/src/Mvc/Mvc.Core/src/CreatedAtRouteResult.cs index 93d4cdc89723..283775ecddf8 100644 --- a/src/Mvc/Mvc.Core/src/CreatedAtRouteResult.cs +++ b/src/Mvc/Mvc.Core/src/CreatedAtRouteResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/CreatedResult.cs b/src/Mvc/Mvc.Core/src/CreatedResult.cs index 7c695c256a13..054d87ad47a1 100644 --- a/src/Mvc/Mvc.Core/src/CreatedResult.cs +++ b/src/Mvc/Mvc.Core/src/CreatedResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/DefaultApiConventions.cs b/src/Mvc/Mvc.Core/src/DefaultApiConventions.cs index c8eaad6b3b25..801a489cb7d8 100644 --- a/src/Mvc/Mvc.Core/src/DefaultApiConventions.cs +++ b/src/Mvc/Mvc.Core/src/DefaultApiConventions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ApiExplorer; @@ -84,7 +84,7 @@ public static void Put( [ApiConventionNameMatch(ApiConventionNameMatchBehavior.Suffix)] [ApiConventionTypeMatch(ApiConventionTypeMatchBehavior.Any)] object id, - + [ApiConventionNameMatch(ApiConventionNameMatchBehavior.Any)] [ApiConventionTypeMatch(ApiConventionTypeMatchBehavior.Any)] object model) { } diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/ApiBehaviorOptionsSetup.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/ApiBehaviorOptionsSetup.cs index 1f2fcbdda6fc..8ca3ba62cc41 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/ApiBehaviorOptionsSetup.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/ApiBehaviorOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Extensions; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/ApplicationModelConventionExtensions.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/ApplicationModelConventionExtensions.cs index 15f25d474c87..466603128fd7 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/ApplicationModelConventionExtensions.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/ApplicationModelConventionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcBuilder.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcBuilder.cs index c1419690a4e6..b833f22b13ef 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcBuilder.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcCoreBuilder.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcCoreBuilder.cs index 9263ebb51426..5d772327c6fd 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcCoreBuilder.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/IMvcCoreBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcBuilder.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcBuilder.cs index 2a339145df81..80d810752e90 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcBuilder.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreBuilder.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreBuilder.cs index b6674f65207b..0fa10973fff2 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreBuilder.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcBuilderExtensions.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcBuilderExtensions.cs index d38baf66b48d..cfeb66f985ee 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcCoreBuilderExtensions.cs index a55675281b53..2c0f896d55f1 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreRouteOptionsSetup.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreRouteOptionsSetup.cs index 85af370d9f8d..f85383e35a98 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreRouteOptionsSetup.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreRouteOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreServiceCollectionExtensions.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreServiceCollectionExtensions.cs index aaff9415150f..620174d081a5 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreServiceCollectionExtensions.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcMarkerService.cs b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcMarkerService.cs index 337a1baca5ce..153f01a56417 100644 --- a/src/Mvc/Mvc.Core/src/DependencyInjection/MvcMarkerService.cs +++ b/src/Mvc/Mvc.Core/src/DependencyInjection/MvcMarkerService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/Mvc/Mvc.Core/src/Diagnostics/EventData.cs b/src/Mvc/Mvc.Core/src/Diagnostics/EventData.cs index 3772e93653f3..c7d1a89c44d9 100644 --- a/src/Mvc/Mvc.Core/src/Diagnostics/EventData.cs +++ b/src/Mvc/Mvc.Core/src/Diagnostics/EventData.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs index 7d818fdaf03e..9ac27aca38f2 100644 --- a/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.Core/src/Diagnostics/MvcDiagnostics.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/DisableRequestSizeLimitAttribute.cs b/src/Mvc/Mvc.Core/src/DisableRequestSizeLimitAttribute.cs index 0c327e28a655..c5cee18610a2 100644 --- a/src/Mvc/Mvc.Core/src/DisableRequestSizeLimitAttribute.cs +++ b/src/Mvc/Mvc.Core/src/DisableRequestSizeLimitAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/EmptyResult.cs b/src/Mvc/Mvc.Core/src/EmptyResult.cs index dbe278e7a487..8378e5e3f04a 100644 --- a/src/Mvc/Mvc.Core/src/EmptyResult.cs +++ b/src/Mvc/Mvc.Core/src/EmptyResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/Mvc.Core/src/FileContentResult.cs b/src/Mvc/Mvc.Core/src/FileContentResult.cs index 7fcb8729112f..7146699eb468 100644 --- a/src/Mvc/Mvc.Core/src/FileContentResult.cs +++ b/src/Mvc/Mvc.Core/src/FileContentResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/FileResult.cs b/src/Mvc/Mvc.Core/src/FileResult.cs index 8f5d9b86d3b9..770d40703a22 100644 --- a/src/Mvc/Mvc.Core/src/FileResult.cs +++ b/src/Mvc/Mvc.Core/src/FileResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/FileStreamResult.cs b/src/Mvc/Mvc.Core/src/FileStreamResult.cs index ba358eeb09c4..ddddfcc783eb 100644 --- a/src/Mvc/Mvc.Core/src/FileStreamResult.cs +++ b/src/Mvc/Mvc.Core/src/FileStreamResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/Filters/ActionFilterAttribute.cs b/src/Mvc/Mvc.Core/src/Filters/ActionFilterAttribute.cs index efb06d56ce0c..a6412a9706a0 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ActionFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ActionFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/ControllerActionFilter.cs b/src/Mvc/Mvc.Core/src/Filters/ControllerActionFilter.cs index c169d8173c21..787693f1c49f 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ControllerActionFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ControllerActionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/ControllerResultFilter.cs b/src/Mvc/Mvc.Core/src/Filters/ControllerResultFilter.cs index 3352c92a9d2a..c86034c78842 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ControllerResultFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ControllerResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/DefaultFilterProvider.cs b/src/Mvc/Mvc.Core/src/Filters/DefaultFilterProvider.cs index fd0556f96138..60a77d7083b3 100644 --- a/src/Mvc/Mvc.Core/src/Filters/DefaultFilterProvider.cs +++ b/src/Mvc/Mvc.Core/src/Filters/DefaultFilterProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Core/src/Filters/DisableRequestSizeLimitFilter.cs b/src/Mvc/Mvc.Core/src/Filters/DisableRequestSizeLimitFilter.cs index 75818a637390..166318783336 100644 --- a/src/Mvc/Mvc.Core/src/Filters/DisableRequestSizeLimitFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/DisableRequestSizeLimitFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Mvc/Mvc.Core/src/Filters/ExceptionFilterAttribute.cs b/src/Mvc/Mvc.Core/src/Filters/ExceptionFilterAttribute.cs index e6efec0d2e24..744a6fb20890 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ExceptionFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ExceptionFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterCollection.cs b/src/Mvc/Mvc.Core/src/Filters/FilterCollection.cs index ca522d769592..fb28b0c30540 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterCollection.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; @@ -95,7 +95,7 @@ public IFilterMetadata Add(Type filterType, int order) Add(filter); return filter; } - + /// /// Adds a type representing a . /// diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterCursor.cs b/src/Mvc/Mvc.Core/src/Filters/FilterCursor.cs index 679a94464795..1bb331684d9d 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterCursor.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterCursor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterCursorItem.cs b/src/Mvc/Mvc.Core/src/Filters/FilterCursorItem.cs index c925d49ab24a..11048e05f545 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterCursorItem.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterCursorItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterDescriptorOrderComparer.cs b/src/Mvc/Mvc.Core/src/Filters/FilterDescriptorOrderComparer.cs index 33256705b605..4ffc44bb1f45 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterDescriptorOrderComparer.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterDescriptorOrderComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterFactory.cs b/src/Mvc/Mvc.Core/src/Filters/FilterFactory.cs index 198c76a240da..fb8bbe16bb46 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterFactory.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterFactoryResult.cs b/src/Mvc/Mvc.Core/src/Filters/FilterFactoryResult.cs index 2f03f4d30567..811d818da7c9 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterFactoryResult.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterFactoryResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/FilterScope.cs b/src/Mvc/Mvc.Core/src/Filters/FilterScope.cs index 54c686f6c9ba..447537335fa1 100644 --- a/src/Mvc/Mvc.Core/src/Filters/FilterScope.cs +++ b/src/Mvc/Mvc.Core/src/Filters/FilterScope.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/IMiddlewareFilterFeature.cs b/src/Mvc/Mvc.Core/src/Filters/IMiddlewareFilterFeature.cs index 40e2f03f9ddb..daf07a6487a2 100644 --- a/src/Mvc/Mvc.Core/src/Filters/IMiddlewareFilterFeature.cs +++ b/src/Mvc/Mvc.Core/src/Filters/IMiddlewareFilterFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/IResponseCacheFilter.cs b/src/Mvc/Mvc.Core/src/Filters/IResponseCacheFilter.cs index 9d430796245b..cf2ba02bd5fd 100644 --- a/src/Mvc/Mvc.Core/src/Filters/IResponseCacheFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/IResponseCacheFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilter.cs b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilter.cs index d84bd188c809..6be3bb7d65a1 100644 --- a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterAttribute.cs b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterAttribute.cs index a3a50e035b2f..a879a55f2654 100644 --- a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilder.cs b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilder.cs index 1e5343c25486..b002a444f72e 100644 --- a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilder.cs +++ b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilderStartupFilter.cs b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilderStartupFilter.cs index 563942e57cd4..1a1f6ca51b87 100644 --- a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilderStartupFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterBuilderStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterConfigurationProvider.cs b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterConfigurationProvider.cs index 559dd32de1e7..16a9f1ae5d27 100644 --- a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterConfigurationProvider.cs +++ b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterConfigurationProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterFeature.cs b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterFeature.cs index 64be942238d5..5f7bb8172838 100644 --- a/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterFeature.cs +++ b/src/Mvc/Mvc.Core/src/Filters/MiddlewareFilterFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.Core/src/Filters/RequestFormLimitsFilter.cs b/src/Mvc/Mvc.Core/src/Filters/RequestFormLimitsFilter.cs index d063c5c55310..8f9b7cfe56cb 100644 --- a/src/Mvc/Mvc.Core/src/Filters/RequestFormLimitsFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/RequestFormLimitsFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Features; diff --git a/src/Mvc/Mvc.Core/src/Filters/RequestSizeLimitFilter.cs b/src/Mvc/Mvc.Core/src/Filters/RequestSizeLimitFilter.cs index 660065e8c97a..12ecdd86ce0a 100644 --- a/src/Mvc/Mvc.Core/src/Filters/RequestSizeLimitFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/RequestSizeLimitFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilter.cs b/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilter.cs index b59000299671..e5584198c40f 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilter.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilterExecutor.cs b/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilterExecutor.cs index c6bbc771a360..367cc75cf7d9 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilterExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ResponseCacheFilterExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/Filters/ResultFilterAttribute.cs b/src/Mvc/Mvc.Core/src/Filters/ResultFilterAttribute.cs index b7ff6806611c..70b57b261642 100644 --- a/src/Mvc/Mvc.Core/src/Filters/ResultFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Filters/ResultFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ForbidResult.cs b/src/Mvc/Mvc.Core/src/ForbidResult.cs index 5418f7685edd..10fb91838308 100644 --- a/src/Mvc/Mvc.Core/src/ForbidResult.cs +++ b/src/Mvc/Mvc.Core/src/ForbidResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/FormatFilterAttribute.cs b/src/Mvc/Mvc.Core/src/FormatFilterAttribute.cs index dab307f89ddd..ea3c9b2b7dc7 100644 --- a/src/Mvc/Mvc.Core/src/FormatFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FormatFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/Formatters/AcceptHeaderParser.cs b/src/Mvc/Mvc.Core/src/Formatters/AcceptHeaderParser.cs index 16e26b21657c..2928a83f0cd2 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/AcceptHeaderParser.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/AcceptHeaderParser.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Formatters/FormatFilter.cs b/src/Mvc/Mvc.Core/src/Formatters/FormatFilter.cs index 059a5a14d7f5..db155d3e7d7a 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/FormatFilter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/FormatFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/src/Formatters/FormatterMappings.cs b/src/Mvc/Mvc.Core/src/Formatters/FormatterMappings.cs index ccc1d6b48c82..5b6487391c02 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/FormatterMappings.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/FormatterMappings.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Formatters/HttpNoContentOutputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/HttpNoContentOutputFormatter.cs index 244ffa829e20..c37a36f3e709 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/HttpNoContentOutputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/HttpNoContentOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/Formatters/HttpParseResult.cs b/src/Mvc/Mvc.Core/src/Formatters/HttpParseResult.cs index 71b0f57a7ed3..9969b949d847 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/HttpParseResult.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/HttpParseResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Formatters { diff --git a/src/Mvc/Mvc.Core/src/Formatters/HttpTokenParsingRules.cs b/src/Mvc/Mvc.Core/src/Formatters/HttpTokenParsingRules.cs index b7ad2fada752..df6d7d8e873e 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/HttpTokenParsingRules.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/HttpTokenParsingRules.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Text; diff --git a/src/Mvc/Mvc.Core/src/Formatters/IFormatFilter.cs b/src/Mvc/Mvc.Core/src/Formatters/IFormatFilter.cs index 6e49bbb3103c..db3c5eb481e7 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/IFormatFilter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/IFormatFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/Formatters/InputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/InputFormatter.cs index ce31d6e46bba..b997834cfd71 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/InputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/InputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Formatters/MediaType.cs b/src/Mvc/Mvc.Core/src/Formatters/MediaType.cs index 58ba5ac4187b..b7004ca2dd59 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/MediaType.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/MediaType.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/src/Formatters/MediaTypeCollection.cs b/src/Mvc/Mvc.Core/src/Formatters/MediaTypeCollection.cs index a596862b361e..9c1e3d5cf236 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/MediaTypeCollection.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/MediaTypeCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters public class MediaTypeCollection : Collection { /// - /// Adds an object to the end of the . + /// Adds an object to the end of the . /// /// The media type to be added to the end of the . public void Add(MediaTypeHeaderValue item) @@ -51,7 +51,7 @@ public void Insert(int index, MediaTypeHeaderValue item) /// /// /// if is successfully removed; otherwise, . - /// This method also returns if was not found in the original + /// This method also returns if was not found in the original /// . public bool Remove(MediaTypeHeaderValue item) { diff --git a/src/Mvc/Mvc.Core/src/Formatters/MediaTypeHeaderValues.cs b/src/Mvc/Mvc.Core/src/Formatters/MediaTypeHeaderValues.cs index 8d1eaae71708..3758b00fbfbb 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/MediaTypeHeaderValues.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/MediaTypeHeaderValues.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Net.Http.Headers; diff --git a/src/Mvc/Mvc.Core/src/Formatters/MediaTypeSegmentWithQuality.cs b/src/Mvc/Mvc.Core/src/Formatters/MediaTypeSegmentWithQuality.cs index 66714ae17bdf..302efb8c752d 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/MediaTypeSegmentWithQuality.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/MediaTypeSegmentWithQuality.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Mvc/Mvc.Core/src/Formatters/OutputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/OutputFormatter.cs index 4f30c0cd1b02..336e842505cd 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/OutputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/OutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -49,7 +49,7 @@ protected virtual bool CanWriteType(Type? type) { return null; } - + List? mediaTypes = null; var parsedContentType = contentType != null ? new MediaType(contentType) : default(MediaType); diff --git a/src/Mvc/Mvc.Core/src/Formatters/StreamOutputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/StreamOutputFormatter.cs index fe95c27ffce3..5e3d9ebb97f4 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/StreamOutputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/StreamOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/src/Formatters/StringOutputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/StringOutputFormatter.cs index 23d00c5608c9..640f357af160 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/StringOutputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/StringOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonInputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonInputFormatter.cs index 37e78b7ca9d1..50c040ca5dbc 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonInputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -161,7 +161,7 @@ static Log() "JSON input formatter succeeded, deserializing to type '{TypeName}'"); } - public static void JsonInputException(ILogger logger, Exception exception) + public static void JsonInputException(ILogger logger, Exception exception) => _jsonInputFormatterException(logger, exception.Message, exception); public static void JsonInputSuccess(ILogger logger, Type modelType) diff --git a/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonOutputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonOutputFormatter.cs index 0c60b0efcd9e..e372782b3b91 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonOutputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.ExceptionServices; diff --git a/src/Mvc/Mvc.Core/src/Formatters/TextInputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/TextInputFormatter.cs index a4dc61ce9a3d..9da4e1e74f39 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/TextInputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/TextInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Formatters/TextOutputFormatter.cs b/src/Mvc/Mvc.Core/src/Formatters/TextOutputFormatter.cs index a601361f48a1..35282214f139 100644 --- a/src/Mvc/Mvc.Core/src/Formatters/TextOutputFormatter.cs +++ b/src/Mvc/Mvc.Core/src/Formatters/TextOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/FromBodyAttribute.cs b/src/Mvc/Mvc.Core/src/FromBodyAttribute.cs index c3d1b46f3ddc..7ce2c753563a 100644 --- a/src/Mvc/Mvc.Core/src/FromBodyAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FromBodyAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Core/src/FromFormAttribute.cs b/src/Mvc/Mvc.Core/src/FromFormAttribute.cs index 9be8b34fc539..639cffbdbb7e 100644 --- a/src/Mvc/Mvc.Core/src/FromFormAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FromFormAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Metadata; diff --git a/src/Mvc/Mvc.Core/src/FromHeaderAttribute.cs b/src/Mvc/Mvc.Core/src/FromHeaderAttribute.cs index e152adbfcba3..c45f7ec564fa 100644 --- a/src/Mvc/Mvc.Core/src/FromHeaderAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FromHeaderAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Metadata; diff --git a/src/Mvc/Mvc.Core/src/FromQueryAttribute.cs b/src/Mvc/Mvc.Core/src/FromQueryAttribute.cs index 65bc452e7270..ab273c8b952f 100644 --- a/src/Mvc/Mvc.Core/src/FromQueryAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FromQueryAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Metadata; diff --git a/src/Mvc/Mvc.Core/src/FromRouteAttribute.cs b/src/Mvc/Mvc.Core/src/FromRouteAttribute.cs index bb70451fef91..359772462223 100644 --- a/src/Mvc/Mvc.Core/src/FromRouteAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FromRouteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/FromServicesAttribute.cs b/src/Mvc/Mvc.Core/src/FromServicesAttribute.cs index 41c993429383..26c8f177fdd6 100644 --- a/src/Mvc/Mvc.Core/src/FromServicesAttribute.cs +++ b/src/Mvc/Mvc.Core/src/FromServicesAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http.Metadata; diff --git a/src/Mvc/Mvc.Core/src/HotReload/HotReloadService.cs b/src/Mvc/Mvc.Core/src/HotReload/HotReloadService.cs index 5a51d338956c..a063083ad0ad 100644 --- a/src/Mvc/Mvc.Core/src/HotReload/HotReloadService.cs +++ b/src/Mvc/Mvc.Core/src/HotReload/HotReloadService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection.Metadata; diff --git a/src/Mvc/Mvc.Core/src/HttpDeleteAttribute.cs b/src/Mvc/Mvc.Core/src/HttpDeleteAttribute.cs index 5ad70affeb39..283f876fdf90 100644 --- a/src/Mvc/Mvc.Core/src/HttpDeleteAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpDeleteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/HttpGetAttribute.cs b/src/Mvc/Mvc.Core/src/HttpGetAttribute.cs index ada829e31bab..da8d2d3dbe57 100644 --- a/src/Mvc/Mvc.Core/src/HttpGetAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpGetAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/HttpHeadAttribute.cs b/src/Mvc/Mvc.Core/src/HttpHeadAttribute.cs index dc021177d5b5..b3e8cee513bf 100644 --- a/src/Mvc/Mvc.Core/src/HttpHeadAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpHeadAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/HttpOptionsAttribute.cs b/src/Mvc/Mvc.Core/src/HttpOptionsAttribute.cs index f52ba3359c65..8cb193426e72 100644 --- a/src/Mvc/Mvc.Core/src/HttpOptionsAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpOptionsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/HttpPatchAttribute.cs b/src/Mvc/Mvc.Core/src/HttpPatchAttribute.cs index 33639f2bec54..0c2e2c9918e1 100644 --- a/src/Mvc/Mvc.Core/src/HttpPatchAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpPatchAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/HttpPostAttribute.cs b/src/Mvc/Mvc.Core/src/HttpPostAttribute.cs index 992ea0f615e1..31c30a7e6a7c 100644 --- a/src/Mvc/Mvc.Core/src/HttpPostAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpPostAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/HttpPutAttribute.cs b/src/Mvc/Mvc.Core/src/HttpPutAttribute.cs index eb018395bf8b..22a21ac2fd8f 100644 --- a/src/Mvc/Mvc.Core/src/HttpPutAttribute.cs +++ b/src/Mvc/Mvc.Core/src/HttpPutAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/IDesignTimeMvcBuilderConfiguration.cs b/src/Mvc/Mvc.Core/src/IDesignTimeMvcBuilderConfiguration.cs index 312642b052c0..84e418a1e35e 100644 --- a/src/Mvc/Mvc.Core/src/IDesignTimeMvcBuilderConfiguration.cs +++ b/src/Mvc/Mvc.Core/src/IDesignTimeMvcBuilderConfiguration.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; diff --git a/src/Mvc/Mvc.Core/src/IRequestFormLimitsPolicy.cs b/src/Mvc/Mvc.Core/src/IRequestFormLimitsPolicy.cs index c55608d59d87..a3ad987246cf 100644 --- a/src/Mvc/Mvc.Core/src/IRequestFormLimitsPolicy.cs +++ b/src/Mvc/Mvc.Core/src/IRequestFormLimitsPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/IRequestSizePolicy.cs b/src/Mvc/Mvc.Core/src/IRequestSizePolicy.cs index 6005da9b9b8e..bad3450c9344 100644 --- a/src/Mvc/Mvc.Core/src/IRequestSizePolicy.cs +++ b/src/Mvc/Mvc.Core/src/IRequestSizePolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionContextAccessor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionContextAccessor.cs index fb2ff2614f0a..dfafa1eb121a 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionContextAccessor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionContextAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollection.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollection.cs index 7e694ad21e5c..e9191f0e5a96 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollection.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollection.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollectionProvider.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollectionProvider.cs index 01647fb7b9b5..c0baa60e1257 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollectionProvider.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionDescriptorCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionInvokerFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionInvokerFactory.cs index 92e9d14126af..6befa5eda1f8 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionInvokerFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionInvokerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionMethodExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionMethodExecutor.cs index 94b376bb9e41..d40c61ae88d6 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionMethodExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionMethodExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultObjectValueAttribute.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultObjectValueAttribute.cs index 6cf787f582f9..8ad064fedf4c 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultObjectValueAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultObjectValueAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs index 089c00a2e2a5..2f95e0e276ed 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultTypeMapper.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultTypeMapper.cs index ca6748a57267..21ab4b47d4bc 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultTypeMapper.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultTypeMapper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelectionTable.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelectionTable.cs index 07d19dd735b9..6202f9bff0b2 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelectionTable.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelectionTable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure internal class ActionSelectionTable { private ActionSelectionTable( - int version, + int version, string[] routeKeys, Dictionary> ordinalEntries, Dictionary> ordinalIgnoreCaseEntries) @@ -49,7 +49,7 @@ private ActionSelectionTable( OrdinalEntries = ordinalEntries; OrdinalIgnoreCaseEntries = ordinalIgnoreCaseEntries; } - + public int Version { get; } private string[] RouteKeys { get; } @@ -80,11 +80,11 @@ public static ActionSelectionTable Create(ActionDescriptorColl public static ActionSelectionTable Create(IEnumerable endpoints) { return CreateCore( - + // we don't use version for endpoints - version: 0, + version: 0, - // Exclude RouteEndpoints - we only process inert endpoints here. + // Exclude RouteEndpoints - we only process inert endpoints here. items: endpoints.Where(e => { return e.GetType() == typeof(Endpoint); @@ -104,7 +104,7 @@ private static ActionSelectionTable CreateCore( IEnumerable items, Func?> getRouteKeys, Func getRouteValue) - { + { // We need to build two maps for all of the route values. var ordinalEntries = new Dictionary>(StringArrayComparer.Ordinal); var ordinalIgnoreCaseEntries = new Dictionary>(StringArrayComparer.OrdinalIgnoreCase); diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelector.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelector.cs index d8ca83de0f15..adf6ba886219 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelector.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/AmbiguousActionException.cs b/src/Mvc/Mvc.Core/src/Infrastructure/AmbiguousActionException.cs index 82b1d60bfe64..a9074ad04e8a 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/AmbiguousActionException.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/AmbiguousActionException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/AsyncEnumerableReader.cs b/src/Mvc/Mvc.Core/src/Infrastructure/AsyncEnumerableReader.cs index 4cd5b546ed27..3f8f1431c736 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/AsyncEnumerableReader.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/AsyncEnumerableReader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilter.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilter.cs index 127f69a88bbd..fa05ae87a339 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilter.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilterFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilterFactory.cs index d3817d1bd012..a6d896ed89f1 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilterFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ClientErrorResultFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/CompatibilitySwitch.cs b/src/Mvc/Mvc.Core/src/Infrastructure/CompatibilitySwitch.cs index 0c070ecbe4b8..cf74b1348178 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/CompatibilitySwitch.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/CompatibilitySwitch.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Options; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ConfigureCompatibilityOptions.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ConfigureCompatibilityOptions.cs index 844e92190437..cbf1252d52b9 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ConfigureCompatibilityOptions.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ConfigureCompatibilityOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ContentResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ContentResultExecutor.cs index 6dd8c0b19ae6..75bbf55d6cf8 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ContentResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ContentResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvoker.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvoker.cs index 6ad1e30a6d1c..d3f8d9455f01 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvoker.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvoker.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCache.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCache.cs index 74bb34db4e62..ff2f01253049 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCache.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCacheEntry.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCacheEntry.cs index d74174b91fd3..eb61a482a175 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCacheEntry.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerCacheEntry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerProvider.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerProvider.cs index 3fa37f7f6f3f..dd576bf2c8ad 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerProvider.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvokerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/CopyOnWriteList.cs b/src/Mvc/Mvc.Core/src/Infrastructure/CopyOnWriteList.cs index ea876a37f57d..2ce7663f6a72 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/CopyOnWriteList.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/CopyOnWriteList.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs index 22be6e03d7b2..699400b50614 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultActionDescriptorCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultOutputFormatterSelector.cs b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultOutputFormatterSelector.cs index f2a03415141a..7a68c3700908 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultOutputFormatterSelector.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultOutputFormatterSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultProblemDetailsFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultProblemDetailsFactory.cs index 863b713903c2..fed8438f4091 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultProblemDetailsFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultProblemDetailsFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultStatusCodeAttribute.cs b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultStatusCodeAttribute.cs index c47920026fd1..0e269b9a58d4 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/DefaultStatusCodeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/DefaultStatusCodeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/FileContentResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/FileContentResultExecutor.cs index a6d7f937e7be..de31df8e5b7f 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/FileContentResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/FileContentResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure { /// - /// A + /// A /// public class FileContentResultExecutor : FileResultExecutorBase, IActionResultExecutor { diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/FileResultExecutorBase.cs b/src/Mvc/Mvc.Core/src/Infrastructure/FileResultExecutorBase.cs index 3d0e63e6d573..bbe9f14866f5 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/FileResultExecutorBase.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/FileResultExecutorBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/FileStreamResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/FileStreamResultExecutor.cs index ce6295cf0f51..d6b0c14ab4c7 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/FileStreamResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/FileStreamResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionContextAccessor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionContextAccessor.cs index 3a153203e73f..c6468463ae87 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionContextAccessor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionContextAccessor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorChangeProvider.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorChangeProvider.cs index ac95355abe2a..8906c62d7a96 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorChangeProvider.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorChangeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure /// . /// /// - /// The change token returned from is only for use inside the MVC infrastructure. + /// The change token returned from is only for use inside the MVC infrastructure. /// Use to be notified of /// changes. /// @@ -25,7 +25,7 @@ public interface IActionDescriptorChangeProvider /// /// The . /// - /// The change token returned from is only for use inside the MVC infrastructure. + /// The change token returned from is only for use inside the MVC infrastructure. /// Use to be notified of /// changes. /// diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorCollectionProvider.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorCollectionProvider.cs index 5979353033ef..ffb9cd854986 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorCollectionProvider.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionDescriptorCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionInvokerFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionInvokerFactory.cs index c86c35627568..34702194efc4 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionInvokerFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionInvokerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure { /// - /// Defines an interface for creating an for the current request. + /// Defines an interface for creating an for the current request. /// /// /// The default implementation creates an by @@ -19,7 +19,7 @@ public interface IActionInvokerFactory { /// /// Creates an for the current request associated with - /// . + /// . /// /// /// The associated with the current request. diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultExecutor.cs index 1b6074884259..140063021141 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultTypeMapper.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultTypeMapper.cs index 2c06dc2f7e0c..78d4e103f2a7 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultTypeMapper.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionResultTypeMapper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure /// for request processing. /// /// - /// The default implementation of this service handles the conversion of + /// The default implementation of this service handles the conversion of /// to an during request /// processing as well as the mapping of to TValue /// during API Explorer processing. diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IActionSelector.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IActionSelector.cs index 3f250fc06ce6..ee14f71b45e3 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IActionSelector.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IActionSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -32,7 +32,7 @@ public interface IActionSelector IReadOnlyList? SelectCandidates(RouteContext context); /// - /// Selects the best candidate from for the + /// Selects the best candidate from for the /// current request associated with . /// /// The associated with the current request. diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IAntiforgeryValidationFailedResult.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IAntiforgeryValidationFailedResult.cs index bfd9022a638a..b314eebb2b69 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IAntiforgeryValidationFailedResult.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IAntiforgeryValidationFailedResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IApiBehaviorMetadata.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IApiBehaviorMetadata.cs index bc9080d589f2..e7581cd20910 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IApiBehaviorMetadata.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IApiBehaviorMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorActionResult.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorActionResult.cs index ee02de3cc0ce..499a1bc6e661 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorActionResult.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorFactory.cs index b69bcbdccdab..f67cd8a28910 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IClientErrorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ICompatibilitySwitch.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ICompatibilitySwitch.cs index 6f723db0e2aa..23b95cedc280 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ICompatibilitySwitch.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ICompatibilitySwitch.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Infrastructure { diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IConvertToActionResult.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IConvertToActionResult.cs index c7ab3d62d678..c8ea10a212a0 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IConvertToActionResult.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IConvertToActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IHttpRequestStreamReaderFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IHttpRequestStreamReaderFactory.cs index 0f5cdf7069e2..d8c93a3e02fc 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IHttpRequestStreamReaderFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IHttpRequestStreamReaderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IHttpResponseStreamWriterFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IHttpResponseStreamWriterFactory.cs index 285ce4416845..beb7216d82e4 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IHttpResponseStreamWriterFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IHttpResponseStreamWriterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IParameterInfoParameterDescriptor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IParameterInfoParameterDescriptor.cs index 7310cff1c5c4..4fe09235633f 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IParameterInfoParameterDescriptor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IParameterInfoParameterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IPropertyInfoParameterDescriptor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IPropertyInfoParameterDescriptor.cs index 115c8f4b4c8b..e5d2151ad737 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IPropertyInfoParameterDescriptor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IPropertyInfoParameterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/IStatusCodeActionResult.cs b/src/Mvc/Mvc.Core/src/Infrastructure/IStatusCodeActionResult.cs index 0cb1e0820efa..b0e90ce8ec44 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/IStatusCodeActionResult.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/IStatusCodeActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ITypeActivatorCache.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ITypeActivatorCache.cs index e703f1119561..7ac68e255ae3 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ITypeActivatorCache.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ITypeActivatorCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/LocalRedirectResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/LocalRedirectResultExecutor.cs index 2584c3f8e24f..f70df527c921 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/LocalRedirectResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/LocalRedirectResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpRequestStreamReaderFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpRequestStreamReaderFactory.cs index a24e0b23a769..8b606b9324d4 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpRequestStreamReaderFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpRequestStreamReaderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpResponseStreamWriterFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpResponseStreamWriterFactory.cs index f68e685a2402..cfb2952f7eb3 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpResponseStreamWriterFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/MemoryPoolHttpResponseStreamWriterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilter.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilter.cs index 77831ece8f3b..f01f7780ce4a 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilter.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilterFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilterFactory.cs index 7b6cfb369f1f..4aee6fa0f41f 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilterFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ModelStateInvalidFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/MvcCompatibilityOptions.cs b/src/Mvc/Mvc.Core/src/Infrastructure/MvcCompatibilityOptions.cs index 126a0e95e0d7..56b3d7c5d4df 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/MvcCompatibilityOptions.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/MvcCompatibilityOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/MvcCoreMvcOptionsSetup.cs b/src/Mvc/Mvc.Core/src/Infrastructure/MvcCoreMvcOptionsSetup.cs index c1da4dec8c39..f301afa6b0b9 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/MvcCoreMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/MvcCoreMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/NonDisposableStream.cs b/src/Mvc/Mvc.Core/src/Infrastructure/NonDisposableStream.cs index 6a7e60ce79b8..c3fc7996fc79 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/NonDisposableStream.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/NonDisposableStream.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ObjectResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ObjectResultExecutor.cs index d1005b9144b7..acdbd90d8139 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ObjectResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ObjectResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProvider.cs b/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProvider.cs index b9015ac20715..b01161d49d41 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProvider.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProviderCache.cs b/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProviderCache.cs index efeffe1330ea..c318ad3b20dc 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProviderCache.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/OrderedEndpointsSequenceProviderCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/OutputFormatterSelector.cs b/src/Mvc/Mvc.Core/src/Infrastructure/OutputFormatterSelector.cs index 77073c1d643f..a5a4a54f1a77 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/OutputFormatterSelector.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/OutputFormatterSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ParameterDefaultValues.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ParameterDefaultValues.cs index dd69a6636366..5974c080b049 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ParameterDefaultValues.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ParameterDefaultValues.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/PhysicalFileResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/PhysicalFileResultExecutor.cs index f295d2769f77..f38a4986115c 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/PhysicalFileResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/PhysicalFileResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsClientErrorFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsClientErrorFactory.cs index b213a4e2fbf5..551c2068cfdc 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsClientErrorFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsClientErrorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsFactory.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsFactory.cs index a2ecb0a330fa..a147b2659aeb 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsFactory.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ProblemDetailsFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectResultExecutor.cs index f982838b7bbd..55d99c77aab1 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToActionResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToActionResultExecutor.cs index 77460bed63ab..d52a4924484d 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToActionResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToActionResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToPageResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToPageResultExecutor.cs index e37450ff04ec..e5054191e5ef 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToPageResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToPageResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToRouteResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToRouteResultExecutor.cs index a00ab6975cc1..6795f50ae935 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToRouteResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/RedirectToRouteResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ResourceInvoker.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ResourceInvoker.cs index e5604a100032..22d408e37481 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ResourceInvoker.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ResourceInvoker.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/StringArrayComparer.cs b/src/Mvc/Mvc.Core/src/Infrastructure/StringArrayComparer.cs index 715b6c489b6f..11aa114808e2 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/StringArrayComparer.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/StringArrayComparer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/SystemTextJsonResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/SystemTextJsonResultExecutor.cs index f572f6f6b2e3..4d2b99d377c9 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/SystemTextJsonResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/SystemTextJsonResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/TypeActivatorCache.cs b/src/Mvc/Mvc.Core/src/Infrastructure/TypeActivatorCache.cs index e822b2a18945..2ba88d286de7 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/TypeActivatorCache.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/TypeActivatorCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ValidationProblemDetailsJsonConverter.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ValidationProblemDetailsJsonConverter.cs index 58908f4cf75c..aa7c6a3bb7fc 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/ValidationProblemDetailsJsonConverter.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/ValidationProblemDetailsJsonConverter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using System.Text.Json.Serialization; diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/VirtualFileResultExecutor.cs b/src/Mvc/Mvc.Core/src/Infrastructure/VirtualFileResultExecutor.cs index 3ec1178cda2d..3b7ed86e64d0 100644 --- a/src/Mvc/Mvc.Core/src/Infrastructure/VirtualFileResultExecutor.cs +++ b/src/Mvc/Mvc.Core/src/Infrastructure/VirtualFileResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/JsonOptions.cs b/src/Mvc/Mvc.Core/src/JsonOptions.cs index a72ce460c146..ac9caa16082c 100644 --- a/src/Mvc/Mvc.Core/src/JsonOptions.cs +++ b/src/Mvc/Mvc.Core/src/JsonOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Microsoft.AspNetCore.Mvc.Formatters; @@ -26,7 +26,7 @@ public class JsonOptions /// detailed error messages about submitted JSON data. /// public bool AllowInputFormatterExceptionMessages { get; set; } = true; - + /// /// Gets the used by and /// . diff --git a/src/Mvc/Mvc.Core/src/JsonResult.cs b/src/Mvc/Mvc.Core/src/JsonResult.cs index e752b995a7b5..fb0b2e72903b 100644 --- a/src/Mvc/Mvc.Core/src/JsonResult.cs +++ b/src/Mvc/Mvc.Core/src/JsonResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Json; diff --git a/src/Mvc/Mvc.Core/src/LocalRedirectResult.cs b/src/Mvc/Mvc.Core/src/LocalRedirectResult.cs index 5efbb523d6dc..78c6bd2bb7c9 100644 --- a/src/Mvc/Mvc.Core/src/LocalRedirectResult.cs +++ b/src/Mvc/Mvc.Core/src/LocalRedirectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/ModelBinderAttribute.cs b/src/Mvc/Mvc.Core/src/ModelBinderAttribute.cs index 535e9f83664d..126303dcd9df 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinderAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinderAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Core; diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/BindNeverAttribute.cs b/src/Mvc/Mvc.Core/src/ModelBinding/BindNeverAttribute.cs index 345a90903f55..270b9d345eff 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/BindNeverAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/BindNeverAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/BindRequiredAttribute.cs b/src/Mvc/Mvc.Core/src/ModelBinding/BindRequiredAttribute.cs index 0d853b337f39..9eb46bac6294 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/BindRequiredAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/BindRequiredAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinder.cs index 46e27f12cf28..e70e8abcee8f 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinderProvider.cs index 3efe487e6f43..fff13d260b0f 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ArrayModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinder.cs index d374739552c6..be4c24c445f7 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinderProvider.cs index e997cf620742..b8b854557e80 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinder.cs index 4889affb5c22..805ffeca96c9 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinderProvider.cs index 3d2d1c61e84e..811b8f27f556 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/BodyModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinder.cs index db2bf865cd92..13c2a184e717 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinderProvider.cs index 155048e8af3d..f4a1ce8e6bb1 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ByteArrayModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinder.cs index 64518fa86f06..a93e4397a083 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinderProvider.cs index cb6f43ce0df5..a33911c2cc53 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CancellationTokenModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinder.cs index 4fc5f8cb2589..15026462d110 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinderProvider.cs index c9aba8886dbf..d89195beddad 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/CollectionModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinder.cs index ecbb5089a305..1f1946bcd410 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -85,7 +85,7 @@ private async Task BindModelCoreAsync(ModelBindingContext bindingContext, int pr // Only record types are allowed to have a BoundConstructor. Binding a record type requires // instantiating the type. This means we'll ignore a previously assigned bindingContext.Model value. // This behaior is identical to input formatting with S.T.Json and Json.NET. - + var values = new object[boundConstructor.BoundConstructorParameters!.Count]; var (attemptedParameterBinding, parameterBindingSucceeded) = await BindParametersAsync( bindingContext, @@ -246,7 +246,7 @@ internal void CreateModel(ModelBindingContext bindingContext) for (var i = 0; i < parameters.Count; i++) { var parameter = parameters[i]; - + var fieldName = parameter.BinderModelName ?? parameter.ParameterName!; var modelName = ModelNames.CreatePropertyModelName(bindingContext.ModelName, fieldName); diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinderProvider.cs index db1afb21e4bd..9a62e0ef1a05 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexObjectModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinder.cs index 55dbc726b275..fb6dbbce5eb8 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinderProvider.cs index c65162f60da5..c1f890b20701 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ComplexTypeModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinder.cs index 9b04652fa83d..ea4f1ef15207 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinderProvider.cs index ac34a820b82e..df1b500bafb4 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DateTimeModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DecimalModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DecimalModelBinder.cs index 88991b4fa90c..6482dbc1e1e9 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DecimalModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DecimalModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinder.cs index f155b982873a..99156eca9e95 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinderProvider.cs index cc8445c23018..4f25f0e9e436 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DictionaryModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DoubleModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DoubleModelBinder.cs index d85fc94e2bc6..96fcb152c67a 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DoubleModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/DoubleModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinder.cs index 4d8e0dc5ec22..096400526170 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinderProvider.cs index e5763172541e..e7511c739312 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/EnumTypeModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatModelBinder.cs index 92b53e767e65..a59bb7127915 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatingPointTypeModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatingPointTypeModelBinderProvider.cs index 9640c3d496aa..bb1453c78750 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatingPointTypeModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FloatingPointTypeModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinder.cs index 103882c5e060..a9b790fe4a62 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinderProvider.cs index fa0175a83df9..f0ceab77094e 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormCollectionModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinder.cs index d60a986592ba..068eef9159f5 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinderProvider.cs index a65c6fac908f..ed1a04924b54 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/FormFileModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinder.cs index 8fe99c63e16c..68ff9ed13486 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -67,7 +67,7 @@ public async Task BindModelAsync(ModelBindingContext bindingContext) // Property name can be null if the model metadata represents a type (rather than a property or parameter). var headerName = bindingContext.FieldName; - // Do not set ModelBindingResult to Failed on not finding the value in the header as we want the inner + // Do not set ModelBindingResult to Failed on not finding the value in the header as we want the inner // ModelBinder to do that. This would give a chance to the inner binder to add more useful information. // For example, SimpleTypeModelBinder adds a model error when binding to let's say an integer and the // model is null. diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinderProvider.cs index e92d02b7c4a3..bbd8b2fac09c 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/HeaderModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinder.cs index 646b5a7ea248..2cf147437abd 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinderProvider.cs index c8b34819b96e..d9845f58840c 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/KeyValuePairModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinder.cs index 78850b5296fe..1d541b79cba7 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders { /// - /// An which binds models from the request services when a model + /// An which binds models from the request services when a model /// has the binding source . /// public class ServicesModelBinder : IModelBinder diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinderProvider.cs index 7bc7bb9b7f94..16d592190dc1 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/ServicesModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinder.cs index 3e63dddc7c23..825787a81850 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinderProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinderProvider.cs index bd1f2fb2c399..9ea4fb554086 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinderProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Binders/SimpleTypeModelBinderProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehavior.cs b/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehavior.cs index ddd93bdf6dfa..a227d71587c0 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehavior.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehavior.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehaviorAttribute.cs b/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehaviorAttribute.cs index 7c00de31914c..e5e776b459b0 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehaviorAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/BindingBehaviorAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/BindingSourceValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/BindingSourceValueProvider.cs index dd6a941183bd..dde5cae39c66 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/BindingSourceValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/BindingSourceValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/CompositeValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/CompositeValueProvider.cs index 4a10df7df602..d0c74419183c 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/CompositeValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/CompositeValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/DefaultModelBindingContext.cs b/src/Mvc/Mvc.Core/src/ModelBinding/DefaultModelBindingContext.cs index 03e95b63b4ee..a7d2e1540e0d 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/DefaultModelBindingContext.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/DefaultModelBindingContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/DefaultPropertyFilterProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/DefaultPropertyFilterProvider.cs index 86adc2974453..94198047e78e 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/DefaultPropertyFilterProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/DefaultPropertyFilterProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -26,7 +26,7 @@ public class DefaultPropertyFilterProvider : IPropertyFilterProvider public virtual string Prefix => string.Empty; /// - /// Expressions which can be used to generate property filter which can filter model + /// Expressions which can be used to generate property filter which can filter model /// properties. /// public virtual IEnumerable>>? PropertyIncludeExpressions => null; diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ElementalValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ElementalValueProvider.cs index 223d55641afa..1a4ecf5bb7dd 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ElementalValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ElementalValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/EmptyModelMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/EmptyModelMetadataProvider.cs index 3f4793b22693..0a4102528269 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/EmptyModelMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/EmptyModelMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProvider.cs index 9fc84b730810..1e2960cc8ebc 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProviderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProviderFactory.cs index cad900a1850f..378eab0d224e 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProviderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/FormFileValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProvider.cs index 1a9d4065a009..a06ed27eee95 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProviderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProviderFactory.cs index abf5db91c403..ec912a521ddb 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProviderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/FormValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/IBindingSourceValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/IBindingSourceValueProvider.cs index 9117215a5103..79ab58f0dee7 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/IBindingSourceValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/IBindingSourceValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ICollectionModelBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ICollectionModelBinder.cs index 4a200798c227..1ce7b622d926 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ICollectionModelBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ICollectionModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/IEnumerableValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/IEnumerableValueProvider.cs index aae446f510a8..245b4e22c146 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/IEnumerableValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/IEnumerableValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/IKeyRewriterValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/IKeyRewriterValueProvider.cs index 49c37de297e6..5409e9e60b0b 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/IKeyRewriterValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/IKeyRewriterValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/IModelBinderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/IModelBinderFactory.cs index 8b597c0fa19d..fae57b21b3ec 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/IModelBinderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/IModelBinderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProvider.cs index 5da067a5c46f..3c56163e24bb 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProviderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProviderFactory.cs index db8037174214..0816c8de338a 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProviderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryFormValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryKeyValuePairNormalizer.cs b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryKeyValuePairNormalizer.cs index 8c6b2715b216..68e64311460e 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryKeyValuePairNormalizer.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryKeyValuePairNormalizer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProvider.cs index 3465752a1ca2..4db73cc6e51b 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProviderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProviderFactory.cs index f610bacbee4a..cca5155e129f 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProviderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryQueryStringValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryValueProvider.cs index 481d823f1125..335b91f57c06 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/JQueryValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/JQueryValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadata.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadata.cs index fb3315749187..b51f290b2480 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadata.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadataProviderContext.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadataProviderContext.cs index e7ab3e9cc0ab..60040c84cdd4 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadataProviderContext.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingMetadataProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingSourceMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingSourceMetadataProvider.cs index 30413039ea4c..f934177c17c9 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingSourceMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/BindingSourceMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -16,8 +16,8 @@ public class BindingSourceMetadataProvider : IBindingMetadataProvider /// Creates a new for the given . /// /// - /// The . The provider sets of the given or - /// anything assignable to the given . + /// The . The provider sets of the given or + /// anything assignable to the given . /// /// /// The to assign to the given . @@ -35,8 +35,8 @@ public BindingSourceMetadataProvider(Type type, BindingSource? bindingSource) /// - /// The . The provider sets of the given or - /// anything assignable to the given . + /// The . The provider sets of the given or + /// anything assignable to the given . /// public Type Type { get; } diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultBindingMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultBindingMetadataProvider.cs index 6b4121f818dc..b233a95fc45e 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultBindingMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultBindingMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultCompositeMetadataDetailsProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultCompositeMetadataDetailsProvider.cs index 4e5196ff7a56..f0132f664403 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultCompositeMetadataDetailsProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultCompositeMetadataDetailsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultMetadataDetails.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultMetadataDetails.cs index 314197640c3f..284be5f037e8 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultMetadataDetails.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultMetadataDetails.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs index 03d3d06c1d4b..2388533719d1 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadata.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadata.cs index 5ee03e6e895b..e15d84d1ac28 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadata.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadataProvider.cs index aa40045e3a18..f0e32b030722 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -155,7 +155,7 @@ public override ModelMetadata GetMetadataForProperty(PropertyInfo propertyInfo, return cacheEntry.Metadata; } - + /// public override ModelMetadata GetMetadataForConstructor(ConstructorInfo constructorInfo, Type modelType) { diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultValidationMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultValidationMetadataProvider.cs index ca3e4dbf287c..8464580e0448 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultValidationMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultValidationMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadata.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadata.cs index a98e8a92369e..60d483fbb5c0 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadata.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadataProviderContext.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadataProviderContext.cs index 5030e35d23ff..ce763dca6d79 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadataProviderContext.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DisplayMetadataProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ExcludeBindingMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ExcludeBindingMetadataProvider.cs index 01657ed6a899..730776f73cb0 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ExcludeBindingMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ExcludeBindingMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/HasValidatorsValidationMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/HasValidatorsValidationMetadataProvider.cs index 603f73b34d6a..9473eaf5edef 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/HasValidatorsValidationMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/HasValidatorsValidationMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IBindingMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IBindingMetadataProvider.cs index d42354c98c07..6448fed37fac 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IBindingMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IBindingMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata public interface IBindingMetadataProvider : IMetadataDetailsProvider { /// - /// Sets the values for properties of . + /// Sets the values for properties of . /// /// The . void CreateBindingMetadata(BindingMetadataProviderContext context); diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ICompositeMetadataDetailsProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ICompositeMetadataDetailsProvider.cs index 6677c3eb32d9..3b746b5eeb75 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ICompositeMetadataDetailsProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ICompositeMetadataDetailsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -8,9 +8,9 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata /// /// A composite . /// - public interface ICompositeMetadataDetailsProvider : - IBindingMetadataProvider, - IDisplayMetadataProvider, + public interface ICompositeMetadataDetailsProvider : + IBindingMetadataProvider, + IDisplayMetadataProvider, IValidationMetadataProvider { } diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IDisplayMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IDisplayMetadataProvider.cs index cae17eb9fe11..fb3ace15d3fc 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IDisplayMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IDisplayMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata public interface IDisplayMetadataProvider : IMetadataDetailsProvider { /// - /// Sets the values for properties of . + /// Sets the values for properties of . /// /// The . void CreateDisplayMetadata(DisplayMetadataProviderContext context); diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IMetadataDetailsProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IMetadataDetailsProvider.cs index c2514c66f42d..aef5e88224a4 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IMetadataDetailsProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IMetadataDetailsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata { /// /// Marker interface for a provider of metadata details about model objects. Implementations should - /// implement one or more of , , + /// implement one or more of , , /// and . /// public interface IMetadataDetailsProvider diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IValidationMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IValidationMetadataProvider.cs index 23568d74473a..c9be7916ba5c 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IValidationMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IValidationMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata public interface IValidationMetadataProvider : IMetadataDetailsProvider { /// - /// Gets the values for properties of . + /// Gets the values for properties of . /// /// The . void CreateValidationMetadata(ValidationMetadataProviderContext context); diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/MetadataDetailsProviderExtensions.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/MetadataDetailsProviderExtensions.cs index de15a1208638..d34baee7fca6 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/MetadataDetailsProviderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/MetadataDetailsProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ModelAttributes.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ModelAttributes.cs index 316fe4dd5323..995212e9a84f 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ModelAttributes.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ModelAttributes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadata.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadata.cs index 66184d8ff15e..1da71cc4fd03 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadata.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadataProviderContext.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadataProviderContext.cs index f8b43f0d840d..5687a61dc634 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadataProviderContext.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/ValidationMetadataProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactory.cs index 36da7a576cfc..a3ed7c645200 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactoryContext.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactoryContext.cs index d06c2e54b49c..d1e015dabbc0 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactoryContext.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderFactoryContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderProviderExtensions.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderProviderExtensions.cs index d4c554952bf2..f3cb66a78e9a 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderProviderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBinderProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBindingHelper.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBindingHelper.cs index ef4a22d12ec4..a771281bf587 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ModelBindingHelper.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ModelBindingHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ModelMetadataProviderExtensions.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ModelMetadataProviderExtensions.cs index 7525c78a8b4f..b2a0e8267945 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ModelMetadataProviderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ModelMetadataProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ModelNames.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ModelNames.cs index c43596e56fc6..4ddcc199ab0d 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ModelNames.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ModelNames.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/NoOpBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/NoOpBinder.cs index 322657f1d29c..10a2a70e10b2 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/NoOpBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/NoOpBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ObjectModelValidator.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ObjectModelValidator.cs index 975126726916..6d3dad615345 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ObjectModelValidator.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ObjectModelValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ParameterBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ParameterBinder.cs index 1015b8c8f06b..2bb440387355 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ParameterBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ParameterBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/PlaceholderBinder.cs b/src/Mvc/Mvc.Core/src/ModelBinding/PlaceholderBinder.cs index 1cbf3ac28017..045aadcaf9e2 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/PlaceholderBinder.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/PlaceholderBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/PrefixContainer.cs b/src/Mvc/Mvc.Core/src/ModelBinding/PrefixContainer.cs index 08e1ee1f6af4..e9d1da2b53d8 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/PrefixContainer.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/PrefixContainer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/PropertyValueSetter.cs b/src/Mvc/Mvc.Core/src/ModelBinding/PropertyValueSetter.cs index a72253be781f..0499fbfe3387 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/PropertyValueSetter.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/PropertyValueSetter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProvider.cs index de42955db590..28c63e21d151 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProviderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProviderFactory.cs index 76d2edefe6f1..ef8571320f3b 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProviderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/QueryStringValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProvider.cs index 7a034ad194d7..058411bb3b7c 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProviderFactory.cs b/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProviderFactory.cs index ac5871709a11..4b2b723eb2b8 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProviderFactory.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/RouteValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/SuppressChildValidationMetadataProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/SuppressChildValidationMetadataProvider.cs index e273280dee51..f0021a3a152e 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/SuppressChildValidationMetadataProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/SuppressChildValidationMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeException.cs b/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeException.cs index 0c7d8d3636da..5c2c28668025 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeException.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeException.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeFilter.cs b/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeFilter.cs index a534de7db15c..6a7c0d2f9a5b 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeFilter.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/UnsupportedContentTypeFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ClientValidatorCache.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ClientValidatorCache.cs index 7d78c160fa48..176b1d583e6c 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ClientValidatorCache.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ClientValidatorCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeClientModelValidatorProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeClientModelValidatorProvider.cs index c113d922a8c3..39fffee50f1d 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeClientModelValidatorProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeClientModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeModelValidatorProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeModelValidatorProvider.cs index a4130a2c1fc5..36896fcf7429 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeModelValidatorProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/CompositeModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultCollectionValidationStrategy.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultCollectionValidationStrategy.cs index 574c76191629..c32d2e45263a 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultCollectionValidationStrategy.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultCollectionValidationStrategy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultComplexObjectValidationStrategy.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultComplexObjectValidationStrategy.cs index b7634403db7a..e7ce2b5248be 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultComplexObjectValidationStrategy.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultComplexObjectValidationStrategy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -77,7 +77,7 @@ public Enumerator( public bool MoveNext() { _index++; - + if (_index >= _count) { return false; diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultModelValidatorProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultModelValidatorProvider.cs index e01a87e7fa0e..894c7d6c2006 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultModelValidatorProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultObjectValidator.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultObjectValidator.cs index 21e1fd68cd3f..5bf52993f0ec 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultObjectValidator.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/DefaultObjectValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategy.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategy.cs index 2852d20ff2f0..f58b982b6fd8 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategy.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IMetadataBasedModelValidatorProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IMetadataBasedModelValidatorProvider.cs index 59c9cd4e334e..89e578089374 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IMetadataBasedModelValidatorProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IMetadataBasedModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IObjectModelValidator.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IObjectModelValidator.cs index a254b3c61b68..8324bf2f0ca7 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IObjectModelValidator.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/IObjectModelValidator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ModelValidatorProviderExtensions.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ModelValidatorProviderExtensions.cs index 2b8c6a94446d..2b08637268f2 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ModelValidatorProviderExtensions.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ModelValidatorProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ShortFormDictionaryValidationStrategy.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ShortFormDictionaryValidationStrategy.cs index 91659bbe9af3..7cdfed346560 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ShortFormDictionaryValidationStrategy.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ShortFormDictionaryValidationStrategy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidateNeverAttribute.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidateNeverAttribute.cs index 5270df88267d..4f41d405f565 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidateNeverAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidateNeverAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationStack.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationStack.cs index 6e362429eb31..fb35ec7a6199 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationStack.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationStack.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationVisitor.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationVisitor.cs index 0d9a63bd5d50..c1b2f77df47b 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationVisitor.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidatorCache.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidatorCache.cs index 4a036378d885..2da19fa669cb 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidatorCache.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidatorCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/ValueProviderFactoryExtensions.cs b/src/Mvc/Mvc.Core/src/ModelBinding/ValueProviderFactoryExtensions.cs index ac6e43200be1..acbd7ac88153 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/ValueProviderFactoryExtensions.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/ValueProviderFactoryExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.Core/src/ModelMetadataTypeAttribute.cs b/src/Mvc/Mvc.Core/src/ModelMetadataTypeAttribute.cs index a79425714713..06f034139e81 100644 --- a/src/Mvc/Mvc.Core/src/ModelMetadataTypeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ModelMetadataTypeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/MvcCoreDiagnosticListenerExtensions.cs b/src/Mvc/Mvc.Core/src/MvcCoreDiagnosticListenerExtensions.cs index fe6df658b43b..7c920300a800 100644 --- a/src/Mvc/Mvc.Core/src/MvcCoreDiagnosticListenerExtensions.cs +++ b/src/Mvc/Mvc.Core/src/MvcCoreDiagnosticListenerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Mvc/Mvc.Core/src/MvcCoreLoggerExtensions.cs b/src/Mvc/Mvc.Core/src/MvcCoreLoggerExtensions.cs index d123653cd19c..5e0935357d7f 100644 --- a/src/Mvc/Mvc.Core/src/MvcCoreLoggerExtensions.cs +++ b/src/Mvc/Mvc.Core/src/MvcCoreLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable diff --git a/src/Mvc/Mvc.Core/src/MvcOptions.cs b/src/Mvc/Mvc.Core/src/MvcOptions.cs index be7ae90f8581..d43d5274626d 100644 --- a/src/Mvc/Mvc.Core/src/MvcOptions.cs +++ b/src/Mvc/Mvc.Core/src/MvcOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/NoContentResult.cs b/src/Mvc/Mvc.Core/src/NoContentResult.cs index f4a23075f95d..ccfd9665f880 100644 --- a/src/Mvc/Mvc.Core/src/NoContentResult.cs +++ b/src/Mvc/Mvc.Core/src/NoContentResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/NonActionAttribute.cs b/src/Mvc/Mvc.Core/src/NonActionAttribute.cs index aa2cec5f5b58..ddd7dea29d2c 100644 --- a/src/Mvc/Mvc.Core/src/NonActionAttribute.cs +++ b/src/Mvc/Mvc.Core/src/NonActionAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/NonControllerAttribute.cs b/src/Mvc/Mvc.Core/src/NonControllerAttribute.cs index 518b7c6c50e2..52ba313638cd 100644 --- a/src/Mvc/Mvc.Core/src/NonControllerAttribute.cs +++ b/src/Mvc/Mvc.Core/src/NonControllerAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/NonViewComponentAttribute.cs b/src/Mvc/Mvc.Core/src/NonViewComponentAttribute.cs index 68eda496df9c..bc18df1cd83d 100644 --- a/src/Mvc/Mvc.Core/src/NonViewComponentAttribute.cs +++ b/src/Mvc/Mvc.Core/src/NonViewComponentAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/NotFoundObjectResult.cs b/src/Mvc/Mvc.Core/src/NotFoundObjectResult.cs index dc9aeb1db6ab..56cd19ad7d94 100644 --- a/src/Mvc/Mvc.Core/src/NotFoundObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/NotFoundObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/NotFoundResult.cs b/src/Mvc/Mvc.Core/src/NotFoundResult.cs index ed5941762112..9bb6507a3393 100644 --- a/src/Mvc/Mvc.Core/src/NotFoundResult.cs +++ b/src/Mvc/Mvc.Core/src/NotFoundResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/ObjectResult.cs b/src/Mvc/Mvc.Core/src/ObjectResult.cs index c9df90d0dc86..dfb0b42de7cb 100644 --- a/src/Mvc/Mvc.Core/src/ObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/ObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/OkObjectResult.cs b/src/Mvc/Mvc.Core/src/OkObjectResult.cs index f909856d6ed1..3c80f6fcb9e6 100644 --- a/src/Mvc/Mvc.Core/src/OkObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/OkObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/OkResult.cs b/src/Mvc/Mvc.Core/src/OkResult.cs index cb6476b72d10..dc9cc7c06ab4 100644 --- a/src/Mvc/Mvc.Core/src/OkResult.cs +++ b/src/Mvc/Mvc.Core/src/OkResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/PhysicalFileResult.cs b/src/Mvc/Mvc.Core/src/PhysicalFileResult.cs index def6a2b65408..456a54774765 100644 --- a/src/Mvc/Mvc.Core/src/PhysicalFileResult.cs +++ b/src/Mvc/Mvc.Core/src/PhysicalFileResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/ProducesAttribute.cs b/src/Mvc/Mvc.Core/src/ProducesAttribute.cs index f366a5fb87c8..6334d80ed256 100644 --- a/src/Mvc/Mvc.Core/src/ProducesAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ProducesAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -25,7 +25,7 @@ public class ProducesAttribute : Attribute, IResultFilter, IOrderedFilter, IApiR /// /// The of object that is going to be written in the response. public ProducesAttribute(Type type) - { + { Type = type ?? throw new ArgumentNullException(nameof(type)); ContentTypes = new MediaTypeCollection(); } diff --git a/src/Mvc/Mvc.Core/src/ProducesDefaultResponseTypeAttribute.cs b/src/Mvc/Mvc.Core/src/ProducesDefaultResponseTypeAttribute.cs index 3022327a5bc9..b65c23bcac4f 100644 --- a/src/Mvc/Mvc.Core/src/ProducesDefaultResponseTypeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ProducesDefaultResponseTypeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApiExplorer; @@ -15,7 +15,7 @@ public sealed class ProducesDefaultResponseTypeAttribute : Attribute, IApiDefaul { /// /// Initializes an instance of . - /// + /// public ProducesDefaultResponseTypeAttribute() : this(typeof(void)) { diff --git a/src/Mvc/Mvc.Core/src/ProducesErrorResponseTypeAttribute.cs b/src/Mvc/Mvc.Core/src/ProducesErrorResponseTypeAttribute.cs index b9c579cea8d8..f97d6213fda0 100644 --- a/src/Mvc/Mvc.Core/src/ProducesErrorResponseTypeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ProducesErrorResponseTypeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/ProducesResponseTypeAttribute.cs b/src/Mvc/Mvc.Core/src/ProducesResponseTypeAttribute.cs index 2b889c71dc51..c954dfba5eb1 100644 --- a/src/Mvc/Mvc.Core/src/ProducesResponseTypeAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ProducesResponseTypeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApiExplorer; diff --git a/src/Mvc/Mvc.Core/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Core/src/Properties/AssemblyInfo.cs index ae184579fea4..bd724d5ea759 100644 --- a/src/Mvc/Mvc.Core/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Core/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Core/src/RedirectResult.cs b/src/Mvc/Mvc.Core/src/RedirectResult.cs index 5077bf9285e4..a749d5d9a9d0 100644 --- a/src/Mvc/Mvc.Core/src/RedirectResult.cs +++ b/src/Mvc/Mvc.Core/src/RedirectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/src/RedirectToActionResult.cs b/src/Mvc/Mvc.Core/src/RedirectToActionResult.cs index bc07b19d4097..981622ec2a19 100644 --- a/src/Mvc/Mvc.Core/src/RedirectToActionResult.cs +++ b/src/Mvc/Mvc.Core/src/RedirectToActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/RedirectToPageResult.cs b/src/Mvc/Mvc.Core/src/RedirectToPageResult.cs index 94e5fd86f45e..c16817f65834 100644 --- a/src/Mvc/Mvc.Core/src/RedirectToPageResult.cs +++ b/src/Mvc/Mvc.Core/src/RedirectToPageResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/RedirectToRouteResult.cs b/src/Mvc/Mvc.Core/src/RedirectToRouteResult.cs index da3c419e4c11..9cc90ab46f40 100644 --- a/src/Mvc/Mvc.Core/src/RedirectToRouteResult.cs +++ b/src/Mvc/Mvc.Core/src/RedirectToRouteResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/RequestFormLimitsAttribute.cs b/src/Mvc/Mvc.Core/src/RequestFormLimitsAttribute.cs index 068109123136..46d203bf8862 100644 --- a/src/Mvc/Mvc.Core/src/RequestFormLimitsAttribute.cs +++ b/src/Mvc/Mvc.Core/src/RequestFormLimitsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/src/RequestSizeLimitAttribute.cs b/src/Mvc/Mvc.Core/src/RequestSizeLimitAttribute.cs index a9a6098f650a..7449b74ff6d0 100644 --- a/src/Mvc/Mvc.Core/src/RequestSizeLimitAttribute.cs +++ b/src/Mvc/Mvc.Core/src/RequestSizeLimitAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/src/RequireHttpsAttribute.cs b/src/Mvc/Mvc.Core/src/RequireHttpsAttribute.cs index da616af153e3..df766bfc5765 100644 --- a/src/Mvc/Mvc.Core/src/RequireHttpsAttribute.cs +++ b/src/Mvc/Mvc.Core/src/RequireHttpsAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/ResponseCacheAttribute.cs b/src/Mvc/Mvc.Core/src/ResponseCacheAttribute.cs index 758d988a8729..ebc5366e88c9 100644 --- a/src/Mvc/Mvc.Core/src/ResponseCacheAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ResponseCacheAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Core; diff --git a/src/Mvc/Mvc.Core/src/ResponseCacheLocation.cs b/src/Mvc/Mvc.Core/src/ResponseCacheLocation.cs index 8f9e852de0fb..5cc92344325a 100644 --- a/src/Mvc/Mvc.Core/src/ResponseCacheLocation.cs +++ b/src/Mvc/Mvc.Core/src/ResponseCacheLocation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/Mvc.Core/src/RouteAttribute.cs b/src/Mvc/Mvc.Core/src/RouteAttribute.cs index d4968794a32a..e8fce6337153 100644 --- a/src/Mvc/Mvc.Core/src/RouteAttribute.cs +++ b/src/Mvc/Mvc.Core/src/RouteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/Mvc.Core/src/Routing/ActionConstraintMatcherPolicy.cs b/src/Mvc/Mvc.Core/src/Routing/ActionConstraintMatcherPolicy.cs index b2e5cc43247e..ecf108737467 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ActionConstraintMatcherPolicy.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ActionConstraintMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ActionEndpointDataSourceBase.cs b/src/Mvc/Mvc.Core/src/Routing/ActionEndpointDataSourceBase.cs index 9184098bd4fc..07da0c1a708a 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ActionEndpointDataSourceBase.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ActionEndpointDataSourceBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ActionEndpointFactory.cs b/src/Mvc/Mvc.Core/src/Routing/ActionEndpointFactory.cs index f1982648b4a2..c0b3d89e6b67 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ActionEndpointFactory.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ActionEndpointFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs b/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs index 02fe1c643f71..b1858b4ea416 100644 --- a/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs +++ b/src/Mvc/Mvc.Core/src/Routing/AttributeRoute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/AttributeRouting.cs b/src/Mvc/Mvc.Core/src/Routing/AttributeRouting.cs index c3c130171a07..769c8116f47b 100644 --- a/src/Mvc/Mvc.Core/src/Routing/AttributeRouting.cs +++ b/src/Mvc/Mvc.Core/src/Routing/AttributeRouting.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ConsumesMatcherPolicy.cs b/src/Mvc/Mvc.Core/src/Routing/ConsumesMatcherPolicy.cs index f55de7832a14..1584042c593e 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ConsumesMatcherPolicy.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ConsumesMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ConsumesMetadata.cs b/src/Mvc/Mvc.Core/src/Routing/ConsumesMetadata.cs index 2b004d55797d..101dd3a26e76 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ConsumesMetadata.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ConsumesMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSource.cs b/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSource.cs index aaec0ec51a6c..d15058f91758 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSource.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceFactory.cs b/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceFactory.cs index 59c528622331..1b87d374bc37 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceFactory.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Routing; diff --git a/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceIdProvider.cs b/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceIdProvider.cs index 8aa69da8a0c3..c73f70736eb9 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceIdProvider.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ControllerActionEndpointDataSourceIdProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Mvc/Mvc.Core/src/Routing/ControllerEndpointDataSourceIdMetadata.cs b/src/Mvc/Mvc.Core/src/Routing/ControllerEndpointDataSourceIdMetadata.cs index 7944bb51f0f8..0b9cd565f35d 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ControllerEndpointDataSourceIdMetadata.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ControllerEndpointDataSourceIdMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Routing diff --git a/src/Mvc/Mvc.Core/src/Routing/ControllerLinkGeneratorExtensions.cs b/src/Mvc/Mvc.Core/src/Routing/ControllerLinkGeneratorExtensions.cs index 51b98fd83e8c..3c096a09d82f 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ControllerLinkGeneratorExtensions.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ControllerLinkGeneratorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ControllerRequestDelegateFactory.cs b/src/Mvc/Mvc.Core/src/Routing/ControllerRequestDelegateFactory.cs index d51a4742d972..74d84f8541e4 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ControllerRequestDelegateFactory.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ControllerRequestDelegateFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/Routing/ConventionalRouteEntry.cs b/src/Mvc/Mvc.Core/src/Routing/ConventionalRouteEntry.cs index 0668897c12a7..4d57d50abf2f 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ConventionalRouteEntry.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ConventionalRouteEntry.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointMatcherPolicy.cs b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointMatcherPolicy.cs index e986a4b6aeaa..418a91c81c4b 100644 --- a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointMatcherPolicy.cs +++ b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelector.cs b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelector.cs index 86ee1e53451e..b7a1cc7d0a1b 100644 --- a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelector.cs +++ b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelectorCache.cs b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelectorCache.cs index 09f51c2ae318..7eef8bc26cad 100644 --- a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelectorCache.cs +++ b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerEndpointSelectorCache.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerMetadata.cs b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerMetadata.cs index 5d36fa6a43f9..23de14f595b4 100644 --- a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerMetadata.cs +++ b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerRouteValueTransformerMetadata.cs b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerRouteValueTransformerMetadata.cs index c813092b5551..c8a88849e7d5 100644 --- a/src/Mvc/Mvc.Core/src/Routing/DynamicControllerRouteValueTransformerMetadata.cs +++ b/src/Mvc/Mvc.Core/src/Routing/DynamicControllerRouteValueTransformerMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/DynamicRouteValueTransformer.cs b/src/Mvc/Mvc.Core/src/Routing/DynamicRouteValueTransformer.cs index e2ab071cf0a1..d3474fa41f40 100644 --- a/src/Mvc/Mvc.Core/src/Routing/DynamicRouteValueTransformer.cs +++ b/src/Mvc/Mvc.Core/src/Routing/DynamicRouteValueTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/Routing/EndpointRoutingUrlHelper.cs b/src/Mvc/Mvc.Core/src/Routing/EndpointRoutingUrlHelper.cs index 24ae9ad81268..210de250e67d 100644 --- a/src/Mvc/Mvc.Core/src/Routing/EndpointRoutingUrlHelper.cs +++ b/src/Mvc/Mvc.Core/src/Routing/EndpointRoutingUrlHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs b/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs index 2fc63a32c2c1..1653c22716f4 100644 --- a/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Routing/HttpMethodAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/IActionHttpMethodProvider.cs b/src/Mvc/Mvc.Core/src/Routing/IActionHttpMethodProvider.cs index 979da990bad8..86bbd0335b8a 100644 --- a/src/Mvc/Mvc.Core/src/Routing/IActionHttpMethodProvider.cs +++ b/src/Mvc/Mvc.Core/src/Routing/IActionHttpMethodProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/Routing/IConsumesMetadata.cs b/src/Mvc/Mvc.Core/src/Routing/IConsumesMetadata.cs index f759a9f4de7e..01aa87207835 100644 --- a/src/Mvc/Mvc.Core/src/Routing/IConsumesMetadata.cs +++ b/src/Mvc/Mvc.Core/src/Routing/IConsumesMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/src/Routing/IRequestDelegateFactory.cs b/src/Mvc/Mvc.Core/src/Routing/IRequestDelegateFactory.cs index 6809dda0b013..755783d48e23 100644 --- a/src/Mvc/Mvc.Core/src/Routing/IRequestDelegateFactory.cs +++ b/src/Mvc/Mvc.Core/src/Routing/IRequestDelegateFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Mvc/Mvc.Core/src/Routing/IRouteTemplateProvider.cs b/src/Mvc/Mvc.Core/src/Routing/IRouteTemplateProvider.cs index 286a97d6887a..58dd38d2af95 100644 --- a/src/Mvc/Mvc.Core/src/Routing/IRouteTemplateProvider.cs +++ b/src/Mvc/Mvc.Core/src/Routing/IRouteTemplateProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Routing diff --git a/src/Mvc/Mvc.Core/src/Routing/IRouteValueProvider.cs b/src/Mvc/Mvc.Core/src/Routing/IRouteValueProvider.cs index a7316a08cc53..fad4d8f5fd8c 100644 --- a/src/Mvc/Mvc.Core/src/Routing/IRouteValueProvider.cs +++ b/src/Mvc/Mvc.Core/src/Routing/IRouteValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Routing; diff --git a/src/Mvc/Mvc.Core/src/Routing/IUrlHelperFactory.cs b/src/Mvc/Mvc.Core/src/Routing/IUrlHelperFactory.cs index 5558516680e9..89be011c390d 100644 --- a/src/Mvc/Mvc.Core/src/Routing/IUrlHelperFactory.cs +++ b/src/Mvc/Mvc.Core/src/Routing/IUrlHelperFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Routing diff --git a/src/Mvc/Mvc.Core/src/Routing/KnownRouteValueConstraint.cs b/src/Mvc/Mvc.Core/src/Routing/KnownRouteValueConstraint.cs index 1e629338f587..9b52a3808313 100644 --- a/src/Mvc/Mvc.Core/src/Routing/KnownRouteValueConstraint.cs +++ b/src/Mvc/Mvc.Core/src/Routing/KnownRouteValueConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/MvcAttributeRouteHandler.cs b/src/Mvc/Mvc.Core/src/Routing/MvcAttributeRouteHandler.cs index 0fa779300170..27227c365445 100644 --- a/src/Mvc/Mvc.Core/src/Routing/MvcAttributeRouteHandler.cs +++ b/src/Mvc/Mvc.Core/src/Routing/MvcAttributeRouteHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/MvcRouteHandler.cs b/src/Mvc/Mvc.Core/src/Routing/MvcRouteHandler.cs index 45aa6c6a12fa..f62baefba16c 100644 --- a/src/Mvc/Mvc.Core/src/Routing/MvcRouteHandler.cs +++ b/src/Mvc/Mvc.Core/src/Routing/MvcRouteHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/NormalizedRouteValue.cs b/src/Mvc/Mvc.Core/src/Routing/NormalizedRouteValue.cs index 28d26fd64bd3..bc54923cbc17 100644 --- a/src/Mvc/Mvc.Core/src/Routing/NormalizedRouteValue.cs +++ b/src/Mvc/Mvc.Core/src/Routing/NormalizedRouteValue.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/NullRouter.cs b/src/Mvc/Mvc.Core/src/Routing/NullRouter.cs index 9e928946859e..bb98c36229b9 100644 --- a/src/Mvc/Mvc.Core/src/Routing/NullRouter.cs +++ b/src/Mvc/Mvc.Core/src/Routing/NullRouter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Core/src/Routing/PageLinkGeneratorExtensions.cs b/src/Mvc/Mvc.Core/src/Routing/PageLinkGeneratorExtensions.cs index 5bbe608f0376..2d52751781d3 100644 --- a/src/Mvc/Mvc.Core/src/Routing/PageLinkGeneratorExtensions.cs +++ b/src/Mvc/Mvc.Core/src/Routing/PageLinkGeneratorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/RoutePatternWriter.cs b/src/Mvc/Mvc.Core/src/Routing/RoutePatternWriter.cs index 2e40e8e0991a..8945e32d3462 100644 --- a/src/Mvc/Mvc.Core/src/Routing/RoutePatternWriter.cs +++ b/src/Mvc/Mvc.Core/src/Routing/RoutePatternWriter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/RouteValueAttribute.cs b/src/Mvc/Mvc.Core/src/Routing/RouteValueAttribute.cs index cdbb6768651b..b4d384c59401 100644 --- a/src/Mvc/Mvc.Core/src/Routing/RouteValueAttribute.cs +++ b/src/Mvc/Mvc.Core/src/Routing/RouteValueAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/UrlHelper.cs b/src/Mvc/Mvc.Core/src/Routing/UrlHelper.cs index eafe461bce73..0b85cf52b806 100644 --- a/src/Mvc/Mvc.Core/src/Routing/UrlHelper.cs +++ b/src/Mvc/Mvc.Core/src/Routing/UrlHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs b/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs index 44717c66a27f..51eda422b597 100644 --- a/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs +++ b/src/Mvc/Mvc.Core/src/Routing/UrlHelperBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/Routing/UrlHelperFactory.cs b/src/Mvc/Mvc.Core/src/Routing/UrlHelperFactory.cs index 626d8222f9bc..1d6a4867855d 100644 --- a/src/Mvc/Mvc.Core/src/Routing/UrlHelperFactory.cs +++ b/src/Mvc/Mvc.Core/src/Routing/UrlHelperFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/Routing/ViewEnginePath.cs b/src/Mvc/Mvc.Core/src/Routing/ViewEnginePath.cs index 6c76dd1bac65..ef0879f7a381 100644 --- a/src/Mvc/Mvc.Core/src/Routing/ViewEnginePath.cs +++ b/src/Mvc/Mvc.Core/src/Routing/ViewEnginePath.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Core/src/SerializableError.cs b/src/Mvc/Mvc.Core/src/SerializableError.cs index 77adaeae1eac..90c8f34c3329 100644 --- a/src/Mvc/Mvc.Core/src/SerializableError.cs +++ b/src/Mvc/Mvc.Core/src/SerializableError.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/ServiceFilterAttribute.cs b/src/Mvc/Mvc.Core/src/ServiceFilterAttribute.cs index e9d69ff29267..656a1f50a158 100644 --- a/src/Mvc/Mvc.Core/src/ServiceFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/ServiceFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -30,7 +30,7 @@ public class ServiceFilterAttribute : Attribute, IFilterFactory, IOrderedFilter /// The of filter to find. public ServiceFilterAttribute(Type type) { - ServiceType = type ?? throw new ArgumentNullException(nameof(type)); + ServiceType = type ?? throw new ArgumentNullException(nameof(type)); } /// diff --git a/src/Mvc/Mvc.Core/src/SignInResult.cs b/src/Mvc/Mvc.Core/src/SignInResult.cs index 185afa671680..c200f0e785a9 100644 --- a/src/Mvc/Mvc.Core/src/SignInResult.cs +++ b/src/Mvc/Mvc.Core/src/SignInResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Mvc/Mvc.Core/src/SignOutResult.cs b/src/Mvc/Mvc.Core/src/SignOutResult.cs index 15090b424bed..3be123301e6e 100644 --- a/src/Mvc/Mvc.Core/src/SignOutResult.cs +++ b/src/Mvc/Mvc.Core/src/SignOutResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/src/StatusCodeResult.cs b/src/Mvc/Mvc.Core/src/StatusCodeResult.cs index 3033e11c0479..f271563f3341 100644 --- a/src/Mvc/Mvc.Core/src/StatusCodeResult.cs +++ b/src/Mvc/Mvc.Core/src/StatusCodeResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/TypeFilterAttribute.cs b/src/Mvc/Mvc.Core/src/TypeFilterAttribute.cs index cb120cf17817..7443464564fd 100644 --- a/src/Mvc/Mvc.Core/src/TypeFilterAttribute.cs +++ b/src/Mvc/Mvc.Core/src/TypeFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Core/src/UnauthorizedObjectResult.cs b/src/Mvc/Mvc.Core/src/UnauthorizedObjectResult.cs index 94f00ead1cf0..b31910dc8f7f 100644 --- a/src/Mvc/Mvc.Core/src/UnauthorizedObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/UnauthorizedObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/UnauthorizedResult.cs b/src/Mvc/Mvc.Core/src/UnauthorizedResult.cs index 7e3bc7bb7fbb..efa59c08fb2f 100644 --- a/src/Mvc/Mvc.Core/src/UnauthorizedResult.cs +++ b/src/Mvc/Mvc.Core/src/UnauthorizedResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/UnprocessableEntityObjectResult.cs b/src/Mvc/Mvc.Core/src/UnprocessableEntityObjectResult.cs index 78fd57916792..21e072bc6f17 100644 --- a/src/Mvc/Mvc.Core/src/UnprocessableEntityObjectResult.cs +++ b/src/Mvc/Mvc.Core/src/UnprocessableEntityObjectResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/UnprocessableEntityResult.cs b/src/Mvc/Mvc.Core/src/UnprocessableEntityResult.cs index d82cf642a737..ad153cec47d6 100644 --- a/src/Mvc/Mvc.Core/src/UnprocessableEntityResult.cs +++ b/src/Mvc/Mvc.Core/src/UnprocessableEntityResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/UnsupportedMediaTypeResult.cs b/src/Mvc/Mvc.Core/src/UnsupportedMediaTypeResult.cs index 175c88687441..72dc86578393 100644 --- a/src/Mvc/Mvc.Core/src/UnsupportedMediaTypeResult.cs +++ b/src/Mvc/Mvc.Core/src/UnsupportedMediaTypeResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/src/UrlHelperExtensions.cs b/src/Mvc/Mvc.Core/src/UrlHelperExtensions.cs index d29d33a90665..d19c9b39fa4c 100644 --- a/src/Mvc/Mvc.Core/src/UrlHelperExtensions.cs +++ b/src/Mvc/Mvc.Core/src/UrlHelperExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/ValidationProblemDetails.cs b/src/Mvc/Mvc.Core/src/ValidationProblemDetails.cs index e6a6da11926a..97ecefa1b6c6 100644 --- a/src/Mvc/Mvc.Core/src/ValidationProblemDetails.cs +++ b/src/Mvc/Mvc.Core/src/ValidationProblemDetails.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json.Serialization; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/src/ViewFeatures/IKeepTempDataResult.cs b/src/Mvc/Mvc.Core/src/ViewFeatures/IKeepTempDataResult.cs index 5d86fc171e82..a4d72526c1f5 100644 --- a/src/Mvc/Mvc.Core/src/ViewFeatures/IKeepTempDataResult.cs +++ b/src/Mvc/Mvc.Core/src/ViewFeatures/IKeepTempDataResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures { diff --git a/src/Mvc/Mvc.Core/src/VirtualFileResult.cs b/src/Mvc/Mvc.Core/src/VirtualFileResult.cs index ff83cbc74d04..c9970aa84437 100644 --- a/src/Mvc/Mvc.Core/src/VirtualFileResult.cs +++ b/src/Mvc/Mvc.Core/src/VirtualFileResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Core/test/AcceptedAtActionResultTests.cs b/src/Mvc/Mvc.Core/test/AcceptedAtActionResultTests.cs index ba2cfed7ac6a..3d157d9a8448 100644 --- a/src/Mvc/Mvc.Core/test/AcceptedAtActionResultTests.cs +++ b/src/Mvc/Mvc.Core/test/AcceptedAtActionResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -92,10 +92,10 @@ public static TheoryData ValuesData [MemberData(nameof(ValuesData))] public void Constructor_InitializesStatusCodeAndValue(object value) { - // Arrange + // Arrange var url = "testAction"; - // Act + // Act var result = new AcceptedAtActionResult( actionName: url, controllerName: null, @@ -110,7 +110,7 @@ public void Constructor_InitializesStatusCodeAndValue(object value) [Fact] public void UrlHelper_Get_ReturnsNull() { - // Act + // Act var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); // Assert diff --git a/src/Mvc/Mvc.Core/test/AcceptedAtRouteResultTests.cs b/src/Mvc/Mvc.Core/test/AcceptedAtRouteResultTests.cs index 63dab76bc083..3492bd31c007 100644 --- a/src/Mvc/Mvc.Core/test/AcceptedAtRouteResultTests.cs +++ b/src/Mvc/Mvc.Core/test/AcceptedAtRouteResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/AcceptedResultTests.cs b/src/Mvc/Mvc.Core/test/AcceptedResultTests.cs index 4dcb7fadd072..19d6fd963b61 100644 --- a/src/Mvc/Mvc.Core/test/AcceptedResultTests.cs +++ b/src/Mvc/Mvc.Core/test/AcceptedResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ActionConstraints/ActionConstraintCacheTest.cs b/src/Mvc/Mvc.Core/test/ActionConstraints/ActionConstraintCacheTest.cs index 5b9fd4438772..ba7cb41567bf 100644 --- a/src/Mvc/Mvc.Core/test/ActionConstraints/ActionConstraintCacheTest.cs +++ b/src/Mvc/Mvc.Core/test/ActionConstraints/ActionConstraintCacheTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ActionConstraints/HttpMethodActionConstraintTest.cs b/src/Mvc/Mvc.Core/test/ActionConstraints/HttpMethodActionConstraintTest.cs index cbb34315e9a0..13f34d986046 100644 --- a/src/Mvc/Mvc.Core/test/ActionConstraints/HttpMethodActionConstraintTest.cs +++ b/src/Mvc/Mvc.Core/test/ActionConstraints/HttpMethodActionConstraintTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/test/ActionResultOfTTest.cs b/src/Mvc/Mvc.Core/test/ActionResultOfTTest.cs index 1bcfd0c385b0..3a3d5df0cd14 100644 --- a/src/Mvc/Mvc.Core/test/ActionResultOfTTest.cs +++ b/src/Mvc/Mvc.Core/test/ActionResultOfTTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/test/ApiConventionMethodAttributeTest.cs b/src/Mvc/Mvc.Core/test/ApiConventionMethodAttributeTest.cs index cba34f7b96a7..db65bc24f665 100644 --- a/src/Mvc/Mvc.Core/test/ApiConventionMethodAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/ApiConventionMethodAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApiConventionTypeAttributeTest.cs b/src/Mvc/Mvc.Core/test/ApiConventionTypeAttributeTest.cs index d6ff2a28f47c..a544604dfddc 100644 --- a/src/Mvc/Mvc.Core/test/ApiConventionTypeAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/ApiConventionTypeAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionMatcherTest.cs b/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionMatcherTest.cs index bbf31785a05a..26e8dd200b2b 100644 --- a/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionMatcherTest.cs +++ b/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionResultTest.cs b/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionResultTest.cs index a1b1bd5bcc3c..b24987b72d1d 100644 --- a/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ApiExplorer/ApiConventionResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ActionModelTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ActionModelTest.cs index 491b55dd8602..5d136edf4e39 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ActionModelTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ActionModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ApiBehaviorApplicationModelProviderTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ApiBehaviorApplicationModelProviderTest.cs index d344da2c0835..83f2b9a558e3 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ApiBehaviorApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ApiBehaviorApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ApiConventionApplicationModelConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ApiConventionApplicationModelConventionTest.cs index d658c7dc730d..e906b9d42d4a 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ApiConventionApplicationModelConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ApiConventionApplicationModelConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ApiVisibilityConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ApiVisibilityConventionTest.cs index 3928909e0425..670ed603936b 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ApiVisibilityConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ApiVisibilityConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/AttributeRouteModelTests.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/AttributeRouteModelTests.cs index 6b2ec170a094..d3f1b2f23b8d 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/AttributeRouteModelTests.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/AttributeRouteModelTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/AuthorizationApplicationModelProviderTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/AuthorizationApplicationModelProviderTest.cs index 99ca2e0d18ce..e90208185ea9 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/AuthorizationApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/AuthorizationApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ClientErrorResultFilterConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ClientErrorResultFilterConventionTest.cs index 4fc09baf2bec..dba33f70c894 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ClientErrorResultFilterConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ClientErrorResultFilterConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ConsumesConstraintForFormFileParameterConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ConsumesConstraintForFormFileParameterConventionTest.cs index 7cea6db9287c..99534598d2ee 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ConsumesConstraintForFormFileParameterConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ConsumesConstraintForFormFileParameterConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorBuilderTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorBuilderTest.cs index b4405ef2acaf..e038c89a9eae 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorBuilderTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorProviderTests.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorProviderTests.cs index 14c92815126c..c5a0c483fceb 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorProviderTests.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerModelTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerModelTest.cs index 405923777e6a..1ddfefe62d51 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerModelTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ControllerModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/DefaultApplicationModelProviderTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/DefaultApplicationModelProviderTest.cs index efa5a1c06567..edf7a3981d6e 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/DefaultApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/DefaultApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/InferParameterBindingInfoConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/InferParameterBindingInfoConventionTest.cs index dccd843b4cdc..40d3577c24ba 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/InferParameterBindingInfoConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/InferParameterBindingInfoConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/InvalidModelStateFilterConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/InvalidModelStateFilterConventionTest.cs index c53357d4f104..ba69f18d77c4 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/InvalidModelStateFilterConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/InvalidModelStateFilterConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/ParameterModelTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/ParameterModelTest.cs index f89323a4ef6c..787400dd9f6e 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/ParameterModelTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/ParameterModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/PropertyModelTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/PropertyModelTest.cs index dde1ba67698e..5c3977e9760d 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/PropertyModelTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/PropertyModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationModels/RouteTokenTransformerConventionTest.cs b/src/Mvc/Mvc.Core/test/ApplicationModels/RouteTokenTransformerConventionTest.cs index 1aa426bcd2f3..7b48e4a682ec 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationModels/RouteTokenTransformerConventionTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationModels/RouteTokenTransformerConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/ApplicationParts/ApplicationPartManagerTest.cs b/src/Mvc/Mvc.Core/test/ApplicationParts/ApplicationPartManagerTest.cs index 8b841f02ab99..6fe9ea25b116 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationParts/ApplicationPartManagerTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationParts/ApplicationPartManagerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ApplicationParts/AssemblyPartTest.cs b/src/Mvc/Mvc.Core/test/ApplicationParts/AssemblyPartTest.cs index 70ffa8f5d0f5..3888c2cc9eaf 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationParts/AssemblyPartTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationParts/AssemblyPartTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/test/ApplicationParts/RelatedAssemblyPartTest.cs b/src/Mvc/Mvc.Core/test/ApplicationParts/RelatedAssemblyPartTest.cs index 5e80484c66c5..d9b4348453c3 100644 --- a/src/Mvc/Mvc.Core/test/ApplicationParts/RelatedAssemblyPartTest.cs +++ b/src/Mvc/Mvc.Core/test/ApplicationParts/RelatedAssemblyPartTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Authorization/AuthorizeFilterTest.cs b/src/Mvc/Mvc.Core/test/Authorization/AuthorizeFilterTest.cs index 15d2341e12b6..059e0252ddba 100644 --- a/src/Mvc/Mvc.Core/test/Authorization/AuthorizeFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Authorization/AuthorizeFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/BadRequestObjectResultTests.cs b/src/Mvc/Mvc.Core/test/BadRequestObjectResultTests.cs index b7b933023112..11ff5563657b 100644 --- a/src/Mvc/Mvc.Core/test/BadRequestObjectResultTests.cs +++ b/src/Mvc/Mvc.Core/test/BadRequestObjectResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Core/test/BadRequestResultTests.cs b/src/Mvc/Mvc.Core/test/BadRequestResultTests.cs index 45979cf32d26..f3f87c4f9bac 100644 --- a/src/Mvc/Mvc.Core/test/BadRequestResultTests.cs +++ b/src/Mvc/Mvc.Core/test/BadRequestResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/BindAttributeTest.cs b/src/Mvc/Mvc.Core/test/BindAttributeTest.cs index 3dc6aa2fcb06..42d21eb4f9fc 100644 --- a/src/Mvc/Mvc.Core/test/BindAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/BindAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding.Metadata; using Moq; diff --git a/src/Mvc/Mvc.Core/test/Builder/MvcApplicationBuilderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/Builder/MvcApplicationBuilderExtensionsTest.cs index e3d0b9381cf4..d7f1090c76e7 100644 --- a/src/Mvc/Mvc.Core/test/Builder/MvcApplicationBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/Builder/MvcApplicationBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Core/test/Builder/MvcAreaRouteBuilderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/Builder/MvcAreaRouteBuilderExtensionsTest.cs index b699ff614f6b..d209539cddcd 100644 --- a/src/Mvc/Mvc.Core/test/Builder/MvcAreaRouteBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/Builder/MvcAreaRouteBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ChallengeResultTest.cs b/src/Mvc/Mvc.Core/test/ChallengeResultTest.cs index 2de96e8c8c9b..acd4e29bf3fa 100644 --- a/src/Mvc/Mvc.Core/test/ChallengeResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ChallengeResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; diff --git a/src/Mvc/Mvc.Core/test/ConflictObjectResultTest.cs b/src/Mvc/Mvc.Core/test/ConflictObjectResultTest.cs index 6efabdbe34a8..f28176e2614c 100644 --- a/src/Mvc/Mvc.Core/test/ConflictObjectResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ConflictObjectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Core/test/ConflictResultTest.cs b/src/Mvc/Mvc.Core/test/ConflictResultTest.cs index 16835c55efc1..1d8ec7662e98 100644 --- a/src/Mvc/Mvc.Core/test/ConflictResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ConflictResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ConsumesAttributeTests.cs b/src/Mvc/Mvc.Core/test/ConsumesAttributeTests.cs index d24efa7fa10c..2f172b56e96e 100644 --- a/src/Mvc/Mvc.Core/test/ConsumesAttributeTests.cs +++ b/src/Mvc/Mvc.Core/test/ConsumesAttributeTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ContentResultTest.cs b/src/Mvc/Mvc.Core/test/ContentResultTest.cs index ebc7e7b34578..a48658ac9007 100644 --- a/src/Mvc/Mvc.Core/test/ContentResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ContentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.IO; diff --git a/src/Mvc/Mvc.Core/test/ControllerBaseTest.cs b/src/Mvc/Mvc.Core/test/ControllerBaseTest.cs index f4cf6bf3e2f1..dd2416fd1189 100644 --- a/src/Mvc/Mvc.Core/test/ControllerBaseTest.cs +++ b/src/Mvc/Mvc.Core/test/ControllerBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Controllers/ControllerActivatorProviderTest.cs b/src/Mvc/Mvc.Core/test/Controllers/ControllerActivatorProviderTest.cs index e6af45f3b7e3..4ec1d2eec672 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/ControllerActivatorProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/ControllerActivatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/Controllers/ControllerBinderDelegateProviderTest.cs b/src/Mvc/Mvc.Core/test/Controllers/ControllerBinderDelegateProviderTest.cs index 0fc291db3135..45ffd65c91e7 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/ControllerBinderDelegateProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/ControllerBinderDelegateProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Controllers/ControllerFactoryProviderTest.cs b/src/Mvc/Mvc.Core/test/Controllers/ControllerFactoryProviderTest.cs index fc86fc201e78..17787349853b 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/ControllerFactoryProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/ControllerFactoryProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Controllers/ControllerFeatureProviderTest.cs b/src/Mvc/Mvc.Core/test/Controllers/ControllerFeatureProviderTest.cs index e0d5102a54dd..9be3e84d0e10 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/ControllerFeatureProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/ControllerFeatureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -121,7 +121,7 @@ public void Interface_IsNotController() // Assert Assert.Empty(feature.Controllers); } - + [Fact] public void ValueTypeClass_IsNotController() { @@ -496,7 +496,7 @@ public class BasePocoNonControllerController [Controller] public class BaseNonControllerAttributeChildControllerControllerAttributeController : BaseNonControllerController { - + } public class BasePocoNonControllerControllerChild : BasePocoNonControllerController diff --git a/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerActivatorTest.cs b/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerActivatorTest.cs index ea99a7e6224b..ef0d66258afc 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerActivatorTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerFactoryTest.cs b/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerFactoryTest.cs index 060ad2e7ba2f..59e0544da951 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/DefaultControllerFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/Controllers/ServiceBasedControllerActivatorTest.cs b/src/Mvc/Mvc.Core/test/Controllers/ServiceBasedControllerActivatorTest.cs index cb4d86827098..5c57f5e6ac57 100644 --- a/src/Mvc/Mvc.Core/test/Controllers/ServiceBasedControllerActivatorTest.cs +++ b/src/Mvc/Mvc.Core/test/Controllers/ServiceBasedControllerActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/CreatedAtActionResultTests.cs b/src/Mvc/Mvc.Core/test/CreatedAtActionResultTests.cs index 3b559992e55e..03528226f3b7 100644 --- a/src/Mvc/Mvc.Core/test/CreatedAtActionResultTests.cs +++ b/src/Mvc/Mvc.Core/test/CreatedAtActionResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.Core/test/CreatedAtRouteResultTests.cs b/src/Mvc/Mvc.Core/test/CreatedAtRouteResultTests.cs index f6cf7d583a02..f3c5680d0fbc 100644 --- a/src/Mvc/Mvc.Core/test/CreatedAtRouteResultTests.cs +++ b/src/Mvc/Mvc.Core/test/CreatedAtRouteResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/CreatedResultTests.cs b/src/Mvc/Mvc.Core/test/CreatedResultTests.cs index 56db1771c799..ee3f613c8b27 100644 --- a/src/Mvc/Mvc.Core/test/CreatedResultTests.cs +++ b/src/Mvc/Mvc.Core/test/CreatedResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.Core/test/DependencyInjection/ApiBehaviorOptionsSetupTest.cs b/src/Mvc/Mvc.Core/test/DependencyInjection/ApiBehaviorOptionsSetupTest.cs index c6700283eb99..cc0c026db809 100644 --- a/src/Mvc/Mvc.Core/test/DependencyInjection/ApiBehaviorOptionsSetupTest.cs +++ b/src/Mvc/Mvc.Core/test/DependencyInjection/ApiBehaviorOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Core/test/DependencyInjection/ApplicationModelConventionExtensionsTest.cs b/src/Mvc/Mvc.Core/test/DependencyInjection/ApplicationModelConventionExtensionsTest.cs index 5ef954003c22..7b43446dec9c 100644 --- a/src/Mvc/Mvc.Core/test/DependencyInjection/ApplicationModelConventionExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/DependencyInjection/ApplicationModelConventionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/DependencyInjection/MvcBuilderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/DependencyInjection/MvcBuilderExtensionsTest.cs index 58eb24287143..0e4584f20ac9 100644 --- a/src/Mvc/Mvc.Core/test/DependencyInjection/MvcBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/DependencyInjection/MvcBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreBuilderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreBuilderExtensionsTest.cs index 0b94ea53ec61..7b793d2a250f 100644 --- a/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreServiceCollectionExtensionsTest.cs b/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreServiceCollectionExtensionsTest.cs index 48685144378d..47dcd3012705 100644 --- a/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreServiceCollectionExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/DependencyInjection/MvcCoreServiceCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/EmptyResultTests.cs b/src/Mvc/Mvc.Core/test/EmptyResultTests.cs index 74d1e40bb642..1fe39494e465 100644 --- a/src/Mvc/Mvc.Core/test/EmptyResultTests.cs +++ b/src/Mvc/Mvc.Core/test/EmptyResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Core/test/FileContentResultTest.cs b/src/Mvc/Mvc.Core/test/FileContentResultTest.cs index 5012dffa2518..88aee0c8ef07 100644 --- a/src/Mvc/Mvc.Core/test/FileContentResultTest.cs +++ b/src/Mvc/Mvc.Core/test/FileContentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/FileResultHelperTest.cs b/src/Mvc/Mvc.Core/test/FileResultHelperTest.cs index 69b94ab7f7cb..37c0317ce593 100644 --- a/src/Mvc/Mvc.Core/test/FileResultHelperTest.cs +++ b/src/Mvc/Mvc.Core/test/FileResultHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/test/FileStreamResultTest.cs b/src/Mvc/Mvc.Core/test/FileStreamResultTest.cs index e34e96c526fb..72d96874102f 100644 --- a/src/Mvc/Mvc.Core/test/FileStreamResultTest.cs +++ b/src/Mvc/Mvc.Core/test/FileStreamResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/test/Filters/ActionFilterAttributeTests.cs b/src/Mvc/Mvc.Core/test/Filters/ActionFilterAttributeTests.cs index 575606c78554..5e0e6b0c3d2d 100644 --- a/src/Mvc/Mvc.Core/test/Filters/ActionFilterAttributeTests.cs +++ b/src/Mvc/Mvc.Core/test/Filters/ActionFilterAttributeTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Moq; diff --git a/src/Mvc/Mvc.Core/test/Filters/DisableRequestSizeLimitFilterTest.cs b/src/Mvc/Mvc.Core/test/Filters/DisableRequestSizeLimitFilterTest.cs index 0ea66617f8cf..a99efb77ab34 100644 --- a/src/Mvc/Mvc.Core/test/Filters/DisableRequestSizeLimitFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/DisableRequestSizeLimitFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Mvc/Mvc.Core/test/Filters/FilterCollectionTest.cs b/src/Mvc/Mvc.Core/test/Filters/FilterCollectionTest.cs index 971e43eebfcd..9dc64b7c1248 100644 --- a/src/Mvc/Mvc.Core/test/Filters/FilterCollectionTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/FilterCollectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/Filters/FilterFactoryTest.cs b/src/Mvc/Mvc.Core/test/Filters/FilterFactoryTest.cs index 366a59cb5bd9..54079a066588 100644 --- a/src/Mvc/Mvc.Core/test/Filters/FilterFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/FilterFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/test/Filters/FilterProviderTest.cs b/src/Mvc/Mvc.Core/test/Filters/FilterProviderTest.cs index 8639542ab7af..99a3f3768d8c 100644 --- a/src/Mvc/Mvc.Core/test/Filters/FilterProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/FilterProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterAttributeTest.cs b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterAttributeTest.cs index 56964294a080..e37b25ff9f79 100644 --- a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterBuilderTest.cs b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterBuilderTest.cs index fc2239fcffed..55a11c425101 100644 --- a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterBuilderTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterConfigurationProviderTest.cs b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterConfigurationProviderTest.cs index e2e1dd24dba2..83d6b75059bd 100644 --- a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterConfigurationProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterConfigurationProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Castle.Core.Logging; diff --git a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterTest.cs b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterTest.cs index ce90ff26bcdb..cbf0f17cc5cd 100644 --- a/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/MiddlewareFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Filters/RequestFormLimitsFilterTest.cs b/src/Mvc/Mvc.Core/test/Filters/RequestFormLimitsFilterTest.cs index 9d7b467f6747..1ad10e6095f7 100644 --- a/src/Mvc/Mvc.Core/test/Filters/RequestFormLimitsFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/RequestFormLimitsFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Mvc/Mvc.Core/test/Filters/RequestSizeLimitFilterTest.cs b/src/Mvc/Mvc.Core/test/Filters/RequestSizeLimitFilterTest.cs index 3d3ec36ed5be..f184635c2edf 100644 --- a/src/Mvc/Mvc.Core/test/Filters/RequestSizeLimitFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/RequestSizeLimitFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Http.Features; diff --git a/src/Mvc/Mvc.Core/test/Filters/ResponseCacheFilterExecutorTest.cs b/src/Mvc/Mvc.Core/test/Filters/ResponseCacheFilterExecutorTest.cs index 83a96c24713f..6a02e3e28673 100644 --- a/src/Mvc/Mvc.Core/test/Filters/ResponseCacheFilterExecutorTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/ResponseCacheFilterExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Filters/ResultFilterAttributeTest.cs b/src/Mvc/Mvc.Core/test/Filters/ResultFilterAttributeTest.cs index bfec55fb0641..3827d13528bf 100644 --- a/src/Mvc/Mvc.Core/test/Filters/ResultFilterAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/Filters/ResultFilterAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Moq; diff --git a/src/Mvc/Mvc.Core/test/FlushReportingStream.cs b/src/Mvc/Mvc.Core/test/FlushReportingStream.cs index 65f2af8e38af..dcdb5d0a5b15 100644 --- a/src/Mvc/Mvc.Core/test/FlushReportingStream.cs +++ b/src/Mvc/Mvc.Core/test/FlushReportingStream.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading; diff --git a/src/Mvc/Mvc.Core/test/ForbidResultTest.cs b/src/Mvc/Mvc.Core/test/ForbidResultTest.cs index 0e94026c388d..88f301bcf5e7 100644 --- a/src/Mvc/Mvc.Core/test/ForbidResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ForbidResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/AcceptHeaderParserTest.cs b/src/Mvc/Mvc.Core/test/Formatters/AcceptHeaderParserTest.cs index 9c2bd05c5c84..9517100d7728 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/AcceptHeaderParserTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/AcceptHeaderParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/Formatters/FormatFilterTest.cs b/src/Mvc/Mvc.Core/test/Formatters/FormatFilterTest.cs index 3dd386d31474..9d38ce8dd350 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/FormatFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/FormatFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/FormatterCollectionTest.cs b/src/Mvc/Mvc.Core/test/Formatters/FormatterCollectionTest.cs index 81b532a3ad3e..e1aada6788f7 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/FormatterCollectionTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/FormatterCollectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Mvc/Mvc.Core/test/Formatters/FormatterMappingsTest.cs b/src/Mvc/Mvc.Core/test/Formatters/FormatterMappingsTest.cs index a181b5528b7a..2a7f3b4271c8 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/FormatterMappingsTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/FormatterMappingsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/Mvc/Mvc.Core/test/Formatters/InputFormatterTest.cs b/src/Mvc/Mvc.Core/test/Formatters/InputFormatterTest.cs index d5b631d9b6f2..26dc05f2098b 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/InputFormatterTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/InputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/JsonInputFormatterTestBase.cs b/src/Mvc/Mvc.Core/test/Formatters/JsonInputFormatterTestBase.cs index 56b1b258ea1d..df6abe48067f 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/JsonInputFormatterTestBase.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/JsonInputFormatterTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/JsonOutputFormatterTestBase.cs b/src/Mvc/Mvc.Core/test/Formatters/JsonOutputFormatterTestBase.cs index 44a01870b158..8440d8b866aa 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/JsonOutputFormatterTestBase.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/JsonOutputFormatterTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/test/Formatters/MediaTypeTest.cs b/src/Mvc/Mvc.Core/test/Formatters/MediaTypeTest.cs index 9ab131f8ecdf..e1ad7f408a0e 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/MediaTypeTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/MediaTypeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/NoContentFormatterTests.cs b/src/Mvc/Mvc.Core/test/Formatters/NoContentFormatterTests.cs index b8e1d51bc2fa..89327b1f5be8 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/NoContentFormatterTests.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/NoContentFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/OutputFormatterTests.cs b/src/Mvc/Mvc.Core/test/Formatters/OutputFormatterTests.cs index 3c2e9b80a951..45338122942f 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/OutputFormatterTests.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/OutputFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/ResponseContentTypeHelperTest.cs b/src/Mvc/Mvc.Core/test/Formatters/ResponseContentTypeHelperTest.cs index 362278f86409..f03ba142e37e 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/ResponseContentTypeHelperTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/ResponseContentTypeHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Core/test/Formatters/StreamOutputFormatterTest.cs b/src/Mvc/Mvc.Core/test/Formatters/StreamOutputFormatterTest.cs index 76fef9e1a2a1..4bc19bbdfb98 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/StreamOutputFormatterTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/StreamOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/test/Formatters/StringOutputFormatterTests.cs b/src/Mvc/Mvc.Core/test/Formatters/StringOutputFormatterTests.cs index 9069aa06f664..02065816f3ed 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/StringOutputFormatterTests.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/StringOutputFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonInputFormatterTest.cs b/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonInputFormatterTest.cs index ab065fe80fc3..05b53d7334c1 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonInputFormatterTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonOutputFormatterTest.cs b/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonOutputFormatterTest.cs index b4d96cbad7ef..b9fa926628c7 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonOutputFormatterTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/SystemTextJsonOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/TextInputFormatterTest.cs b/src/Mvc/Mvc.Core/test/Formatters/TextInputFormatterTest.cs index 5191a25c331c..be3f3f0d73ee 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/TextInputFormatterTest.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/TextInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Formatters/TextOutputFormatterTests.cs b/src/Mvc/Mvc.Core/test/Formatters/TextOutputFormatterTests.cs index c47241e00a03..be0ad8b4ba73 100644 --- a/src/Mvc/Mvc.Core/test/Formatters/TextOutputFormatterTests.cs +++ b/src/Mvc/Mvc.Core/test/Formatters/TextOutputFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/HttpNotFoundObjectResultTest.cs b/src/Mvc/Mvc.Core/test/HttpNotFoundObjectResultTest.cs index 7956120d2a23..68282fee95d4 100644 --- a/src/Mvc/Mvc.Core/test/HttpNotFoundObjectResultTest.cs +++ b/src/Mvc/Mvc.Core/test/HttpNotFoundObjectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Core/test/HttpNotFoundResultTests.cs b/src/Mvc/Mvc.Core/test/HttpNotFoundResultTests.cs index a70c66e334ab..38b36b2971cd 100644 --- a/src/Mvc/Mvc.Core/test/HttpNotFoundResultTests.cs +++ b/src/Mvc/Mvc.Core/test/HttpNotFoundResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/HttpOkObjectResultTest.cs b/src/Mvc/Mvc.Core/test/HttpOkObjectResultTest.cs index 8735a8c89fca..3d366860dc01 100644 --- a/src/Mvc/Mvc.Core/test/HttpOkObjectResultTest.cs +++ b/src/Mvc/Mvc.Core/test/HttpOkObjectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/HttpOkResultTest.cs b/src/Mvc/Mvc.Core/test/HttpOkResultTest.cs index be9a2c7af60c..a043a54d2fe3 100644 --- a/src/Mvc/Mvc.Core/test/HttpOkResultTest.cs +++ b/src/Mvc/Mvc.Core/test/HttpOkResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/test/HttpStatusCodeResultTests.cs b/src/Mvc/Mvc.Core/test/HttpStatusCodeResultTests.cs index 48634917fbbc..9941ca35ae10 100644 --- a/src/Mvc/Mvc.Core/test/HttpStatusCodeResultTests.cs +++ b/src/Mvc/Mvc.Core/test/HttpStatusCodeResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Core/test/HttpUnauthorizedResultTests.cs b/src/Mvc/Mvc.Core/test/HttpUnauthorizedResultTests.cs index 2f51646fac2e..4c9331b24bed 100644 --- a/src/Mvc/Mvc.Core/test/HttpUnauthorizedResultTests.cs +++ b/src/Mvc/Mvc.Core/test/HttpUnauthorizedResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ActionMethodExecutorTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ActionMethodExecutorTest.cs index aa40fb873a2e..4be238e436fb 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ActionMethodExecutorTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ActionMethodExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ActionResultTypeMapperTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ActionResultTypeMapperTest.cs index a21b509be262..579efabb4c82 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ActionResultTypeMapperTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ActionResultTypeMapperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Moq; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectionTableTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectionTableTest.cs index c6cb0dcfad38..a4c79f1f603c 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectionTableTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectionTableTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure { // The ActionSelectionTable has different code paths for ActionDescriptor and - // RouteEndpoint for creating a table. We're trying to test both code paths + // RouteEndpoint for creating a table. We're trying to test both code paths // for creation, but selection works the same for both cases. public class ActionSelectionTableTest { @@ -561,7 +561,7 @@ private static ActionSelectionTable CreateTableWithEndpoints(IReadOnly var metadata = new List(a.EndpointMetadata ?? Array.Empty()); metadata.Add(a); return new Endpoint( - requestDelegate: context => Task.CompletedTask, + requestDelegate: context => Task.CompletedTask, metadata: new EndpointMetadataCollection(metadata), displayName: a.DisplayName); }); diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectorTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectorTest.cs index 4356fd365bf1..2265c5632ae1 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectorTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ActionSelectorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/AsyncEnumerableReaderTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/AsyncEnumerableReaderTest.cs index 63e27aea006a..eac659f55adf 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/AsyncEnumerableReaderTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/AsyncEnumerableReaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ClientErrorResultFilterTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ClientErrorResultFilterTest.cs index 0a2c6db76d73..fba8ddc765b1 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ClientErrorResultFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ClientErrorResultFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/CompatibilitySwitchTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/CompatibilitySwitchTest.cs index aa91274e7785..734d519a066d 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/CompatibilitySwitchTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/CompatibilitySwitchTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ConfigureCompatibilityOptionsTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ConfigureCompatibilityOptionsTest.cs index 21a2bdce9504..3fa83465f122 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ConfigureCompatibilityOptionsTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ConfigureCompatibilityOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerCacheTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerCacheTest.cs index ae988f93f4ee..8f328afd3067 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerCacheTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerCacheTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerTest.cs index 9ab07f66a1e9..46c2f22f8bec 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ControllerActionInvokerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/DefaultActionDescriptorCollectionProviderTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/DefaultActionDescriptorCollectionProviderTest.cs index e5eb4b7f9485..1a3f607b58e2 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/DefaultActionDescriptorCollectionProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/DefaultActionDescriptorCollectionProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/DefaultOutputFormatterSelectorTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/DefaultOutputFormatterSelectorTest.cs index dad5bb55f7aa..7ba5dd2f2050 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/DefaultOutputFormatterSelectorTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/DefaultOutputFormatterSelectorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/JsonResultExecutorTestBase.cs b/src/Mvc/Mvc.Core/test/Infrastructure/JsonResultExecutorTestBase.cs index 80ea0c5a8bb3..9e579244a36e 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/JsonResultExecutorTestBase.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/JsonResultExecutorTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ModelStateInvalidFilterTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ModelStateInvalidFilterTest.cs index fb5c0111c190..a4b46408db61 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ModelStateInvalidFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ModelStateInvalidFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/NonDisposableStreamTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/NonDisposableStreamTest.cs index 942119d8d1ef..a244e786ac74 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/NonDisposableStreamTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/NonDisposableStreamTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ObjectResultExecutorTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ObjectResultExecutorTest.cs index fb3c8140ffee..1ffcf65d2f5d 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ObjectResultExecutorTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ObjectResultExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -149,7 +149,7 @@ public async Task ExecuteAsync_WithResponseContentType_ForProblemDetailsValue_Us httpContext.Response.ContentType = "application/json"; // This will not be used var result = new ObjectResult(new ProblemDetails()); - result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type + result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type result.Formatters.Add(new TestJsonOutputFormatter()); result.Formatters.Add(new TestStringOutputFormatter()); @@ -171,7 +171,7 @@ public async Task ExecuteAsync_ForProblemDetailsValue_UsesProblemDetailsContentT httpContext.Response.ContentType = "application/json"; // This will not be used var result = new ObjectResult(new ProblemDetails()); - result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type + result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type result.Formatters.Add(new TestJsonOutputFormatter()); result.Formatters.Add(new TestStringOutputFormatter()); @@ -196,7 +196,7 @@ public async Task ExecuteAsync_ForProblemDetailsValue_UsesProblemDetailsJsonCont var result = new ObjectResult(new ProblemDetails()) { ContentTypes = { "text/plain" }, // This will not be used - }; + }; result.Formatters.Add(new TestJsonOutputFormatter()); // This will be chosen based on the Accept Headers "application/json" result.Formatters.Add(new TestXmlOutputFormatter()); result.Formatters.Add(new TestStringOutputFormatter()); @@ -207,7 +207,7 @@ public async Task ExecuteAsync_ForProblemDetailsValue_UsesProblemDetailsJsonCont // Assert MediaTypeAssert.Equal("application/problem+json; charset=utf-8", httpContext.Response.ContentType); } - + [Fact] public async Task ExecuteAsync_ForProblemDetailsValue_UsesProblemDetailsXMLContentType_BasedOnAcceptHeader() { @@ -221,8 +221,8 @@ public async Task ExecuteAsync_ForProblemDetailsValue_UsesProblemDetailsXMLConte var result = new ObjectResult(new ProblemDetails()) { ContentTypes = { "text/plain" }, // This will not be used - }; - result.Formatters.Add(new TestJsonOutputFormatter()); + }; + result.Formatters.Add(new TestJsonOutputFormatter()); result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the Accept Headers "application/xml" result.Formatters.Add(new TestStringOutputFormatter()); diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ParameterDefaultValuesTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ParameterDefaultValuesTest.cs index befe46a23f75..6b90cc457fc2 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ParameterDefaultValuesTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ParameterDefaultValuesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetailsFactoryTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetailsFactoryTest.cs index 4b4957c0368e..11e54d1d148c 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetailsFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetailsFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetalsClientErrorFactoryTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetalsClientErrorFactoryTest.cs index 93ac451d3753..b8f8ef8e322d 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetalsClientErrorFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ProblemDetalsClientErrorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/SystemTextJsonResultExecutorTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/SystemTextJsonResultExecutorTest.cs index 54a2d99a9d4c..cd5489fd46f0 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/SystemTextJsonResultExecutorTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/SystemTextJsonResultExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; @@ -17,7 +17,7 @@ public class SystemTextJsonResultExecutorTest : JsonResultExecutorTestBase protected override IActionResultExecutor CreateExecutor(ILoggerFactory loggerFactory) { return new SystemTextJsonResultExecutor( - Options.Create(new JsonOptions()), + Options.Create(new JsonOptions()), loggerFactory.CreateLogger(), Options.Create(new MvcOptions())); } diff --git a/src/Mvc/Mvc.Core/test/Infrastructure/ValidationProblemDetailsJsonConverterTest.cs b/src/Mvc/Mvc.Core/test/Infrastructure/ValidationProblemDetailsJsonConverterTest.cs index d5522ea79f9e..7bd23b25927f 100644 --- a/src/Mvc/Mvc.Core/test/Infrastructure/ValidationProblemDetailsJsonConverterTest.cs +++ b/src/Mvc/Mvc.Core/test/Infrastructure/ValidationProblemDetailsJsonConverterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Text; diff --git a/src/Mvc/Mvc.Core/test/LocalRedirectResultTest.cs b/src/Mvc/Mvc.Core/test/LocalRedirectResultTest.cs index 5c90a65e87aa..983d5788b7b5 100644 --- a/src/Mvc/Mvc.Core/test/LocalRedirectResultTest.cs +++ b/src/Mvc/Mvc.Core/test/LocalRedirectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/MediaTypeCollectionTest.cs b/src/Mvc/Mvc.Core/test/MediaTypeCollectionTest.cs index 5745821a7994..81e7ff93e4e0 100644 --- a/src/Mvc/Mvc.Core/test/MediaTypeCollectionTest.cs +++ b/src/Mvc/Mvc.Core/test/MediaTypeCollectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Net.Http.Headers; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderProviderTest.cs index c4da08f0eff7..8a8a7c13347a 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderTest.cs index d1edc6f57724..e54bd34cfe1d 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ArrayModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderProviderTest.cs index 98c72b2918ee..32905f0bfb28 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs index 5f9110b76985..3df48077cbfc 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderProviderTest.cs index 148af531be1a..136eabfd04b4 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderTests.cs index 6aaf585aecd7..9ec67c790383 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BodyModelBinderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderProviderTest.cs index e7694592aee2..796d52a8318c 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderTests.cs index 467965841664..37927f1fe4cd 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ByteArrayModelBinderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderProviderTest.cs index 676485a8ae83..fd19627a5938 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderTests.cs index 93a21b60b73f..660581de2501 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CancellationTokenModelBinderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderProviderTest.cs index 6e233a0580f5..b81d904f3b3b 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderTest.cs index 341947bf357f..ea06fe055a5d 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/CollectionModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderProviderTest.cs index 082fe6b74e4e..568f1b693436 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderTest.cs index fcf5ea537ef3..f00789972141 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexObjectModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderProviderTest.cs index c154bff7bbc5..46134d2353d9 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderTest.cs index 4a4a795116e3..158cea373d61 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ComplexTypeModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderProviderTest.cs index 376d3b6765fc..14d59ec87aad 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderProviderTest.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/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderTest.cs index e44fa480ef28..93726005e545 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DecimalModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DecimalModelBinderTest.cs index 21ec379c4aec..7e0f6cd8a7a8 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DecimalModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DecimalModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.Extensions.Logging.Abstractions; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderProviderTest.cs index ce740a6e80b6..632c891510bc 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderTest.cs index 60761d62fcc4..30bdf3f6ac95 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DictionaryModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DoubleModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DoubleModelBinderTest.cs index 4d028ff8b473..4389bdc5c416 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DoubleModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/DoubleModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.Extensions.Logging.Abstractions; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderProviderTest.cs index 017f9a4e48e5..8cccfbf4ae97 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding.Binders; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderTest.cs index 5f5efe5e666a..d7b8c97ec383 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/EnumTypeModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatModelBinderTest.cs index 267947309293..19546ec6c459 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.Extensions.Logging.Abstractions; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderProviderTest.cs index 7da624a7edab..80ed2e428548 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs index 7cf48f1334b5..18b23933e54b 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderProviderTest.cs index 38b5a0d65dd0..61dc6efc28a0 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderTest.cs index ad8eca9bc30e..3b3131fddaa1 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormCollectionModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderProviderTest.cs index 7c726c129b9d..a6657c3d4f7e 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderTest.cs index b1e3c35817c0..ca1f35e881e4 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/FormFileModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderProviderTest.cs index 41d3ad7dcdb9..7fb53248a820 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderTests.cs index 42e42846df1e..8649c9bf9d3f 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/HeaderModelBinderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderProviderTest.cs index 8f4587301e78..8326929a1f74 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderTest.cs index 55fa61e919e9..a0da798312f6 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/KeyValuePairModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderProviderTest.cs index e3a46b57bf55..7de3fc2b5533 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderTest.cs index f3a3e7578adc..a44d764ecaa8 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/ServicesModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderProviderTest.cs index 8c7329c6e50f..737b280783a1 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs index ee5c372cd095..a815c0f47487 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/BindingSourceValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/BindingSourceValueProviderTest.cs index ea699e183a33..b94607a4b359 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/BindingSourceValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/BindingSourceValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; @@ -54,7 +54,7 @@ public void BindingSourceValueProvider_ReturnsNull_WithNonMatchingSource() // Arrange var valueProvider = new TestableBindingSourceValueProvider(BindingSource.Query); - // Act + // Act var result = valueProvider.Filter(BindingSource.Body); // Assert @@ -67,7 +67,7 @@ public void BindingSourceValueProvider_ReturnsSelf_WithMatchingSource() // Arrange var valueProvider = new TestableBindingSourceValueProvider(BindingSource.Query); - // Act + // Act var result = valueProvider.Filter(BindingSource.Query); // Assert diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/CompositeValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/CompositeValueProviderTest.cs index cdf2f80b4725..6c7fd26b277e 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/CompositeValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/CompositeValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/DefaultModelBindingContextTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/DefaultModelBindingContextTest.cs index 6fc7d49237e8..a16f79403f20 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/DefaultModelBindingContextTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/DefaultModelBindingContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ElementalValueProviderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ElementalValueProviderTests.cs index c2c64182732c..7d43a2667eca 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ElementalValueProviderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ElementalValueProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/EnumerableValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/EnumerableValueProviderTest.cs index 582dd6017d34..6c7b35fb77bc 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/EnumerableValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/EnumerableValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderFactoryTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderFactoryTest.cs index 9926fc19348e..dac50bbfafde 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderTest.cs index 7be36b91ff97..110a81dca2d1 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/FormFileValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderFactoryTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderFactoryTest.cs index 53873b0ee6fc..2463bfcbace3 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderTest.cs index adc38cadcb02..30e66d03ba74 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/FormValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderFactoryTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderFactoryTest.cs index 186b04c64ebc..415c9bd42c9c 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderTest.cs index 4676530e5f3d..e096fd121f6c 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryFormValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderFactoryTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderFactoryTest.cs index 95f1a50dcb4c..5ddd833b0d38 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderTest.cs index 8d9b795769d5..476e78c187f4 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/JQueryQueryStringValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceMetadataProviderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceMetadataProviderTests.cs index 5cf12bb5f032..0695b88a36b6 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceMetadataProviderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceMetadataProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceTest.cs index 0366a7c9b3aa..d0b631f28895 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/BindingSourceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/CompositeBindingSourceTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/CompositeBindingSourceTest.cs index b5ee0c57eaae..3df452bdf028 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/CompositeBindingSourceTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/CompositeBindingSourceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultBindingMetadataProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultBindingMetadataProviderTest.cs index f5c4d4c592f3..a7ef27c3d6a9 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultBindingMetadataProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultBindingMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataProviderTest.cs index 89948358177a..44ade45ed738 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataTest.cs index 628471df74e9..bac549006808 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultModelMetadataTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultValidationMetadataProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultValidationMetadataProviderTest.cs index fde003253503..571ef59af9b2 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultValidationMetadataProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DefaultValidationMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DisplayMetadataTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DisplayMetadataTest.cs index b576b3ede9fc..77c845baa1e1 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DisplayMetadataTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/DisplayMetadataTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/EmptyCompositeMetadataDetailsProvider.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/EmptyCompositeMetadataDetailsProvider.cs index 84ac75ffc08f..576de28b2dc9 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/EmptyCompositeMetadataDetailsProvider.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/EmptyCompositeMetadataDetailsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata { diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ExcludeBindingMetadataProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ExcludeBindingMetadataProviderTest.cs index 908731445ff4..ef812dc04af2 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ExcludeBindingMetadataProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ExcludeBindingMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/HasValidatorsValidationMetadataProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/HasValidatorsValidationMetadataProviderTest.cs index 94ebad7b3b06..6c16eaa3d06a 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/HasValidatorsValidationMetadataProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/HasValidatorsValidationMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; @@ -117,7 +117,7 @@ public void CreateValidationMetadata_DoesNotOverrideExistingHasValidatorsValue() var key = ModelMetadataIdentity.ForType(typeof(object)); var modelAttributes = new ModelAttributes(new object[0], new object[0], new object[0]); var context = new ValidationMetadataProviderContext(key, modelAttributes); - + // Initialize this value. context.ValidationMetadata.HasValidators = true; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/MetadataDetailsProviderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/MetadataDetailsProviderExtensionsTest.cs index 5a5254d00439..cbd3fbadcf21 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/MetadataDetailsProviderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/MetadataDetailsProviderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelAttributesTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelAttributesTest.cs index 3174e0110de3..a6d0cdb68b19 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelAttributesTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelAttributesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelBinderAttributeTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelBinderAttributeTest.cs index 3d1e121da523..87a09a4da146 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelBinderAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelBinderAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding.Binders; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelMetadataProviderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelMetadataProviderExtensionsTest.cs index 101a2433ddd2..71a67226e3b1 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelMetadataProviderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelMetadataProviderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderFactoryTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderFactoryTest.cs index b3f4d158880e..e1ad933f4536 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderProviderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderProviderExtensionsTest.cs index 24f8310a4184..e2ed8d7b9bb0 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderProviderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBinderProviderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingHelperTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingHelperTest.cs index 23c3513a1330..d6a4fa974b63 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingHelperTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingResultTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingResultTest.cs index 9fa90d53dc0e..1ca8f9505644 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingResultTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ModelBindingResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; @@ -20,7 +20,7 @@ public void Success_SetsProperties() Assert.True(result.IsModelSet); Assert.Same(model, result.Model); } - + [Fact] public void Failed_SetsProperties() { diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ParameterBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ParameterBinderTest.cs index b670a72ec499..a652a81b7046 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ParameterBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ParameterBinderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/PrefixContainerTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/PrefixContainerTest.cs index 78ce08be6102..ed2d7ffcca4a 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/PrefixContainerTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/PrefixContainerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderFactoryTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderFactoryTest.cs index fbf2605ad594..780fc7d5bd61 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderTest.cs index 273586b1ebeb..361242f459c4 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/QueryStringValueProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/RouteValueProviderTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/RouteValueProviderTests.cs index ac6221d38136..526ff8da0270 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/RouteValueProviderTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/RouteValueProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/StubModelBinder.cs b/src/Mvc/Mvc.Core/test/ModelBinding/StubModelBinder.cs index b0d19eaa5604..0619e4ba2322 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/StubModelBinder.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/StubModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Core/test/ModelBinding/TestModelBinderProviderContext.cs b/src/Mvc/Mvc.Core/test/ModelBinding/TestModelBinderProviderContext.cs index d0c29dae8d95..60945ab174cd 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/TestModelBinderProviderContext.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/TestModelBinderProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/TestValueProvider.cs b/src/Mvc/Mvc.Core/test/ModelBinding/TestValueProvider.cs index f0a5e1f57162..d021e0ded48f 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/TestValueProvider.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/TestValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Routing; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/UnsupportedContentTypeFilterTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/UnsupportedContentTypeFilterTest.cs index b31db70f37a0..1c709c3a2f53 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/UnsupportedContentTypeFilterTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/UnsupportedContentTypeFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ClientValidatorCacheTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ClientValidatorCacheTest.cs index 7d4a8aeb3821..ac7880244cde 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ClientValidatorCacheTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ClientValidatorCacheTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/CompositeModelValidatorProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/CompositeModelValidatorProviderTest.cs index ed0c1e8811ed..c545f77b709d 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/CompositeModelValidatorProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/CompositeModelValidatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultCollectionValidationStrategyTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultCollectionValidationStrategyTest.cs index ee0eb39de6a8..a1348067f27f 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultCollectionValidationStrategyTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultCollectionValidationStrategyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultComplexObjectValidationStrategyTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultComplexObjectValidationStrategyTest.cs index bf565f90ad9e..94435280da06 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultComplexObjectValidationStrategyTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultComplexObjectValidationStrategyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultModelValidatorProviderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultModelValidatorProviderTest.cs index f23d6f4bea9b..65603870015d 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultModelValidatorProviderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultModelValidatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultObjectValidatorTests.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultObjectValidatorTests.cs index 46b377d5b0c2..c8da6d96bcfc 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultObjectValidatorTests.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/DefaultObjectValidatorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategyTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategyTest.cs index 8d09ea153ae4..b0c897b4da79 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategyTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ExplicitIndexCollectionValidationStrategyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ModelValidatorProviderExtensionsTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ModelValidatorProviderExtensionsTest.cs index 69a067ad5df2..2ab9c8b429d2 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ModelValidatorProviderExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ModelValidatorProviderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ShortFormDictionaryValidationStrategyTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ShortFormDictionaryValidationStrategyTest.cs index c0026528575e..688928a4183c 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ShortFormDictionaryValidationStrategyTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ShortFormDictionaryValidationStrategyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidationStackTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidationStackTest.cs index 64c4201855e6..799ad4b844f8 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidationStackTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidationStackTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidatorCacheTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidatorCacheTest.cs index cabd56b0d0c0..bb8881e08ed5 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidatorCacheTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Validation/ValidatorCacheTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using System.Linq; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/ValueProviderFactoryExtensionsTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/ValueProviderFactoryExtensionsTest.cs index d55b1317e250..0cf5e371a40b 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/ValueProviderFactoryExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/ValueProviderFactoryExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/MvcCoreLoggerExtensionsTest.cs b/src/Mvc/Mvc.Core/test/MvcCoreLoggerExtensionsTest.cs index d2c3d763dfa8..109b2d1d8f03 100644 --- a/src/Mvc/Mvc.Core/test/MvcCoreLoggerExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/MvcCoreLoggerExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/MvcOptionsTest.cs b/src/Mvc/Mvc.Core/test/MvcOptionsTest.cs index 88504b212927..7e0442482c64 100644 --- a/src/Mvc/Mvc.Core/test/MvcOptionsTest.cs +++ b/src/Mvc/Mvc.Core/test/MvcOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Mvc/Mvc.Core/test/ObjectResultTests.cs b/src/Mvc/Mvc.Core/test/ObjectResultTests.cs index 187e1ede7c42..48c8a61473bd 100644 --- a/src/Mvc/Mvc.Core/test/ObjectResultTests.cs +++ b/src/Mvc/Mvc.Core/test/ObjectResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/PhysicalFileResultTest.cs b/src/Mvc/Mvc.Core/test/PhysicalFileResultTest.cs index 906ecdd52a7a..196b25d930e9 100644 --- a/src/Mvc/Mvc.Core/test/PhysicalFileResultTest.cs +++ b/src/Mvc/Mvc.Core/test/PhysicalFileResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/ProducesAttributeTests.cs b/src/Mvc/Mvc.Core/test/ProducesAttributeTests.cs index 5c16de1124a5..ab117e92fa64 100644 --- a/src/Mvc/Mvc.Core/test/ProducesAttributeTests.cs +++ b/src/Mvc/Mvc.Core/test/ProducesAttributeTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Core/test/Properties/AssemblyInfo.cs index 3337ebeac24b..fb33a59c5309 100644 --- a/src/Mvc/Mvc.Core/test/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Core/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Core/test/RedirectResultTest.cs b/src/Mvc/Mvc.Core/test/RedirectResultTest.cs index 8a170e892cba..64bd038a9849 100644 --- a/src/Mvc/Mvc.Core/test/RedirectResultTest.cs +++ b/src/Mvc/Mvc.Core/test/RedirectResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/RedirectToActionResultTest.cs b/src/Mvc/Mvc.Core/test/RedirectToActionResultTest.cs index 40e70c447aba..2464c2dbb0e4 100644 --- a/src/Mvc/Mvc.Core/test/RedirectToActionResultTest.cs +++ b/src/Mvc/Mvc.Core/test/RedirectToActionResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/RedirectToPageResultTest.cs b/src/Mvc/Mvc.Core/test/RedirectToPageResultTest.cs index 17321fe0f63b..bb4078f6bcea 100644 --- a/src/Mvc/Mvc.Core/test/RedirectToPageResultTest.cs +++ b/src/Mvc/Mvc.Core/test/RedirectToPageResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/RedirectToRouteResultTest.cs b/src/Mvc/Mvc.Core/test/RedirectToRouteResultTest.cs index f747a2ba53eb..58d4a8c3face 100644 --- a/src/Mvc/Mvc.Core/test/RedirectToRouteResultTest.cs +++ b/src/Mvc/Mvc.Core/test/RedirectToRouteResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/RequestFormLimitsAttributeTest.cs b/src/Mvc/Mvc.Core/test/RequestFormLimitsAttributeTest.cs index df9eae7c9c33..540ed217b86f 100644 --- a/src/Mvc/Mvc.Core/test/RequestFormLimitsAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/RequestFormLimitsAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/RequireHttpsAttributeTests.cs b/src/Mvc/Mvc.Core/test/RequireHttpsAttributeTests.cs index e1bd339e4e30..d8dc0e8192dc 100644 --- a/src/Mvc/Mvc.Core/test/RequireHttpsAttributeTests.cs +++ b/src/Mvc/Mvc.Core/test/RequireHttpsAttributeTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -202,12 +202,12 @@ public void OnAuthorization_RedirectsToHttpsEndpoint_WithSpecifiedStatusCodeAndR requestContext.RequestServices = CreateServices(null, requireHttpsPermanent); requestContext.Request.Scheme = "http"; requestContext.Request.Method = "GET"; - + var authContext = CreateAuthorizationContext(requestContext); var attr = new RequireHttpsAttribute(); if (permanent.HasValue) { - attr.Permanent = permanent.Value; + attr.Permanent = permanent.Value; }; // Act diff --git a/src/Mvc/Mvc.Core/test/ResponseCacheAttributeTest.cs b/src/Mvc/Mvc.Core/test/ResponseCacheAttributeTest.cs index 242af7b3eb3a..a69d6c46f159 100644 --- a/src/Mvc/Mvc.Core/test/ResponseCacheAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/ResponseCacheAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/ActionEndpointDataSourceBaseTest.cs b/src/Mvc/Mvc.Core/test/Routing/ActionEndpointDataSourceBaseTest.cs index 9371c6592e41..71ed77dd9f1c 100644 --- a/src/Mvc/Mvc.Core/test/Routing/ActionEndpointDataSourceBaseTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/ActionEndpointDataSourceBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/ActionEndpointFactoryTest.cs b/src/Mvc/Mvc.Core/test/Routing/ActionEndpointFactoryTest.cs index 887268ef31e5..7e3fe91fe994 100644 --- a/src/Mvc/Mvc.Core/test/Routing/ActionEndpointFactoryTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/ActionEndpointFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/AttributeRouteTest.cs b/src/Mvc/Mvc.Core/test/Routing/AttributeRouteTest.cs index 3b9ca697878a..89698aa29513 100644 --- a/src/Mvc/Mvc.Core/test/Routing/AttributeRouteTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/AttributeRouteTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/AttributeRoutingTest.cs b/src/Mvc/Mvc.Core/test/Routing/AttributeRoutingTest.cs index f5097d39f73b..a21bdfc34c39 100644 --- a/src/Mvc/Mvc.Core/test/Routing/AttributeRoutingTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/AttributeRoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/ConsumesMatcherPolicyTest.cs b/src/Mvc/Mvc.Core/test/Routing/ConsumesMatcherPolicyTest.cs index cd6f9e5f28a1..8575e3d9ed3d 100644 --- a/src/Mvc/Mvc.Core/test/Routing/ConsumesMatcherPolicyTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/ConsumesMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/ControllerActionEndpointDataSourceTest.cs b/src/Mvc/Mvc.Core/test/Routing/ControllerActionEndpointDataSourceTest.cs index 8ee740f2c13a..16bb7998c209 100644 --- a/src/Mvc/Mvc.Core/test/Routing/ControllerActionEndpointDataSourceTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/ControllerActionEndpointDataSourceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/ControllerLinkGeneratorExtensionsTest.cs b/src/Mvc/Mvc.Core/test/Routing/ControllerLinkGeneratorExtensionsTest.cs index 061a78c630a5..cc92b0f8589a 100644 --- a/src/Mvc/Mvc.Core/test/Routing/ControllerLinkGeneratorExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/ControllerLinkGeneratorExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/DynamicControllerEndpointMatcherPolicyTest.cs b/src/Mvc/Mvc.Core/test/Routing/DynamicControllerEndpointMatcherPolicyTest.cs index 44a8232b07db..e99ce0ffd940 100644 --- a/src/Mvc/Mvc.Core/test/Routing/DynamicControllerEndpointMatcherPolicyTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/DynamicControllerEndpointMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/EndpointRoutingUrlHelperTest.cs b/src/Mvc/Mvc.Core/test/Routing/EndpointRoutingUrlHelperTest.cs index d702ab8196cb..9043f7b18dfd 100644 --- a/src/Mvc/Mvc.Core/test/Routing/EndpointRoutingUrlHelperTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/EndpointRoutingUrlHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/HttpMethodProviderAttributesTests.cs b/src/Mvc/Mvc.Core/test/Routing/HttpMethodProviderAttributesTests.cs index b8b04b4460ed..f3658a77ed47 100644 --- a/src/Mvc/Mvc.Core/test/Routing/HttpMethodProviderAttributesTests.cs +++ b/src/Mvc/Mvc.Core/test/Routing/HttpMethodProviderAttributesTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Core/test/Routing/KnownRouteValueConstraintTests.cs b/src/Mvc/Mvc.Core/test/Routing/KnownRouteValueConstraintTests.cs index e9a44d919d51..67734e8e1bc1 100644 --- a/src/Mvc/Mvc.Core/test/Routing/KnownRouteValueConstraintTests.cs +++ b/src/Mvc/Mvc.Core/test/Routing/KnownRouteValueConstraintTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Core/test/Routing/MvcRouteHandlerTests.cs b/src/Mvc/Mvc.Core/test/Routing/MvcRouteHandlerTests.cs index 87b25333a5c1..a21a3313d857 100644 --- a/src/Mvc/Mvc.Core/test/Routing/MvcRouteHandlerTests.cs +++ b/src/Mvc/Mvc.Core/test/Routing/MvcRouteHandlerTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Mvc/Mvc.Core/test/Routing/PageLinkGeneratorExtensionsTest.cs b/src/Mvc/Mvc.Core/test/Routing/PageLinkGeneratorExtensionsTest.cs index 0d1b66e2c15b..6a955991f33e 100644 --- a/src/Mvc/Mvc.Core/test/Routing/PageLinkGeneratorExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/PageLinkGeneratorExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/RoutePatternWriterTests.cs b/src/Mvc/Mvc.Core/test/Routing/RoutePatternWriterTests.cs index b7c1a9213b26..07d4004c1c0c 100644 --- a/src/Mvc/Mvc.Core/test/Routing/RoutePatternWriterTests.cs +++ b/src/Mvc/Mvc.Core/test/Routing/RoutePatternWriterTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Routing.Patterns; diff --git a/src/Mvc/Mvc.Core/test/Routing/RouteTemplateProviderAttributesTest.cs b/src/Mvc/Mvc.Core/test/Routing/RouteTemplateProviderAttributesTest.cs index 76be45cc8f77..02bf5568c1f1 100644 --- a/src/Mvc/Mvc.Core/test/Routing/RouteTemplateProviderAttributesTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/RouteTemplateProviderAttributesTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/Routing/UrlHelperBaseTest.cs b/src/Mvc/Mvc.Core/test/Routing/UrlHelperBaseTest.cs index a57daa314d9c..b179e7fb6f55 100644 --- a/src/Mvc/Mvc.Core/test/Routing/UrlHelperBaseTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/UrlHelperBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Mvc/Mvc.Core/test/Routing/UrlHelperExtensionsTest.cs b/src/Mvc/Mvc.Core/test/Routing/UrlHelperExtensionsTest.cs index 0ea5e72b1027..e8bc2ceb3b70 100644 --- a/src/Mvc/Mvc.Core/test/Routing/UrlHelperExtensionsTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/UrlHelperExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/UrlHelperTest.cs b/src/Mvc/Mvc.Core/test/Routing/UrlHelperTest.cs index 2d7e4a0f1567..cf046a749d79 100644 --- a/src/Mvc/Mvc.Core/test/Routing/UrlHelperTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/UrlHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Mvc/Mvc.Core/test/Routing/UrlHelperTestBase.cs b/src/Mvc/Mvc.Core/test/Routing/UrlHelperTestBase.cs index a0693946bc57..7deacc13777b 100644 --- a/src/Mvc/Mvc.Core/test/Routing/UrlHelperTestBase.cs +++ b/src/Mvc/Mvc.Core/test/Routing/UrlHelperTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/Routing/ViewEnginePathTest.cs b/src/Mvc/Mvc.Core/test/Routing/ViewEnginePathTest.cs index cb95480328ea..570756c80122 100644 --- a/src/Mvc/Mvc.Core/test/Routing/ViewEnginePathTest.cs +++ b/src/Mvc/Mvc.Core/test/Routing/ViewEnginePathTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Core/test/SerializableErrorTests.cs b/src/Mvc/Mvc.Core/test/SerializableErrorTests.cs index 24a397b8822a..a8ad1363fa32 100644 --- a/src/Mvc/Mvc.Core/test/SerializableErrorTests.cs +++ b/src/Mvc/Mvc.Core/test/SerializableErrorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ServiceFilterAttributeTest.cs b/src/Mvc/Mvc.Core/test/ServiceFilterAttributeTest.cs index e21e55018c37..39d9b9b0cdf1 100644 --- a/src/Mvc/Mvc.Core/test/ServiceFilterAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/ServiceFilterAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/test/SignInResultTest.cs b/src/Mvc/Mvc.Core/test/SignInResultTest.cs index 15f895bd5b5a..d879da9bf98a 100644 --- a/src/Mvc/Mvc.Core/test/SignInResultTest.cs +++ b/src/Mvc/Mvc.Core/test/SignInResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Mvc/Mvc.Core/test/SignOutResultTest.cs b/src/Mvc/Mvc.Core/test/SignOutResultTest.cs index 9abec7a1b0ad..fe1dc6ca4507 100644 --- a/src/Mvc/Mvc.Core/test/SignOutResultTest.cs +++ b/src/Mvc/Mvc.Core/test/SignOutResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/TestApplicationPart.cs b/src/Mvc/Mvc.Core/test/TestApplicationPart.cs index b8541d776b02..188e13d9ca27 100644 --- a/src/Mvc/Mvc.Core/test/TestApplicationPart.cs +++ b/src/Mvc/Mvc.Core/test/TestApplicationPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/TestFeatureProvider.cs b/src/Mvc/Mvc.Core/test/TestFeatureProvider.cs index 77c87709a491..6b0a59b01337 100644 --- a/src/Mvc/Mvc.Core/test/TestFeatureProvider.cs +++ b/src/Mvc/Mvc.Core/test/TestFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/TypeFilterAttributeTest.cs b/src/Mvc/Mvc.Core/test/TypeFilterAttributeTest.cs index 27d407b8371f..9d9cc98d6246 100644 --- a/src/Mvc/Mvc.Core/test/TypeFilterAttributeTest.cs +++ b/src/Mvc/Mvc.Core/test/TypeFilterAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Core/test/UnprocessableEntityObjectResultTests.cs b/src/Mvc/Mvc.Core/test/UnprocessableEntityObjectResultTests.cs index 7ab3fcfd9fab..bd50d9cfd425 100644 --- a/src/Mvc/Mvc.Core/test/UnprocessableEntityObjectResultTests.cs +++ b/src/Mvc/Mvc.Core/test/UnprocessableEntityObjectResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.Core/test/UnprocessableEntityResultTests.cs b/src/Mvc/Mvc.Core/test/UnprocessableEntityResultTests.cs index b54f474154b0..18dec4c9bf16 100644 --- a/src/Mvc/Mvc.Core/test/UnprocessableEntityResultTests.cs +++ b/src/Mvc/Mvc.Core/test/UnprocessableEntityResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Xunit; diff --git a/src/Mvc/Mvc.Core/test/ValidationProblemDetailsTest.cs b/src/Mvc/Mvc.Core/test/ValidationProblemDetailsTest.cs index 9c8f296d60ad..0f302af004a0 100644 --- a/src/Mvc/Mvc.Core/test/ValidationProblemDetailsTest.cs +++ b/src/Mvc/Mvc.Core/test/ValidationProblemDetailsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Core/test/VirtualFileResultTest.cs b/src/Mvc/Mvc.Core/test/VirtualFileResultTest.cs index e0a3d46c502f..63d763d98ab8 100644 --- a/src/Mvc/Mvc.Core/test/VirtualFileResultTest.cs +++ b/src/Mvc/Mvc.Core/test/VirtualFileResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Cors/src/CorsApplicationModelProvider.cs b/src/Mvc/Mvc.Cors/src/CorsApplicationModelProvider.cs index 37e286fa0346..22c2afdc6bf7 100644 --- a/src/Mvc/Mvc.Cors/src/CorsApplicationModelProvider.cs +++ b/src/Mvc/Mvc.Cors/src/CorsApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilter.cs b/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilter.cs index 9e75af8351b6..2971138d25b9 100644 --- a/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilter.cs +++ b/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilterFactory.cs b/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilterFactory.cs index 3dfe22f70960..70979c294647 100644 --- a/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilterFactory.cs +++ b/src/Mvc/Mvc.Cors/src/CorsAuthorizationFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.Cors/src/CorsHttpMethodActionConstraint.cs b/src/Mvc/Mvc.Cors/src/CorsHttpMethodActionConstraint.cs index 4fb9a22f6854..2e4537b48e3b 100644 --- a/src/Mvc/Mvc.Cors/src/CorsHttpMethodActionConstraint.cs +++ b/src/Mvc/Mvc.Cors/src/CorsHttpMethodActionConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ObjectModel; diff --git a/src/Mvc/Mvc.Cors/src/CorsLoggerExtensions.cs b/src/Mvc/Mvc.Cors/src/CorsLoggerExtensions.cs index ccba2a65e4c9..8dba0a31e06b 100644 --- a/src/Mvc/Mvc.Cors/src/CorsLoggerExtensions.cs +++ b/src/Mvc/Mvc.Cors/src/CorsLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Cors/src/DependencyInjection/MvcCorsMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.Cors/src/DependencyInjection/MvcCorsMvcCoreBuilderExtensions.cs index 4f09dd2f86df..bb7e5a737d61 100644 --- a/src/Mvc/Mvc.Cors/src/DependencyInjection/MvcCorsMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.Cors/src/DependencyInjection/MvcCorsMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Cors.Infrastructure; @@ -52,7 +52,7 @@ public static IMvcCoreBuilder AddCors( AddCorsServices(builder.Services); builder.Services.Configure(setupAction); - + return builder; } diff --git a/src/Mvc/Mvc.Cors/src/DisableCorsAuthorizationFilter.cs b/src/Mvc/Mvc.Cors/src/DisableCorsAuthorizationFilter.cs index ed5a6ea2e31a..ce7186dc23f8 100644 --- a/src/Mvc/Mvc.Cors/src/DisableCorsAuthorizationFilter.cs +++ b/src/Mvc/Mvc.Cors/src/DisableCorsAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Cors/src/ICorsAuthorizationFilter.cs b/src/Mvc/Mvc.Cors/src/ICorsAuthorizationFilter.cs index 483a70980d1c..ffb243e6724a 100644 --- a/src/Mvc/Mvc.Cors/src/ICorsAuthorizationFilter.cs +++ b/src/Mvc/Mvc.Cors/src/ICorsAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.Cors/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Cors/src/Properties/AssemblyInfo.cs index 5a3d62d5addc..6537dee9f557 100644 --- a/src/Mvc/Mvc.Cors/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Cors/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Cors/test/CorsApplicationModelProviderTest.cs b/src/Mvc/Mvc.Cors/test/CorsApplicationModelProviderTest.cs index e2153b007d2b..521b462191a1 100644 --- a/src/Mvc/Mvc.Cors/test/CorsApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.Cors/test/CorsApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Cors/test/CorsAuthorizationFilterTest.cs b/src/Mvc/Mvc.Cors/test/CorsAuthorizationFilterTest.cs index 887b5c0ff151..8863e7b1129c 100644 --- a/src/Mvc/Mvc.Cors/test/CorsAuthorizationFilterTest.cs +++ b/src/Mvc/Mvc.Cors/test/CorsAuthorizationFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Cors/test/CorsHttpMethodActionConstraintTest.cs b/src/Mvc/Mvc.Cors/test/CorsHttpMethodActionConstraintTest.cs index 83a0407e9180..87decde22989 100644 --- a/src/Mvc/Mvc.Cors/test/CorsHttpMethodActionConstraintTest.cs +++ b/src/Mvc/Mvc.Cors/test/CorsHttpMethodActionConstraintTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Cors/test/DisableCorsAuthorizationFilterTest.cs b/src/Mvc/Mvc.Cors/test/DisableCorsAuthorizationFilterTest.cs index aa1fd124a5b3..b9f3a8372069 100644 --- a/src/Mvc/Mvc.Cors/test/DisableCorsAuthorizationFilterTest.cs +++ b/src/Mvc/Mvc.Cors/test/DisableCorsAuthorizationFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.DataAnnotations/src/AttributeAdapterBase.cs b/src/Mvc/Mvc.DataAnnotations/src/AttributeAdapterBase.cs index 3f884f4614aa..9ae91d0c20d2 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/AttributeAdapterBase.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/AttributeAdapterBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; diff --git a/src/Mvc/Mvc.DataAnnotations/src/CompareAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/CompareAttributeAdapter.cs index e45f1db82f43..8cda2074344d 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/CompareAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/CompareAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsClientModelValidatorProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsClientModelValidatorProvider.cs index 9ac106205e19..b257ac5e2613 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsClientModelValidatorProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsClientModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsLocalizationServices.cs b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsLocalizationServices.cs index f8546af65f26..2c02d24e9200 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsLocalizationServices.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsLocalizationServices.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsMetadataProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsMetadataProvider.cs index d1fecd226bf6..851ae37c90b9 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsMetadataProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidator.cs b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidator.cs index d51581dfd205..e0badc2b849e 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidator.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidatorProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidatorProvider.cs index 3906af7469d2..87eb3b91a5dc 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidatorProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DataTypeAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/DataTypeAttributeAdapter.cs index d80b949bbf34..e4e83ddfe525 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DataTypeAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DataTypeAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DefaultClientModelValidatorProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/DefaultClientModelValidatorProvider.cs index 60c8197ce115..fcdbceff9855 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DefaultClientModelValidatorProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DefaultClientModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding.Validation; @@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations /// A default implementation of . /// /// - /// The provides validators from + /// The provides validators from /// instances in . /// internal class DefaultClientModelValidatorProvider : IClientModelValidatorProvider diff --git a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsLocalizationOptionsSetup.cs b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsLocalizationOptionsSetup.cs index 5410042c300b..d7563b8f5656 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsLocalizationOptionsSetup.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsLocalizationOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcBuilderExtensions.cs b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcBuilderExtensions.cs index 400d80126835..dfd755741e04 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs index 4480d215682a..e1ec2c55784d 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcOptionsSetup.cs b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcOptionsSetup.cs index 973997421fac..58eef2fa45c8 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/DependencyInjection/MvcDataAnnotationsMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.DataAnnotations/src/FileExtensionsAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/FileExtensionsAttributeAdapter.cs index d5a30c0092c1..48a64fe6a873 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/FileExtensionsAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/FileExtensionsAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/HiddenInputAttribute.cs b/src/Mvc/Mvc.DataAnnotations/src/HiddenInputAttribute.cs index e88393d48c3b..bd1ba6a6a259 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/HiddenInputAttribute.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/HiddenInputAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.DataAnnotations/src/IAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/IAttributeAdapter.cs index 57765c869d40..fc10ef5b558a 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/IAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/IAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding.Validation; diff --git a/src/Mvc/Mvc.DataAnnotations/src/IValidationAttributeAdapterProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/IValidationAttributeAdapterProvider.cs index 7e771e59477c..5c680aa1af02 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/IValidationAttributeAdapterProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/IValidationAttributeAdapterProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.Extensions.Localization; diff --git a/src/Mvc/Mvc.DataAnnotations/src/MaxLengthAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/MaxLengthAttributeAdapter.cs index 697593013e3f..ef39a947922d 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/MaxLengthAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/MaxLengthAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/MinLengthAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/MinLengthAttributeAdapter.cs index 1edfbf12c598..0a02d46a980d 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/MinLengthAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/MinLengthAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/MvcDataAnnotationsLocalizationOptions.cs b/src/Mvc/Mvc.DataAnnotations/src/MvcDataAnnotationsLocalizationOptions.cs index 1767ab387945..31a9c023c7b2 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/MvcDataAnnotationsLocalizationOptions.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/MvcDataAnnotationsLocalizationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidator.cs b/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidator.cs index f9fc45d4704c..b9dae391f45e 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidator.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidatorProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidatorProvider.cs index 4c44014e8e41..1faf17bbc5c4 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidatorProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/NumericClientModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding.Validation; diff --git a/src/Mvc/Mvc.DataAnnotations/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.DataAnnotations/src/Properties/AssemblyInfo.cs index b1079a1e57b3..418948243375 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.DataAnnotations/src/RangeAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/RangeAttributeAdapter.cs index f958c5f87128..49ac0ac0ad5b 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/RangeAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/RangeAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; @@ -22,7 +22,7 @@ public RangeAttributeAdapter(RangeAttribute attribute, IStringLocalizer? stringL // "100m" to the decimal value 100. // // Validate a randomly selected number. - attribute.IsValid(3); + attribute.IsValid(3); _max = Convert.ToString(Attribute.Maximum, CultureInfo.InvariantCulture)!; _min = Convert.ToString(Attribute.Minimum, CultureInfo.InvariantCulture)!; diff --git a/src/Mvc/Mvc.DataAnnotations/src/RegularExpressionAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/RegularExpressionAttributeAdapter.cs index 0fbeb8f6c3b7..cb6ee8834306 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/RegularExpressionAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/RegularExpressionAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/RequiredAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/RequiredAttributeAdapter.cs index e29a44d030c9..237f16289425 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/RequiredAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/RequiredAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/StringLengthAttributeAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/StringLengthAttributeAdapter.cs index 22c852a701a0..88539c0d8ac3 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/StringLengthAttributeAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/StringLengthAttributeAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/ValidatableObjectAdapter.cs b/src/Mvc/Mvc.DataAnnotations/src/ValidatableObjectAdapter.cs index 022e637fb856..0f2435233a91 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/ValidatableObjectAdapter.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/ValidatableObjectAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterOfTAttribute.cs b/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterOfTAttribute.cs index 6b2992efd8a1..b9028d820d73 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterOfTAttribute.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterOfTAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterProvider.cs b/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterProvider.cs index 8eb7d246c9c7..de25d5bed4a7 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/ValidationAttributeAdapterProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/src/ValidationProviderAttribute.cs b/src/Mvc/Mvc.DataAnnotations/src/ValidationProviderAttribute.cs index c745850b64d1..ad3aebaea471 100644 --- a/src/Mvc/Mvc.DataAnnotations/src/ValidationProviderAttribute.cs +++ b/src/Mvc/Mvc.DataAnnotations/src/ValidationProviderAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/CompareAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/CompareAttributeAdapterTest.cs index 4c4449065dae..52cfeb96c2e2 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/CompareAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/CompareAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsClientModelValidatorProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsClientModelValidatorProviderTest.cs index b59bc73e321c..53a117b288da 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsClientModelValidatorProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsClientModelValidatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs index fc05b7cb121b..a1584e6929b5 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorProviderTest.cs index a444011ccf64..64b707374ef7 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorTest.cs index db454e90e8bf..503fdb5996e6 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsModelValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataMemberRequiredBindingMetadataProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataMemberRequiredBindingMetadataProviderTest.cs index c374cca4f55b..03ae8d201e7d 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataMemberRequiredBindingMetadataProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataMemberRequiredBindingMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -142,7 +142,7 @@ public void IsBindingRequired_LeftAlone_WithoutDataContractAttribute(bool initia private ModelAttributes GetModelAttributes( IEnumerable typeAttributes, - IEnumerable propertyAttributes) + IEnumerable propertyAttributes) => new ModelAttributes(typeAttributes, propertyAttributes, Array.Empty()); [DataContract] diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataTypeClientModelValidatorProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataTypeClientModelValidatorProviderTest.cs index 2eb4483b9ea5..d393716a71df 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataTypeClientModelValidatorProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataTypeClientModelValidatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/DefaultModelClientValidatorProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DefaultModelClientValidatorProviderTest.cs index a6550a671990..74eeb3523ada 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DefaultModelClientValidatorProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DefaultModelClientValidatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/FileExtensionsAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/FileExtensionsAttributeAdapterTest.cs index 73c9fb6d9421..8e5646caccd3 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/FileExtensionsAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/FileExtensionsAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/MaxLengthAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/MaxLengthAttributeAdapterTest.cs index 03498dee5794..4259379a7e61 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/MaxLengthAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/MaxLengthAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/MinLengthAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/MinLengthAttributeAdapterTest.cs index 3aaba29f55b1..5cb3e7c27f99 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/MinLengthAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/MinLengthAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/ModelMetadataProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/ModelMetadataProviderTest.cs index 8b3fff9f320e..8802d9bf66df 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/ModelMetadataProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/ModelMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/ModelValidationResultComparer.cs b/src/Mvc/Mvc.DataAnnotations/test/ModelValidationResultComparer.cs index 12e5f1459a7a..bd8fda466371 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/ModelValidationResultComparer.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/ModelValidationResultComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/MvcDataAnnotationsMvcOptionsSetup.cs b/src/Mvc/Mvc.DataAnnotations/test/MvcDataAnnotationsMvcOptionsSetup.cs index 6aae172e63cc..6c14918580e4 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/MvcDataAnnotationsMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/MvcDataAnnotationsMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.DataAnnotations/test/NumericClientModelValidatorTest.cs b/src/Mvc/Mvc.DataAnnotations/test/NumericClientModelValidatorTest.cs index c9c9f3279578..d04825e451f1 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/NumericClientModelValidatorTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/NumericClientModelValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/RangeAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/RangeAttributeAdapterTest.cs index eb307bce1a9b..efa4ec3fae96 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/RangeAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/RangeAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/RequiredAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/RequiredAttributeAdapterTest.cs index dca1b4ca6564..2b547e99edc9 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/RequiredAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/RequiredAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/StringLengthAttributeAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/StringLengthAttributeAdapterTest.cs index 7a0a59c8f2f1..88384b64de70 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/StringLengthAttributeAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/StringLengthAttributeAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/TestModelNameProvider.cs b/src/Mvc/Mvc.DataAnnotations/test/TestModelNameProvider.cs index 7dc128d01696..0adddd210975 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/TestModelNameProvider.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/TestModelNameProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.DataAnnotations/test/TestResources.cs b/src/Mvc/Mvc.DataAnnotations/test/TestResources.cs index 86f52aacbdb3..a8d41403657f 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/TestResources.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/TestResources.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Resources = Microsoft.AspNetCore.Mvc.DataAnnotations.Test.Resources; diff --git a/src/Mvc/Mvc.DataAnnotations/test/ValidatableObjectAdapterTest.cs b/src/Mvc/Mvc.DataAnnotations/test/ValidatableObjectAdapterTest.cs index 45d533659229..cbbe9706d99e 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/ValidatableObjectAdapterTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/ValidatableObjectAdapterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterOfTAttributeTest.cs b/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterOfTAttributeTest.cs index 37382f1dce97..47ccc5d44302 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterOfTAttributeTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterOfTAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterProviderTest.cs index 51d0c6f4a763..77f086262f07 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/ValidationAttributeAdapterProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.Formatters.Json/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Formatters.Json/src/Properties/AssemblyInfo.cs index 039f419cd47a..15a525deb7ae 100644 --- a/src/Mvc/Mvc.Formatters.Json/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Formatters.Json/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerable.cs b/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerable.cs index 7f2012d8f3fd..1d402a93fa81 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerable.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerable.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerator.cs b/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerator.cs index af8dcab190b0..8b915d80d825 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerator.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/DelegatingEnumerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -19,7 +19,7 @@ public class DelegatingEnumerator : IEnumerator private readonly IWrapperProvider? _wrapperProvider; /// - /// Initializes a which enumerates + /// Initializes a which enumerates /// over the elements of the original enumerator and wraps them using the supplied /// . /// diff --git a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcBuilderExtensions.cs b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcBuilderExtensions.cs index 16c5423c24b9..1aa8f2e21a06 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcCoreBuilderExtensions.cs index ecba6e521d6a..9225b19a1e46 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/MvcXmlMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlDataContractSerializerMvcOptionsSetup.cs b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlDataContractSerializerMvcOptionsSetup.cs index 941b03499d7c..ec2ea27f17e9 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlDataContractSerializerMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlDataContractSerializerMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlSerializerMvcOptionsSetup.cs b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlSerializerMvcOptionsSetup.cs index 6af2baa57dad..3635be08b5a1 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlSerializerMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/DependencyInjection/XmlSerializerMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProvider.cs b/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProvider.cs index e3df967ca3c0..2b1e7332b11b 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProvider.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProviderFactory.cs b/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProviderFactory.cs index 755071fbcef6..52970e36b40d 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProviderFactory.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/EnumerableWrapperProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/FormattingUtilities.cs b/src/Mvc/Mvc.Formatters.Xml/src/FormattingUtilities.cs index 6899cbe968f7..ddcdbdff0ff3 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/FormattingUtilities.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/FormattingUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; using System.Xml; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/IUnwrappable.cs b/src/Mvc/Mvc.Formatters.Xml/src/IUnwrappable.cs index 31f9cf491785..a29e534bd14b 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/IUnwrappable.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/IUnwrappable.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProvider.cs b/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProvider.cs index 17fd618e928e..3c4d762c8fd3 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProvider.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProviderFactory.cs b/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProviderFactory.cs index f3fb7c39b202..f4253f7d7bd9 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProviderFactory.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/IWrapperProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Formatters.Xml { diff --git a/src/Mvc/Mvc.Formatters.Xml/src/LoggerExtensions.cs b/src/Mvc/Mvc.Formatters.Xml/src/LoggerExtensions.cs index 3bb43de3c169..6a8db1b7934a 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/LoggerExtensions.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/LoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/ModelBinding/DataMemberRequiredBindingMetadataProvider.cs b/src/Mvc/Mvc.Formatters.Xml/src/ModelBinding/DataMemberRequiredBindingMetadataProvider.cs index 99956b88f484..1fb6bde5215e 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/ModelBinding/DataMemberRequiredBindingMetadataProvider.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/ModelBinding/DataMemberRequiredBindingMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/MvcXmlOptions.cs b/src/Mvc/Mvc.Formatters.Xml/src/MvcXmlOptions.cs index d059f40e2847..a92cdc70c1eb 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/MvcXmlOptions.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/MvcXmlOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapper.cs b/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapper.cs index 149074b34fc4..44704e84eb1b 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapper.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapperProviderFactory.cs b/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapperProviderFactory.cs index 5e4e1ea88dbe..25eb9739102b 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapperProviderFactory.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/ProblemDetailsWrapperProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Formatters.Xml/src/Properties/AssemblyInfo.cs index 61797e230b45..ab4cd8f3a3af 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapper.cs b/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapper.cs index 3218cfbe8fe0..60b97d663208 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapper.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProvider.cs b/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProvider.cs index 4ec8a5b2533a..2912ecab151a 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProvider.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProviderFactory.cs b/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProviderFactory.cs index d8188c97787b..a10ae3c75332 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProviderFactory.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/SerializableErrorWrapperProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/ValidationProblemDetailsWrapper.cs b/src/Mvc/Mvc.Formatters.Xml/src/ValidationProblemDetailsWrapper.cs index cccfd4692965..6dc95226f51f 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/ValidationProblemDetailsWrapper.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/ValidationProblemDetailsWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Xml; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderContext.cs b/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderContext.cs index 3164f67b6979..ebd6030d3c35 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderContext.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -28,7 +28,7 @@ public WrapperProviderContext(Type declaredType, bool isSerialization) } /// - /// The declared type which could be wrapped/un-wrapped by a different type + /// The declared type which could be wrapped/un-wrapped by a different type /// during serialization or deserialization. /// public Type DeclaredType { get; } diff --git a/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderFactoriesExtensions.cs b/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderFactoriesExtensions.cs index e49420e82262..ee7b7860cc12 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderFactoriesExtensions.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/WrapperProviderFactoriesExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerInputFormatter.cs b/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerInputFormatter.cs index 72fb6545fba6..96502f7f97d8 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerInputFormatter.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerOutputFormatter.cs b/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerOutputFormatter.cs index be5bd234d945..429f76807c68 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerOutputFormatter.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/XmlDataContractSerializerOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerInputFormatter.cs b/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerInputFormatter.cs index c57987b6a1af..4e9eb7443857 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerInputFormatter.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; @@ -134,7 +134,7 @@ public override async Task ReadRequestBodyAsync( try { - var type = GetSerializableType(context.ModelType); + var type = GetSerializableType(context.ModelType); using var xmlReader = CreateXmlReader(readStream, encoding, type); var serializer = GetCachedSerializer(type); diff --git a/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerOutputFormatter.cs b/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerOutputFormatter.cs index 3cd1d056adcb..a74b7f058449 100644 --- a/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerOutputFormatter.cs +++ b/src/Mvc/Mvc.Formatters.Xml/src/XmlSerializerOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumerableTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumerableTest.cs index 1fd2097e967a..94f0086f45bf 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumerableTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumerableTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Xunit; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumeratorTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumeratorTest.cs index cf973a51cb7b..067e46b34857 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumeratorTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/DelegatingEnumeratorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Moq; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlDataContractSerializerMvcOptionsSetupTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlDataContractSerializerMvcOptionsSetupTest.cs index 65e39208b093..3690e9806d42 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlDataContractSerializerMvcOptionsSetupTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlDataContractSerializerMvcOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlSerializerMvcOptionsSetupTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlSerializerMvcOptionsSetupTest.cs index 0c73ddf67a96..9676f062a666 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlSerializerMvcOptionsSetupTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/DependencyInjection/XmlSerializerMvcOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Formatters; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderFactoryTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderFactoryTest.cs index fe31162d99cb..44a292bb4a63 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderTest.cs index 95c7c7ebe184..4a809a8d2734 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/EnumerableWrapperProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/FlushReportingStream.cs b/src/Mvc/Mvc.Formatters.Xml/test/FlushReportingStream.cs index 9d83f7bb8f8e..834df1292b47 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/FlushReportingStream.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/FlushReportingStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/Models/Person.cs b/src/Mvc/Mvc.Formatters.Xml/test/Models/Person.cs index 14ea5bcf53f1..68fbc8a8aa12 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/Models/Person.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/Models/Person.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/Models/PersonList.cs b/src/Mvc/Mvc.Formatters.Xml/test/Models/PersonList.cs index 43c19511a50b..a7064b8a9890 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/Models/PersonList.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/Models/PersonList.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapper.cs b/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapper.cs index c75241501548..953ece6a1c85 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapper.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProvider.cs b/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProvider.cs index ca82fc0d7b33..935341de6712 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProvider.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProviderFactory.cs b/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProviderFactory.cs index 2e764089fd9f..5be84b747b38 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProviderFactory.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/PersonWrapperProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Formatters.Xml { diff --git a/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperProviderFactoryTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperProviderFactoryTest.cs index 8149e8115275..759456a7270b 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperTest.cs index 055679f266ad..a6f266ba0aba 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/ProblemDetailsWrapperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperProviderTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperProviderTest.cs index c256851372b2..c1d8e802bb0f 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperProviderTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperTests.cs b/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperTests.cs index cb96f35f93fd..87cc2f0ae8d6 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperTests.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/SerializableErrorWrapperTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Runtime.Serialization; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/SerializableWrapperProviderFactoryTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/SerializableWrapperProviderFactoryTest.cs index 153ef3750dd2..4cd469cbd3e4 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/SerializableWrapperProviderFactoryTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/SerializableWrapperProviderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/ValidationProblemDetailsWrapperTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/ValidationProblemDetailsWrapperTest.cs index 53bae5afaf6d..f444135260ad 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/ValidationProblemDetailsWrapperTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/ValidationProblemDetailsWrapperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlAssert.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlAssert.cs index c411ce44eef4..e83c92170d02 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlAssert.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlAssert.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlAssertTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlAssertTest.cs index 6820645bd811..20facb50867d 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlAssertTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlAssertTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Xunit; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs index 0da7a165bf9b..af4e99187906 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerOutputFormatterTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerOutputFormatterTest.cs index 9692f83d5e2e..7208978b08a3 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerOutputFormatterTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs index 9b35c9f970f5..7958fd4e8acb 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerOutputFormatterTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerOutputFormatterTest.cs index 811f2eed6f73..ef5f4523b7b3 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerOutputFormatterTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcBuilderExtensions.cs b/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcBuilderExtensions.cs index ac1656935677..08b30f0ba39a 100644 --- a/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.DataAnnotations; @@ -292,7 +292,7 @@ public static IMvcBuilder AddMvcLocalization( /// An action to configure the . /// Can be null. /// The view format for localized views. - /// An action to configure + /// An action to configure /// the . Can be null. /// The . /// diff --git a/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcCoreBuilderExtensions.cs index f710b9acacfb..6a5ddf3a137c 100644 --- a/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.Localization/src/DependencyInjection/MvcLocalizationMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.DataAnnotations; diff --git a/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs b/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs index eca0387cf615..f28db6f940d8 100644 --- a/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs +++ b/src/Mvc/Mvc.Localization/src/HtmlLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/src/HtmlLocalizerExtensions.cs b/src/Mvc/Mvc.Localization/src/HtmlLocalizerExtensions.cs index 30a463c9f6ed..219f29589b73 100644 --- a/src/Mvc/Mvc.Localization/src/HtmlLocalizerExtensions.cs +++ b/src/Mvc/Mvc.Localization/src/HtmlLocalizerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/src/HtmlLocalizerFactory.cs b/src/Mvc/Mvc.Localization/src/HtmlLocalizerFactory.cs index 02684f1e4fa3..9d3278bbe5dc 100644 --- a/src/Mvc/Mvc.Localization/src/HtmlLocalizerFactory.cs +++ b/src/Mvc/Mvc.Localization/src/HtmlLocalizerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Localization; diff --git a/src/Mvc/Mvc.Localization/src/HtmlLocalizerOfT.cs b/src/Mvc/Mvc.Localization/src/HtmlLocalizerOfT.cs index 114cc3fa8e15..4f4fec44ff44 100644 --- a/src/Mvc/Mvc.Localization/src/HtmlLocalizerOfT.cs +++ b/src/Mvc/Mvc.Localization/src/HtmlLocalizerOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/src/IHtmlLocalizer.cs b/src/Mvc/Mvc.Localization/src/IHtmlLocalizer.cs index 180025b7961f..2c7dca9e6160 100644 --- a/src/Mvc/Mvc.Localization/src/IHtmlLocalizer.cs +++ b/src/Mvc/Mvc.Localization/src/IHtmlLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/src/IHtmlLocalizerFactory.cs b/src/Mvc/Mvc.Localization/src/IHtmlLocalizerFactory.cs index 3e26add97d84..be719ca5eb0c 100644 --- a/src/Mvc/Mvc.Localization/src/IHtmlLocalizerFactory.cs +++ b/src/Mvc/Mvc.Localization/src/IHtmlLocalizerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Localization/src/IHtmlLocalizerOfT.cs b/src/Mvc/Mvc.Localization/src/IHtmlLocalizerOfT.cs index 923de5ab8924..c25a1acc71ad 100644 --- a/src/Mvc/Mvc.Localization/src/IHtmlLocalizerOfT.cs +++ b/src/Mvc/Mvc.Localization/src/IHtmlLocalizerOfT.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Localization { diff --git a/src/Mvc/Mvc.Localization/src/IViewLocalizer.cs b/src/Mvc/Mvc.Localization/src/IViewLocalizer.cs index 63f1db68567f..7e457f0424ee 100644 --- a/src/Mvc/Mvc.Localization/src/IViewLocalizer.cs +++ b/src/Mvc/Mvc.Localization/src/IViewLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Localization { diff --git a/src/Mvc/Mvc.Localization/src/LocalizedHtmlString.cs b/src/Mvc/Mvc.Localization/src/LocalizedHtmlString.cs index fdc99aeebcb8..7517ae018a35 100644 --- a/src/Mvc/Mvc.Localization/src/LocalizedHtmlString.cs +++ b/src/Mvc/Mvc.Localization/src/LocalizedHtmlString.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Localization/src/MvcLocalizationServices.cs b/src/Mvc/Mvc.Localization/src/MvcLocalizationServices.cs index 9c5375ef3841..6defeedfd83e 100644 --- a/src/Mvc/Mvc.Localization/src/MvcLocalizationServices.cs +++ b/src/Mvc/Mvc.Localization/src/MvcLocalizationServices.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Razor; diff --git a/src/Mvc/Mvc.Localization/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Localization/src/Properties/AssemblyInfo.cs index 8110c12929a6..28ee7b25f923 100644 --- a/src/Mvc/Mvc.Localization/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Localization/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Localization/src/ViewLocalizer.cs b/src/Mvc/Mvc.Localization/src/ViewLocalizer.cs index 2f1895e4b75f..17a6ad0a257c 100644 --- a/src/Mvc/Mvc.Localization/src/ViewLocalizer.cs +++ b/src/Mvc/Mvc.Localization/src/ViewLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/test/HtmlLocalizerOfTTest.cs b/src/Mvc/Mvc.Localization/test/HtmlLocalizerOfTTest.cs index 93464e4b7026..ce4ac2da859b 100644 --- a/src/Mvc/Mvc.Localization/test/HtmlLocalizerOfTTest.cs +++ b/src/Mvc/Mvc.Localization/test/HtmlLocalizerOfTTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.Localization/test/HtmlLocalizerTest.cs b/src/Mvc/Mvc.Localization/test/HtmlLocalizerTest.cs index ce780210445a..79b95c7c640b 100644 --- a/src/Mvc/Mvc.Localization/test/HtmlLocalizerTest.cs +++ b/src/Mvc/Mvc.Localization/test/HtmlLocalizerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcBuilderExtensionsTest.cs b/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcBuilderExtensionsTest.cs index 8b6fe4bebed3..712d57913a5a 100644 --- a/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcCoreBuilderExtensionsTest.cs b/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcCoreBuilderExtensionsTest.cs index 3956d79f17ce..b226cea507ba 100644 --- a/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcCoreBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Localization/test/MvcLocalizationMvcCoreBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/test/MvcLocalizationServiceCollectionExtensionsTest.cs b/src/Mvc/Mvc.Localization/test/MvcLocalizationServiceCollectionExtensionsTest.cs index 1308e9790ef1..89f1dab8ba70 100644 --- a/src/Mvc/Mvc.Localization/test/MvcLocalizationServiceCollectionExtensionsTest.cs +++ b/src/Mvc/Mvc.Localization/test/MvcLocalizationServiceCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/test/TestStringLocalizer.cs b/src/Mvc/Mvc.Localization/test/TestStringLocalizer.cs index 7b739e6a165c..af4358c2384b 100644 --- a/src/Mvc/Mvc.Localization/test/TestStringLocalizer.cs +++ b/src/Mvc/Mvc.Localization/test/TestStringLocalizer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Localization/test/ViewLocalizerTest.cs b/src/Mvc/Mvc.Localization/test/ViewLocalizerTest.cs index 7f1dc5df2ba7..b7199c97a450 100644 --- a/src/Mvc/Mvc.Localization/test/ViewLocalizerTest.cs +++ b/src/Mvc/Mvc.Localization/test/ViewLocalizerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/AnnotatedProblemDetails.cs b/src/Mvc/Mvc.NewtonsoftJson/src/AnnotatedProblemDetails.cs index 9e43eccbb8d1..b6297ac62270 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/AnnotatedProblemDetails.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/AnnotatedProblemDetails.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/BsonTempDataSerializer.cs b/src/Mvc/Mvc.NewtonsoftJson/src/BsonTempDataSerializer.cs index 02f6eab2abce..5674a4e00567 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/BsonTempDataSerializer.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/BsonTempDataSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs index 1015fe8e069d..1a3821876f91 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/MvcNewtonsoftJsonOptionsExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcBuilderExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcBuilderExtensions.cs index 471628834222..55d2f910fe29 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs index 617307004c06..80a79c061de6 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcOptionsSetup.cs b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcOptionsSetup.cs index d3380a529f48..8f095856a1a8 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/DependencyInjection/NewtonsoftJsonMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/JsonArrayPool.cs b/src/Mvc/Mvc.NewtonsoftJson/src/JsonArrayPool.cs index c358bc2ba794..9d5a6a66671d 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/JsonArrayPool.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/JsonArrayPool.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/JsonHelperExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/JsonHelperExtensions.cs index 0cab53661607..3be253e3b3d4 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/JsonHelperExtensions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/JsonHelperExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Html; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchExtensions.cs index e94b221f6985..b92b2b687500 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchExtensions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.JsonPatch; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchOperationsArrayProvider.cs b/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchOperationsArrayProvider.cs index fda34decc461..e8e8e6eb455a 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchOperationsArrayProvider.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/JsonPatchOperationsArrayProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerObjectPolicy.cs b/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerObjectPolicy.cs index 38c07201abcb..a1c91b86d49c 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerObjectPolicy.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.ObjectPool; using Newtonsoft.Json; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerSettingsProvider.cs b/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerSettingsProvider.cs index 9a62c7bc3119..5d020a67c636 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerSettingsProvider.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/JsonSerializerSettingsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Newtonsoft.Json; using Newtonsoft.Json.Serialization; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/MediaTypeHeaderValues.cs b/src/Mvc/Mvc.NewtonsoftJson/src/MediaTypeHeaderValues.cs index 5795d08d3509..c60610af3f57 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/MediaTypeHeaderValues.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/MediaTypeHeaderValues.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Net.Http.Headers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/MvcNewtonsoftJsonOptions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/MvcNewtonsoftJsonOptions.cs index 8e8f270e6e85..79ad2f5711c8 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/MvcNewtonsoftJsonOptions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/MvcNewtonsoftJsonOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonHelper.cs b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonHelper.cs index d72aceee7d8f..a1c35d15906c 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonHelper.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonInputFormatter.cs b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonInputFormatter.cs index 0a78d96aca18..55686f4fc33b 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonInputFormatter.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonLoggerExtensions.cs b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonLoggerExtensions.cs index c1089748899c..67da210e20e3 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonLoggerExtensions.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonOutputFormatter.cs b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonOutputFormatter.cs index 96a5cc6e5057..56623da8a3cb 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonOutputFormatter.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonOutputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonPatchInputFormatter.cs b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonPatchInputFormatter.cs index 2238175d8939..62bc1c717fdc 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonPatchInputFormatter.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonPatchInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonResultExecutor.cs b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonResultExecutor.cs index cc39983e32bf..5f7d28d185ff 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonResultExecutor.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/ProblemDetailsConverter.cs b/src/Mvc/Mvc.NewtonsoftJson/src/ProblemDetailsConverter.cs index 9624e3559c6c..420f19362a6c 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/ProblemDetailsConverter.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/ProblemDetailsConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Newtonsoft.Json; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.NewtonsoftJson/src/Properties/AssemblyInfo.cs index 7c329fe5e0fe..7111099cefa0 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/ValidationProblemDetailsConverter.cs b/src/Mvc/Mvc.NewtonsoftJson/src/ValidationProblemDetailsConverter.cs index 6df2ce20b494..a7a0cdd1bea0 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/src/ValidationProblemDetailsConverter.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/src/ValidationProblemDetailsConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/BsonTempDataSerializerTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/BsonTempDataSerializerTest.cs index 5bfe813d196e..cfc158a492b5 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/BsonTempDataSerializerTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/BsonTempDataSerializerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/MvcNewtonsoftJsonOptionsExtensionsTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/MvcNewtonsoftJsonOptionsExtensionsTest.cs index c7309084b954..96f12a725ab0 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/MvcNewtonsoftJsonOptionsExtensionsTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/MvcNewtonsoftJsonOptionsExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcBuilderExtensionsTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcBuilderExtensionsTest.cs index 125520a0090a..677fb275d994 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.Extensions.Options; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs index a0413524150f..3378c81fd4a1 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/DependencyInjection/NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchExtensionsTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchExtensionsTest.cs index 5823345a4cce..e0b6374a2045 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchExtensionsTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.JsonPatch; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchOperationsArrayProviderTests.cs b/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchOperationsArrayProviderTests.cs index b829d0d3e82b..6d2733555073 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchOperationsArrayProviderTests.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/JsonPatchOperationsArrayProviderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.JsonPatch; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/JsonResultTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/JsonResultTest.cs index 7e8310ae06ac..67007069b352 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/JsonResultTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/JsonResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.IO; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonHelperTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonHelperTest.cs index a4ad04b9e8a9..e26c9c1b38d6 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonHelperTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using Microsoft.AspNetCore.Html; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonInputFormatterTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonInputFormatterTest.cs index ee7200a0d5ec..7c79233974cd 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonInputFormatterTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonOutputFormatterTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonOutputFormatterTest.cs index ffad7bc6bc53..d0d1598bf677 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonOutputFormatterTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonPatchInputFormatterTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonPatchInputFormatterTest.cs index f7d8ee32b7aa..9e3cc8a58246 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonPatchInputFormatterTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonPatchInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonResultExecutorTest.cs b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonResultExecutorTest.cs index c2aab7fcff5a..ffa7d2f6f17c 100644 --- a/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonResultExecutorTest.cs +++ b/src/Mvc/Mvc.NewtonsoftJson/test/NewtonsoftJsonResultExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using Microsoft.AspNetCore.Mvc.Infrastructure; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/AssemblyPartExtensions.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/AssemblyPartExtensions.cs index 4f3c3ef44fc7..56f308a9f095 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/AssemblyPartExtensions.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/AssemblyPartExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CSharpCompiler.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CSharpCompiler.cs index 98da4c5247b4..5867c903b7bf 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CSharpCompiler.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CSharpCompiler.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/ChecksumValidator.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/ChecksumValidator.cs index 33f6d74bf6d6..1d6f4e907e1a 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/ChecksumValidator.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/ChecksumValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedException.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedException.cs index cbf725a0c225..1994e395b9e7 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedException.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedException.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedExceptionFactory.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedExceptionFactory.cs index e481da21dedc..17d57c6e3375 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedExceptionFactory.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/CompilationFailedExceptionFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/MvcRazorRuntimeCompilationOptionsSetup.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/MvcRazorRuntimeCompilationOptionsSetup.cs index 9c19d2051308..8ccb0afff9aa 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/MvcRazorRuntimeCompilationOptionsSetup.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/MvcRazorRuntimeCompilationOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcBuilderExtensions.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcBuilderExtensions.cs index 78104364da0b..d0ba3087de4a 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Razor.RuntimeCompilation; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensions.cs index c8be60422f76..c8706b41ac80 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectFileSystem.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectFileSystem.cs index 25faa4fd0fcb..5301e4b16112 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectFileSystem.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectFileSystem.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectItem.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectItem.cs index 506e8c8f74de..da61ea75fb5a 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectItem.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectItem.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/LazyMetadataReferenceFeature.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/LazyMetadataReferenceFeature.cs index 307ce61aefc3..1c5fbaa07965 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/LazyMetadataReferenceFeature.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/LazyMetadataReferenceFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/MvcRazorRuntimeCompilationOptions.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/MvcRazorRuntimeCompilationOptions.cs index 64c502e1b126..86a9ee98524d 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/MvcRazorRuntimeCompilationOptions.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/MvcRazorRuntimeCompilationOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageActionDescriptorChangeProvider.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageActionDescriptorChangeProvider.cs index 7368caa88c98..84253d1a1450 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageActionDescriptorChangeProvider.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageActionDescriptorChangeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -57,7 +57,7 @@ public PageActionDescriptorChangeProvider( }; // pagesRootSearchPattern will miss _ViewImports outside the RootDirectory despite these influencing - // compilation. e.g. when RootDirectory = /Dir1/Dir2, the search pattern will ignore changes to + // compilation. e.g. when RootDirectory = /Dir1/Dir2, the search pattern will ignore changes to // [/_ViewImports.cshtml, /Dir1/_ViewImports.cshtml]. We need to additionally account for these. var importFeatures = projectEngine.ProjectFeatures.OfType().ToArray(); var fileAtPagesRoot = projectEngine.FileSystem.GetItem(rootDirectory + "/Index.cshtml", fileKind: null); diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageDirectiveFeature.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageDirectiveFeature.cs index 65598df34bb3..35c9c92b851e 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageDirectiveFeature.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageDirectiveFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageLoaderMatcherPolicy.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageLoaderMatcherPolicy.cs index 422edf42825e..49288286b3eb 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageLoaderMatcherPolicy.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/PageLoaderMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/AssemblyInfo.cs index bb42a1ab3807..735db8cb095e 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorProjectPageRouteModelProvider.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorProjectPageRouteModelProvider.cs index a3b63ed6a80e..7e6a8480c202 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorProjectPageRouteModelProvider.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorProjectPageRouteModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorReferenceManager.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorReferenceManager.cs index 0d38806e8bf5..46f5445004f4 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorReferenceManager.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorReferenceManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationHostingStartup.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationHostingStartup.cs index 62eee8072a5b..63d0791e654a 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationHostingStartup.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationHostingStartup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationLoggerExtensions.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationLoggerExtensions.cs index 16cad11ee5da..e439416cff70 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationLoggerExtensions.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RazorRuntimeCompilationLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeCompilationFileProvider.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeCompilationFileProvider.cs index cbd712653284..63fb0599f606 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeCompilationFileProvider.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeCompilationFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.FileProviders; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompiler.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompiler.cs index 672a4757122b..830d9070e683 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompiler.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompiler.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompilerProvider.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompilerProvider.cs index 25ebb0606761..453e0dfcef49 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompilerProvider.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/RuntimeViewCompilerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/AssemblyPartExtensionTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/AssemblyPartExtensionTest.cs index b0767061b1d3..74ad4090a4aa 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/AssemblyPartExtensionTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/AssemblyPartExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CSharpCompilerTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CSharpCompilerTest.cs index 3ff7c6f1c512..e4f87fa7600e 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CSharpCompilerTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CSharpCompilerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/ChecksumValidatorTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/ChecksumValidatorTest.cs index 4a37fee2bfcf..5efa9a45e9d1 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/ChecksumValidatorTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/ChecksumValidatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Hosting; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CompilerFailedExceptionFactoryTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CompilerFailedExceptionFactoryTest.cs index 31ca08c2ebae..b77785edb3c7 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CompilerFailedExceptionFactoryTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/CompilerFailedExceptionFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.IO; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs index c94374bb90f6..893346bf093d 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/DependencyInjection/RazorRuntimeCompilationMvcCoreBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/FileProviderRazorProjectFileSystemTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/FileProviderRazorProjectFileSystemTest.cs index 90a96d52360e..49b158b9b676 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/FileProviderRazorProjectFileSystemTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/FileProviderRazorProjectFileSystemTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/PageLoaderMatcherPolicyTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/PageLoaderMatcherPolicyTest.cs index 7c58fbbef410..d530917ddc49 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/PageLoaderMatcherPolicyTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/PageLoaderMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RazorReferenceManagerTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RazorReferenceManagerTest.cs index e28e974162d0..4f3f713b3282 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RazorReferenceManagerTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RazorReferenceManagerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeCompilationFileProviderTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeCompilationFileProviderTest.cs index 61b9b22290c5..c2b048705901 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeCompilationFileProviderTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeCompilationFileProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.FileProviders; @@ -21,7 +21,7 @@ public void GetFileProvider_ThrowsIfNoConfiguredFileProviders() var options = Options.Create(new MvcRazorRuntimeCompilationOptions()); var fileProvider = new RuntimeCompilationFileProvider(options); - + // Act & Assert var exception = Assert.Throws( () => fileProvider.FileProvider); diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeViewCompilerTest.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeViewCompilerTest.cs index 6c916309dc6d..9d07e173becb 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeViewCompilerTest.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/RuntimeViewCompilerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/DirectoryNode.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/DirectoryNode.cs index 4cd98796c291..d0c9d35c5318 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/DirectoryNode.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/DirectoryNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/FileNode.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/FileNode.cs index 583281794a99..da0be2907ded 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/FileNode.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/FileNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/NotFoundProjectItem.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/NotFoundProjectItem.cs index 84ea7f01cf85..aa8f4484d07b 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/NotFoundProjectItem.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/NotFoundProjectItem.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorProjectItem.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorProjectItem.cs index c30b7614640d..1f1a9a10b628 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorProjectItem.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorProjectItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text; diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorReferenceManager.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorReferenceManager.cs index 91a44bcfeb61..362330d3acfa 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorReferenceManager.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/TestRazorReferenceManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation { internal class TestRazorReferenceManager : RazorReferenceManager { - public TestRazorReferenceManager() + public TestRazorReferenceManager() : base( new ApplicationPartManager(), Options.Create(new MvcRazorRuntimeCompilationOptions())) diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/VirtualRazorProjectFileSystem.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/VirtualRazorProjectFileSystem.cs index 93b895980822..b3348c8c0d61 100644 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/VirtualRazorProjectFileSystem.cs +++ b/src/Mvc/Mvc.Razor.RuntimeCompilation/test/TestInfrastructure/VirtualRazorProjectFileSystem.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyApplicationPartFactory.cs b/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyApplicationPartFactory.cs index daee08d2226d..b7948fbdc651 100644 --- a/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyApplicationPartFactory.cs +++ b/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyApplicationPartFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyPart.cs b/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyPart.cs index a74e22b606bb..b780a79da62f 100644 --- a/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyPart.cs +++ b/src/Mvc/Mvc.Razor/src/ApplicationParts/CompiledRazorAssemblyPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/ApplicationParts/ConsolidatedAssemblyApplicationPartFactory.cs b/src/Mvc/Mvc.Razor/src/ApplicationParts/ConsolidatedAssemblyApplicationPartFactory.cs index 774d6ae75a3e..d4c0ab98c959 100644 --- a/src/Mvc/Mvc.Razor/src/ApplicationParts/ConsolidatedAssemblyApplicationPartFactory.cs +++ b/src/Mvc/Mvc.Razor/src/ApplicationParts/ConsolidatedAssemblyApplicationPartFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Razor/src/ApplicationParts/IRazorCompiledItemProvider.cs b/src/Mvc/Mvc.Razor/src/ApplicationParts/IRazorCompiledItemProvider.cs index bdf11d6d5975..d8111a362f79 100644 --- a/src/Mvc/Mvc.Razor/src/ApplicationParts/IRazorCompiledItemProvider.cs +++ b/src/Mvc/Mvc.Razor/src/ApplicationParts/IRazorCompiledItemProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Hosting; diff --git a/src/Mvc/Mvc.Razor/src/ApplicationParts/RazorCompiledItemFeatureProvider.cs b/src/Mvc/Mvc.Razor/src/ApplicationParts/RazorCompiledItemFeatureProvider.cs index eece1503ab91..dad1692b6576 100644 --- a/src/Mvc/Mvc.Razor/src/ApplicationParts/RazorCompiledItemFeatureProvider.cs +++ b/src/Mvc/Mvc.Razor/src/ApplicationParts/RazorCompiledItemFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/CompiledViewDescriptor.cs b/src/Mvc/Mvc.Razor/src/Compilation/CompiledViewDescriptor.cs index ab2b4b118c3a..fe4196d8d569 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/CompiledViewDescriptor.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/CompiledViewDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/DefaultRazorPageFactoryProvider.cs b/src/Mvc/Mvc.Razor/src/Compilation/DefaultRazorPageFactoryProvider.cs index 10d8ce762dfb..c947596b68d5 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/DefaultRazorPageFactoryProvider.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/DefaultRazorPageFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompiler.cs b/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompiler.cs index 1819015a16ea..8d8fc3105b3b 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompiler.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompiler.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompilerProvider.cs b/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompilerProvider.cs index b92077ad69d2..312a453bfad3 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompilerProvider.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/DefaultViewCompilerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationParts; using Microsoft.Extensions.Logging; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/IViewCompiler.cs b/src/Mvc/Mvc.Razor/src/Compilation/IViewCompiler.cs index 1685bc36046c..58d419254f96 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/IViewCompiler.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/IViewCompiler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/IViewCompilerProvider.cs b/src/Mvc/Mvc.Razor/src/Compilation/IViewCompilerProvider.cs index f762f50c2ecf..2bb7e87d4c06 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/IViewCompilerProvider.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/IViewCompilerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Compilation { diff --git a/src/Mvc/Mvc.Razor/src/Compilation/RazorViewAttribute.cs b/src/Mvc/Mvc.Razor/src/Compilation/RazorViewAttribute.cs index d14643bfc601..ae1aacb03e30 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/RazorViewAttribute.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/RazorViewAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Razor/src/Compilation/ViewsFeature.cs b/src/Mvc/Mvc.Razor/src/Compilation/ViewsFeature.cs index 4d037eeba41a..cb60e0087aa7 100644 --- a/src/Mvc/Mvc.Razor/src/Compilation/ViewsFeature.cs +++ b/src/Mvc/Mvc.Razor/src/Compilation/ViewsFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Razor/src/DefaultTagHelperFactory.cs b/src/Mvc/Mvc.Razor/src/DefaultTagHelperFactory.cs index c06329bf933c..1dcc14061811 100644 --- a/src/Mvc/Mvc.Razor/src/DefaultTagHelperFactory.cs +++ b/src/Mvc/Mvc.Razor/src/DefaultTagHelperFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcBuilderExtensions.cs b/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcBuilderExtensions.cs index 7fa8e4b3ae35..1953ae71ef9e 100644 --- a/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Razor; diff --git a/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcCoreBuilderExtensions.cs index cf6deb06a1f7..9b40c5387eda 100644 --- a/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcViewOptionsSetup.cs b/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcViewOptionsSetup.cs index f93256041196..febadca72c67 100644 --- a/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcViewOptionsSetup.cs +++ b/src/Mvc/Mvc.Razor/src/DependencyInjection/MvcRazorMvcViewOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.Razor/src/DependencyInjection/TagHelpersAsServices.cs b/src/Mvc/Mvc.Razor/src/DependencyInjection/TagHelpersAsServices.cs index 7ef080696be2..05ec09588802 100644 --- a/src/Mvc/Mvc.Razor/src/DependencyInjection/TagHelpersAsServices.cs +++ b/src/Mvc/Mvc.Razor/src/DependencyInjection/TagHelpersAsServices.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs index 14e91364da92..3e011f085b54 100644 --- a/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.Razor/src/Diagnostics/MvcDiagnostics.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -18,7 +18,7 @@ public sealed class BeforeViewPageEventData : EventData /// /// The name of the event. /// - public const string EventName = EventNamespace + + public const string EventName = EventNamespace + "Razor." + "BeforeViewPage"; diff --git a/src/Mvc/Mvc.Razor/src/HelperResult.cs b/src/Mvc/Mvc.Razor/src/HelperResult.cs index d69f37d59e78..c4aa4941bbde 100644 --- a/src/Mvc/Mvc.Razor/src/HelperResult.cs +++ b/src/Mvc/Mvc.Razor/src/HelperResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Razor/src/IModelTypeProvider.cs b/src/Mvc/Mvc.Razor/src/IModelTypeProvider.cs index 276bca6cbc4c..ac23d9e47141 100644 --- a/src/Mvc/Mvc.Razor/src/IModelTypeProvider.cs +++ b/src/Mvc/Mvc.Razor/src/IModelTypeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Razor/src/IRazorPage.cs b/src/Mvc/Mvc.Razor/src/IRazorPage.cs index 362aaa8fa43f..b0cbb8f84bd3 100644 --- a/src/Mvc/Mvc.Razor/src/IRazorPage.cs +++ b/src/Mvc/Mvc.Razor/src/IRazorPage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Razor/src/IRazorPageActivator.cs b/src/Mvc/Mvc.Razor/src/IRazorPageActivator.cs index 4a26dafcd731..85ec403f6d55 100644 --- a/src/Mvc/Mvc.Razor/src/IRazorPageActivator.cs +++ b/src/Mvc/Mvc.Razor/src/IRazorPageActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; diff --git a/src/Mvc/Mvc.Razor/src/IRazorPageFactoryProvider.cs b/src/Mvc/Mvc.Razor/src/IRazorPageFactoryProvider.cs index a3989e07be95..dda22485164f 100644 --- a/src/Mvc/Mvc.Razor/src/IRazorPageFactoryProvider.cs +++ b/src/Mvc/Mvc.Razor/src/IRazorPageFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor { diff --git a/src/Mvc/Mvc.Razor/src/IRazorViewEngine.cs b/src/Mvc/Mvc.Razor/src/IRazorViewEngine.cs index 8218ee2b55cf..7ce20ff9f0e2 100644 --- a/src/Mvc/Mvc.Razor/src/IRazorViewEngine.cs +++ b/src/Mvc/Mvc.Razor/src/IRazorViewEngine.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ViewEngines; diff --git a/src/Mvc/Mvc.Razor/src/ITagHelperActivator.cs b/src/Mvc/Mvc.Razor/src/ITagHelperActivator.cs index 7757980390f6..ebfd6af184a9 100644 --- a/src/Mvc/Mvc.Razor/src/ITagHelperActivator.cs +++ b/src/Mvc/Mvc.Razor/src/ITagHelperActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/ITagHelperFactory.cs b/src/Mvc/Mvc.Razor/src/ITagHelperFactory.cs index 181b8056554e..3a9d4c3f2370 100644 --- a/src/Mvc/Mvc.Razor/src/ITagHelperFactory.cs +++ b/src/Mvc/Mvc.Razor/src/ITagHelperFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/ITagHelperInitializerOfT.cs b/src/Mvc/Mvc.Razor/src/ITagHelperInitializerOfT.cs index a3379fc2a0fe..b18c88f7038e 100644 --- a/src/Mvc/Mvc.Razor/src/ITagHelperInitializerOfT.cs +++ b/src/Mvc/Mvc.Razor/src/ITagHelperInitializerOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/IViewLocationExpander.cs b/src/Mvc/Mvc.Razor/src/IViewLocationExpander.cs index d5ed2f7c7dcc..5c2be7318683 100644 --- a/src/Mvc/Mvc.Razor/src/IViewLocationExpander.cs +++ b/src/Mvc/Mvc.Razor/src/IViewLocationExpander.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultFileVersionProvider.cs b/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultFileVersionProvider.cs index d179e3e12afc..2a57b8ac4226 100644 --- a/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultFileVersionProvider.cs +++ b/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultFileVersionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultTagHelperActivator.cs b/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultTagHelperActivator.cs index 103fa66af683..fc944f2b2264 100644 --- a/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultTagHelperActivator.cs +++ b/src/Mvc/Mvc.Razor/src/Infrastructure/DefaultTagHelperActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.Razor/src/Infrastructure/TagHelperMemoryCacheProvider.cs b/src/Mvc/Mvc.Razor/src/Infrastructure/TagHelperMemoryCacheProvider.cs index c80b9850c7bd..5e5f7845ac45 100644 --- a/src/Mvc/Mvc.Razor/src/Infrastructure/TagHelperMemoryCacheProvider.cs +++ b/src/Mvc/Mvc.Razor/src/Infrastructure/TagHelperMemoryCacheProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Caching.Memory; diff --git a/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs b/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs index 7f1c211da320..2423e33180da 100644 --- a/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs +++ b/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpander.cs b/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpander.cs index 94338ef371cd..3bfb875dadac 100644 --- a/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpander.cs +++ b/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpander.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpanderFormat.cs b/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpanderFormat.cs index ad4b177bb048..2fbfd766dba6 100644 --- a/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpanderFormat.cs +++ b/src/Mvc/Mvc.Razor/src/LanguageViewLocationExpanderFormat.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor { diff --git a/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs b/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs index d12bd3f3eb0b..075c9a13d90e 100644 --- a/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs +++ b/src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; diff --git a/src/Mvc/Mvc.Razor/src/MvcRazorLoggerExtensions.cs b/src/Mvc/Mvc.Razor/src/MvcRazorLoggerExtensions.cs index 1c46d071396c..1b251a77045b 100644 --- a/src/Mvc/Mvc.Razor/src/MvcRazorLoggerExtensions.cs +++ b/src/Mvc/Mvc.Razor/src/MvcRazorLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Razor/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Razor/src/Properties/AssemblyInfo.cs index 3d28953a2109..f2e36a689e1a 100644 --- a/src/Mvc/Mvc.Razor/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Razor/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Razor/src/RazorFileHierarchy.cs b/src/Mvc/Mvc.Razor/src/RazorFileHierarchy.cs index 89f7b43dd2f8..929a633b7923 100644 --- a/src/Mvc/Mvc.Razor/src/RazorFileHierarchy.cs +++ b/src/Mvc/Mvc.Razor/src/RazorFileHierarchy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/RazorPage.cs b/src/Mvc/Mvc.Razor/src/RazorPage.cs index b624d0d53f5c..cf20808a927a 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPage.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPage.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/RazorPageActivator.cs b/src/Mvc/Mvc.Razor/src/RazorPageActivator.cs index f5ddb5343dd8..732a6564a17a 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPageActivator.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPageActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Razor/src/RazorPageBase.cs b/src/Mvc/Mvc.Razor/src/RazorPageBase.cs index 6016867fa122..6a12367664da 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPageBase.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPageBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/RazorPageFactoryResult.cs b/src/Mvc/Mvc.Razor/src/RazorPageFactoryResult.cs index 4eaf8ced7e0c..40012d0634f3 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPageFactoryResult.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPageFactoryResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.Razor/src/RazorPageOfT.cs b/src/Mvc/Mvc.Razor/src/RazorPageOfT.cs index e8598db13815..eb1151617773 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPageOfT.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPageOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Razor.Internal; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Mvc/Mvc.Razor/src/RazorPagePropertyActivator.cs b/src/Mvc/Mvc.Razor/src/RazorPagePropertyActivator.cs index e657441abc9c..992be4d661a2 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPagePropertyActivator.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPagePropertyActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Razor/src/RazorPageResult.cs b/src/Mvc/Mvc.Razor/src/RazorPageResult.cs index c84bcc1061cd..99fd11a70c05 100644 --- a/src/Mvc/Mvc.Razor/src/RazorPageResult.cs +++ b/src/Mvc/Mvc.Razor/src/RazorPageResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/RazorView.cs b/src/Mvc/Mvc.Razor/src/RazorView.cs index b9c7de4fbe7b..83b3e9813ad9 100644 --- a/src/Mvc/Mvc.Razor/src/RazorView.cs +++ b/src/Mvc/Mvc.Razor/src/RazorView.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/RazorViewEngine.cs b/src/Mvc/Mvc.Razor/src/RazorViewEngine.cs index da8d5a4b68e0..a167fa8333a5 100644 --- a/src/Mvc/Mvc.Razor/src/RazorViewEngine.cs +++ b/src/Mvc/Mvc.Razor/src/RazorViewEngine.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/RazorViewEngineOptions.cs b/src/Mvc/Mvc.Razor/src/RazorViewEngineOptions.cs index d6100bc4e78f..d9d31f274a4d 100644 --- a/src/Mvc/Mvc.Razor/src/RazorViewEngineOptions.cs +++ b/src/Mvc/Mvc.Razor/src/RazorViewEngineOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.Razor/src/RazorViewEngineOptionsSetup.cs b/src/Mvc/Mvc.Razor/src/RazorViewEngineOptionsSetup.cs index 96849670e735..def063926ba7 100644 --- a/src/Mvc/Mvc.Razor/src/RazorViewEngineOptionsSetup.cs +++ b/src/Mvc/Mvc.Razor/src/RazorViewEngineOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.Razor/src/RenderAsyncDelegate.cs b/src/Mvc/Mvc.Razor/src/RenderAsyncDelegate.cs index c1dd3bb74539..2766a88a7714 100644 --- a/src/Mvc/Mvc.Razor/src/RenderAsyncDelegate.cs +++ b/src/Mvc/Mvc.Razor/src/RenderAsyncDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.Razor/src/ServiceBasedTagHelperActivator.cs b/src/Mvc/Mvc.Razor/src/ServiceBasedTagHelperActivator.cs index 142efbe2568d..dcdc74462058 100644 --- a/src/Mvc/Mvc.Razor/src/ServiceBasedTagHelperActivator.cs +++ b/src/Mvc/Mvc.Razor/src/ServiceBasedTagHelperActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.Razor/src/TagHelperComponentManager.cs b/src/Mvc/Mvc.Razor/src/TagHelperComponentManager.cs index bdbaba846d19..d5a51f35bfde 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelperComponentManager.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelperComponentManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/TagHelperInitializerOfT.cs b/src/Mvc/Mvc.Razor/src/TagHelperInitializerOfT.cs index 94d37f2dd8a0..30089e835867 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelperInitializerOfT.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelperInitializerOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/BodyTagHelper.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/BodyTagHelper.cs index 111c67a0ab4c..63e7bc1354d6 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/BodyTagHelper.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/BodyTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/HeadTagHelper.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/HeadTagHelper.cs index 131b89c6ba78..b2c51e7d9628 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/HeadTagHelper.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/HeadTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentManager.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentManager.cs index 813372d5587a..565b4332f896 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentManager.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentManager.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentPropertyActivator.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentPropertyActivator.cs index f502fd90c3da..7c9057465316 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentPropertyActivator.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/ITagHelperComponentPropertyActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentPropertyActivator.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentPropertyActivator.cs index 7da3e3ee4d1c..3b6e280b82b7 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentPropertyActivator.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentPropertyActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentTagHelper.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentTagHelper.cs index 7a467e8128fa..045ea29a624c 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentTagHelper.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperComponentTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.TagHelpers { /// - /// Initializes and processes the s added to the + /// Initializes and processes the s added to the /// in the specified order. /// public abstract class TagHelperComponentTagHelper : TagHelper @@ -23,13 +23,13 @@ public abstract class TagHelperComponentTagHelper : TagHelper private readonly IEnumerable _components; /// - /// Creates a new and orders the + /// Creates a new and orders the /// the collection of s in . /// /// The which contains the collection /// of s. /// The . - /// The are ordered after the + /// The are ordered after the /// creation of the to position the s /// added from controllers and views correctly. public TagHelperComponentTagHelper( diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeature.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeature.cs index 1f6561bd4d20..0e060e607777 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeature.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeatureProvider.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeatureProvider.cs index 2f15d6a8b2ea..1ca612dbe00e 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeatureProvider.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/TagHelperFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.Razor/src/TagHelpers/UrlResolutionTagHelper.cs b/src/Mvc/Mvc.Razor/src/TagHelpers/UrlResolutionTagHelper.cs index 29fcacc77061..76d5fc865d30 100644 --- a/src/Mvc/Mvc.Razor/src/TagHelpers/UrlResolutionTagHelper.cs +++ b/src/Mvc/Mvc.Razor/src/TagHelpers/UrlResolutionTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/ViewLocationCacheItem.cs b/src/Mvc/Mvc.Razor/src/ViewLocationCacheItem.cs index 7ba1140bc850..744bc1461d2e 100644 --- a/src/Mvc/Mvc.Razor/src/ViewLocationCacheItem.cs +++ b/src/Mvc/Mvc.Razor/src/ViewLocationCacheItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.Razor/src/ViewLocationCacheKey.cs b/src/Mvc/Mvc.Razor/src/ViewLocationCacheKey.cs index 60e3d692f6a8..832174b04ca9 100644 --- a/src/Mvc/Mvc.Razor/src/ViewLocationCacheKey.cs +++ b/src/Mvc/Mvc.Razor/src/ViewLocationCacheKey.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/ViewLocationCacheResult.cs b/src/Mvc/Mvc.Razor/src/ViewLocationCacheResult.cs index 0df8b2ecebaa..6254219c4153 100644 --- a/src/Mvc/Mvc.Razor/src/ViewLocationCacheResult.cs +++ b/src/Mvc/Mvc.Razor/src/ViewLocationCacheResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/src/ViewLocationExpanderContext.cs b/src/Mvc/Mvc.Razor/src/ViewLocationExpanderContext.cs index 3c51029774a4..4b17f1780739 100644 --- a/src/Mvc/Mvc.Razor/src/ViewLocationExpanderContext.cs +++ b/src/Mvc/Mvc.Razor/src/ViewLocationExpanderContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -45,7 +45,7 @@ public ViewLocationExpanderContext( PageName = pageName; IsMainPage = isMainPage; } - + /// /// Gets the for the current executing action. /// diff --git a/src/Mvc/Mvc.Razor/src/ViewPath.cs b/src/Mvc/Mvc.Razor/src/ViewPath.cs index 652d74229c03..9f0c8324adcf 100644 --- a/src/Mvc/Mvc.Razor/src/ViewPath.cs +++ b/src/Mvc/Mvc.Razor/src/ViewPath.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor { diff --git a/src/Mvc/Mvc.Razor/test/ApplicationParts/RazorCompiledItemFeatureProviderTest.cs b/src/Mvc/Mvc.Razor/test/ApplicationParts/RazorCompiledItemFeatureProviderTest.cs index 6559c77b1be7..c86e5e0fc19d 100644 --- a/src/Mvc/Mvc.Razor/test/ApplicationParts/RazorCompiledItemFeatureProviderTest.cs +++ b/src/Mvc/Mvc.Razor/test/ApplicationParts/RazorCompiledItemFeatureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -41,7 +41,7 @@ public void PopulateFeature_PopulatesRazorCompiledItemsFromTypeAssembly() var item1 = Mock.Of(i => i.Identifier == "Item1" && i.Type == typeof(TestView)); var item2 = Mock.Of(i => i.Identifier == "Item2" && i.Type == typeof(TestPage)); - var assembly = new TestAssembly(new[] + var assembly = new TestAssembly(new[] { new RazorCompiledItemAttribute(typeof(TestView), "mvc.1.0.razor-page", "Item1"), new RazorCompiledItemAttribute(typeof(TestView), "mvc.1.0.razor-view", "Item1"), diff --git a/src/Mvc/Mvc.Razor/test/Compilation/DefaultRazorPageFactoryProviderTest.cs b/src/Mvc/Mvc.Razor/test/Compilation/DefaultRazorPageFactoryProviderTest.cs index c1b0b0c0d8a2..4f907ab3b748 100644 --- a/src/Mvc/Mvc.Razor/test/Compilation/DefaultRazorPageFactoryProviderTest.cs +++ b/src/Mvc/Mvc.Razor/test/Compilation/DefaultRazorPageFactoryProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/Compilation/DefaultViewCompilerTest.cs b/src/Mvc/Mvc.Razor/test/Compilation/DefaultViewCompilerTest.cs index 003bd6ddabeb..05b6444196d1 100644 --- a/src/Mvc/Mvc.Razor/test/Compilation/DefaultViewCompilerTest.cs +++ b/src/Mvc/Mvc.Razor/test/Compilation/DefaultViewCompilerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/Compilation/RazorPagePropertyActivatorTest.cs b/src/Mvc/Mvc.Razor/test/Compilation/RazorPagePropertyActivatorTest.cs index a62ddba0ca81..0c6bc0e14c52 100644 --- a/src/Mvc/Mvc.Razor/test/Compilation/RazorPagePropertyActivatorTest.cs +++ b/src/Mvc/Mvc.Razor/test/Compilation/RazorPagePropertyActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.Razor/test/DefaultTagHelperFactoryTest.cs b/src/Mvc/Mvc.Razor/test/DefaultTagHelperFactoryTest.cs index 94442984939c..46492b967d68 100644 --- a/src/Mvc/Mvc.Razor/test/DefaultTagHelperFactoryTest.cs +++ b/src/Mvc/Mvc.Razor/test/DefaultTagHelperFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcBuilderExtensionsTest.cs b/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcBuilderExtensionsTest.cs index a136b7fbdd36..e66f6c64c4e5 100644 --- a/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcCoreBuilderExtensionsTest.cs b/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcCoreBuilderExtensionsTest.cs index f7aa99fdcba4..5e2e0bbae397 100644 --- a/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcCoreBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.Razor/test/DependencyInjection/MvcRazorMvcCoreBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.Razor/test/Infrastructure/DefaultTagHelperActivatorTest.cs b/src/Mvc/Mvc.Razor/test/Infrastructure/DefaultTagHelperActivatorTest.cs index 8103bfc1396e..f94cfd83223e 100644 --- a/src/Mvc/Mvc.Razor/test/Infrastructure/DefaultTagHelperActivatorTest.cs +++ b/src/Mvc/Mvc.Razor/test/Infrastructure/DefaultTagHelperActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Razor/test/LanguageViewLocationExpanderTest.cs b/src/Mvc/Mvc.Razor/test/LanguageViewLocationExpanderTest.cs index bacd54ff6c96..c464164235a6 100644 --- a/src/Mvc/Mvc.Razor/test/LanguageViewLocationExpanderTest.cs +++ b/src/Mvc/Mvc.Razor/test/LanguageViewLocationExpanderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Testing; diff --git a/src/Mvc/Mvc.Razor/test/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.Razor/test/Properties/AssemblyInfo.cs index 3337ebeac24b..fb33a59c5309 100644 --- a/src/Mvc/Mvc.Razor/test/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.Razor/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.Razor/test/RazorFileHierarchyTest.cs b/src/Mvc/Mvc.Razor/test/RazorFileHierarchyTest.cs index ef0e6265bab2..00ea90e0eda9 100644 --- a/src/Mvc/Mvc.Razor/test/RazorFileHierarchyTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorFileHierarchyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.Razor/test/RazorPageActivatorTest.cs b/src/Mvc/Mvc.Razor/test/RazorPageActivatorTest.cs index da3f6ceccbbf..2b26e6acc1c5 100644 --- a/src/Mvc/Mvc.Razor/test/RazorPageActivatorTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorPageActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Razor/test/RazorPageCreateModelExpressionTest.cs b/src/Mvc/Mvc.Razor/test/RazorPageCreateModelExpressionTest.cs index d510595c73c8..a199be36bf63 100644 --- a/src/Mvc/Mvc.Razor/test/RazorPageCreateModelExpressionTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorPageCreateModelExpressionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.Razor/test/RazorPageCreateTagHelperTest.cs b/src/Mvc/Mvc.Razor/test/RazorPageCreateTagHelperTest.cs index a2632d1f3848..46c74b789953 100644 --- a/src/Mvc/Mvc.Razor/test/RazorPageCreateTagHelperTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorPageCreateTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.Razor/test/RazorPageTest.cs b/src/Mvc/Mvc.Razor/test/RazorPageTest.cs index 015e69190678..76ecae8d8394 100644 --- a/src/Mvc/Mvc.Razor/test/RazorPageTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorPageTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/RazorViewEngineOptionsTest.cs b/src/Mvc/Mvc.Razor/test/RazorViewEngineOptionsTest.cs index 7809ca3e1240..9f94d4a40fc1 100644 --- a/src/Mvc/Mvc.Razor/test/RazorViewEngineOptionsTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorViewEngineOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.Razor/test/RazorViewEngineTest.cs b/src/Mvc/Mvc.Razor/test/RazorViewEngineTest.cs index 7611c20feaa6..de94633b7874 100644 --- a/src/Mvc/Mvc.Razor/test/RazorViewEngineTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorViewEngineTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/RazorViewTest.cs b/src/Mvc/Mvc.Razor/test/RazorViewTest.cs index 82d010e9cad8..e2bbf910f415 100644 --- a/src/Mvc/Mvc.Razor/test/RazorViewTest.cs +++ b/src/Mvc/Mvc.Razor/test/RazorViewTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentPropertyActivatorTest.cs b/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentPropertyActivatorTest.cs index 37fe160c5648..0204f3a9a096 100644 --- a/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentPropertyActivatorTest.cs +++ b/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentPropertyActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentTagHelperTest.cs b/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentTagHelperTest.cs index 66bca4062fa4..3c5dd1cd6b7f 100644 --- a/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentTagHelperTest.cs +++ b/src/Mvc/Mvc.Razor/test/TagHelpers/TagHelperComponentTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/TagHelpers/UrlResolutionTagHelperTest.cs b/src/Mvc/Mvc.Razor/test/TagHelpers/UrlResolutionTagHelperTest.cs index a093c981eb3f..8831a0ec7f33 100644 --- a/src/Mvc/Mvc.Razor/test/TagHelpers/UrlResolutionTagHelperTest.cs +++ b/src/Mvc/Mvc.Razor/test/TagHelpers/UrlResolutionTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/TestApplicationPart.cs b/src/Mvc/Mvc.Razor/test/TestApplicationPart.cs index 5f6762242400..31ff977d41b0 100644 --- a/src/Mvc/Mvc.Razor/test/TestApplicationPart.cs +++ b/src/Mvc/Mvc.Razor/test/TestApplicationPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Razor/test/ViewPathTest.cs b/src/Mvc/Mvc.Razor/test/ViewPathTest.cs index 6f69e12a8592..d1576c844a49 100644 --- a/src/Mvc/Mvc.Razor/test/ViewPathTest.cs +++ b/src/Mvc/Mvc.Razor/test/ViewPathTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AuthorizationPageApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AuthorizationPageApplicationModelProvider.cs index 2c38d8935e0b..65661526d6f4 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AuthorizationPageApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AuthorizationPageApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AutoValidateAntiforgeryPageApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AutoValidateAntiforgeryPageApplicationModelProvider.cs index b4fca876d885..916fb78e292a 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AutoValidateAntiforgeryPageApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/AutoValidateAntiforgeryPageApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -28,7 +28,7 @@ public void OnProvidersExecuting(PageApplicationModelProviderContext context) // ValidateAntiforgeryTokenAttribute relies on order to determine if it's the effective policy. // When two antiforgery filters of the same order are added to the application model, the effective policy is determined - // by whatever appears later in the list (closest to the action). This causes filters listed on the model to be pre-empted + // by whatever appears later in the list (closest to the action). This causes filters listed on the model to be pre-empted // by the one added here. We'll resolve this unusual behavior by skipping the addition of the AutoValidateAntiforgeryTokenAttribute // when another already exists. if (!pageApplicationModel.Filters.OfType().Any()) diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageActionDescriptorBuilder.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageActionDescriptorBuilder.cs index 79968c8c39c3..ca17a6c55cbe 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageActionDescriptorBuilder.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageActionDescriptorBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -68,7 +68,7 @@ private static IList CreateEndPointMetadata(PageApplicationModel applica // It is criticial to get the order in which metadata appears in endpoint metadata correct. More significant metadata // must appear later in the sequence. - // In this case, handlerMetadata is attributes on the Page \ PageModel, and endPointMetadata is configured via conventions. and + // In this case, handlerMetadata is attributes on the Page \ PageModel, and endPointMetadata is configured via conventions. and // We consider the latter to be more significant. return Enumerable.Concat(handlerMetatdata, endpointMetadata).ToList(); } diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageRouteModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageRouteModelProvider.cs index dbe0e330c683..6d438b1d908f 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageRouteModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageRouteModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelPartsProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelPartsProvider.cs index 9ef57d0a0533..d37c2782569d 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelPartsProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelPartsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelProvider.cs index e24972acac1b..397b108cccb9 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelConvention.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelConvention.cs index e1b6d778d55b..479e5b791556 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelConvention.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelPartsProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelPartsProvider.cs index b7f4b383b3eb..de772b85faa9 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelPartsProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelPartsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelProvider.cs index 9296955e2ebf..cd4f873ddb08 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageConvention.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageConvention.cs index 3b2334953615..684557f14c32 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageConvention.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageHandlerModelConvention.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageHandlerModelConvention.cs index df2b0c7a695f..108455ac139c 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageHandlerModelConvention.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageHandlerModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelConvention.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelConvention.cs index 693e11cf3a6c..345cfda51124 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelConvention.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelProvider.cs index 300d8ecf9c21..56f5ba08a010 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/IPageRouteModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModel.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModel.cs index 42ac2ce5e7e9..9838ed6017b2 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModel.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModelProviderContext.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModelProviderContext.cs index 5c568e3f0635..93e57bfaed51 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModelProviderContext.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageApplicationModelProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageConventionCollection.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageConventionCollection.cs index 34cd80775c87..fd6c6a35fb9b 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageConventionCollection.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageConventionCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageHandlerModel.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageHandlerModel.cs index 3c1ff9fca5f5..98b574a85105 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageHandlerModel.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageHandlerModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageParameterModel.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageParameterModel.cs index 83947f6bdd20..38951e3bb701 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageParameterModel.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageParameterModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PagePropertyModel.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PagePropertyModel.cs index 3ef6865cf285..16895575693a 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PagePropertyModel.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PagePropertyModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteMetadata.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteMetadata.cs index e7f7127745d4..cb8866ad788c 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteMetadata.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ApplicationModels { diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModel.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModel.cs index ee9fa9094db1..793621ef8322 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModel.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -116,7 +116,7 @@ public PageRouteModel(PageRouteModel other) public IDictionary RouteValues { get; } /// - /// Gets or sets an that will be used to transform + /// Gets or sets an that will be used to transform /// built-in route parameters such as action, controller, and area as well as /// additional parameters specified by into static segments in the route template. /// diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelFactory.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelFactory.cs index ebfe1667bf2f..df274511ceae 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelProviderContext.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelProviderContext.cs index 966eb3876b26..5088a2da60c6 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelProviderContext.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteModelProviderContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteTransformerConvention.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteTransformerConvention.cs index f16a8b18fa0f..4332890ecb84 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteTransformerConvention.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/PageRouteTransformerConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ResponseCacheFilterApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ResponseCacheFilterApplicationModelProvider.cs index 09122c103a3b..dc5642a4f1cb 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ResponseCacheFilterApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ResponseCacheFilterApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/TempDataFilterPageApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/TempDataFilterPageApplicationModelProvider.cs index 65b251d495e3..e9857e4057e7 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/TempDataFilterPageApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/TempDataFilterPageApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ViewDataAttributePageApplicationModelProvider.cs b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ViewDataAttributePageApplicationModelProvider.cs index c0e12870b7f8..9a048e7cb084 100644 --- a/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ViewDataAttributePageApplicationModelProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/ApplicationModels/ViewDataAttributePageApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.RazorPages/src/Builder/PageActionEndpointConventionBuilder.cs b/src/Mvc/Mvc.RazorPages/src/Builder/PageActionEndpointConventionBuilder.cs index 72b1cb5b3963..9e4f14b7d175 100644 --- a/src/Mvc/Mvc.RazorPages/src/Builder/PageActionEndpointConventionBuilder.cs +++ b/src/Mvc/Mvc.RazorPages/src/Builder/PageActionEndpointConventionBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Builder/RazorPagesEndpointRouteBuilderExtensions.cs b/src/Mvc/Mvc.RazorPages/src/Builder/RazorPagesEndpointRouteBuilderExtensions.cs index 9f5cc03a3f90..3c241d1573de 100644 --- a/src/Mvc/Mvc.RazorPages/src/Builder/RazorPagesEndpointRouteBuilderExtensions.cs +++ b/src/Mvc/Mvc.RazorPages/src/Builder/RazorPagesEndpointRouteBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/CompiledPageActionDescriptor.cs b/src/Mvc/Mvc.RazorPages/src/CompiledPageActionDescriptor.cs index 4081789db881..b4e2196f5f58 100644 --- a/src/Mvc/Mvc.RazorPages/src/CompiledPageActionDescriptor.cs +++ b/src/Mvc/Mvc.RazorPages/src/CompiledPageActionDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -32,7 +32,7 @@ public CompiledPageActionDescriptor(PageActionDescriptor actionDescriptor) } /// - /// Gets the list of handler methods for the page. + /// Gets the list of handler methods for the page. /// public IList HandlerMethods { get; set; } = default!; diff --git a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcBuilderExtensions.cs b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcBuilderExtensions.cs index 42fa82261bb8..6cb4fa2ba2a1 100644 --- a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcCoreBuilderExtensions.cs index 8ffa2003e4f1..547d6fe2ebb9 100644 --- a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/MvcRazorPagesMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/PageConventionCollectionExtensions.cs b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/PageConventionCollectionExtensions.cs index c461b17cf170..f1a3d040a995 100644 --- a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/PageConventionCollectionExtensions.cs +++ b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/PageConventionCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Authorization; diff --git a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesOptionsSetup.cs b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesOptionsSetup.cs index 00848c02c374..09d34a13afb1 100644 --- a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesOptionsSetup.cs +++ b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationModels; diff --git a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesRazorViewEngineOptionsSetup.cs b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesRazorViewEngineOptionsSetup.cs index d8b907b7d81f..94a509f5dc11 100644 --- a/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesRazorViewEngineOptionsSetup.cs +++ b/src/Mvc/Mvc.RazorPages/src/DependencyInjection/RazorPagesRazorViewEngineOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs index d1f72184ef1e..a0187c64ae77 100644 --- a/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.RazorPages/src/Diagnostics/MvcDiagnostics.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/IAsyncPageFilter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/IAsyncPageFilter.cs index 1c6a0503df08..5e9dea12e266 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/IAsyncPageFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/IAsyncPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/IPageFilter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/IPageFilter.cs index 6fde59efb157..8ae2ffe84baf 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/IPageFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/IPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Filters { diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutedContext.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutedContext.cs index 4f7840dd7991..57f91407452a 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutedContext.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutedContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -10,8 +10,8 @@ namespace Microsoft.AspNetCore.Mvc.Filters { /// - /// A context for page filters, used specifically in - /// and + /// A context for page filters, used specifically in + /// and /// . /// public class PageHandlerExecutedContext : FilterContext diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutingContext.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutingContext.cs index 9217419c0d17..35e6094aaf97 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutingContext.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -9,8 +9,8 @@ namespace Microsoft.AspNetCore.Mvc.Filters { /// - /// A context for page filters, used specifically in - /// and + /// A context for page filters, used specifically in + /// and /// . /// public class PageHandlerExecutingContext : FilterContext @@ -49,7 +49,7 @@ public PageHandlerExecutingContext( /// /// Gets the descriptor associated with the current page. /// - public new virtual CompiledPageActionDescriptor ActionDescriptor => + public new virtual CompiledPageActionDescriptor ActionDescriptor => (CompiledPageActionDescriptor)base.ActionDescriptor; /// diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutionDelegate.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutionDelegate.cs index 7bf9708b20f7..d4e5e5dcfa36 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutionDelegate.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerExecutionDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerPageFilter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerPageFilter.cs index 4e491eef0485..62bbae777ea7 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerPageFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerResultFIlter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerResultFIlter.cs index c804aeb2d308..42c1abe38be9 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerResultFIlter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerResultFIlter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -49,8 +49,8 @@ public Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecuti } private static async Task ExecuteSyncFilter( - ResultExecutingContext context, - ResultExecutionDelegate next, + ResultExecutingContext context, + ResultExecutionDelegate next, IResultFilter resultFilter) { resultFilter.OnResultExecuting(context); diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerSelectedContext.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerSelectedContext.cs index 423fc3b4a3c2..c99c51e5d37a 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerSelectedContext.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageHandlerSelectedContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -9,8 +9,8 @@ namespace Microsoft.AspNetCore.Mvc.Filters { /// - /// A context for page filters, used specifically in - /// and + /// A context for page filters, used specifically in + /// and /// . /// public class PageHandlerSelectedContext : FilterContext @@ -38,7 +38,7 @@ public PageHandlerSelectedContext( /// /// Gets the descriptor associated with the current page. /// - public new virtual CompiledPageActionDescriptor ActionDescriptor => + public new virtual CompiledPageActionDescriptor ActionDescriptor => (CompiledPageActionDescriptor)base.ActionDescriptor; /// diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageResponseCacheFilter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageResponseCacheFilter.cs index caf6f048387a..45ea13e1f90a 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageResponseCacheFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageResponseCacheFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilter.cs index 3fc0b2b76196..842b0296fb48 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ViewFeatures; using Microsoft.AspNetCore.Mvc.ViewFeatures.Filters; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilterFactory.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilterFactory.cs index 0bbc255240de..22dc4ad819a0 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilterFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageSaveTempDataPropertyFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilter.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilter.cs index 6d4084c03e04..02b87ad2f2d7 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilterFactory.cs b/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilterFactory.cs index 42cdda0f045d..075207bf2578 100644 --- a/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilterFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Filters/PageViewDataAttributeFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/IPageActivatorProvider.cs b/src/Mvc/Mvc.RazorPages/src/IPageActivatorProvider.cs index eb9d24a8791b..e9f84bfb826a 100644 --- a/src/Mvc/Mvc.RazorPages/src/IPageActivatorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/IPageActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/IPageFactoryProvider.cs b/src/Mvc/Mvc.RazorPages/src/IPageFactoryProvider.cs index 30b39e9122d5..342d86749a21 100644 --- a/src/Mvc/Mvc.RazorPages/src/IPageFactoryProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/IPageFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/IPageModelActivatorProvider.cs b/src/Mvc/Mvc.RazorPages/src/IPageModelActivatorProvider.cs index 6c1e425bc636..81703e4bae13 100644 --- a/src/Mvc/Mvc.RazorPages/src/IPageModelActivatorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/IPageModelActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/IPageModelFactoryProvider.cs b/src/Mvc/Mvc.RazorPages/src/IPageModelFactoryProvider.cs index 9bfb2226d68e..290ab295144b 100644 --- a/src/Mvc/Mvc.RazorPages/src/IPageModelFactoryProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/IPageModelFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorFactory.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorFactory.cs index fff30b97f5ef..2e528cbe4247 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorProvider.cs index 28d806c646b6..5285377f8c58 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/CompiledPageActionDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageActivatorProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageActivatorProvider.cs index 4fa7560606d3..51b24ce94644 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageActivatorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageFactoryProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageFactoryProvider.cs index f1a2347e0946..a333d6c21386 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageFactoryProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageHandlerMethodSelector.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageHandlerMethodSelector.cs index 019e69044e63..f4a74f294ef1 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageHandlerMethodSelector.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageHandlerMethodSelector.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageLoader.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageLoader.cs index b1f4c8c38e1c..aac7c22a09d8 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageLoader.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageLoader.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelActivatorProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelActivatorProvider.cs index ba40a81b6816..c9614edfadb9 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelActivatorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelFactoryProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelFactoryProvider.cs index 3269cf58cd66..c4e40c0dd4b6 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelFactoryProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DefaultPageModelFactoryProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointMatcherPolicy.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointMatcherPolicy.cs index 975024f12ff1..9fb96bab3597 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointMatcherPolicy.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointMatcherPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelector.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelector.cs index ac8c9af69c0f..69d4805d9e6c 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelector.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelector.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelectorCache.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelectorCache.cs index 51594c6ec1f2..220fc4409694 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelectorCache.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointSelectorCache.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.Concurrent; using System.Diagnostics; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageMetadata.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageMetadata.cs index a96a6d7278b1..075d9856be88 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageMetadata.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Routing; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageRouteValueTransformerMetadata.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageRouteValueTransformerMetadata.cs index ce82765dd0d4..7225e2336526 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageRouteValueTransformerMetadata.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageRouteValueTransformerMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/ExecutorFactory.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/ExecutorFactory.cs index 6d4fdf649cb5..b68128982c50 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/ExecutorFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/ExecutorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -18,7 +18,7 @@ public static PageHandlerExecutorDelegate CreateExecutor(HandlerMethodDescriptor { throw new ArgumentNullException(nameof(handlerDescriptor)); } - + var handler = CreateHandlerMethod(handlerDescriptor); return handler.Execute; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandleOptionsRequestsPageFilter.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandleOptionsRequestsPageFilter.cs index 0c9221e507ca..13dcc30a266f 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandleOptionsRequestsPageFilter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandleOptionsRequestsPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerMethodDescriptor.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerMethodDescriptor.cs index 1df18a546d3f..4352164c3207 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerMethodDescriptor.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerMethodDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerParameterDescriptor.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerParameterDescriptor.cs index 80bd46a4a1b2..f95a99a550d0 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerParameterDescriptor.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/HandlerParameterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageHandlerMethodSelector.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageHandlerMethodSelector.cs index 8e09b3106d04..0222612f79d2 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageHandlerMethodSelector.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageHandlerMethodSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure { diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageLoader.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageLoader.cs index e1d87515b511..7801ca38187d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageLoader.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/IPageLoader.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs index 4c29b9664dc0..f1d67b1fa195 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSource.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSource.cs index 9a989fa76b1b..5843bb5d52ad 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSource.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSource.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceFactory.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceFactory.cs index 275961d1927b..f2c77c7843f6 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Infrastructure; using Microsoft.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceIdProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceIdProvider.cs index 23aed3fae1a2..ff1e1511dd8a 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceIdProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionEndpointDataSourceIdProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvoker.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvoker.cs index a0be17fb36a4..ae5ed210f830 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvoker.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvoker.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCache.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCache.cs index 7089e597e002..08a7bc723d2b 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCache.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCacheEntry.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCacheEntry.cs index 80546e9b1cfa..dcf61a053c4d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCacheEntry.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerCacheEntry.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerProvider.cs index 0bfa4d348868..95f401710e5e 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBinderFactory.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBinderFactory.cs index 65569d82d07e..af8069b27c47 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBinderFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBinderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBoundPropertyDescriptor.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBoundPropertyDescriptor.cs index 71bb75c14643..24d30046bf5d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBoundPropertyDescriptor.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageBoundPropertyDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Mvc.Abstractions; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageEndpointDataSourceIdMetadata.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageEndpointDataSourceIdMetadata.cs index 11353b693298..2ffe2622d7b2 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageEndpointDataSourceIdMetadata.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageEndpointDataSourceIdMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure { diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerBinderDelegate.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerBinderDelegate.cs index 4702aa567f9d..54fb79954186 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerBinderDelegate.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerBinderDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerExecutorDelegate.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerExecutorDelegate.cs index eead1ae31b88..b0f350c492c5 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerExecutorDelegate.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageHandlerExecutorDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageLoader.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageLoader.cs index 2c9589292e26..35d35b72d341 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageLoader.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageLoader.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageModelAttribute.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageModelAttribute.cs index 0ae311a8ee2f..cbf135fe2363 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageModelAttribute.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageModelAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageRequestDelegateFactory.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageRequestDelegateFactory.cs index 07a347798d85..d5bf85fed21d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageRequestDelegateFactory.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageRequestDelegateFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageResultExecutor.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageResultExecutor.cs index 41495db64ae3..e98c898c876a 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageResultExecutor.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageViewLocationExpander.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageViewLocationExpander.cs index 6654251beba1..c9e20bdd0a6d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageViewLocationExpander.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/PageViewLocationExpander.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Razor; @@ -28,14 +28,14 @@ IEnumerable ExpandPageHierarchy() { // For pages, we only handle the 'page' token when it's surrounded by slashes. // - // Explanation: + // Explanation: // We need the ability to 'collapse' the segment which requires us to understand slashes. // Imagine a path like /{1}/{0} - we might end up with //{0} if we don't do *something* with // the slashes. Instead of picking on (leading or trailing), we choose both. This seems // less arbitrary. // // - // So given a Page like /Account/Manage/Index using /Pages as the root, and the default set of + // So given a Page like /Account/Manage/Index using /Pages as the root, and the default set of // search paths, this will produce the expanded paths: // // /Pages/Account/Manage/{0}.cshtml diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAdapter.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAdapter.cs index d77850c0349e..680d552e1a7d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAdapter.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAdapter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAttribute.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAttribute.cs index 63e343d4878d..600cb296c447 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAttribute.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/RazorPageAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Razor.Compilation; diff --git a/src/Mvc/Mvc.RazorPages/src/Infrastructure/ServiceBasedPageModelActivatorProvider.cs b/src/Mvc/Mvc.RazorPages/src/Infrastructure/ServiceBasedPageModelActivatorProvider.cs index ff69803d8156..e652f6971804 100644 --- a/src/Mvc/Mvc.RazorPages/src/Infrastructure/ServiceBasedPageModelActivatorProvider.cs +++ b/src/Mvc/Mvc.RazorPages/src/Infrastructure/ServiceBasedPageModelActivatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/src/MvcRazorPagesDiagnosticListenerExtensions.cs b/src/Mvc/Mvc.RazorPages/src/MvcRazorPagesDiagnosticListenerExtensions.cs index 33211c516b4e..f9186cad4da6 100644 --- a/src/Mvc/Mvc.RazorPages/src/MvcRazorPagesDiagnosticListenerExtensions.cs +++ b/src/Mvc/Mvc.RazorPages/src/MvcRazorPagesDiagnosticListenerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Mvc/Mvc.RazorPages/src/NonHandlerAttribute.cs b/src/Mvc/Mvc.RazorPages/src/NonHandlerAttribute.cs index 5c9cf5399419..403956f9b0aa 100644 --- a/src/Mvc/Mvc.RazorPages/src/NonHandlerAttribute.cs +++ b/src/Mvc/Mvc.RazorPages/src/NonHandlerAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.RazorPages/src/Page.cs b/src/Mvc/Mvc.RazorPages/src/Page.cs index c6ee14940d15..4d68519fe135 100644 --- a/src/Mvc/Mvc.RazorPages/src/Page.cs +++ b/src/Mvc/Mvc.RazorPages/src/Page.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.RazorPages { diff --git a/src/Mvc/Mvc.RazorPages/src/PageActionDescriptor.cs b/src/Mvc/Mvc.RazorPages/src/PageActionDescriptor.cs index 51b776fabec0..87ac9514c0a4 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageActionDescriptor.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageActionDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.RazorPages/src/PageBase.cs b/src/Mvc/Mvc.RazorPages/src/PageBase.cs index 699113b363cb..410ab65865bf 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageBase.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.RazorPages/src/PageContext.cs b/src/Mvc/Mvc.RazorPages/src/PageContext.cs index 3f6f827bd828..d381db6057a1 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageContext.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/PageContextAttribute.cs b/src/Mvc/Mvc.RazorPages/src/PageContextAttribute.cs index d92ec99c26c4..e2022161a875 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageContextAttribute.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageContextAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.RazorPages/src/PageLoggerExtensions.cs b/src/Mvc/Mvc.RazorPages/src/PageLoggerExtensions.cs index 84f1ac13955c..5c62b2ac21a7 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageLoggerExtensions.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable disable warnings diff --git a/src/Mvc/Mvc.RazorPages/src/PageModel.cs b/src/Mvc/Mvc.RazorPages/src/PageModel.cs index 92999d93b565..ec09285f10ed 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageModel.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.RazorPages/src/PageResult.cs b/src/Mvc/Mvc.RazorPages/src/PageResult.cs index f230204267ae..2729cdea1b3d 100644 --- a/src/Mvc/Mvc.RazorPages/src/PageResult.cs +++ b/src/Mvc/Mvc.RazorPages/src/PageResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.RazorPages/src/Properties/AssemblyInfo.cs index 5eee65919e04..252b670d459d 100644 --- a/src/Mvc/Mvc.RazorPages/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.RazorPages/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.RazorPages/src/RazorPagesOptions.cs b/src/Mvc/Mvc.RazorPages/src/RazorPagesOptions.cs index b973b3c86f84..d5be840aa0fe 100644 --- a/src/Mvc/Mvc.RazorPages/src/RazorPagesOptions.cs +++ b/src/Mvc/Mvc.RazorPages/src/RazorPagesOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/AuthorizationPageApplicationModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/AuthorizationPageApplicationModelProviderTest.cs index b2f17f48cfde..24d51066d0d3 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/AuthorizationPageApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/AuthorizationPageApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageActionDescriptorBuilderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageActionDescriptorBuilderTest.cs index b97c35ab6c13..a4961ad2c03b 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageActionDescriptorBuilderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageActionDescriptorBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -45,7 +45,7 @@ public void CreateDescriptor_CopiesPropertiesFromPageActionDescriptor() Assert.Same(actionDescriptor.RouteValues, actual.RouteValues); Assert.Same(actionDescriptor.ViewEnginePath, actual.ViewEnginePath); } - + [Fact] public void CreateDescriptor_CopiesPropertiesFromPageApplicationModel() { @@ -135,7 +135,7 @@ public void CreateDescriptor_ThrowsIfModelIsNotCompatibleWithDeclaredModel() var globalFilters = new FilterCollection(); // Act & Assert - var actual = Assert.Throws(() => + var actual = Assert.Throws(() => CompiledPageActionDescriptorBuilder.Build(pageApplicationModel, globalFilters)); } diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageRouteModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageRouteModelProviderTest.cs index c0cf96f38c04..af603a33a184 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageRouteModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/CompiledPageRouteModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/DefaultPageApplicationModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/DefaultPageApplicationModelProviderTest.cs index 82f02f468b67..2e3d50b998a4 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/DefaultPageApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/DefaultPageApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageConventionCollectionTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageConventionCollectionTest.cs index ddcb1be5e695..21f5bb9f7918 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageConventionCollectionTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageConventionCollectionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Testing; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteModelFactoryTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteModelFactoryTest.cs index 7e5347d28094..2e7c1d463408 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteModelFactoryTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteModelFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteTransformerConventionTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteTransformerConventionTest.cs index 9dd1ac2a52c2..f9344127a20b 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteTransformerConventionTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/PageRouteTransformerConventionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ResponseCacheFilterApplicationModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ResponseCacheFilterApplicationModelProviderTest.cs index 4c757bd1df22..3f04f2c4f046 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ResponseCacheFilterApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ResponseCacheFilterApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/TempDataFilterPageApplicationModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/TempDataFilterPageApplicationModelProviderTest.cs index ef4ac84077fa..3e60efa85a82 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/TempDataFilterPageApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/TempDataFilterPageApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ViewDataAttributePageApplicationModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ViewDataAttributePageApplicationModelProviderTest.cs index 240726449687..a5b9d0effb03 100644 --- a/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ViewDataAttributePageApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/ApplicationModels/ViewDataAttributePageApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/DependencyInjection/MvcRazorPagesMvcBuilderExtensionsTest.cs b/src/Mvc/Mvc.RazorPages/test/DependencyInjection/MvcRazorPagesMvcBuilderExtensionsTest.cs index 854ca7ece4eb..d52646a1f0bf 100644 --- a/src/Mvc/Mvc.RazorPages/test/DependencyInjection/MvcRazorPagesMvcBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/DependencyInjection/MvcRazorPagesMvcBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.ApplicationParts; diff --git a/src/Mvc/Mvc.RazorPages/test/DependencyInjection/PageConventionCollectionExtensionsTest.cs b/src/Mvc/Mvc.RazorPages/test/DependencyInjection/PageConventionCollectionExtensionsTest.cs index 356bce0b8f92..31216f04bc80 100644 --- a/src/Mvc/Mvc.RazorPages/test/DependencyInjection/PageConventionCollectionExtensionsTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/DependencyInjection/PageConventionCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/DependencyInjection/RazorPagesRazorViewEngineOptionsSetupTest.cs b/src/Mvc/Mvc.RazorPages/test/DependencyInjection/RazorPagesRazorViewEngineOptionsSetupTest.cs index be687be1f999..12c9118c54de 100644 --- a/src/Mvc/Mvc.RazorPages/test/DependencyInjection/RazorPagesRazorViewEngineOptionsSetupTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/DependencyInjection/RazorPagesRazorViewEngineOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.AspNetCore.Mvc.Razor; diff --git a/src/Mvc/Mvc.RazorPages/test/Filters/AutoValidateAntiforgeryPageApplicationModelProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Filters/AutoValidateAntiforgeryPageApplicationModelProviderTest.cs index cbfc1125c459..5dd246235c48 100644 --- a/src/Mvc/Mvc.RazorPages/test/Filters/AutoValidateAntiforgeryPageApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Filters/AutoValidateAntiforgeryPageApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/Filters/PageHandlerResultFilterTest.cs b/src/Mvc/Mvc.RazorPages/test/Filters/PageHandlerResultFilterTest.cs index 66bdda64e5ab..231aabe4540b 100644 --- a/src/Mvc/Mvc.RazorPages/test/Filters/PageHandlerResultFilterTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Filters/PageHandlerResultFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterFactoryTest.cs b/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterFactoryTest.cs index 31d78c90759b..7849c042a6e5 100644 --- a/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterFactoryTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterTest.cs b/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterTest.cs index be14b1a3416b..ee7ef44af9c0 100644 --- a/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Filters/PageSaveTempDataPropertyFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterFactoryTest.cs b/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterFactoryTest.cs index 73ca58290580..35abc2ec8349 100644 --- a/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterFactoryTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ViewFeatures.Filters; diff --git a/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterTest.cs b/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterTest.cs index 5198f9d558a3..6d3dc0222fb8 100644 --- a/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Filters/PageViewDataAttributeFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/CompiledPageActionDescriptorFactoryTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/CompiledPageActionDescriptorFactoryTest.cs index e48fabe1bc52..fa797853cdf6 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/CompiledPageActionDescriptorFactoryTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/CompiledPageActionDescriptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageActivatorProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageActivatorProviderTest.cs index db6aafa7fe73..1241b1246c5d 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageActivatorProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageActivatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageFactoryProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageFactoryProviderTest.cs index c52688b48964..56384e9b39c3 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageFactoryProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageFactoryProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageHandlerMethodSelectorTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageHandlerMethodSelectorTest.cs index 4a4d8bb17fb5..8c01c50219b5 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageHandlerMethodSelectorTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageHandlerMethodSelectorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageLoaderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageLoaderTest.cs index f9fab8e3db49..215de503aac4 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageLoaderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageLoaderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelActivatorProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelActivatorProviderTest.cs index 2a01032f3de9..91811af5d891 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelActivatorProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelActivatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelFactoryProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelFactoryProviderTest.cs index 5408ae372d03..a397b8beb96a 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelFactoryProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DefaultPageModelFactoryProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DisallowOptionsRequestsPageFilterTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DisallowOptionsRequestsPageFilterTest.cs index a2be81c8c100..dc5c9bf9ddba 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DisallowOptionsRequestsPageFilterTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DisallowOptionsRequestsPageFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DynamicPageEndpointMatcherPolicyTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DynamicPageEndpointMatcherPolicyTest.cs index 11928f3b9c82..06aae5303d01 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/DynamicPageEndpointMatcherPolicyTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/DynamicPageEndpointMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/ExecutorFactoryTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/ExecutorFactoryTest.cs index f7d48b9b2a91..d7b5e494ed17 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/ExecutorFactoryTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/ExecutorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionDescriptorProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionDescriptorProviderTest.cs index 10d968a991df..020971bbbff5 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionDescriptorProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionDescriptorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionEndpointDataSourceTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionEndpointDataSourceTest.cs index 2e3ef71e052a..66b2623ab16e 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionEndpointDataSourceTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionEndpointDataSourceTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerProviderTest.cs index 59ea0f414f2b..a48c31a490ff 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerTest.cs index d309d8418ba7..df87e865784b 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageActionInvokerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageBinderFactoryTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageBinderFactoryTest.cs index d32c3d96cb0f..6730127416f7 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageBinderFactoryTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageBinderFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageHandlerPageFilterTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageHandlerPageFilterTest.cs index 7e894435581b..9a75ee8449db 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageHandlerPageFilterTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageHandlerPageFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageViewLocationExpanderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageViewLocationExpanderTest.cs index 7623e4af9e55..2ee98c9e0f82 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageViewLocationExpanderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/PageViewLocationExpanderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.RazorPages/test/Infrastructure/ServiceBasedPageModelActivatorProviderTest.cs b/src/Mvc/Mvc.RazorPages/test/Infrastructure/ServiceBasedPageModelActivatorProviderTest.cs index 1d045c857132..ab2b7cade848 100644 --- a/src/Mvc/Mvc.RazorPages/test/Infrastructure/ServiceBasedPageModelActivatorProviderTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/Infrastructure/ServiceBasedPageModelActivatorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; @@ -31,10 +31,10 @@ public void Create_GetsServicesFromServiceProvider() { // Arrange var simpleModel = new DISimpleModel(); - var serviceProvider = new Mock(MockBehavior.Strict); + var serviceProvider = new Mock(MockBehavior.Strict); serviceProvider.Setup(s => s.GetService(typeof(DISimpleModel))) .Returns(simpleModel) - .Verifiable(); + .Verifiable(); var activatorProvider = new ServiceBasedPageModelActivatorProvider(); var pageContext = new PageContext diff --git a/src/Mvc/Mvc.RazorPages/test/PageLoggerExtensionsTest.cs b/src/Mvc/Mvc.RazorPages/test/PageLoggerExtensionsTest.cs index 1344e72521b7..a82b4415aebc 100644 --- a/src/Mvc/Mvc.RazorPages/test/PageLoggerExtensionsTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/PageLoggerExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.RazorPages/test/PageModelTest.cs b/src/Mvc/Mvc.RazorPages/test/PageModelTest.cs index 3ec9ed5f6a27..5e4148de3c2f 100644 --- a/src/Mvc/Mvc.RazorPages/test/PageModelTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/PageModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.RazorPages/test/PageTest.cs b/src/Mvc/Mvc.RazorPages/test/PageTest.cs index 473fac2cdeca..f462be4cf57d 100644 --- a/src/Mvc/Mvc.RazorPages/test/PageTest.cs +++ b/src/Mvc/Mvc.RazorPages/test/PageTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/AnchorTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/AnchorTagHelper.cs index 0e215b72cfe3..d7075b32816a 100644 --- a/src/Mvc/Mvc.TagHelpers/src/AnchorTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/AnchorTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -126,7 +126,7 @@ public AnchorTagHelper(IHtmlGenerator generator) /// Name of the route. /// /// - /// Must be null if one of , , + /// Must be null if one of , , /// or is non-null. /// [HtmlAttributeName(RouteAttributeName)] diff --git a/src/Mvc/Mvc.TagHelpers/src/AttributeMatcher.cs b/src/Mvc/Mvc.TagHelpers/src/AttributeMatcher.cs index a15f0895b073..29ef8e1ec246 100644 --- a/src/Mvc/Mvc.TagHelpers/src/AttributeMatcher.cs +++ b/src/Mvc/Mvc.TagHelpers/src/AttributeMatcher.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/CacheTagKey.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/CacheTagKey.cs index 0138fa40b6d7..0dfe437abfb1 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/CacheTagKey.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/CacheTagKey.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormatter.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormatter.cs index 3e0fbfb317e3..10474b80e85c 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormatter.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormattingContext.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormattingContext.cs index 3b1de01ff4a8..2c74e271b4ac 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormattingContext.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperFormattingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Html; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperService.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperService.cs index 167f30b4849f..0d6ac9101c07 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperService.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperStorage.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperStorage.cs index 2409f9d5eaa7..e1a9455b6458 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperStorage.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperStorage.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -31,7 +31,7 @@ public Task GetAsync(string key) { throw new ArgumentNullException(nameof(key)); } - + return _distributedCache.GetAsync(key); } diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperFormatter.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperFormatter.cs index 6236b7d71947..390b26b6bf0f 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperFormatter.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Html; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperService.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperService.cs index 15abaab386b8..04f502aa8c36 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperService.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Html; diff --git a/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperStorage.cs b/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperStorage.cs index 2d29c436d778..35bb4b26c333 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperStorage.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Cache/IDistributedCacheTagHelperStorage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.Extensions.Caching.Distributed; @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Mvc.TagHelpers.Cache { /// - /// An implementation of this interface provides a service to + /// An implementation of this interface provides a service to /// cache distributed html fragments from the <distributed-cache> /// tag helper. /// diff --git a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs index a097528945a0..f8e5e0d8a982 100644 --- a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperBase.cs b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperBase.cs index 9ebd8a7717ad..ccacc9e0f397 100644 --- a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperBase.cs +++ b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperMemoryCacheFactory.cs b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperMemoryCacheFactory.cs index 1bd126087d91..75c48b9ed679 100644 --- a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperMemoryCacheFactory.cs +++ b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperMemoryCacheFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Options; diff --git a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperOptions.cs b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperOptions.cs index 0e141b26ff8d..c7d41552e862 100644 --- a/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperOptions.cs +++ b/src/Mvc/Mvc.TagHelpers/src/CacheTagHelperOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.TagHelpers { diff --git a/src/Mvc/Mvc.TagHelpers/src/ComponentTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/ComponentTagHelper.cs index 96e4940714f7..521c5cf1cf39 100644 --- a/src/Mvc/Mvc.TagHelpers/src/ComponentTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/ComponentTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Mvc/Mvc.TagHelpers/src/CurrentValues.cs b/src/Mvc/Mvc.TagHelpers/src/CurrentValues.cs index 8794df7203aa..3c9ae5aa160a 100644 --- a/src/Mvc/Mvc.TagHelpers/src/CurrentValues.cs +++ b/src/Mvc/Mvc.TagHelpers/src/CurrentValues.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Mvc/Mvc.TagHelpers/src/DependencyInjection/TagHelperExtensions.cs b/src/Mvc/Mvc.TagHelpers/src/DependencyInjection/TagHelperExtensions.cs index 74b3ef5853dd..151cfcd8600c 100644 --- a/src/Mvc/Mvc.TagHelpers/src/DependencyInjection/TagHelperExtensions.cs +++ b/src/Mvc/Mvc.TagHelpers/src/DependencyInjection/TagHelperExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.TagHelpers; diff --git a/src/Mvc/Mvc.TagHelpers/src/DistributedCacheTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/DistributedCacheTagHelper.cs index 7256f950d9c5..f18f40d48999 100644 --- a/src/Mvc/Mvc.TagHelpers/src/DistributedCacheTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/DistributedCacheTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Encodings.Web; diff --git a/src/Mvc/Mvc.TagHelpers/src/EnvironmentTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/EnvironmentTagHelper.cs index b715c4db244c..81d4e0652236 100644 --- a/src/Mvc/Mvc.TagHelpers/src/EnvironmentTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/EnvironmentTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.TagHelpers /// /// implementation targeting <environment> elements that conditionally renders /// content based on the current value of . - /// If the environment is not listed in the specified or , + /// If the environment is not listed in the specified or , /// or if it is in , the content will not be rendered. /// public class EnvironmentTagHelper : TagHelper diff --git a/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingDirectory.cs b/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingDirectory.cs index 5cb63e410f69..48598306f814 100644 --- a/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingDirectory.cs +++ b/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingDirectory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingFile.cs b/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingFile.cs index 67ccc9e04647..adf23d2bf1f5 100644 --- a/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingFile.cs +++ b/src/Mvc/Mvc.TagHelpers/src/FileProviderGlobbingFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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.FileProviders; diff --git a/src/Mvc/Mvc.TagHelpers/src/FormActionTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/FormActionTagHelper.cs index 7e42106f0fde..6585607a3b06 100644 --- a/src/Mvc/Mvc.TagHelpers/src/FormActionTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/FormActionTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/FormTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/FormTagHelper.cs index ad33eb254af0..15ec813c2f37 100644 --- a/src/Mvc/Mvc.TagHelpers/src/FormTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/FormTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -263,7 +263,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output) TagBuilder tagBuilder = null; if (!routeableParametersProvided && _routeValues == null && - // Antiforgery will sometime be set globally via TagHelper Initializers, verify it was provided in the cshtml. + // Antiforgery will sometime be set globally via TagHelper Initializers, verify it was provided in the cshtml. !context.AllAttributes.ContainsName(AntiforgeryAttributeName)) { // A
    tag that doesn't utilize asp-* attributes. Let it flow to the output. diff --git a/src/Mvc/Mvc.TagHelpers/src/GlobbingUrlBuilder.cs b/src/Mvc/Mvc.TagHelpers/src/GlobbingUrlBuilder.cs index e0a04a537484..0bb78423979f 100644 --- a/src/Mvc/Mvc.TagHelpers/src/GlobbingUrlBuilder.cs +++ b/src/Mvc/Mvc.TagHelpers/src/GlobbingUrlBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/ImageTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/ImageTagHelper.cs index c85fd14fa68e..2d3018774b55 100644 --- a/src/Mvc/Mvc.TagHelpers/src/ImageTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/ImageTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Encodings.Web; diff --git a/src/Mvc/Mvc.TagHelpers/src/InputTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/InputTagHelper.cs index 3ce7506e0895..e01c5ac7b2b5 100644 --- a/src/Mvc/Mvc.TagHelpers/src/InputTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/InputTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/JavaScriptResources.cs b/src/Mvc/Mvc.TagHelpers/src/JavaScriptResources.cs index a8cc82d4c2d3..87ad119c3c99 100644 --- a/src/Mvc/Mvc.TagHelpers/src/JavaScriptResources.cs +++ b/src/Mvc/Mvc.TagHelpers/src/JavaScriptResources.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.TagHelpers/src/LabelTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/LabelTagHelper.cs index aebfe3da2e1b..231128065cd2 100644 --- a/src/Mvc/Mvc.TagHelpers/src/LabelTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/LabelTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/LinkTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/LinkTagHelper.cs index 4f1e655785db..16c5d9838d4e 100644 --- a/src/Mvc/Mvc.TagHelpers/src/LinkTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/LinkTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/ModeAttributesOfT.cs b/src/Mvc/Mvc.TagHelpers/src/ModeAttributesOfT.cs index 6aafc88d8f8b..945c81ccd229 100644 --- a/src/Mvc/Mvc.TagHelpers/src/ModeAttributesOfT.cs +++ b/src/Mvc/Mvc.TagHelpers/src/ModeAttributesOfT.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.TagHelpers { diff --git a/src/Mvc/Mvc.TagHelpers/src/MvcTagHelpersLoggerExtensions.cs b/src/Mvc/Mvc.TagHelpers/src/MvcTagHelpersLoggerExtensions.cs index 7c32836aee8a..bd575c12c484 100644 --- a/src/Mvc/Mvc.TagHelpers/src/MvcTagHelpersLoggerExtensions.cs +++ b/src/Mvc/Mvc.TagHelpers/src/MvcTagHelpersLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/OptionTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/OptionTagHelper.cs index 1d8ac3555077..b28bdb3aa932 100644 --- a/src/Mvc/Mvc.TagHelpers/src/OptionTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/OptionTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/PartialTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/PartialTagHelper.cs index 4115c4e0f96a..807c263b1314 100644 --- a/src/Mvc/Mvc.TagHelpers/src/PartialTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/PartialTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -79,7 +79,7 @@ public object Model } /// - /// When optional, executing the tag helper will no-op if the view cannot be located. + /// When optional, executing the tag helper will no-op if the view cannot be located. /// Otherwise will throw stating the view could not be found. /// [HtmlAttributeName(OptionalAttributeName)] diff --git a/src/Mvc/Mvc.TagHelpers/src/PersistComponentStateTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/PersistComponentStateTagHelper.cs index 215d96306b7a..0ccd9da96f8b 100644 --- a/src/Mvc/Mvc.TagHelpers/src/PersistComponentStateTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/PersistComponentStateTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/PersistenceMode.cs b/src/Mvc/Mvc.TagHelpers/src/PersistenceMode.cs index 1bb73b90647b..ec50a2ebc527 100644 --- a/src/Mvc/Mvc.TagHelpers/src/PersistenceMode.cs +++ b/src/Mvc/Mvc.TagHelpers/src/PersistenceMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.TagHelpers { diff --git a/src/Mvc/Mvc.TagHelpers/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.TagHelpers/src/Properties/AssemblyInfo.cs index bfd89af65391..0cb5f694b041 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.TagHelpers/src/RenderAtEndOfFormTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/RenderAtEndOfFormTagHelper.cs index 193639bec3d7..7c4e7e7cd10b 100644 --- a/src/Mvc/Mvc.TagHelpers/src/RenderAtEndOfFormTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/RenderAtEndOfFormTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Mvc/Mvc.TagHelpers/src/Rendering/ValidationSummary.cs b/src/Mvc/Mvc.TagHelpers/src/Rendering/ValidationSummary.cs index 936e5c362757..98b8c45c8bec 100644 --- a/src/Mvc/Mvc.TagHelpers/src/Rendering/ValidationSummary.cs +++ b/src/Mvc/Mvc.TagHelpers/src/Rendering/ValidationSummary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.TagHelpers/src/ScriptTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/ScriptTagHelper.cs index 728e64caa0dc..d49220988580 100644 --- a/src/Mvc/Mvc.TagHelpers/src/ScriptTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/ScriptTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.TagHelpers/src/SelectTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/SelectTagHelper.cs index 0212d75eee4e..01c77ab261bf 100644 --- a/src/Mvc/Mvc.TagHelpers/src/SelectTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/SelectTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/TagHelperOutputExtensions.cs b/src/Mvc/Mvc.TagHelpers/src/TagHelperOutputExtensions.cs index 09d73843f541..5d493e69e11f 100644 --- a/src/Mvc/Mvc.TagHelpers/src/TagHelperOutputExtensions.cs +++ b/src/Mvc/Mvc.TagHelpers/src/TagHelperOutputExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/TextAreaTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/TextAreaTagHelper.cs index f57f8ad0e47a..f292e4e3bbe6 100644 --- a/src/Mvc/Mvc.TagHelpers/src/TextAreaTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/TextAreaTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/ValidationMessageTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/ValidationMessageTagHelper.cs index 7949148f0269..8c44e7ec7f44 100644 --- a/src/Mvc/Mvc.TagHelpers/src/ValidationMessageTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/ValidationMessageTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/src/ValidationSummaryTagHelper.cs b/src/Mvc/Mvc.TagHelpers/src/ValidationSummaryTagHelper.cs index e5c39fa59ae6..d0c8ee066ae3 100644 --- a/src/Mvc/Mvc.TagHelpers/src/ValidationSummaryTagHelper.cs +++ b/src/Mvc/Mvc.TagHelpers/src/ValidationSummaryTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.TagHelpers/src/_gruntfile.js b/src/Mvc/Mvc.TagHelpers/src/_gruntfile.js index a18adbf35dd6..e8995d04f009 100644 --- a/src/Mvc/Mvc.TagHelpers/src/_gruntfile.js +++ b/src/Mvc/Mvc.TagHelpers/src/_gruntfile.js @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. module.exports = function (grunt) { grunt.initConfig({ diff --git a/src/Mvc/Mvc.TagHelpers/src/js/LinkTagHelper_FallbackJavaScript.js b/src/Mvc/Mvc.TagHelpers/src/js/LinkTagHelper_FallbackJavaScript.js index 17e229dc49f4..c3bd90339161 100644 --- a/src/Mvc/Mvc.TagHelpers/src/js/LinkTagHelper_FallbackJavaScript.js +++ b/src/Mvc/Mvc.TagHelpers/src/js/LinkTagHelper_FallbackJavaScript.js @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. ( /** * This function finds the previous element (assumed to be meta) and tests its current CSS style using the passed diff --git a/src/Mvc/Mvc.TagHelpers/test/AnchorTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/AnchorTagHelperTest.cs index c3cdb498f240..c38408cb6caf 100644 --- a/src/Mvc/Mvc.TagHelpers/test/AnchorTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/AnchorTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/AttributeMatcherTest.cs b/src/Mvc/Mvc.TagHelpers/test/AttributeMatcherTest.cs index e9ebf0decf66..e99d543a9ef4 100644 --- a/src/Mvc/Mvc.TagHelpers/test/AttributeMatcherTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/AttributeMatcherTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs index 525f1107f289..9c5a41426425 100644 --- a/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/CacheTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/CacheTagKeyTest.cs b/src/Mvc/Mvc.TagHelpers/test/CacheTagKeyTest.cs index 859a4f34ab77..377556306d03 100644 --- a/src/Mvc/Mvc.TagHelpers/test/CacheTagKeyTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/CacheTagKeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/ComponentTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/ComponentTagHelperTest.cs index e025ce4d7a78..9527eec62652 100644 --- a/src/Mvc/Mvc.TagHelpers/test/ComponentTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/ComponentTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/DefaultFileVersionProviderTest.cs b/src/Mvc/Mvc.TagHelpers/test/DefaultFileVersionProviderTest.cs index c13805fd3d70..a9788fba9967 100644 --- a/src/Mvc/Mvc.TagHelpers/test/DefaultFileVersionProviderTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/DefaultFileVersionProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.TagHelpers/test/DefaultTagHelperActivatorTest.cs b/src/Mvc/Mvc.TagHelpers/test/DefaultTagHelperActivatorTest.cs index 8447e51d4107..d7a04c4c19cd 100644 --- a/src/Mvc/Mvc.TagHelpers/test/DefaultTagHelperActivatorTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/DefaultTagHelperActivatorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Encodings.Web; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/Mvc.TagHelpers/test/DistributedCacheTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/DistributedCacheTagHelperTest.cs index 410e4f149c47..8b020a7e8fad 100644 --- a/src/Mvc/Mvc.TagHelpers/test/DistributedCacheTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/DistributedCacheTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/EnvironmentTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/EnvironmentTagHelperTest.cs index cdf4eb31bdff..21a95ae2ab05 100644 --- a/src/Mvc/Mvc.TagHelpers/test/EnvironmentTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/EnvironmentTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/FormActionTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/FormActionTagHelperTest.cs index 21773cae67e4..3550366e030d 100644 --- a/src/Mvc/Mvc.TagHelpers/test/FormActionTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/FormActionTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/FormTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/FormTagHelperTest.cs index 903a3354510c..de9f33c0f6da 100644 --- a/src/Mvc/Mvc.TagHelpers/test/FormTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/FormTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/GlobbingUrlBuilderTest.cs b/src/Mvc/Mvc.TagHelpers/test/GlobbingUrlBuilderTest.cs index 1bcbc1f83d45..52c6b6231cb4 100644 --- a/src/Mvc/Mvc.TagHelpers/test/GlobbingUrlBuilderTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/GlobbingUrlBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/ImageTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/ImageTagHelperTest.cs index e31de4ed1174..e20fad6a3a47 100644 --- a/src/Mvc/Mvc.TagHelpers/test/ImageTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/ImageTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/InputTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/InputTagHelperTest.cs index 557454892b7c..e608a75f33cc 100644 --- a/src/Mvc/Mvc.TagHelpers/test/InputTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/InputTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/JavaScriptResourcesTest.cs b/src/Mvc/Mvc.TagHelpers/test/JavaScriptResourcesTest.cs index 1bf1456718ad..2e8d9a634837 100644 --- a/src/Mvc/Mvc.TagHelpers/test/JavaScriptResourcesTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/JavaScriptResourcesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.TagHelpers/test/LabelTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/LabelTagHelperTest.cs index 106af2e50c47..1708daf47b2e 100644 --- a/src/Mvc/Mvc.TagHelpers/test/LabelTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/LabelTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/LinkTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/LinkTagHelperTest.cs index a1ff4d41ab91..f91b8ee53807 100644 --- a/src/Mvc/Mvc.TagHelpers/test/LinkTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/LinkTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/OptionTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/OptionTagHelperTest.cs index 866429bacdd4..fc0d31f4a9a2 100644 --- a/src/Mvc/Mvc.TagHelpers/test/OptionTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/OptionTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.TagHelpers/test/PartialTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/PartialTagHelperTest.cs index 5ac74627c4cb..d2bda7d929e6 100644 --- a/src/Mvc/Mvc.TagHelpers/test/PartialTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/PartialTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -606,7 +606,7 @@ public async Task ProcessAsync_Throws_If_NotOptional_And_GetViewAndFindReturnNot () => tagHelper.ProcessAsync(tagHelperContext, output)); Assert.Equal(expected, exception.Message); } - + [Fact] public async Task ProcessAsync_IfOptional_And_ViewIsNotFound_WillNotRenderAnything() { diff --git a/src/Mvc/Mvc.TagHelpers/test/PersistComponentStateTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/PersistComponentStateTagHelperTest.cs index 5288180608e9..40ab053eace5 100644 --- a/src/Mvc/Mvc.TagHelpers/test/PersistComponentStateTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/PersistComponentStateTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/PrerenderComponentApplicationStoreTest.cs b/src/Mvc/Mvc.TagHelpers/test/PrerenderComponentApplicationStoreTest.cs index da2b16790ceb..e6002fe27b43 100644 --- a/src/Mvc/Mvc.TagHelpers/test/PrerenderComponentApplicationStoreTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/PrerenderComponentApplicationStoreTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/ProtectedPrerenderComponentApplicationStateTest.cs b/src/Mvc/Mvc.TagHelpers/test/ProtectedPrerenderComponentApplicationStateTest.cs index 9cc8e1f3e26d..83c0f7f2a5ae 100644 --- a/src/Mvc/Mvc.TagHelpers/test/ProtectedPrerenderComponentApplicationStateTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/ProtectedPrerenderComponentApplicationStateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/RenderAtEndOfFormTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/RenderAtEndOfFormTagHelperTest.cs index 03304ab18a4c..d8965412c0c6 100644 --- a/src/Mvc/Mvc.TagHelpers/test/RenderAtEndOfFormTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/RenderAtEndOfFormTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.TagHelpers/test/ScriptTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/ScriptTagHelperTest.cs index ef93cd8ac27d..555feecc4223 100644 --- a/src/Mvc/Mvc.TagHelpers/test/ScriptTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/ScriptTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/SelectTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/SelectTagHelperTest.cs index 8584c3b9dcee..0904b73a719e 100644 --- a/src/Mvc/Mvc.TagHelpers/test/SelectTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/SelectTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/TagHelperLogger.cs b/src/Mvc/Mvc.TagHelpers/test/TagHelperLogger.cs index 9e074fbffb7f..af438ffb6867 100644 --- a/src/Mvc/Mvc.TagHelpers/test/TagHelperLogger.cs +++ b/src/Mvc/Mvc.TagHelpers/test/TagHelperLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/TagHelperOutputExtensionsTest.cs b/src/Mvc/Mvc.TagHelpers/test/TagHelperOutputExtensionsTest.cs index 8491d2c14298..ff51908a66cf 100644 --- a/src/Mvc/Mvc.TagHelpers/test/TagHelperOutputExtensionsTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/TagHelperOutputExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/TestableHtmlGenerator.cs b/src/Mvc/Mvc.TagHelpers/test/TestableHtmlGenerator.cs index ade416916a8f..544004dc8a20 100644 --- a/src/Mvc/Mvc.TagHelpers/test/TestableHtmlGenerator.cs +++ b/src/Mvc/Mvc.TagHelpers/test/TestableHtmlGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/TextAreaTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/TextAreaTagHelperTest.cs index 98f32a805022..3f62557cc41a 100644 --- a/src/Mvc/Mvc.TagHelpers/test/TextAreaTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/TextAreaTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.TagHelpers/test/ValidationMessageTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/ValidationMessageTagHelperTest.cs index 1c919635be69..bb50cf187bd8 100644 --- a/src/Mvc/Mvc.TagHelpers/test/ValidationMessageTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/ValidationMessageTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.TagHelpers/test/ValidationSummaryTagHelperTest.cs b/src/Mvc/Mvc.TagHelpers/test/ValidationSummaryTagHelperTest.cs index 194633d8f7d2..b5076696c613 100644 --- a/src/Mvc/Mvc.TagHelpers/test/ValidationSummaryTagHelperTest.cs +++ b/src/Mvc/Mvc.TagHelpers/test/ValidationSummaryTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Testing.Tasks/src/GenerateMvcTestManifestTask.cs b/src/Mvc/Mvc.Testing.Tasks/src/GenerateMvcTestManifestTask.cs index 505b8eb5e336..a3474c77d9be 100644 --- a/src/Mvc/Mvc.Testing.Tasks/src/GenerateMvcTestManifestTask.cs +++ b/src/Mvc/Mvc.Testing.Tasks/src/GenerateMvcTestManifestTask.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Testing/src/DeferredHostBuilder.cs b/src/Mvc/Mvc.Testing/src/DeferredHostBuilder.cs index 8fca3c7c2d51..9449c1f78416 100644 --- a/src/Mvc/Mvc.Testing/src/DeferredHostBuilder.cs +++ b/src/Mvc/Mvc.Testing/src/DeferredHostBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Testing/src/Handlers/CookieContainerHandler.cs b/src/Mvc/Mvc.Testing/src/Handlers/CookieContainerHandler.cs index 43f29f5b2e7e..280a102ac9d7 100644 --- a/src/Mvc/Mvc.Testing/src/Handlers/CookieContainerHandler.cs +++ b/src/Mvc/Mvc.Testing/src/Handlers/CookieContainerHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/Mvc.Testing/src/Handlers/RedirectHandler.cs b/src/Mvc/Mvc.Testing/src/Handlers/RedirectHandler.cs index 5edd52198988..d67d81d18ba3 100644 --- a/src/Mvc/Mvc.Testing/src/Handlers/RedirectHandler.cs +++ b/src/Mvc/Mvc.Testing/src/Handlers/RedirectHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs b/src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs index 3cd85001d108..a0f306e5e743 100644 --- a/src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs +++ b/src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.Testing/src/WebApplicationFactoryClientOptions.cs b/src/Mvc/Mvc.Testing/src/WebApplicationFactoryClientOptions.cs index cfc024460379..e1a3ee61cf9e 100644 --- a/src/Mvc/Mvc.Testing/src/WebApplicationFactoryClientOptions.cs +++ b/src/Mvc/Mvc.Testing/src/WebApplicationFactoryClientOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -56,7 +56,7 @@ internal WebApplicationFactoryClientOptions(WebApplicationFactoryClientOptions c public int MaxAutomaticRedirections { get; set; } = RedirectHandler.DefaultMaxRedirects; /// - /// Gets or sets whether instances created by calling + /// Gets or sets whether instances created by calling /// /// should handle cookies. /// The default is true. diff --git a/src/Mvc/Mvc.Testing/src/WebApplicationFactoryContentRootAttribute.cs b/src/Mvc/Mvc.Testing/src/WebApplicationFactoryContentRootAttribute.cs index 19faf8d7f1cf..039a75236834 100644 --- a/src/Mvc/Mvc.Testing/src/WebApplicationFactoryContentRootAttribute.cs +++ b/src/Mvc/Mvc.Testing/src/WebApplicationFactoryContentRootAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.ViewFeatures/src/AntiforgeryExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/AntiforgeryExtensions.cs index 43b1c7cc1cc3..caf9e22e684e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/AntiforgeryExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/AntiforgeryExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/AttributeDictionary.cs b/src/Mvc/Mvc.ViewFeatures/src/AttributeDictionary.cs index 81ab80177a5b..36e39a9694ec 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/AttributeDictionary.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/AttributeDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/AutoValidateAntiforgeryTokenAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/AutoValidateAntiforgeryTokenAttribute.cs index 1f3027ade676..e2f31ac31c41 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/AutoValidateAntiforgeryTokenAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/AutoValidateAntiforgeryTokenAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -32,7 +32,7 @@ public class AutoValidateAntiforgeryTokenAttribute : Attribute, IFilterFactory, /// Filters are executed in a sequence determined by an ascending sort of the property. /// /// - /// The default Order for this attribute is 1000 because it must run after any filter which does authentication + /// The default Order for this attribute is 1000 because it must run after any filter which does authentication /// or login in order to allow them to behave as expected (ie Unauthenticated or Redirect instead of 400). /// /// diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ArrayPoolBufferSource.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ArrayPoolBufferSource.cs index bbfbf724405b..e7c6cd6e99d8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ArrayPoolBufferSource.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ArrayPoolBufferSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/CharArrayBufferSource.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/CharArrayBufferSource.cs index fa6ae6cbe950..e5d65c2ac03c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/CharArrayBufferSource.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/CharArrayBufferSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ICharBufferSource.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ICharBufferSource.cs index 439aa46973b1..5513a5e1c831 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ICharBufferSource.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ICharBufferSource.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/IViewBufferScope.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/IViewBufferScope.cs index 6cb21ee10085..38bb6ede4cc9 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/IViewBufferScope.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/IViewBufferScope.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/MemoryPoolViewBufferScope.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/MemoryPoolViewBufferScope.cs index 2ad3dda3585f..1e6d1284faf3 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/MemoryPoolViewBufferScope.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/MemoryPoolViewBufferScope.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedBufferedTextWriter.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedBufferedTextWriter.cs index 611a03f45c84..64c2abc7b1c4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedBufferedTextWriter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedBufferedTextWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; @@ -109,7 +109,7 @@ public override Task WriteAsync(char value) { var flushTask = FlushAsyncCore(); - return flushTask.IsCompletedSuccessfully ? + return flushTask.IsCompletedSuccessfully ? _inner.WriteAsync(value) : WriteAsyncAwaited(flushTask, value); } diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedCharBuffer.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedCharBuffer.cs index 877a81910ce2..2ef85e5bf331 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedCharBuffer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/PagedCharBuffer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -20,7 +20,7 @@ public PagedCharBuffer(ICharBufferSource bufferSource) public ICharBufferSource BufferSource { get; } // Strongly typed rather than IList for performance - public List Pages { get; } = new List(); + public List Pages { get; } = new List(); public int Length { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBuffer.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBuffer.cs index ea6aa480f20b..4b891c4dc17f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBuffer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBuffer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferPage.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferPage.cs index af360d9fcd69..268c1ba5173d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferPage.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferPage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferTextWriter.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferTextWriter.cs index bedc6d9da606..c4d8860d8885 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferTextWriter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferTextWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers { /// /// - /// A that is backed by a unbuffered writer (over the Response stream) and/or a + /// A that is backed by a unbuffered writer (over the Response stream) and/or a /// /// /// diff --git a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferValue.cs b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferValue.cs index 4f2bd4bf8203..5639dcfc1987 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferValue.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Buffers/ViewBufferValue.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/src/CachedExpressionCompiler.cs b/src/Mvc/Mvc.ViewFeatures/src/CachedExpressionCompiler.cs index 03c0b31da9dc..f3d699379c87 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/CachedExpressionCompiler.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/CachedExpressionCompiler.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Controller.cs b/src/Mvc/Mvc.ViewFeatures/src/Controller.cs index 41d43bd598eb..3c4cb9d04d23 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Controller.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Controller.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProvider.cs index e57424537ad5..d16faaac2249 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProviderOptions.cs b/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProviderOptions.cs index 952a0db75d9f..d244cb198287 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProviderOptions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/CookieTempDataProviderOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DefaultDisplayTemplates.cs b/src/Mvc/Mvc.ViewFeatures/src/DefaultDisplayTemplates.cs index 1e7e0dbbd217..bb7b5b6a2222 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DefaultDisplayTemplates.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DefaultDisplayTemplates.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DefaultEditorTemplates.cs b/src/Mvc/Mvc.ViewFeatures/src/DefaultEditorTemplates.cs index e9e695fb1d9c..a9edeeadc4e9 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DefaultEditorTemplates.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DefaultEditorTemplates.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGenerator.cs b/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGenerator.cs index b90e8af4a4fb..19d901be6692 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGenerator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGeneratorExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGeneratorExtensions.cs index 9847421752d3..a31b59abfd1c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGeneratorExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DefaultHtmlGeneratorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DefaultValidationHtmlAttributeProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/DefaultValidationHtmlAttributeProvider.cs index 1b2d5d1b7ad6..1a6549584179 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DefaultValidationHtmlAttributeProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DefaultValidationHtmlAttributeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcBuilderExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcBuilderExtensions.cs index 5e1ebc436487..2ac8fcbf328b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcBuilderExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs index 94d5c80c9c40..d23fee1a94e1 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewOptionsSetup.cs b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewOptionsSetup.cs index 29548e907de0..3661ada7409b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewOptionsSetup.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/MvcViewOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/TempDataMvcOptionsSetup.cs b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/TempDataMvcOptionsSetup.cs index 4f6d7360e18e..9804c527acc6 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/TempDataMvcOptionsSetup.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DependencyInjection/TempDataMvcOptionsSetup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs b/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs index 11aeb52b43a6..6e545e2cdd38 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Diagnostics/MvcDiagnostics.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/DynamicViewData.cs b/src/Mvc/Mvc.ViewFeatures/src/DynamicViewData.cs index 9068baec2edb..a767ff88110d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/DynamicViewData.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/DynamicViewData.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ExpressionHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/ExpressionHelper.cs index 8ec2fdaf4de1..f749bccda289 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ExpressionHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ExpressionHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ExpressionMetadataProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ExpressionMetadataProvider.cs index ae5aeba14bed..a7b3a04d93d8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ExpressionMetadataProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ExpressionMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -109,7 +109,7 @@ object modelAccessor(object container) // m => m.Widgets[0].Size (expression ending with property-access) metadata = metadataProvider.GetMetadataForType(containerType).Properties[propertyName]; } - + if (metadata == null) { // Ex: diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/AutoValidateAntiforgeryTokenAuthorizationFilter.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/AutoValidateAntiforgeryTokenAuthorizationFilter.cs index 80cbd6b3f610..efe8f8ea437d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/AutoValidateAntiforgeryTokenAuthorizationFilter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/AutoValidateAntiforgeryTokenAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Antiforgery; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilter.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilter.cs index bd837090548a..7e0aebe6ac86 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilterFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilterFactory.cs index 3ee6b4b7186f..7f2439694801 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilterFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerSaveTempDataPropertyFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilter.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilter.cs index 7a37a43663a2..fe135e8cc873 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilterFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilterFactory.cs index 9293aca872b7..3fa22c5e366f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilterFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ControllerViewDataAttributeFilterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ISaveTempDataCallback.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ISaveTempDataCallback.cs index c331e6064b5f..c8a940d765d3 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ISaveTempDataCallback.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ISaveTempDataCallback.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/IViewDataValuesProviderFeature.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/IViewDataValuesProviderFeature.cs index 1908b0cfef45..fb664a36c368 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/IViewDataValuesProviderFeature.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/IViewDataValuesProviderFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/LifecycleProperty.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/LifecycleProperty.cs index f6cfd08eaa9e..1b1e1067027f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/LifecycleProperty.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/LifecycleProperty.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataFilter.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataFilter.cs index ff677f68f530..092d45a53465 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataFilter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataPropertyFilterBase.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataPropertyFilterBase.cs index e89f72319b28..d8afb5d07973 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataPropertyFilterBase.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataPropertyFilterBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/TempDataApplicationModelProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/TempDataApplicationModelProvider.cs index 59ec9926ad1f..0221e13d2362 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/TempDataApplicationModelProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/TempDataApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationModels; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ValidateAntiforgeryTokenAuthorizationFilter.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ValidateAntiforgeryTokenAuthorizationFilter.cs index bad3aabeed47..f1791485de4c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ValidateAntiforgeryTokenAuthorizationFilter.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ValidateAntiforgeryTokenAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributeApplicationModelProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributeApplicationModelProvider.cs index 7995e5d345a6..c4956292bebe 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributeApplicationModelProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributeApplicationModelProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationModels; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributePropertyProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributePropertyProvider.cs index 102033ca9cb4..7521e67bf7e0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributePropertyProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Filters/ViewDataAttributePropertyProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/FormContext.cs b/src/Mvc/Mvc.ViewFeatures/src/FormContext.cs index 4245044e29ac..30db6b8c8325 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/FormContext.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/FormContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/FormatWeekHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/FormatWeekHelper.cs index 5ed508cd7d08..3bb816172d21 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/FormatWeekHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/FormatWeekHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -35,7 +35,7 @@ public static string GetFormattedWeek(ModelExplorer modelExplorer) var year = calendar.GetYear(date); var month = calendar.GetMonth(date); - // Last week (either 52 or 53) includes January dates (1st, 2nd, 3rd) + // Last week (either 52 or 53) includes January dates (1st, 2nd, 3rd) if (week >= 52 && month == 1) { year--; diff --git a/src/Mvc/Mvc.ViewFeatures/src/HtmlAttributePropertyHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/HtmlAttributePropertyHelper.cs index 9f9161293d07..c98b387f6240 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/HtmlAttributePropertyHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/HtmlAttributePropertyHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/HtmlHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/HtmlHelper.cs index 0f4c03390f20..616928296660 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/HtmlHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/HtmlHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOfT.cs b/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOfT.cs index 07c030bb2a51..47ba7a5d6e1e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOfT.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOptions.cs b/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOptions.cs index f40bdf93f697..e76e083b7b3c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOptions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/HtmlHelperOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.ViewFeatures/src/IAntiforgeryPolicy.cs b/src/Mvc/Mvc.ViewFeatures/src/IAntiforgeryPolicy.cs index ef925a6383e2..891d8666f0ce 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IAntiforgeryPolicy.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IAntiforgeryPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Filters; diff --git a/src/Mvc/Mvc.ViewFeatures/src/IFileVersionProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/IFileVersionProvider.cs index 1aa918c30fec..e6b5757e7533 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IFileVersionProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IFileVersionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs b/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs index 1993a97ee3fc..ccc4952dd52c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IHtmlGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Html; @@ -492,7 +492,7 @@ TagBuilder GenerateTextArea( /// Expression name, relative to the current model. /// /// - /// + /// /// An that contains the parameters for a route. The parameters are retrieved through /// reflection by examining the properties of the . This is typically /// created using initializer syntax. Alternatively, an diff --git a/src/Mvc/Mvc.ViewFeatures/src/IModelExpressionProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/IModelExpressionProvider.cs index 93f6002eb014..4d5ca5c22c67 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IModelExpressionProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IModelExpressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; @@ -16,7 +16,7 @@ public interface IModelExpressionProvider /// /// The type of the 's . /// The type of the result. - /// The containing the + /// The containing the /// against which is evaluated. /// An expression to be evaluated against the current model. /// A new instance describing the given . diff --git a/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionary.cs b/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionary.cs index 62fde7dd865a..612f0336f4b4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionary.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionaryFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionaryFactory.cs index 6513695e5b29..6a470ca1d8e8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionaryFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ITempDataDictionaryFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ITempDataProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ITempDataProvider.cs index 97edc9961724..e8d17765088d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ITempDataProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ITempDataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/src/IViewComponentHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/IViewComponentHelper.cs index 0ff77593354f..a4f7979c2de5 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IViewComponentHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IViewComponentHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/IViewComponentResult.cs b/src/Mvc/Mvc.ViewFeatures/src/IViewComponentResult.cs index 3ecce8ca7a51..dae0607a2638 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IViewComponentResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IViewComponentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ViewComponents; diff --git a/src/Mvc/Mvc.ViewFeatures/src/IViewContextAware.cs b/src/Mvc/Mvc.ViewFeatures/src/IViewContextAware.cs index 21e2d9d43ef7..a3e62cb8681f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IViewContextAware.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IViewContextAware.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; diff --git a/src/Mvc/Mvc.ViewFeatures/src/IgnoreAntiforgeryTokenAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/IgnoreAntiforgeryTokenAttribute.cs index e07516f3dd62..20f8e2c7ea78 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/IgnoreAntiforgeryTokenAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/IgnoreAntiforgeryTokenAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; @@ -22,7 +22,7 @@ public class IgnoreAntiforgeryTokenAttribute : Attribute, IAntiforgeryPolicy, IO /// Filters are executed in an ordering determined by an ascending sort of the property. /// /// - /// The default Order for this attribute is 1000 because it must run after any filter which does authentication + /// The default Order for this attribute is 1000 because it must run after any filter which does authentication /// or login in order to allow them to behave as expected (ie Unauthenticated or Redirect instead of 400). /// /// diff --git a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/ComponentHtmlContent.cs b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/ComponentHtmlContent.cs index 205974002041..dd487cac1da5 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/ComponentHtmlContent.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/ComponentHtmlContent.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/DefaultTempDataSerializer.cs b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/DefaultTempDataSerializer.cs index 6607a2438ddf..750e9da4d34e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/DefaultTempDataSerializer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/DefaultTempDataSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/HttpNavigationManager.cs b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/HttpNavigationManager.cs index 56d881387782..9043b6ba3695 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/HttpNavigationManager.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/HttpNavigationManager.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Components; using Microsoft.AspNetCore.Components.Routing; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/TempDataSerializer.cs b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/TempDataSerializer.cs index ce8c1606deda..a6a0388db1cf 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/TempDataSerializer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Infrastructure/TempDataSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/InputType.cs b/src/Mvc/Mvc.ViewFeatures/src/InputType.cs index 7709d70ebc2c..c7a03870e9d4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/InputType.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/InputType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures { diff --git a/src/Mvc/Mvc.ViewFeatures/src/LambdaExpressionComparer.cs b/src/Mvc/Mvc.ViewFeatures/src/LambdaExpressionComparer.cs index e3448c15c0fd..d389fa0890c0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/LambdaExpressionComparer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/LambdaExpressionComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKey.cs b/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKey.cs index 8f8b6679837a..2550abdb4a7f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKey.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKey.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKeyComparer.cs b/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKeyComparer.cs index b1586e71ba03..17dbcdbf1666 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKeyComparer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/MemberExpressionCacheKeyComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ModelExplorer.cs b/src/Mvc/Mvc.ViewFeatures/src/ModelExplorer.cs index 77254c093b0c..ad8477164648 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ModelExplorer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ModelExplorer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ModelExplorerExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/ModelExplorerExtensions.cs index 32e067f180db..f0da17403402 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ModelExplorerExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ModelExplorerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/src/ModelExpression.cs b/src/Mvc/Mvc.ViewFeatures/src/ModelExpression.cs index 73089f52128b..9ba8d0c8e9e8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ModelExpression.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ModelExpression.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ModelExpressionProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ModelExpressionProvider.cs index 10b0f545517a..b52ef168d1bc 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ModelExpressionProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ModelExpressionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ModelMetadataProviderExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/ModelMetadataProviderExtensions.cs index e20d5855a720..748ccf5ec4b4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ModelMetadataProviderExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ModelMetadataProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ModelStateDictionaryExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/ModelStateDictionaryExtensions.cs index b075c8881864..d2aedcfaa92d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ModelStateDictionaryExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ModelStateDictionaryExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -54,7 +54,7 @@ public static void AddModelError( /// /// /// This method allows adding the to the current - /// when is not available or the exact + /// when is not available or the exact /// must be maintained for later use (even if it is for example a ). /// /// The type of the model. diff --git a/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs index bebdaf0ae6f5..1e0b0e072db9 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesLoggerExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesLoggerExtensions.cs index f22856880432..cc158aebefd7 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesLoggerExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesLoggerExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/MvcViewOptions.cs b/src/Mvc/Mvc.ViewFeatures/src/MvcViewOptions.cs index 57127225f018..fbf1ec9ac077 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/MvcViewOptions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/MvcViewOptions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/NameAndIdProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/NameAndIdProvider.cs index c13e46cf23fd..fff31fd91893 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/NameAndIdProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/NameAndIdProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.ViewFeatures/src/NullView.cs b/src/Mvc/Mvc.ViewFeatures/src/NullView.cs index 77d595e52299..7384b4c86203 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/NullView.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/NullView.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/PageRemoteAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/PageRemoteAttribute.cs index 8bedbdaf5e86..f2ca81ca4adb 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/PageRemoteAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/PageRemoteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -12,8 +12,8 @@ namespace Microsoft.AspNetCore.Mvc { /// - /// A for razor page handler which configures Unobtrusive validation - /// to send an Ajax request to the web site. The invoked handler should return JSON indicating + /// A for razor page handler which configures Unobtrusive validation + /// to send an Ajax request to the web site. The invoked handler should return JSON indicating /// whether the value is valid. /// /// Does no server-side validation of the final form submission. @@ -43,13 +43,13 @@ protected override string GetUrl(ClientModelValidationContext context) { throw new ArgumentNullException(nameof(context)); } - + var services = context.ActionContext.HttpContext.RequestServices; var factory = services.GetRequiredService(); var urlHelper = factory.GetUrlHelper(context.ActionContext); var url = urlHelper.Page(PageName, PageHandler, RouteData); - + if (url == null) { throw new InvalidOperationException(Resources.RemoteAttribute_NoUrlFound); diff --git a/src/Mvc/Mvc.ViewFeatures/src/PartialViewResult.cs b/src/Mvc/Mvc.ViewFeatures/src/PartialViewResult.cs index 04264083ce66..3e62ab4ed4a4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/PartialViewResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/PartialViewResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/PartialViewResultExecutor.cs b/src/Mvc/Mvc.ViewFeatures/src/PartialViewResultExecutor.cs index 4a60c7ec288e..b36835fc3a87 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/PartialViewResultExecutor.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/PartialViewResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.ViewFeatures/src/Properties/AssemblyInfo.cs index b677034d2daf..a6b55006816a 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderedText.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderedText.cs index 92274e38c347..56251954fbd1 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderedText.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderedText.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderer.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderer.cs index 77163df2f8c3..282dd7fe7c8a 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/ComponentRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/HtmlRenderer.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/HtmlRenderer.cs index 9fedaf9e3a96..a432f33aec5f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/HtmlRenderer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/HtmlRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/IComponentRenderer.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/IComponentRenderer.cs index 90df64f9f764..b572ef6c22ed 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/IComponentRenderer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/IComponentRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/PrerenderingErrorBoundaryLogger.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/PrerenderingErrorBoundaryLogger.cs index 741bd2f88dd3..0abff6f7e73d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/PrerenderingErrorBoundaryLogger.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/PrerenderingErrorBoundaryLogger.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/StaticComponentRenderer.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/StaticComponentRenderer.cs index b256bb4cc00d..bc01433b7cdf 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/StaticComponentRenderer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/StaticComponentRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedJavaScriptRuntime.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedJavaScriptRuntime.cs index da8402029475..d44f70c57af4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedJavaScriptRuntime.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedJavaScriptRuntime.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedNavigationInterception.cs b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedNavigationInterception.cs index 7c01ae1aa3e5..f2fbdafae87d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedNavigationInterception.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RazorComponents/UnsupportedNavigationInterception.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/RemoteAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/RemoteAttribute.cs index 65d6c58eaece..0983c9dd9d80 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RemoteAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RemoteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -98,7 +98,7 @@ public RemoteAttribute(string action, string controller, string areaName) { RouteData["area"] = areaName; } - + /// /// Gets or sets the route name used when generating the URL where client should send a validation request. /// diff --git a/src/Mvc/Mvc.ViewFeatures/src/RemoteAttributeBase.cs b/src/Mvc/Mvc.ViewFeatures/src/RemoteAttributeBase.cs index 85d8a8d574d1..3554a5a849fc 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RemoteAttributeBase.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RemoteAttributeBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -69,7 +69,7 @@ public string AdditionalFields .ToArray(); } } - + /// /// Formats and for use in generated HTML. /// @@ -121,7 +121,7 @@ public static string FormatPropertyForClientValidation(string property) /// The used to generate the URL. /// The URL where the client should send a validation request. protected abstract string GetUrl(ClientModelValidationContext context); - + /// public override string FormatErrorMessage(string name) { diff --git a/src/Mvc/Mvc.ViewFeatures/src/RenderMode.cs b/src/Mvc/Mvc.ViewFeatures/src/RenderMode.cs index d0422753cb3e..765ebc012575 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/RenderMode.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/RenderMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/CheckBoxHiddenInputRenderMode.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/CheckBoxHiddenInputRenderMode.cs index 3d89c44d8028..12ca81bdb8ac 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/CheckBoxHiddenInputRenderMode.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/CheckBoxHiddenInputRenderMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/FormMethod.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/FormMethod.cs index a1822d6fad7b..0996c30853fe 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/FormMethod.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/FormMethod.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/Html5DateRenderingMode.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/Html5DateRenderingMode.cs index 60eac82a914e..e27a3383e1a4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/Html5DateRenderingMode.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/Html5DateRenderingMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperComponentExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperComponentExtensions.cs index 16f021574aff..006960977b94 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperComponentExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperComponentExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayExtensions.cs index 4bb28b35d6e4..94247b5cbdb2 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayNameExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayNameExtensions.cs index 21aec446b65a..64cebb435fb4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayNameExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperDisplayNameExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperEditorExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperEditorExtensions.cs index 645d75789b40..e14613f53df5 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperEditorExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperEditorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperFormExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperFormExtensions.cs index 3a354679c4ec..47f6214aa59c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperFormExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperFormExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -560,8 +560,8 @@ public static MvcForm BeginRouteForm( } return htmlHelper.BeginRouteForm( - routeName, - routeValues, + routeName, + routeValues, FormMethod.Post, antiforgery: null, htmlAttributes: null); diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperInputExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperInputExtensions.cs index 6afc1148bcf4..25a216ea953c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperInputExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperInputExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLabelExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLabelExtensions.cs index fc66fc420b35..40b0e94e285a 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLabelExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLabelExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLinkExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLinkExtensions.cs index aab8bc53fa3f..5b1f1c6348e2 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLinkExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperLinkExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Html; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperNameExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperNameExtensions.cs index 7ca12fa98b1a..ef218bcf0aff 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperNameExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperNameExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperPartialExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperPartialExtensions.cs index ff51c6cfd62f..041496420461 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperPartialExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperPartialExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperSelectExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperSelectExtensions.cs index 884b964102f8..4a8089a6f3c4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperSelectExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperSelectExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValidationExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValidationExtensions.cs index 956aa0d9ca86..1ab680da11fb 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValidationExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValidationExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValueExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValueExtensions.cs index 8def65a53c82..ac37a5e6e4a7 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValueExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/HtmlHelperValueExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelper.cs index 357d429c9402..244453674a50 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelperOfT.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelperOfT.cs index df4d14d95df0..3e5b03b368ce 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelperOfT.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/IHtmlHelperOfT.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/IJsonHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/IJsonHelper.cs index 120a54583aed..e531dbad4c4f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/IJsonHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/IJsonHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Html; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/MultiSelectList.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/MultiSelectList.cs index a10ea3c41e70..aad67ccd3dcb 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/MultiSelectList.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/MultiSelectList.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/MvcForm.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/MvcForm.cs index 32d90b235658..4ef31653516a 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/MvcForm.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/MvcForm.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Encodings.Web; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectList.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectList.cs index 4d1f441028df..37d198124e52 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectList.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectList.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListGroup.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListGroup.cs index 1d0db3915496..4b5a94483fb8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListGroup.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListGroup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListItem.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListItem.cs index 4735b973c88a..47613c7933f0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListItem.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SelectListItem.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SystemTextJsonHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SystemTextJsonHelper.cs index c2c3730b655b..2efeac8bffc6 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/SystemTextJsonHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/SystemTextJsonHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Encodings.Web; using System.Text.Json; diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagBuilder.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagBuilder.cs index 3c06cbacafbe..141941175354 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagBuilder.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagRenderMode.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagRenderMode.cs index f6eaa5107390..cb94267edea0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagRenderMode.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagRenderMode.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Rendering { diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewComponentHelperExtensions.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewComponentHelperExtensions.cs index d749451b5ad3..706412d06e7e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewComponentHelperExtensions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewComponentHelperExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewContext.cs b/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewContext.cs index cb5456c35820..d221655fea88 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewContext.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/Rendering/ViewContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/SaveTempDataAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/SaveTempDataAttribute.cs index 1669fc8f857c..2b86cf82120f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/SaveTempDataAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/SaveTempDataAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ServerComponentInvocationSequence.cs b/src/Mvc/Mvc.ViewFeatures/src/ServerComponentInvocationSequence.cs index 5227352d18a4..7f3adabacd71 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ServerComponentInvocationSequence.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ServerComponentInvocationSequence.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Cryptography; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ServerComponentSerializer.cs b/src/Mvc/Mvc.ViewFeatures/src/ServerComponentSerializer.cs index bbeb45d36dad..39ef7385b6ae 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ServerComponentSerializer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ServerComponentSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/SessionStateTempDataProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/SessionStateTempDataProvider.cs index f6835673d591..30580a801d22 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/SessionStateTempDataProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/SessionStateTempDataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/SkipStatusCodePagesAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/SkipStatusCodePagesAttribute.cs index bfc644764f21..c2c47347bdc0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/SkipStatusCodePagesAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/SkipStatusCodePagesAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Diagnostics; diff --git a/src/Mvc/Mvc.ViewFeatures/src/StringHtmlContent.cs b/src/Mvc/Mvc.ViewFeatures/src/StringHtmlContent.cs index 70af6be9a922..ef5d374e97e0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/StringHtmlContent.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/StringHtmlContent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/TempDataAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/TempDataAttribute.cs index ea82c6b4447e..04cbfaf8f3a7 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TempDataAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TempDataAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionary.cs b/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionary.cs index 06fc3141d6c0..3d53740dfede 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionary.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -168,7 +168,7 @@ public void Save() AssertLoaded(); - // In .NET Core 3.0 a Dictionary can have items removed during enumeration + // In .NET Core 3.0 a Dictionary can have items removed during enumeration // https://github.com/dotnet/coreclr/pull/18854 foreach (var entry in _data) { diff --git a/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionaryFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionaryFactory.cs index b1138b02dbf9..0c8128042482 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionaryFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TempDataDictionaryFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/src/TemplateBuilder.cs b/src/Mvc/Mvc.ViewFeatures/src/TemplateBuilder.cs index 405f22487850..2a7e7964a204 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TemplateBuilder.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TemplateBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -97,8 +97,8 @@ public IHtmlContent Build() // though _model may have been reset to null. Otherwise we might lose track of the model type /property. viewData.ModelExplorer = _modelExplorer.GetExplorerForModel(_model); - var formatString = _readOnly ? - viewData.ModelMetadata.DisplayFormatString : + var formatString = _readOnly ? + viewData.ModelMetadata.DisplayFormatString : viewData.ModelMetadata.EditFormatString; var formattedModelValue = _model; diff --git a/src/Mvc/Mvc.ViewFeatures/src/TemplateInfo.cs b/src/Mvc/Mvc.ViewFeatures/src/TemplateInfo.cs index 43a9b9e33366..2e589eda7921 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TemplateInfo.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TemplateInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/TemplateRenderer.cs b/src/Mvc/Mvc.ViewFeatures/src/TemplateRenderer.cs index 2d8442ecb9dc..82ba50651249 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TemplateRenderer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TemplateRenderer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/TryGetValueDelegate.cs b/src/Mvc/Mvc.ViewFeatures/src/TryGetValueDelegate.cs index a9be5af28492..029c63250abb 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TryGetValueDelegate.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TryGetValueDelegate.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures { diff --git a/src/Mvc/Mvc.ViewFeatures/src/TryGetValueProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/TryGetValueProvider.cs index 939757ef9368..d43d9c1b85f9 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/TryGetValueProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/TryGetValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ValidateAntiForgeryTokenAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/ValidateAntiForgeryTokenAttribute.cs index 98ccc00d0214..667dfd1337f3 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ValidateAntiForgeryTokenAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ValidateAntiForgeryTokenAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable @@ -31,7 +31,7 @@ public class ValidateAntiForgeryTokenAttribute : Attribute, IFilterFactory, IOrd /// Filters are executed in an ordering determined by an ascending sort of the property. /// /// - /// The default Order for this attribute is 1000 because it must run after any filter which does authentication + /// The default Order for this attribute is 1000 because it must run after any filter which does authentication /// or login in order to allow them to behave as expected (ie Unauthenticated or Redirect instead of 400). /// /// diff --git a/src/Mvc/Mvc.ViewFeatures/src/ValidationHelpers.cs b/src/Mvc/Mvc.ViewFeatures/src/ValidationHelpers.cs index 97d45a2ba2e3..551d47d27020 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ValidationHelpers.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ValidationHelpers.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -103,7 +103,7 @@ private static void Visit( { Visit(propertyModelStateEntry, propertyMetadata, orderedModelStateEntries); } - } + } } if (!modelStateEntry.IsContainerNode) diff --git a/src/Mvc/Mvc.ViewFeatures/src/ValidationHtmlAttributeProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ValidationHtmlAttributeProvider.cs index 75ce264ed63d..a2b203eb72c3 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ValidationHtmlAttributeProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ValidationHtmlAttributeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponent.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponent.cs index f93893606e9f..88ea67147f72 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponent.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentAttribute.cs index 44e701dfaf74..14a11379974b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResult.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResult.cs index 8eef0910c1cd..483d4d219880 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs index 2a6595cc9688..68b2386c75e4 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponentResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ContentViewComponentResult.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ContentViewComponentResult.cs index 43a3284f19dc..28dcbc8dd7d5 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ContentViewComponentResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ContentViewComponentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentActivator.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentActivator.cs index 3075384c9356..371e7f2fc63f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentActivator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorCollectionProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorCollectionProvider.cs index 64ab00cda95e..ac350177ba2f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorCollectionProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorProvider.cs index 55c8313b6d7b..e0c5d3b9a254 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentFactory.cs index d75a463a023b..567c5901a9d8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentHelper.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentHelper.cs index 9e42330080be..6fcd03247c2d 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentHelper.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvoker.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvoker.cs index 401d8d8fcaed..de305ea0f6ab 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvoker.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvoker.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvokerFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvokerFactory.cs index dc9a02161b19..f164e31f9699 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvokerFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentInvokerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentSelector.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentSelector.cs index 18be71ebb135..b6f44639cde0 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentSelector.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/DefaultViewComponentSelector.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/HtmlContentViewComponentResult.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/HtmlContentViewComponentResult.cs index 2fba108c44bc..71ba0c6c59fe 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/HtmlContentViewComponentResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/HtmlContentViewComponentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentActivator.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentActivator.cs index fe3c3360b822..af5dcb1157f5 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentActivator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentActivator.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorCollectionProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorCollectionProvider.cs index b34927b81498..43c5b327a5ea 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorCollectionProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorCollectionProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewComponents { diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorProvider.cs index 19555e0d3018..c65d88fd35ec 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentFactory.cs index 8bdefd54f8ab..8ea19f589cc3 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvoker.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvoker.cs index 02ef85421e26..a41840e85ea2 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvoker.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvoker.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvokerFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvokerFactory.cs index 077fe5d65891..4d9df56adc2f 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvokerFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentInvokerFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewComponents { diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentSelector.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentSelector.cs index a2cdc8338fa9..0fa2708ffeda 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentSelector.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/IViewComponentSelector.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewComponents { diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ServiceBasedViewComponentActivator.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ServiceBasedViewComponentActivator.cs index deb26a9e4431..9bb6ad299b01 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ServiceBasedViewComponentActivator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ServiceBasedViewComponentActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContext.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContext.cs index 63c2190207ec..6383a4f2a88b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContext.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContextAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContextAttribute.cs index aa70e1356977..27eafe81970b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContextAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentContextAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentConventions.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentConventions.cs index b50f80a56eb1..e7c950998b9e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentConventions.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentConventions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptor.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptor.cs index cc7578de77c9..f16474c8e10c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptor.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -103,7 +103,7 @@ public string DisplayName /// View Component ShortName: Tags /// /// - /// If is used to set a name, then the last segment of the + /// If is used to set a name, then the last segment of the /// value (using '.' as a separate) will be used as the . /// /// diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptorCollection.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptorCollection.cs index 0f8d6e14d7f9..77789707ab93 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptorCollection.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentDescriptorCollection.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeature.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeature.cs index 6abb947f21a9..a9945be3c0a3 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeature.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeature.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeatureProvider.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeatureProvider.cs index eb953fb5afb2..777821bdf38e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeatureProvider.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentFeatureProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentInvokerCache.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentInvokerCache.cs index fe5168a63ce1..05a53f018479 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentInvokerCache.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewComponentInvokerCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewViewComponentResult.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewViewComponentResult.cs index 1dde27d809be..5ead8db7b640 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewViewComponentResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewComponents/ViewViewComponentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewContextAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewContextAttribute.cs index c266d078731f..72074d260756 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewContextAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewContextAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataAttribute.cs index 079c245ab25d..95e83a145c4b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionary.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionary.cs index c1c72af98384..92bbcc461f03 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionary.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionary.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryAttribute.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryAttribute.cs index 578e3c04a14e..67c4f846f7df 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryAttribute.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryControllerPropertyActivator.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryControllerPropertyActivator.cs index b206303cdcc3..45659592da63 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryControllerPropertyActivator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryControllerPropertyActivator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryFactory.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryFactory.cs index 9fd5150cfb25..16c0f7f6959a 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryFactory.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryOfT.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryOfT.cs index d44169876d8e..3640fdea0281 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryOfT.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataDictionaryOfT.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataEvaluator.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataEvaluator.cs index ce4501f5a162..adc424fa9d8e 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataEvaluator.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataEvaluator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewDataInfo.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewDataInfo.cs index 69e3155c3ec3..4043a2b9bda6 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewDataInfo.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewDataInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs index 6e9f39f378c5..3edd4f4b71e9 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ICompositeViewEngine.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ICompositeViewEngine.cs index 95a872afc0b0..9459a13f9e49 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ICompositeViewEngine.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ICompositeViewEngine.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IView.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IView.cs index ab2e11a3a4e8..2f4f22454093 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IView.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IView.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IViewEngine.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IViewEngine.cs index 3967b6a4ff6f..5ca84294efa8 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IViewEngine.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/IViewEngine.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ViewEngineResult.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ViewEngineResult.cs index 290ba637ec01..360c188c6c3c 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ViewEngineResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/ViewEngineResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewExecutor.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewExecutor.cs index 2f5bba01ae8b..4183ed5c8fe7 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewExecutor.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewResult.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewResult.cs index 466f8bd99c57..91c5d67a993b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewResult.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/ViewResultExecutor.cs b/src/Mvc/Mvc.ViewFeatures/src/ViewResultExecutor.cs index 8674afb04161..e756801bdf21 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/ViewResultExecutor.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/ViewResultExecutor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable diff --git a/src/Mvc/Mvc.ViewFeatures/src/WebAssemblyComponentSerializer.cs b/src/Mvc/Mvc.ViewFeatures/src/WebAssemblyComponentSerializer.cs index 5f8bf440620a..bab55be9641b 100644 --- a/src/Mvc/Mvc.ViewFeatures/src/WebAssemblyComponentSerializer.cs +++ b/src/Mvc/Mvc.ViewFeatures/src/WebAssemblyComponentSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/AntiforgeryExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/AntiforgeryExtensionsTest.cs index 9123aeed3e6f..3f2e1101f158 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/AntiforgeryExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/AntiforgeryExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Antiforgery; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/test/AttributeDictionaryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/AttributeDictionaryTest.cs index 93ae890858fb..6cbb59aac3b9 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/AttributeDictionaryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/AttributeDictionaryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedBufferedTextWriterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedBufferedTextWriterTest.cs index cd96649e92f4..937f7f0e797b 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedBufferedTextWriterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedBufferedTextWriterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedCharBufferTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedCharBufferTest.cs index 8a10564537de..00ad30662e11 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedCharBufferTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Buffers/PagedCharBufferTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Moq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTest.cs index 542be7965d9e..ac826ef8d121 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTextWriterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTextWriterTest.cs index 63583495a97f..be844d3a48a0 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTextWriterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Buffers/ViewBufferTextWriterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/CachedExpressionCompilerTest.cs b/src/Mvc/Mvc.ViewFeatures/test/CachedExpressionCompilerTest.cs index a798d5594e19..1449ef7ff611 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/CachedExpressionCompilerTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/CachedExpressionCompilerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ControllerTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ControllerTest.cs index 3f4a10d0a66b..d44acd6602f3 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ControllerTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ControllerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ControllerUnitTestabilityTests.cs b/src/Mvc/Mvc.ViewFeatures/test/ControllerUnitTestabilityTests.cs index 00a4485b8c81..c2afff7d4e14 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ControllerUnitTestabilityTests.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ControllerUnitTestabilityTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/CookieTempDataProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/CookieTempDataProviderTest.cs index 8cfd3dbe88e5..3de9bb915961 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/CookieTempDataProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/CookieTempDataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/DefaultDisplayTemplatesTest.cs b/src/Mvc/Mvc.ViewFeatures/test/DefaultDisplayTemplatesTest.cs index 4a180a38364a..1e876db24ac0 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/DefaultDisplayTemplatesTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/DefaultDisplayTemplatesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/DefaultEditorTemplatesTest.cs b/src/Mvc/Mvc.ViewFeatures/test/DefaultEditorTemplatesTest.cs index 911d3c538ba2..f3d6eaf602e2 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/DefaultEditorTemplatesTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/DefaultEditorTemplatesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/DefaultHtmlGeneratorTest.cs b/src/Mvc/Mvc.ViewFeatures/test/DefaultHtmlGeneratorTest.cs index 4c657379ed89..f96059157d2e 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/DefaultHtmlGeneratorTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/DefaultHtmlGeneratorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/DefaultValidationHtmlAttributeProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/DefaultValidationHtmlAttributeProviderTest.cs index aa40da21eeee..c589300ca906 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/DefaultValidationHtmlAttributeProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/DefaultValidationHtmlAttributeProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcBuilderExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcBuilderExtensionsTest.cs index fbbc3f16d956..5c0364061218 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensionsTest.cs index 3ca312832420..47968f9bb181 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.ViewFeatures; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ExpressionHelperTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ExpressionHelperTest.cs index cbd005e5a0d5..1c5ed310f70d 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ExpressionHelperTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ExpressionHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ExpressionMetadataProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ExpressionMetadataProviderTest.cs index 3dfb94a3b849..130d7f8398e2 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ExpressionMetadataProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ExpressionMetadataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/AutoValidateAntiforgeryTokenAuthorizationFilterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/AutoValidateAntiforgeryTokenAuthorizationFilterTest.cs index b788e7cc063b..b82170ff1b45 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/AutoValidateAntiforgeryTokenAuthorizationFilterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/AutoValidateAntiforgeryTokenAuthorizationFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Antiforgery; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterFactoryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterFactoryTest.cs index cdb4e3cf2bd4..e5fb4d8ffbe7 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterFactoryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; using Moq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterTest.cs index b11269a8316d..44b55152b5fa 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerSaveTempDataPropertyFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterFactoryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterFactoryTest.cs index 949d337a7e27..5234b0cb9b88 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterFactoryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Moq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterTest.cs index 0d9d89370564..439073a13efc 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/LifecyclePropertyTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/LifecyclePropertyTest.cs index bb9dad1a04d0..b571b5a4b69d 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/LifecyclePropertyTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/LifecyclePropertyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Xunit; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/SaveTempDataFilterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/SaveTempDataFilterTest.cs index 35653677d473..5afa3b4c8f3b 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/SaveTempDataFilterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/SaveTempDataFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/TempDataApplicationModelProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/TempDataApplicationModelProviderTest.cs index 81204892808c..90c7b7c770c2 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/TempDataApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/TempDataApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ValidateAntiforgeryTokenAuthorizationFilterTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ValidateAntiforgeryTokenAuthorizationFilterTest.cs index a19e9b7d4a82..de2c22251e0f 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ValidateAntiforgeryTokenAuthorizationFilterTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ValidateAntiforgeryTokenAuthorizationFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Antiforgery; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributeApplicationModelProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributeApplicationModelProviderTest.cs index b76494b5dfc3..bbcf5930601b 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributeApplicationModelProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributeApplicationModelProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributePropertyProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributePropertyProviderTest.cs index 536ad329d132..7139361ca0ad 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributePropertyProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributePropertyProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/FormatWeekHelperTest.cs b/src/Mvc/Mvc.ViewFeatures/test/FormatWeekHelperTest.cs index e178839e3cbc..f0cfc2123824 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/FormatWeekHelperTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/FormatWeekHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/HtmlAttributePropertyHelperTest.cs b/src/Mvc/Mvc.ViewFeatures/test/HtmlAttributePropertyHelperTest.cs index 8d82c60905a1..074f6088bcae 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/HtmlAttributePropertyHelperTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/HtmlAttributePropertyHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Reflection; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/DefaultTempDataSerializerTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/DefaultTempDataSerializerTest.cs index 22f2185fd186..d04592b73933 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/DefaultTempDataSerializerTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/DefaultTempDataSerializerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/TempDataSerializerTestBase.cs b/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/TempDataSerializerTestBase.cs index 30bb0fd6ff0f..86fe32896ecb 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/TempDataSerializerTestBase.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Infrastructure/TempDataSerializerTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyComparerTest.cs b/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyComparerTest.cs index eca38d7dc233..b66018d3d371 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyComparerTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyComparerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Expressions; diff --git a/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyTest.cs b/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyTest.cs index eb4cebb9483e..6528d6e0a241 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/MemberExpressionCacheKeyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Model/Constants.cs b/src/Mvc/Mvc.ViewFeatures/test/Model/Constants.cs index 4a5fee5b4334..18804d9e0d54 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Model/Constants.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Model/Constants.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Model { diff --git a/src/Mvc/Mvc.ViewFeatures/test/Model/Model.cs b/src/Mvc/Mvc.ViewFeatures/test/Model/Model.cs index d38f67312240..1714a1384920 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Model/Model.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Model/Model.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Model { diff --git a/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerExtensionsTest.cs index 981aa72ed760..e2834b9b25e7 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; @@ -45,8 +45,8 @@ public static TheoryData SimpleDisplayTextData [Theory] [MemberData(nameof(SimpleDisplayTextData))] public void GetSimpleDisplayText_WithoutSimpleDisplayProperty( - object model, - Type modelType, + object model, + Type modelType, string expectedResult) { // Arrange diff --git a/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerTest.cs index 366f8b37b5f3..d5d1bf17ae08 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ModelExplorerTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ModelStateDictionaryExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ModelStateDictionaryExtensionsTest.cs index 80c47900db4f..6cdf4b75befc 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ModelStateDictionaryExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ModelStateDictionaryExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Mvc/Mvc.ViewFeatures/test/PageRemoteAttributeTest.cs b/src/Mvc/Mvc.ViewFeatures/test/PageRemoteAttributeTest.cs index 15bb4fe54ddf..a9b7f4c8081d 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/PageRemoteAttributeTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/PageRemoteAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; @@ -80,7 +80,7 @@ public void GetUrl_WhenUrlHelperReturnsNull_Throws() { Routers = { Mock.Of() } }; - + var urlHelper = new MockUrlHelper(url: null) { ActionContext = GetActionContext(new ServiceCollection().BuildServiceProvider(), routeData) @@ -157,7 +157,7 @@ public void GetUrl_WhenPageNameAndPageHandlerIsNotSet_WillUseAmbientValues() // Assert Assert.Equal("/Page?handler=Handler", actualUrl); } - + private static ClientModelValidationContext GetValidationContext(IUrlHelper urlHelper, RouteData routeData = null) { var serviceCollection = GetServiceCollection(); diff --git a/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultExecutorTest.cs b/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultExecutorTest.cs index 5b161b6dabe7..2d550d6976a6 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultExecutorTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultTest.cs b/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultTest.cs index c80077b08889..662fa6930610 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/PartialViewResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/test/Properties/AssemblyInfo.cs b/src/Mvc/Mvc.ViewFeatures/test/Properties/AssemblyInfo.cs index 8beb903785c9..9768215ad623 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/ComponentRendererTest.cs b/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/ComponentRendererTest.cs index ad98ad233585..a2b10b358a90 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/ComponentRendererTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/ComponentRendererTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/HtmlRendererTest.cs b/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/HtmlRendererTest.cs index 341619dde3b1..529eaabafb12 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/HtmlRendererTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/RazorComponents/HtmlRendererTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeBaseTest.cs b/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeBaseTest.cs index 70dd3690f85a..21fa856b8b72 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeBaseTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeBaseTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.Abstractions; @@ -32,7 +32,7 @@ public static TheoryData NullOrEmptyNames }; } } - + [Fact] public void IsValidAlwaysReturnsTrue() { @@ -42,7 +42,7 @@ public void IsValidAlwaysReturnsTrue() // Act & Assert Assert.True(attribute.IsValid(value: null)); } - + [Fact] public void ErrorMessageProperties_HaveExpectedDefaultValues() { @@ -54,7 +54,7 @@ public void ErrorMessageProperties_HaveExpectedDefaultValues() Assert.Null(attribute.ErrorMessageResourceName); Assert.Null(attribute.ErrorMessageResourceType); } - + [Fact] [ReplaceCulture] public void FormatErrorMessage_ReturnsDefaultErrorMessage() @@ -66,11 +66,11 @@ public void FormatErrorMessage_ReturnsDefaultErrorMessage() // Act var message = attribute.FormatErrorMessage("Property1"); - + // Assert Assert.Equal(expected, message); } - + [Fact] public void FormatErrorMessage_UsesOverriddenErrorMessage() { @@ -87,7 +87,7 @@ public void FormatErrorMessage_UsesOverriddenErrorMessage() // Assert Assert.Equal(expected, message); } - + [Fact] [ReplaceCulture] public void FormatErrorMessage_UsesErrorMessageFromResource() @@ -106,7 +106,7 @@ public void FormatErrorMessage_UsesErrorMessageFromResource() // Assert Assert.Equal(expected, message); } - + [Theory] [MemberData(nameof(NullOrEmptyNames))] public void FormatAdditionalFieldsForClientValidation_WithInvalidPropertyName_Throws(string property) @@ -152,7 +152,7 @@ public void FormatPropertyForClientValidation_WithInvalidPropertyName_Throws(str "property", expected); } - + [Fact] public void AddValidation_WithErrorMessage_SetsAttributesAsExpected() { @@ -165,7 +165,7 @@ public void AddValidation_WithErrorMessage_SetsAttributesAsExpected() HttpMethod = "POST", ErrorMessage = "Error about '{0}' from override.", }; - + // Act attribute.AddValidation(context); @@ -186,7 +186,7 @@ public void AddValidation_WithErrorMessage_SetsAttributesAsExpected() kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] public void AddValidation_WithErrorMessageAndLocalizerFactory_SetsAttributesAsExpected() { @@ -200,7 +200,7 @@ public void AddValidation_WithErrorMessageAndLocalizerFactory_SetsAttributesAsEx HttpMethod = "POST", ErrorMessage = "Error about '{0}' from override.", }; - + // Act attribute.AddValidation(context); @@ -222,7 +222,7 @@ public void AddValidation_WithErrorMessageAndLocalizerFactory_SetsAttributesAsEx kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] public void AddValidation_WithErrorMessageAndLocalizerProvider_SetsAttributesAsExpected() { @@ -262,7 +262,7 @@ public void AddValidation_WithErrorMessageAndLocalizerProvider_SetsAttributesAsE kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] public void AddValidation_WithErrorMessageLocalizerFactoryAndLocalizerProvider_SetsAttributesAsExpected() { @@ -309,7 +309,7 @@ public void AddValidation_WithErrorMessageLocalizerFactoryAndLocalizerProvider_S kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] [ReplaceCulture] public void AddValidation_WithErrorResourcesLocalizerFactoryAndLocalizerProvider_SetsAttributesAsExpected() @@ -323,7 +323,7 @@ public void AddValidation_WithErrorResourcesLocalizerFactoryAndLocalizerProvider ErrorMessageResourceName = nameof(Resources.RemoteAttribute_Error), ErrorMessageResourceType = typeof(Resources), }; - + var localizerFactory = new Mock(MockBehavior.Strict).Object; var context = GetValidationContext(localizerFactory); @@ -353,7 +353,7 @@ public void AddValidation_WithErrorResourcesLocalizerFactoryAndLocalizerProvider kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] public void AddValidation_WithErrorMessageAndDisplayName_SetsAttributesAsExpected() { @@ -372,7 +372,7 @@ public void AddValidation_WithErrorMessageAndDisplayName_SetsAttributesAsExpecte HttpMethod = "POST", ErrorMessage = "Error about '{0}' from override.", }; - + // Act attribute.AddValidation(context); @@ -393,7 +393,7 @@ public void AddValidation_WithErrorMessageAndDisplayName_SetsAttributesAsExpecte kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] public void AddValidation_WithErrorMessageLocalizerFactoryLocalizerProviderAndDisplayName_SetsAttributesAsExpected() { @@ -446,7 +446,7 @@ public void AddValidation_WithErrorMessageLocalizerFactoryLocalizerProviderAndDi kvp => { Assert.Equal("data-val-remote-type", kvp.Key); Assert.Equal("POST", kvp.Value); }, kvp => { Assert.Equal("data-val-remote-url", kvp.Key); Assert.Equal(url, kvp.Value); }); } - + [Fact] public void AddValidation_WillSetAttributes_ToExpectedValues() { @@ -489,17 +489,17 @@ private static ClientModelValidationContext GetValidationContext( } var serviceProvider = serviceCollection.BuildServiceProvider(); - + var httpContext = new DefaultHttpContext { RequestServices = serviceProvider, }; - + var actionContext = new ActionContext( - httpContext, - routeData: new Mock().Object, + httpContext, + routeData: new Mock().Object, actionDescriptor: new ActionDescriptor()); - + var emptyMetadataProvider = new EmptyModelMetadataProvider(); if (metadataProvider == null) @@ -524,7 +524,7 @@ private class TestableRemoteAttributeBase : RemoteAttributeBase public TestableRemoteAttributeBase() { } - + public TestableRemoteAttributeBase(string dummyGetUrlReturnValue) { _dummyGetUrlReturnValue = dummyGetUrlReturnValue; diff --git a/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeTest.cs b/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeTest.cs index 744458f8be70..9605ef5b4fbb 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/RemoteAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; @@ -49,7 +49,7 @@ public static TheoryData NullOrEmptyNames }; } } - + [Fact] public void Constructor_WithNullAction_IgnoresArgument() { @@ -141,7 +141,7 @@ public void Constructor_WithActionControllerAreaName_UpdatesAreaRouteData(string Assert.Equal(areaName, resultName); Assert.Null(attribute.RouteName); } - + [Fact] public void GetUrl_WithBadRouteName_Throws() { @@ -166,7 +166,7 @@ public void GetUrl_WithRoute_CallsUrlHelperWithExpectedValues() // Act var actualUrl = testableRemoteAttribute.InvokeGetUrl(context); - + // Assert Assert.Equal(url, actualUrl); @@ -194,7 +194,7 @@ public void GetUrl_WithActionController_CallsUrlHelperWithExpectedValues() Assert.Equal("Action", routeDictionary["action"] as string); Assert.Equal("Controller", routeDictionary["controller"] as string); } - + [Fact] public void GetUrl_WithActionControllerArea_CallsUrlHelperWithExpectedValues() { @@ -360,7 +360,7 @@ private static ClientModelValidationContext GetValidationContext(string url) var urlHelper = new MockUrlHelper(url, routeName: null); return GetValidationContext(urlHelper); } - + private static ClientModelValidationContext GetValidationContext( IUrlHelper urlHelper) { @@ -374,12 +374,12 @@ private static ClientModelValidationContext GetValidationContext( factory .Setup(f => f.GetUrlHelper(actionContext)) .Returns(urlHelper); - + var metadataProvider = new EmptyModelMetadataProvider(); var metadata = metadataProvider.GetMetadataForProperty( containerType: typeof(string), propertyName: nameof(string.Length)); - + return new ClientModelValidationContext( actionContext, metadata, @@ -446,7 +446,7 @@ private static IRouter GetRouteCollectionWithArea(IServiceProvider serviceProvid return builder.Build(); } - + private static RouteBuilder GetRouteBuilder(IServiceProvider serviceProvider) { var app = new Mock(MockBehavior.Strict); diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/DefaultTemplatesUtilities.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/DefaultTemplatesUtilities.cs index b0e0a7d2c119..27a780817ae0 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/DefaultTemplatesUtilities.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/DefaultTemplatesUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperCheckboxTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperCheckboxTest.cs index 4c8f91b42974..bb3de4efedb3 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperCheckboxTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperCheckboxTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperComponentExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperComponentExtensionsTest.cs index 470b4b3ab04b..a3af11859011 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperComponentExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperComponentExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayExtensionsTest.cs index c53a3eaf563f..825bc47022f7 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayNameExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayNameExtensionsTest.cs index 11c603b00709..d330f4e1c016 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayNameExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayNameExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayTextTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayTextTest.cs index b6c93676569d..d346b06dc079 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayTextTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDisplayTextTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDropDownListExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDropDownListExtensionsTest.cs index a465269d9bf6..20dc3e846e62 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDropDownListExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperDropDownListExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperEditorExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperEditorExtensionsTest.cs index 9a8365805f82..fc74203cd4dd 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperEditorExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperEditorExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Threading.Tasks; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormExtensionsTest.cs index 0624f2aa950b..a08f0dd04a37 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormTest.cs index 0b6814cec9be..e059a751fdb9 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperFormTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperHiddenTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperHiddenTest.cs index df10eb74dbbb..5ec32ec73e06 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperHiddenTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperHiddenTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLabelExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLabelExtensionsTest.cs index 1c1a1861e650..d660d6e664d8 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLabelExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLabelExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLinkGenerationTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLinkGenerationTest.cs index 915d143754e9..90ffac24a576 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLinkGenerationTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperLinkGenerationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperListBoxExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperListBoxExtensionsTest.cs index 1a2c4d6d4b11..27ae483b4fac 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperListBoxExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperListBoxExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperNameExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperNameExtensionsTest.cs index e419a43cfb92..68afa480404e 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperNameExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperNameExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPartialExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPartialExtensionsTest.cs index f795adcf2b5a..a90379cb8d7b 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPartialExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPartialExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPasswordTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPasswordTest.cs index 89f794c49e27..f1d42b94bfe2 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPasswordTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperPasswordTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperRadioButtonExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperRadioButtonExtensionsTest.cs index cbfb61c7bf3b..ee4cb5c5a019 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperRadioButtonExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperRadioButtonExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperSelectTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperSelectTest.cs index 60ec798ada21..2a9b97f5d912 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperSelectTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperSelectTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTest.cs index 29ffb589d842..570002dfc3c5 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaExtensionsTest.cs index b5bd004a4856..c45ce6aee7d7 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaTest.cs index a125cc250dd2..cf9fd2563f3a 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextAreaTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxExtensionsTest.cs index 64444999a6e9..8119911e9d10 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.Rendering; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxTest.cs index 16d0b0e2f02e..4a2b7471f4ca 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperTextBoxTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationMessageExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationMessageExtensionsTest.cs index 6bf8c50b6533..a4c752d77277 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationMessageExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationMessageExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Rendering; using Xunit; @@ -19,7 +19,7 @@ public void ValidationMessage_UsesSpecifiedExpression() // Act var validationMessageResult = helper.ValidationMessage("Property1"); - + // Assert Assert.Equal( "", diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationSummaryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationSummaryTest.cs index fda72ceb86e2..edc83c63feec 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationSummaryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValidationSummaryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueExtensionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueExtensionsTest.cs index e474c26972db..cb07d60e862e 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueExtensionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Xunit; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueTest.cs index fd09a3902955..1c7eef6c5c20 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperValueTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlStringTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlStringTest.cs index 0d471eba0e78..c951474a0de9 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlStringTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlStringTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Html; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/JsonHelperTestBase.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/JsonHelperTestBase.cs index 205a3479b69e..51ff123eb713 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/JsonHelperTestBase.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/JsonHelperTestBase.cs @@ -1,4 +1,5 @@ -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Html; using Xunit; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/SystemTextJsonHelperTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/SystemTextJsonHelperTest.cs index 97f4c145b775..d307d6e59e53 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/SystemTextJsonHelperTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/SystemTextJsonHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Encodings.Web; using Microsoft.AspNetCore.Html; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/TagBuilderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/TagBuilderTest.cs index c750ec1d2492..ec2ea958a383 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/TagBuilderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/TagBuilderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/TestResources.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/TestResources.cs index 5f34f8406c94..b9cd70efdb28 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/TestResources.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/TestResources.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Resources = Microsoft.AspNetCore.Mvc.ViewFeatures.Test.Resources; diff --git a/src/Mvc/Mvc.ViewFeatures/test/Rendering/ViewContextTests.cs b/src/Mvc/Mvc.ViewFeatures/test/Rendering/ViewContextTests.cs index 95d2a4d318bb..1931a84e92ac 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/Rendering/ViewContextTests.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/Rendering/ViewContextTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/Mvc.ViewFeatures/test/SessionStateTempDataProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/SessionStateTempDataProviderTest.cs index 778b225e9b25..1fe53c930993 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/SessionStateTempDataProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/SessionStateTempDataProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/SkipStatusCodePagesAttributeTest.cs b/src/Mvc/Mvc.ViewFeatures/test/SkipStatusCodePagesAttributeTest.cs index ea0cc4952e99..d6e73c570ba4 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/SkipStatusCodePagesAttributeTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/SkipStatusCodePagesAttributeTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Diagnostics; diff --git a/src/Mvc/Mvc.ViewFeatures/test/StringHtmlContentTest.cs b/src/Mvc/Mvc.ViewFeatures/test/StringHtmlContentTest.cs index ff162712c464..97a5cde41102 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/StringHtmlContentTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/StringHtmlContentTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text.Encodings.Web; diff --git a/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryFactoryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryFactoryTest.cs index ae38b5350a18..938c2ce0831c 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryFactoryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Moq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryTest.cs index efaf67473018..7f0ebed7ec23 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/TempDataDictionaryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/TemplateRendererTest.cs b/src/Mvc/Mvc.ViewFeatures/test/TemplateRendererTest.cs index ecd4b749046a..68378ed7a7ac 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/TemplateRendererTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/TemplateRendererTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/TestApplicationPart.cs b/src/Mvc/Mvc.ViewFeatures/test/TestApplicationPart.cs index 5f6762242400..31ff977d41b0 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/TestApplicationPart.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/TestApplicationPart.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponentResultTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponentResultTest.cs index 679e6e13ab85..a8a05f938ceb 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponentResultTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponentTests.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponentTests.cs index 8c91ab5e0516..210d192d9244 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponentTests.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponentTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ContentViewComponentResultTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ContentViewComponentResultTest.cs index 73c0d22ca0cc..feb9631597c0 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ContentViewComponentResultTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ContentViewComponentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentActivatorTests.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentActivatorTests.cs index 2c2e27e0d74b..dfdf146739df 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentActivatorTests.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentActivatorTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentDescriptorProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentDescriptorProviderTest.cs index 370d027750c7..ce4f7f6e27de 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentDescriptorProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentDescriptorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentFactoryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentFactoryTest.cs index 3e959ab8b4a4..c49db44161ed 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentFactoryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentHelperTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentHelperTest.cs index a4334152f5f1..455ae077bc42 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentHelperTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentSelectorTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentSelectorTest.cs index 3bb4026467ac..90a19bde1dd1 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentSelectorTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/DefaultViewComponentSelectorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/HtmlContentViewComponentResultTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/HtmlContentViewComponentResultTest.cs index 4a0694e52bbe..7f9545c40d92 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/HtmlContentViewComponentResultTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/HtmlContentViewComponentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentContextTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentContextTest.cs index d1bc74fc3392..d71fc02578df 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentContextTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentContextTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentConventionsTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentConventionsTest.cs index 430764f79e77..7cf802fc1c9e 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentConventionsTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentConventionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentFeatureProviderTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentFeatureProviderTest.cs index 6a075bf5d941..990e15d20b13 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentFeatureProviderTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentFeatureProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewViewComponentResultTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewViewComponentResultTest.cs index dc0f10ed0251..a90e3fab54d1 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewViewComponentResultTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewViewComponentResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryOfTModelTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryOfTModelTest.cs index 2a2a35525749..0771275d8c22 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryOfTModelTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryOfTModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryTest.cs index bd2b2e47ba88..d7dfb4f3417c 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewDataDictionaryTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewDataOfTTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewDataOfTTest.cs index 3e3dbaf198ca..ab5ca79a0d74 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewDataOfTTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewDataOfTTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewEngines/CompositeViewEngineTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewEngines/CompositeViewEngineTest.cs index 2bf78663ec74..4edc673c4d8f 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewEngines/CompositeViewEngineTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewEngines/CompositeViewEngineTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc.ViewFeatures/test/ViewExecutorTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewExecutorTest.cs index a2fa72b10153..730b11b280bd 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewExecutorTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/test/ViewResultExecutorTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewResultExecutorTest.cs index 7fa09973a003..67d61a56ab2c 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewResultExecutorTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewResultExecutorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc.ViewFeatures/test/ViewResultTest.cs b/src/Mvc/Mvc.ViewFeatures/test/ViewResultTest.cs index fbb203f8d51e..34d7cb6f5d85 100644 --- a/src/Mvc/Mvc.ViewFeatures/test/ViewResultTest.cs +++ b/src/Mvc/Mvc.ViewFeatures/test/ViewResultTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/Mvc/src/MvcServiceCollectionExtensions.cs b/src/Mvc/Mvc/src/MvcServiceCollectionExtensions.cs index 72a12433c1ff..b9464e6527a3 100644 --- a/src/Mvc/Mvc/src/MvcServiceCollectionExtensions.cs +++ b/src/Mvc/Mvc/src/MvcServiceCollectionExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc/src/Properties/AssemblyInfo.cs b/src/Mvc/Mvc/src/Properties/AssemblyInfo.cs index b67eceacc6ba..f2d92379e4ec 100644 --- a/src/Mvc/Mvc/src/Properties/AssemblyInfo.cs +++ b/src/Mvc/Mvc/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Mvc/Mvc/test/MvcOptionsSetupTest.cs b/src/Mvc/Mvc/test/MvcOptionsSetupTest.cs index 42fec5ff1302..23d1ba1718e8 100644 --- a/src/Mvc/Mvc/test/MvcOptionsSetupTest.cs +++ b/src/Mvc/Mvc/test/MvcOptionsSetupTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc/test/MvcServiceCollectionExtensionsTest.cs b/src/Mvc/Mvc/test/MvcServiceCollectionExtensionsTest.cs index 7eff5014edc2..790a51cdd170 100644 --- a/src/Mvc/Mvc/test/MvcServiceCollectionExtensionsTest.cs +++ b/src/Mvc/Mvc/test/MvcServiceCollectionExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/Mvc/test/Routing/ActionConstraintMatcherPolicyTest.cs b/src/Mvc/Mvc/test/Routing/ActionConstraintMatcherPolicyTest.cs index b879831419e6..d6e80674f534 100644 --- a/src/Mvc/Mvc/test/Routing/ActionConstraintMatcherPolicyTest.cs +++ b/src/Mvc/Mvc/test/Routing/ActionConstraintMatcherPolicyTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/Settings.StyleCop b/src/Mvc/Settings.StyleCop index 7b8130298caa..2565d6aa17cf 100644 --- a/src/Mvc/Settings.StyleCop +++ b/src/Mvc/Settings.StyleCop @@ -439,12 +439,6 @@ - - - - Copyright (c) Microsoft Open Technologies, Inc. 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/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/HelperExtensions.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/HelperExtensions.cs index 460ffef86fc6..68f7bf00da47 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/HelperExtensions.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/HelperExtensions.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.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Razor; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/ViewAssemblyMarker.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/ViewAssemblyMarker.cs index e71b37cb6b02..4c807c013e5c 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/ViewAssemblyMarker.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc.Views/ViewAssemblyMarker.cs @@ -1,6 +1,9 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + namespace Microsoft.AspNetCore.Mvc.Microbenchmarks { public class ViewAssemblyMarker { } -} \ No newline at end of file +} diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ActionSelectorBenchmark.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ActionSelectorBenchmark.cs index cfa605aaecac..f55d80d8658d 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ActionSelectorBenchmark.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ActionSelectorBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/AssemblyInfo.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/AssemblyInfo.cs index 32248e0d1b0a..09f49228e9e6 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/AssemblyInfo.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/AssemblyInfo.cs @@ -1 +1,4 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + [assembly: BenchmarkDotNet.Attributes.AspNetCoreBenchmark] diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ControllerActionEndpointDatasourceBenchmark.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ControllerActionEndpointDatasourceBenchmark.cs index 81063bef8edc..44f2623c7286 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ControllerActionEndpointDatasourceBenchmark.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ControllerActionEndpointDatasourceBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/HelperPerformanceBenchmark.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/HelperPerformanceBenchmark.cs index 91609df592b9..29e6d92b59b0 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/HelperPerformanceBenchmark.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/HelperPerformanceBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/RuntimePerformanceBenchmarkBase.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/RuntimePerformanceBenchmarkBase.cs index 05288a1a1c2b..112b7742a63b 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/RuntimePerformanceBenchmarkBase.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/RuntimePerformanceBenchmarkBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorBenchmarkBase.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorBenchmarkBase.cs index d722dea68767..a0dc0aac0732 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorBenchmarkBase.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorBenchmarkBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using BenchmarkDotNet.Attributes; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorByteArrayBenchmark.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorByteArrayBenchmark.cs index b392fcc48242..ff6924c3fb0c 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorByteArrayBenchmark.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorByteArrayBenchmark.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BenchmarkDotNet.Attributes; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; diff --git a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorModelWithValidatedProperties.cs b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorModelWithValidatedProperties.cs index 4a06bd80766f..abc12e0ab282 100644 --- a/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorModelWithValidatedProperties.cs +++ b/src/Mvc/perf/Microbenchmarks/Microsoft.AspNetCore.Mvc/ValidationVisitorModelWithValidatedProperties.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/PetController.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/PetController.cs index ed1ff8f5b984..11081f206f85 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/PetController.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/PetController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/TokenController.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/TokenController.cs index 803a1d208e7e..20eeb4d6319b 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/TokenController.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Controllers/TokenController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Models/BasicApiContext.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Models/BasicApiContext.cs index 35eb47619f71..40da13efb943 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Models/BasicApiContext.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Models/BasicApiContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore; diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Category.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Category.cs index f718410fcf0b..f5d5b8daa6a5 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Category.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Category.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicApi.Models { diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Image.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Image.cs index a5497539bb93..fdee5b4b59b4 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Image.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Image.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicApi.Models { diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Pet.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Pet.cs index 8ca2a6f1cac4..94552649d044 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Pet.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Pet.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Tag.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Tag.cs index 1875b57cce95..6303537fb975 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Models/Tag.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Models/Tag.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicApi.Models { diff --git a/src/Mvc/perf/benchmarkapps/BasicApi/Startup.cs b/src/Mvc/perf/benchmarkapps/BasicApi/Startup.cs index 4c59d45e5a7a..ac4fbe5e36cc 100644 --- a/src/Mvc/perf/benchmarkapps/BasicApi/Startup.cs +++ b/src/Mvc/perf/benchmarkapps/BasicApi/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/perf/benchmarkapps/BasicViews/BasicViewsContext.cs b/src/Mvc/perf/benchmarkapps/BasicViews/BasicViewsContext.cs index 1380f5d7a6cd..1b455001fe57 100644 --- a/src/Mvc/perf/benchmarkapps/BasicViews/BasicViewsContext.cs +++ b/src/Mvc/perf/benchmarkapps/BasicViews/BasicViewsContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.EntityFrameworkCore; diff --git a/src/Mvc/perf/benchmarkapps/BasicViews/Components/CurrentUser.cs b/src/Mvc/perf/benchmarkapps/BasicViews/Components/CurrentUser.cs index 2763be917834..e3e35cb18477 100644 --- a/src/Mvc/perf/benchmarkapps/BasicViews/Components/CurrentUser.cs +++ b/src/Mvc/perf/benchmarkapps/BasicViews/Components/CurrentUser.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/perf/benchmarkapps/BasicViews/Controllers/HomeController.cs b/src/Mvc/perf/benchmarkapps/BasicViews/Controllers/HomeController.cs index afb583a1714f..f92f6bb79452 100644 --- a/src/Mvc/perf/benchmarkapps/BasicViews/Controllers/HomeController.cs +++ b/src/Mvc/perf/benchmarkapps/BasicViews/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/perf/benchmarkapps/BasicViews/Person.cs b/src/Mvc/perf/benchmarkapps/BasicViews/Person.cs index f2118d36be02..d363a32e0cd0 100644 --- a/src/Mvc/perf/benchmarkapps/BasicViews/Person.cs +++ b/src/Mvc/perf/benchmarkapps/BasicViews/Person.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/perf/benchmarkapps/BasicViews/Startup.cs b/src/Mvc/perf/benchmarkapps/BasicViews/Startup.cs index 9282694070c9..6da2d7b19e39 100644 --- a/src/Mvc/perf/benchmarkapps/BasicViews/Startup.cs +++ b/src/Mvc/perf/benchmarkapps/BasicViews/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/samples/MvcSandbox/Controllers/HomeController.cs b/src/Mvc/samples/MvcSandbox/Controllers/HomeController.cs index 2aa4ff682976..56b215395dcf 100644 --- a/src/Mvc/samples/MvcSandbox/Controllers/HomeController.cs +++ b/src/Mvc/samples/MvcSandbox/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/samples/MvcSandbox/Controllers/LoginController.cs b/src/Mvc/samples/MvcSandbox/Controllers/LoginController.cs index 5110850fbff8..e6e121924678 100644 --- a/src/Mvc/samples/MvcSandbox/Controllers/LoginController.cs +++ b/src/Mvc/samples/MvcSandbox/Controllers/LoginController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/samples/MvcSandbox/Pages/PagesHome.cshtml.cs b/src/Mvc/samples/MvcSandbox/Pages/PagesHome.cshtml.cs index f33a1370fb7a..8ba7b65a0073 100644 --- a/src/Mvc/samples/MvcSandbox/Pages/PagesHome.cshtml.cs +++ b/src/Mvc/samples/MvcSandbox/Pages/PagesHome.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/samples/MvcSandbox/Startup.cs b/src/Mvc/samples/MvcSandbox/Startup.cs index 5451763865a9..077694e8fb66 100644 --- a/src/Mvc/samples/MvcSandbox/Startup.cs +++ b/src/Mvc/samples/MvcSandbox/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/ActivityReplacer.cs b/src/Mvc/shared/Mvc.Core.TestCommon/ActivityReplacer.cs index f7bc9d819360..a45e720cfaa6 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/ActivityReplacer.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/ActivityReplacer.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/shared/Mvc.Core.TestCommon/CommonFilterTest.cs b/src/Mvc/shared/Mvc.Core.TestCommon/CommonFilterTest.cs index 61c2ac3b9029..cfa5250c278d 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/CommonFilterTest.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/CommonFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/CommonResourceInvokerTest.cs b/src/Mvc/shared/Mvc.Core.TestCommon/CommonResourceInvokerTest.cs index ae73ee26216d..570abaaed381 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/CommonResourceInvokerTest.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/CommonResourceInvokerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/LinkBuilder.cs b/src/Mvc/shared/Mvc.Core.TestCommon/LinkBuilder.cs index 94d7a90f4c50..a203dc6cdcdf 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/LinkBuilder.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/LinkBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/MediaTypeAssert.cs b/src/Mvc/shared/Mvc.Core.TestCommon/MediaTypeAssert.cs index a6d16fc6f7c6..2db994d86d6d 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/MediaTypeAssert.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/MediaTypeAssert.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; using Microsoft.Net.Http.Headers; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/NonSeekableReadableStream.cs b/src/Mvc/shared/Mvc.Core.TestCommon/NonSeekableReadableStream.cs index 8dcb8043bf27..69225b68cf10 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/NonSeekableReadableStream.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/NonSeekableReadableStream.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/RoutingResult.cs b/src/Mvc/shared/Mvc.Core.TestCommon/RoutingResult.cs index 3a72c75faef4..6713c4a88eb1 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/RoutingResult.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/RoutingResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProvider.cs b/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProvider.cs index cf0a95240cf8..1f9393b308af 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProvider.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProviderFactory.cs b/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProviderFactory.cs index efe8933bfbd3..85264341b950 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProviderFactory.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/SimpleValueProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/TestClientModelValidatorProvider.cs b/src/Mvc/shared/Mvc.Core.TestCommon/TestClientModelValidatorProvider.cs index 366a791f1cf4..491bd428db73 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/TestClientModelValidatorProvider.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/TestClientModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.DataAnnotations; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpRequestStreamReaderFactory.cs b/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpRequestStreamReaderFactory.cs index 639c336d4622..5b948b70f863 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpRequestStreamReaderFactory.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpRequestStreamReaderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpResponseStreamWriterFactory.cs b/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpResponseStreamWriterFactory.cs index ad63961d7e7b..da1c669c3993 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpResponseStreamWriterFactory.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/TestHttpResponseStreamWriterFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/TestModelBinderFactory.cs b/src/Mvc/shared/Mvc.Core.TestCommon/TestModelBinderFactory.cs index c54bf69118fb..7db926224407 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/TestModelBinderFactory.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/TestModelBinderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/TestModelMetadataProvider.cs b/src/Mvc/shared/Mvc.Core.TestCommon/TestModelMetadataProvider.cs index 636c2234f601..254776315184 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/TestModelMetadataProvider.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/TestModelMetadataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/TestModelValidatorProvider.cs b/src/Mvc/shared/Mvc.Core.TestCommon/TestModelValidatorProvider.cs index 4dab51dc370f..982c5f482e98 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/TestModelValidatorProvider.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/TestModelValidatorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.DataAnnotations; diff --git a/src/Mvc/shared/Mvc.Core.TestCommon/ValidationAttributeUtil.cs b/src/Mvc/shared/Mvc.Core.TestCommon/ValidationAttributeUtil.cs index 20da144e2062..1ca91629954f 100644 --- a/src/Mvc/shared/Mvc.Core.TestCommon/ValidationAttributeUtil.cs +++ b/src/Mvc/shared/Mvc.Core.TestCommon/ValidationAttributeUtil.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionContext.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionContext.cs index 6a2ab0ef5038..268906329837 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionContext.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionDescriptor.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionDescriptor.cs index 85364d6b84f6..9e2ec2b83a21 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionDescriptor.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionResult.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionResult.cs index e6ac61fbbca1..f6ee12454280 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionResult.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyHttpContext.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyHttpContext.cs index b8777776e15e..2ab8c1087a69 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyHttpContext.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyHttpContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyPage.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyPage.cs index c39cd01d8bd0..fcec0846f80e 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyPage.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyPage.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyRouteData.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyRouteData.cs index 3967c5a5aaf8..d21e5001713b 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyRouteData.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyRouteData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyView.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyView.cs index fe84b9c049a6..adc04e45ec26 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyView.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyView.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentContext.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentContext.cs index 9c30b3e30f7b..12ab013d933b 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentContext.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentResult.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentResult.cs index b384cecde529..d8a22fa95f98 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentResult.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewComponentResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewContext.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewContext.cs index 318216c38119..b0944e7850e3 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewContext.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/IProxyViewContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc { diff --git a/src/Mvc/shared/Mvc.TestDiagnosticListener/TestDiagnosticListener.cs b/src/Mvc/shared/Mvc.TestDiagnosticListener/TestDiagnosticListener.cs index 02966a1ece14..bd94731c4062 100644 --- a/src/Mvc/shared/Mvc.TestDiagnosticListener/TestDiagnosticListener.cs +++ b/src/Mvc/shared/Mvc.TestDiagnosticListener/TestDiagnosticListener.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.Extensions.DiagnosticAdapter; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/HtmlContentUtilities.cs b/src/Mvc/shared/Mvc.Views.TestCommon/HtmlContentUtilities.cs index b828223c653b..e5816d3d27f2 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/HtmlContentUtilities.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/HtmlContentUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text.Encodings.Web; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/HtmlGeneratorUtilities.cs b/src/Mvc/shared/Mvc.Views.TestCommon/HtmlGeneratorUtilities.cs index cd2869de4030..28288b7cf6a3 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/HtmlGeneratorUtilities.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/HtmlGeneratorUtilities.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Antiforgery; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryContent.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryContent.cs index 476a59ef2d10..145d0183b048 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryContent.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryContent.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryFileInfo.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryFileInfo.cs index 8d2a05e29fd8..c78c6b854f46 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryFileInfo.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestDirectoryFileInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestFileChangeToken.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestFileChangeToken.cs index 5d814eb3534b..d5f9ffce5aba 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestFileChangeToken.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestFileChangeToken.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestFileInfo.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestFileInfo.cs index e54892af20f8..c65b0a1ff098 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestFileInfo.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestFileInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestFileProvider.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestFileProvider.cs index e54d2c770cb8..cd8ca24ae165 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestFileProvider.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestRazorCompiledItem.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestRazorCompiledItem.cs index e3b94b6c49e7..4a077fb1896c 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestRazorCompiledItem.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestRazorCompiledItem.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/shared/Mvc.Views.TestCommon/TestViewBufferScope.cs b/src/Mvc/shared/Mvc.Views.TestCommon/TestViewBufferScope.cs index 59e4ca33a142..35b65a9fb006 100644 --- a/src/Mvc/shared/Mvc.Views.TestCommon/TestViewBufferScope.cs +++ b/src/Mvc/shared/Mvc.Views.TestCommon/TestViewBufferScope.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using System.Collections.Generic; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryAuthTests.cs b/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryAuthTests.cs index 86e31edfff2c..db7cbd48959d 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryAuthTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryAuthTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTestHelper.cs b/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTestHelper.cs index dd3c01c170a0..6af1b1576ee8 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTestHelper.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTestHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTests.cs b/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTests.cs index 95ee4cd93a4c..00eb7331463f 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AntiforgeryTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ApiBehaviorTest.cs b/src/Mvc/test/Mvc.FunctionalTests/ApiBehaviorTest.cs index 67621024515e..c69dd1b89e4c 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ApiBehaviorTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ApiBehaviorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ApiExplorerTest.cs b/src/Mvc/test/Mvc.FunctionalTests/ApiExplorerTest.cs index 8205ec4fbea6..f9432bcd55b4 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ApiExplorerTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ApiExplorerTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ApplicationModelTest.cs b/src/Mvc/test/Mvc.FunctionalTests/ApplicationModelTest.cs index a698af7ba4ba..8fb291e2b1d8 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ApplicationModelTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ApplicationModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -106,9 +106,8 @@ public async Task ApplicationModelExtensions_AddsConventionToAllControllers() Assert.Equal(HttpStatusCode.OK, response.StatusCode); var body = await response.Content.ReadAsStringAsync(); - Assert.Equal("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.", body); + Assert.Equal(@"Licensed to the .NET Foundation under one or more agreements. +The .NET Foundation licenses this file to you under the MIT license.", body); } [Fact] @@ -183,8 +182,8 @@ public async Task ApplicationModel_CanDuplicateController_InMultipleAreas(string } [Theory] - [InlineData("Help", "This is the help page")] - [InlineData("MoreHelp", "This is the more help page")] + [InlineData("Help", "This is the help page")] + [InlineData("MoreHelp", "This is the more help page")] public async Task ControllerModel_CanDuplicateActions_RoutesToDifferentNames(string actionName, string expectedContent) { // Arrange & Act diff --git a/src/Mvc/test/Mvc.FunctionalTests/AsyncActionsTests.cs b/src/Mvc/test/Mvc.FunctionalTests/AsyncActionsTests.cs index 4a6a1699bf4e..7bc115af08bc 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AsyncActionsTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AsyncActionsTests.cs @@ -1,4 +1,7 @@ -using System.Net; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Net; using System.Net.Http; using System.Threading.Tasks; using Xunit; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AsyncDisposalTest.cs b/src/Mvc/test/Mvc.FunctionalTests/AsyncDisposalTest.cs index 005dbc6dd75f..ae5e8210cf6b 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AsyncDisposalTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AsyncDisposalTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AsyncEnumerableTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/AsyncEnumerableTestBase.cs index 78d4e02b5396..a728a43e754f 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AsyncEnumerableTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AsyncEnumerableTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTest.cs index 15b82680a385..f79df430dd63 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.FunctionalTests { diff --git a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTestBase.cs index 148a2fd3abde..878ce0952ba2 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterWithoutEndpointRoutingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterWithoutEndpointRoutingTest.cs index f378e328ebfa..44a44ea2080c 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterWithoutEndpointRoutingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterWithoutEndpointRoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.FunctionalTests { diff --git a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareUsingRequireAuthTest.cs b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareUsingRequireAuthTest.cs index 7c8e4fed40f7..2b7d144b4721 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareUsingRequireAuthTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareUsingRequireAuthTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; @@ -77,4 +77,4 @@ private async Task GetAuthCookieAsync(string action) } } } - + diff --git a/src/Mvc/test/Mvc.FunctionalTests/BasicTests.cs b/src/Mvc/test/Mvc.FunctionalTests/BasicTests.cs index c59df752021f..bc00d5558fea 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/BasicTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/BasicTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ClientValidationOptionsTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ClientValidationOptionsTests.cs index 4b728c2979a9..73c50454beaf 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ClientValidationOptionsTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ClientValidationOptionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests { public class ClientValidationOptionsTests : IClassFixture> { - public ClientValidationOptionsTests(MvcTestFixture fixture) => + public ClientValidationOptionsTests(MvcTestFixture fixture) => Fixture = fixture; public MvcTestFixture Fixture { get; } diff --git a/src/Mvc/test/Mvc.FunctionalTests/CompilationOptionsTests.cs b/src/Mvc/test/Mvc.FunctionalTests/CompilationOptionsTests.cs index a0efcd00d1c3..2f801b81f499 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/CompilationOptionsTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/CompilationOptionsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ComponentRenderingFunctionalTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ComponentRenderingFunctionalTests.cs index 5b310a39de81..24b401c787cf 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ComponentRenderingFunctionalTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ComponentRenderingFunctionalTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeEndpointRoutingTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeEndpointRoutingTests.cs index b1fbc55077a0..05b7a608cc61 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeEndpointRoutingTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeEndpointRoutingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTests.cs index 18a3b9047e42..fbc8b5f2ef72 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs b/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs index 902e43df3309..788abfc07c83 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ContentNegotiationTest.cs b/src/Mvc/test/Mvc.FunctionalTests/ContentNegotiationTest.cs index 0bd4638c2217..ecef0c29e584 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ContentNegotiationTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ContentNegotiationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ControllerFromServicesTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ControllerFromServicesTests.cs index 01fb7c83b7f4..1fb995310bd9 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ControllerFromServicesTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ControllerFromServicesTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/CorsEndpointRoutingTests.cs b/src/Mvc/test/Mvc.FunctionalTests/CorsEndpointRoutingTests.cs index 1fd1de640315..bceb159551a8 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/CorsEndpointRoutingTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/CorsEndpointRoutingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.FunctionalTests { diff --git a/src/Mvc/test/Mvc.FunctionalTests/CorsTests.cs b/src/Mvc/test/Mvc.FunctionalTests/CorsTests.cs index a913965c8b33..c8667a1da259 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/CorsTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/CorsTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/CorsTestsBase.cs b/src/Mvc/test/Mvc.FunctionalTests/CorsTestsBase.cs index 413d2247c51b..d589b371ab20 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/CorsTestsBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/CorsTestsBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/DataAnnotationTests.cs b/src/Mvc/test/Mvc.FunctionalTests/DataAnnotationTests.cs index f90e239345ea..9cf0a976f9b9 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/DataAnnotationTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/DataAnnotationTests.cs @@ -1,4 +1,7 @@ -using System.Net; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Net; using System.Threading.Tasks; using RazorWebSite; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/Mvc.FunctionalTests/DefaultValuesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/DefaultValuesTest.cs index e57d8de17f70..4aa89ddf117a 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/DefaultValuesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/DefaultValuesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/DirectivesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/DirectivesTest.cs index 15ebfe4e454a..d0ed08a7332b 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/DirectivesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/DirectivesTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/DoNotRespectBrowserAcceptHeaderTests.cs b/src/Mvc/test/Mvc.FunctionalTests/DoNotRespectBrowserAcceptHeaderTests.cs index fb682a5e08b5..c2c37317c0c0 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/DoNotRespectBrowserAcceptHeaderTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/DoNotRespectBrowserAcceptHeaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ErrorPageTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ErrorPageTests.cs index c1b001509678..11ff6b17d899 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ErrorPageTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ErrorPageTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ExceptionInfo.cs b/src/Mvc/test/Mvc.FunctionalTests/ExceptionInfo.cs index 163fb8213398..2367c4ec0bcf 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ExceptionInfo.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ExceptionInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.FunctionalTests { diff --git a/src/Mvc/test/Mvc.FunctionalTests/FileResultTests.cs b/src/Mvc/test/Mvc.FunctionalTests/FileResultTests.cs index 059c4875bd59..f5697a5179ad 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/FileResultTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/FileResultTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/FiltersTest.cs b/src/Mvc/test/Mvc.FunctionalTests/FiltersTest.cs index 52bbef642be6..dea1e2b8777e 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/FiltersTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/FiltersTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/FlushPointTest.cs b/src/Mvc/test/Mvc.FunctionalTests/FlushPointTest.cs index a83adcd54a7e..ce692e96b02e 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/FlushPointTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/FlushPointTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/FormFileUploadTest.cs b/src/Mvc/test/Mvc.FunctionalTests/FormFileUploadTest.cs index e75fbf039c5a..510a5401655f 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/FormFileUploadTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/FormFileUploadTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterEndpointRoutingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterEndpointRoutingTest.cs index fbc6b7a39827..2116aecb22c9 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterEndpointRoutingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterEndpointRoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterTestBase.cs index 45ad795edcc9..586ce80e9f2b 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterUseMvcTest.cs b/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterUseMvcTest.cs index 8a52d219feea..525bcc1beb45 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterUseMvcTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterUseMvcTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationTest.cs b/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationTest.cs index fda715e68b3b..392407631124 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationWithCultureTest.cs b/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationWithCultureTest.cs index e674c7966c7d..a92eec380fbf 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationWithCultureTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/HtmlGenerationWithCultureTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/HtmlHelperOptionsTest.cs b/src/Mvc/test/Mvc.FunctionalTests/HtmlHelperOptionsTest.cs index 41d1c2e9a7a6..07fc01fb1224 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/HtmlHelperOptionsTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/HtmlHelperOptionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerMiddleware.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerMiddleware.cs index ae40cee982a5..b7fed043e981 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerMiddleware.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerStartupFilter.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerStartupFilter.cs index dff810ddafc8..deca57808f13 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerStartupFilter.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/CultureReplacerStartupFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/HttpClientExtensions.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/HttpClientExtensions.cs index 39b2149cf6c1..3c234104383d 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/HttpClientExtensions.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/HttpClientExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/IHtmlDocumentExtensions.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/IHtmlDocumentExtensions.cs index b23ccfa657f7..7d22fe5032a9 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/IHtmlDocumentExtensions.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/IHtmlDocumentExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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 AngleSharp.Dom; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcEncodedTestFixtureOfT.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcEncodedTestFixtureOfT.cs index b978f8c8183d..25dc595f4748 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcEncodedTestFixtureOfT.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcEncodedTestFixtureOfT.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Encodings.Web; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcTestFixture.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcTestFixture.cs index e157bf10f1e7..1ca64d3806d9 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcTestFixture.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcTestFixture.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcWebApplicationBuilderExtensions.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcWebApplicationBuilderExtensions.cs index d3da7ba51539..2397222d7a14 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcWebApplicationBuilderExtensions.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/MvcWebApplicationBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Hosting; diff --git a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/ResourceFile.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/ResourceFile.cs index 89eee74be50b..e1e184d315b6 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/ResourceFile.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/ResourceFile.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/TestCulture.cs b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/TestCulture.cs index 180fa7490bff..6288fa40a21c 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/TestCulture.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/Infrastructure/TestCulture.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.FunctionalTests { diff --git a/src/Mvc/test/Mvc.FunctionalTests/InputFormatterTests.cs b/src/Mvc/test/Mvc.FunctionalTests/InputFormatterTests.cs index 52267ade6f74..da2f44b0c407 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/InputFormatterTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/InputFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/InputObjectValidationTests.cs b/src/Mvc/test/Mvc.FunctionalTests/InputObjectValidationTests.cs index 5db204c8be8c..f637a2ffd98b 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/InputObjectValidationTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/InputObjectValidationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/InputParentValidationTests.cs b/src/Mvc/test/Mvc.FunctionalTests/InputParentValidationTests.cs index 9759f3842fbb..83930facaf2e 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/InputParentValidationTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/InputParentValidationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/InputValidationTests.cs b/src/Mvc/test/Mvc.FunctionalTests/InputValidationTests.cs index 2e87b4b44c84..9e0eacf0fcf5 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/InputValidationTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/InputValidationTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/JsonInputFormatterTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/JsonInputFormatterTestBase.cs index f29be8bddd46..35a2729567b0 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/JsonInputFormatterTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/JsonInputFormatterTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/Mvc.FunctionalTests/JsonOutputFormatterTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/JsonOutputFormatterTestBase.cs index c5c4ae51fdff..8da4c12dcca8 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/JsonOutputFormatterTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/JsonOutputFormatterTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/JsonPatchInputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/JsonPatchInputFormatterTest.cs index 211ff54a5ec8..5641f4b47649 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/JsonPatchInputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/JsonPatchInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithNewtonsoftJsonTest.cs b/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithNewtonsoftJsonTest.cs index 3f58fab658d4..9769c551c6e5 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithNewtonsoftJsonTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithNewtonsoftJsonTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithSystemTextJsonTest.cs b/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithSystemTextJsonTest.cs index fa76456e0270..cb896f42bb93 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithSystemTextJsonTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/JsonResultWithSystemTextJsonTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/LinkGenerationTests.cs b/src/Mvc/test/Mvc.FunctionalTests/LinkGenerationTests.cs index c59387eccae4..9c434dd8cd38 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/LinkGenerationTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/LinkGenerationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/LinkGeneratorTest.cs b/src/Mvc/test/Mvc.FunctionalTests/LinkGeneratorTest.cs index 8258cad06cdc..76d2cdcfcb33 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/LinkGeneratorTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/LinkGeneratorTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; @@ -23,7 +23,7 @@ private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup(); public HttpClient Client { get; } - + [Fact] public async Task GetPathByAction_CanGeneratePathToSelf() { diff --git a/src/Mvc/test/Mvc.FunctionalTests/LinkParserTest.cs b/src/Mvc/test/Mvc.FunctionalTests/LinkParserTest.cs index 15c60602cb47..4009c94f0209 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/LinkParserTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/LinkParserTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; @@ -24,7 +24,7 @@ private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup(); public HttpClient Client { get; } - + [Fact] public async Task ParsePathByEndpoint_CanParsedWithDefaultRoute() { @@ -36,17 +36,17 @@ public async Task ParsePathByEndpoint_CanParsedWithDefaultRoute() Assert.Equal(HttpStatusCode.OK, response.StatusCode); Assert.Collection( values.Properties().OrderBy(p => p.Name), - p => + p => { Assert.Equal("action", p.Name); Assert.Equal("Index", p.Value.Value()); }, - p => + p => { Assert.Equal("controller", p.Name); Assert.Equal("LinkParser", p.Value.Value()); }, - p => + p => { Assert.Equal("id", p.Name); Assert.Equal("18", p.Value.Value()); diff --git a/src/Mvc/test/Mvc.FunctionalTests/MvcSandboxTest.cs b/src/Mvc/test/Mvc.FunctionalTests/MvcSandboxTest.cs index 2e6bd028b079..861bfb527d07 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/MvcSandboxTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/MvcSandboxTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonInputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonInputFormatterTest.cs index ea1fcb661190..cf530e084bba 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonInputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonOutputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonOutputFormatterTest.cs index 47696e446fc7..edb9afe8bb35 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonOutputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/NewtonsoftJsonOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/NonNullableReferenceTypesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/NonNullableReferenceTypesTest.cs index e22462ce342f..54b7c5f5d16b 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/NonNullableReferenceTypesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/NonNullableReferenceTypesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/OutputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/OutputFormatterTest.cs index 54bdbf47dd0d..70e9a5e59911 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/OutputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/OutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/PageAsyncDisposalTest.cs b/src/Mvc/test/Mvc.FunctionalTests/PageAsyncDisposalTest.cs index ce7125379704..66c5f74cf74f 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/PageAsyncDisposalTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/PageAsyncDisposalTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorBuildTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorBuildTest.cs index 26ba921a68ea..f13a2fa080db 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorBuildTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorBuildTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorPageModelTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorPageModelTest.cs index ffd656ff62d6..ad4ab62c7a89 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorPageModelTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorPageModelTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesNamespaceTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesNamespaceTest.cs index 62b052508082..377e4b6817eb 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesNamespaceTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesNamespaceTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesTest.cs index 88a5bddd83d0..7cd1601954bb 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesViewSearchTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesViewSearchTest.cs index f343aa65c3fa..a38cb8ed0ac5 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesViewSearchTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesViewSearchTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net.Http; @@ -31,7 +31,7 @@ public async Task Page_CanFindPartial_InCurrentDirectory() // Assert Assert.Equal("Hello from sibling", content.Trim()); } - + [Fact] public async Task Page_CanFindPartial_InParentDirectory() { @@ -41,7 +41,7 @@ public async Task Page_CanFindPartial_InParentDirectory() // Assert Assert.Equal("Hello from parent", content.Trim()); } - + [Fact] public async Task Page_CanFindPartial_InRootDirectory() { diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithBasePathTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithBasePathTest.cs index bebb9bae2d8a..f94526f7f409 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithBasePathTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithBasePathTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithEndpointRoutingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithEndpointRoutingTest.cs index 183372722d35..6ed626f9de5a 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithEndpointRoutingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorPagesWithEndpointRoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RazorViewLocationSpecificationTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RazorViewLocationSpecificationTest.cs index e2de2dd2f83f..9e3aa25ef132 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RazorViewLocationSpecificationTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RazorViewLocationSpecificationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ReadFromDisconnectedClientTest.cs b/src/Mvc/test/Mvc.FunctionalTests/ReadFromDisconnectedClientTest.cs index 869e4607eb2f..4da6e3f6017d 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ReadFromDisconnectedClientTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ReadFromDisconnectedClientTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RemoteAttributeValidationTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RemoteAttributeValidationTest.cs index 2fc7b37e62a8..496d644683be 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RemoteAttributeValidationTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RemoteAttributeValidationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RequestFormLimitsTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RequestFormLimitsTest.cs index 1a9c1a8f3829..43ab35894bd3 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RequestFormLimitsTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RequestFormLimitsTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RequestServicesEndpointRoutingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RequestServicesEndpointRoutingTest.cs index e61ce738458d..8841896c0745 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RequestServicesEndpointRoutingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RequestServicesEndpointRoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTest.cs index dbb89b33c552..62029f8720d2 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTestBase.cs index 840d070bc258..04ba6eb4e35f 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RequestServicesTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RequestSizeLimitTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RequestSizeLimitTest.cs index 66b794d44c7d..93c790bebc7f 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RequestSizeLimitTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RequestSizeLimitTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RespectBrowserAcceptHeaderTests.cs b/src/Mvc/test/Mvc.FunctionalTests/RespectBrowserAcceptHeaderTests.cs index e796b034cdf4..9b2459c090af 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RespectBrowserAcceptHeaderTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RespectBrowserAcceptHeaderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingAcrossPipelineBranchesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingAcrossPipelineBranchesTest.cs index 431622df9fba..c8aaed6d9eb8 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingAcrossPipelineBranchesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingAcrossPipelineBranchesTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicOrderTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicOrderTest.cs index ce0b22f21442..04068f813a0d 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicOrderTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicOrderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicTest.cs index a55c3f92f8e6..4f812fb6a4ae 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingDynamicTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingTest.cs index 81f91a0779db..9ec317e65325 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -381,7 +381,7 @@ public async Task ConventionalRoutedAction_ParameterTransformer_LinkToSelf() public async Task LinkGenerator_EndpointName_LinkToConventionalRoutedAction() { // Arrange - + // Act var response = await Client.GetAsync("/EndpointName/LinkToConventionalRouted"); diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingWithoutRazorPagesTests.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingWithoutRazorPagesTests.cs index 1033e6cbe54b..1be9efdcf1e2 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingWithoutRazorPagesTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingEndpointRoutingWithoutRazorPagesTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingFallbackTest.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingFallbackTest.cs index c4925485a0bc..f13ae3e3bcfa 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingFallbackTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingFallbackTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingTests.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingTests.cs index 098bbd5b5781..2d67286001ab 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingTestsBase.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingTestsBase.cs index f90832d402f2..233ccec5deea 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingTestsBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingTestsBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTests.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTests.cs index 51ac1eb99011..9fc14cfb3b98 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTestsBase.cs b/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTestsBase.cs index 061bf537fe80..82aae0747e1c 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTestsBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/RoutingWithoutRazorPagesTestsBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/SerializableErrorTests.cs b/src/Mvc/test/Mvc.FunctionalTests/SerializableErrorTests.cs index cf4220ab6025..d06b74e4955a 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/SerializableErrorTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/SerializableErrorTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/SimpleTests.cs b/src/Mvc/test/Mvc.FunctionalTests/SimpleTests.cs index 214fcc0eb5c8..9cb7a802a4bd 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/SimpleTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/SimpleTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderExceptionTests.cs b/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderExceptionTests.cs index 2e1a501e5ce2..7da03707bd51 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderExceptionTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderExceptionTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderTests.cs b/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderTests.cs index 18dabd15cf19..1af1563cfb3e 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/SimpleWithWebApplicationBuilderTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/StreamOutputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/StreamOutputFormatterTest.cs index 23db399359da..edd52f8b2991 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/StreamOutputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/StreamOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonInputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonInputFormatterTest.cs index c59c7369b765..a126139892b2 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonInputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Xunit; diff --git a/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonOutputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonOutputFormatterTest.cs index d0af74ada10d..58d5c850b6f6 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonOutputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/SystemTextJsonOutputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Text.Encodings.Web; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TagHelperComponentTagHelperTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TagHelperComponentTagHelperTest.cs index 59333aa46a35..e6c8b8746a02 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TagHelperComponentTagHelperTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TagHelperComponentTagHelperTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TagHelpersFromServicesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TagHelpersFromServicesTest.cs index 6d1c7cf47d13..f9bdcc361ce1 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TagHelpersFromServicesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TagHelpersFromServicesTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TagHelpersTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TagHelpersTest.cs index dc03b3239221..9b7ee3f09ee6 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TagHelpersTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TagHelpersTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesTest.cs index 6d7130e4ef8e..787a61d8f8da 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesUsingCookieConsentTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesUsingCookieConsentTest.cs index 8bb7ad18ad16..3e06768eab7d 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesUsingCookieConsentTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TempDataInCookiesUsingCookieConsentTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TempDataInSessionTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TempDataInSessionTest.cs index 6c669f103cad..453f2ede04da 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TempDataInSessionTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TempDataInSessionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using Xunit; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TempDataPropertyTest.cs b/src/Mvc/test/Mvc.FunctionalTests/TempDataPropertyTest.cs index 59744d2dbc50..5a8b81076fac 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TempDataPropertyTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TempDataPropertyTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TempDataTestBase.cs b/src/Mvc/test/Mvc.FunctionalTests/TempDataTestBase.cs index c37012399403..75efe2dcf3b2 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TempDataTestBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TempDataTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TestJsonSerializationOptionsProvider.cs b/src/Mvc/test/Mvc.FunctionalTests/TestJsonSerializationOptionsProvider.cs index 4a418cb0f6f8..d3cc23c64ca3 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TestJsonSerializationOptionsProvider.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TestJsonSerializationOptionsProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureInheritanceTests.cs b/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureInheritanceTests.cs index f9b19338dc9b..d0b609682446 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureInheritanceTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureInheritanceTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureTests.cs b/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureTests.cs index b6bc06aedb37..756910827c37 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/TestingInfrastructureTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/UrlResolutionTest.cs b/src/Mvc/test/Mvc.FunctionalTests/UrlResolutionTest.cs index c318c47fc2c6..16553e8e3b4b 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/UrlResolutionTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/UrlResolutionTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net.Http; using System.Reflection; diff --git a/src/Mvc/test/Mvc.FunctionalTests/VersioningEndpointRoutingTests.cs b/src/Mvc/test/Mvc.FunctionalTests/VersioningEndpointRoutingTests.cs index 50564a05ad89..99f4ce911e78 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/VersioningEndpointRoutingTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/VersioningEndpointRoutingTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/VersioningTests.cs b/src/Mvc/test/Mvc.FunctionalTests/VersioningTests.cs index 94d3b075d37f..987901f892f3 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/VersioningTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/VersioningTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.FunctionalTests/VersioningTestsBase.cs b/src/Mvc/test/Mvc.FunctionalTests/VersioningTestsBase.cs index 4a0757316a6d..73b412fb7314 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/VersioningTestsBase.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/VersioningTestsBase.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ViewComponentFromServicesTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ViewComponentFromServicesTests.cs index f219c3461368..adbaafffb82c 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ViewComponentFromServicesTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ViewComponentFromServicesTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.FunctionalTests/ViewEngineTests.cs b/src/Mvc/test/Mvc.FunctionalTests/ViewEngineTests.cs index 86a633555af3..0c579c856e2c 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/ViewEngineTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/ViewEngineTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Net; diff --git a/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerFormattersWrappingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerFormattersWrappingTest.cs index b97130284200..bfd2de69053d 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerFormattersWrappingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerFormattersWrappingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerInputFormatterTest.cs b/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerInputFormatterTest.cs index e4ae8a9ffafe..939ca1ef11d5 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerInputFormatterTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/XmlDataContractSerializerInputFormatterTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.FunctionalTests/XmlOutputFormatterTests.cs b/src/Mvc/test/Mvc.FunctionalTests/XmlOutputFormatterTests.cs index 5935ab7d0a08..b65e755d6624 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/XmlOutputFormatterTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/XmlOutputFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Net; using System.Net.Http; diff --git a/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerFormattersWrappingTest.cs b/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerFormattersWrappingTest.cs index c4623a99cdcd..843d772ae488 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerFormattersWrappingTest.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerFormattersWrappingTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 System.Linq; diff --git a/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerInputFormatterTests.cs b/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerInputFormatterTests.cs index 5f4e41ab37a8..c898b71b3c08 100644 --- a/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerInputFormatterTests.cs +++ b/src/Mvc/test/Mvc.FunctionalTests/XmlSerializerInputFormatterTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Net; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ActionParametersIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ActionParametersIntegrationTest.cs index 92d459b6bdec..d495748d4627 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ActionParametersIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ActionParametersIntegrationTest.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ArrayModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ArrayModelBinderIntegrationTest.cs index 22ac09e96e76..1179b45c861c 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ArrayModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ArrayModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/AuthorizeFilterIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/AuthorizeFilterIntegrationTest.cs index 0a31d403dfbd..44f3d6562722 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/AuthorizeFilterIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/AuthorizeFilterIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/BindPropertyIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/BindPropertyIntegrationTest.cs index 392aebe33a39..2c42477ce26a 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/BindPropertyIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/BindPropertyIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/BinderTypeBasedModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/BinderTypeBasedModelBinderIntegrationTest.cs index bc26e31c6709..17914f480e73 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/BinderTypeBasedModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/BinderTypeBasedModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Mvc/test/Mvc.IntegrationTests/BindingSourceMetadataProviderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/BindingSourceMetadataProviderIntegrationTest.cs index 200da5cce790..bcad6afb7c82 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/BindingSourceMetadataProviderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/BindingSourceMetadataProviderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/test/Mvc.IntegrationTests/BodyValidationIntegrationTests.cs b/src/Mvc/test/Mvc.IntegrationTests/BodyValidationIntegrationTests.cs index 8d437448d10f..cbf3ff5abec4 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/BodyValidationIntegrationTests.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/BodyValidationIntegrationTests.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ByteArrayModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ByteArrayModelBinderIntegrationTest.cs index e05237d4b426..cbf053c23075 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ByteArrayModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ByteArrayModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/CancellationTokenModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/CancellationTokenModelBinderIntegrationTest.cs index 9ce033b2a805..cb05708015b5 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/CancellationTokenModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/CancellationTokenModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/CollectionModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/CollectionModelBinderIntegrationTest.cs index 3377b9ce8fc7..f19bf8b0257d 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/CollectionModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/CollectionModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/CompanyNameAttribute.cs b/src/Mvc/test/Mvc.IntegrationTests/CompanyNameAttribute.cs index 09cb8002e519..6d0743f69428 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/CompanyNameAttribute.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/CompanyNameAttribute.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ComplexObjectIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ComplexObjectIntegrationTest.cs index 0f8fccce4fc2..513bc6c3f34c 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ComplexObjectIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ComplexObjectIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ModelBinding.Binders; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ComplexRecordIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ComplexRecordIntegrationTest.cs index 1d1489ff4c4d..b0f15401ebdc 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ComplexRecordIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ComplexRecordIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -4151,7 +4151,7 @@ public async Task RecordTypeWithBindRequiredParameters_Data_Success() Assert.Equal(0, modelState.ErrorCount); Assert.Equal(2, modelState.Count); - + Assert.Single(modelState, m => m.Key == "Age"); Assert.Single(modelState, m => m.Key == "Name"); } @@ -4195,7 +4195,7 @@ public async Task RecordTypeWithBindRequiredParameters_PartialData_BindRequiredE Assert.False(modelState.IsValid); Assert.Equal(1, modelState.ErrorCount); - + Assert.Equal(2, modelState.Count); var entry = Assert.Single(modelState, m => m.Key == "Age"); Assert.Empty(entry.Value.Errors); diff --git a/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeIntegrationTestBase.cs b/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeIntegrationTestBase.cs index 79a1919ec029..abcca90279b5 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeIntegrationTestBase.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeIntegrationTestBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -3768,7 +3768,7 @@ private IModelBinder GetModelBinder( protected virtual ModelBindingTestContext GetTestContext( Action updateRequest = null, Action updateOptions = null, - IModelMetadataProvider metadataProvider = null) + IModelMetadataProvider metadataProvider = null) => ModelBindingTestHelper.GetTestContext(updateRequest, updateOptions, actionDescriptor: null, metadataProvider); } } diff --git a/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs index 0af0b2a0dfd7..91ae2acf89e9 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/test/Mvc.IntegrationTests/DictionaryModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/DictionaryModelBinderIntegrationTest.cs index 0920e94d2938..358b37406d4e 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/DictionaryModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/DictionaryModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ExcludeBindingMetadataProviderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ExcludeBindingMetadataProviderIntegrationTest.cs index b3b31bc9fd47..e9ce07d236fb 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ExcludeBindingMetadataProviderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ExcludeBindingMetadataProviderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/FormCollectionModelBindingIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/FormCollectionModelBindingIntegrationTest.cs index 1b7ce7e335c6..04e16ca18dda 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/FormCollectionModelBindingIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/FormCollectionModelBindingIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/test/Mvc.IntegrationTests/FormFileModelBindingIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/FormFileModelBindingIntegrationTest.cs index 92ea35e3193f..2376cf3a9c4c 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/FormFileModelBindingIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/FormFileModelBindingIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/test/Mvc.IntegrationTests/GenericModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/GenericModelBinderIntegrationTest.cs index 22a7be2d24f7..e6985b3bb42c 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/GenericModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/GenericModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/HasValidatorsValidationMetadataProviderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/HasValidatorsValidationMetadataProviderIntegrationTest.cs index ba8798245c8d..934a154d2894 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/HasValidatorsValidationMetadataProviderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/HasValidatorsValidationMetadataProviderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/test/Mvc.IntegrationTests/HeaderModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/HeaderModelBinderIntegrationTest.cs index c83c7eadcf79..02d9255b629b 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/HeaderModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/HeaderModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/JQueryFormatModelBindingIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/JQueryFormatModelBindingIntegrationTest.cs index 9376c85e9245..e6005297f630 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/JQueryFormatModelBindingIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/JQueryFormatModelBindingIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/Mvc/test/Mvc.IntegrationTests/KeyValuePairModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/KeyValuePairModelBinderIntegrationTest.cs index f8da065e39ba..09681c19be2e 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/KeyValuePairModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/KeyValuePairModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestContext.cs b/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestContext.cs index 4cf87f2300f5..06b2b3b9fa55 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestContext.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ModelBinding; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestHelper.cs b/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestHelper.cs index ce4cc9155b42..1c9a120a1576 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestHelper.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ModelBindingTestHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ModelPrefixSelectionIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ModelPrefixSelectionIntegrationTest.cs index 7a03494307db..3bd8a79f2dac 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ModelPrefixSelectionIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ModelPrefixSelectionIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.IntegrationTests/Models/Product.cs b/src/Mvc/test/Mvc.IntegrationTests/Models/Product.cs index b7c9656464f1..e08fda8dfaef 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Models/Product.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/Models/Product.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/Models/ProductDetails.cs b/src/Mvc/test/Mvc.IntegrationTests/Models/ProductDetails.cs index 70afdb0ea6d3..fee9a152e31b 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Models/ProductDetails.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/Models/ProductDetails.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/Models/ProductViewModel.cs b/src/Mvc/test/Mvc.IntegrationTests/Models/ProductViewModel.cs index 0113f7fcf2e2..c56d100b0263 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Models/ProductViewModel.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/Models/ProductViewModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/Models/Software.cs b/src/Mvc/test/Mvc.IntegrationTests/Models/Software.cs index 7f98162d48e3..65c964c49e29 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Models/Software.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/Models/Software.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/Models/SoftwareViewModel.cs b/src/Mvc/test/Mvc.IntegrationTests/Models/SoftwareViewModel.cs index 0cb821a8c45e..89641b7a1903 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Models/SoftwareViewModel.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/Models/SoftwareViewModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/Models/SuccessfulModel.cs b/src/Mvc/test/Mvc.IntegrationTests/Models/SuccessfulModel.cs index 5f3488d78783..aae9df8be6e7 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/Models/SuccessfulModel.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/Models/SuccessfulModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.IntegrationTests { diff --git a/src/Mvc/test/Mvc.IntegrationTests/NullableReferenceTypeIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/NullableReferenceTypeIntegrationTest.cs index 6e61419fe3d2..86eeb1eaf15d 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/NullableReferenceTypeIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/NullableReferenceTypeIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ParameterBinderExtensions.cs b/src/Mvc/test/Mvc.IntegrationTests/ParameterBinderExtensions.cs index c6f773f4428d..6a2da69cc1b2 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ParameterBinderExtensions.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ParameterBinderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using System.Threading.Tasks; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ProductValidatorAttribute.cs b/src/Mvc/test/Mvc.IntegrationTests/ProductValidatorAttribute.cs index 6c6b65885386..b135ee84e2ba 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ProductValidatorAttribute.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ProductValidatorAttribute.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ServicesModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/ServicesModelBinderIntegrationTest.cs index 291ed441b112..387d14939df1 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ServicesModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ServicesModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs index 634ba9bcedbb..1b82b2274501 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/SuccessfulModelBinder.cs b/src/Mvc/test/Mvc.IntegrationTests/SuccessfulModelBinder.cs index b8bfff02e357..3972f986932f 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/SuccessfulModelBinder.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/SuccessfulModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/test/Mvc.IntegrationTests/TestMvcOptions.cs b/src/Mvc/test/Mvc.IntegrationTests/TestMvcOptions.cs index eaff06d30daa..0543611f1aac 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/TestMvcOptions.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/TestMvcOptions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/test/Mvc.IntegrationTests/TryUpdateModelIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/TryUpdateModelIntegrationTest.cs index 64c13b17e2f2..f6f6cdfcdb7e 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/TryUpdateModelIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/TryUpdateModelIntegrationTest.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/TryValidateModelIntegrationTest.cs b/src/Mvc/test/Mvc.IntegrationTests/TryValidateModelIntegrationTest.cs index e60b447fd288..37b66a119027 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/TryValidateModelIntegrationTest.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/TryValidateModelIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ValidationIntegrationTests.cs b/src/Mvc/test/Mvc.IntegrationTests/ValidationIntegrationTests.cs index f5b8266451fe..c544a5f4a65f 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ValidationIntegrationTests.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ValidationIntegrationTests.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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; diff --git a/src/Mvc/test/Mvc.IntegrationTests/ValidationWithRecordIntegrationTests.cs b/src/Mvc/test/Mvc.IntegrationTests/ValidationWithRecordIntegrationTests.cs index 7d3505ee7408..fe8266d18e28 100644 --- a/src/Mvc/test/Mvc.IntegrationTests/ValidationWithRecordIntegrationTests.cs +++ b/src/Mvc/test/Mvc.IntegrationTests/ValidationWithRecordIntegrationTests.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ActionDescriptorChangeProvider.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ActionDescriptorChangeProvider.cs index 266f99d3aaff..358008e8b86d 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ActionDescriptorChangeProvider.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ActionDescriptorChangeProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using Microsoft.AspNetCore.Mvc.Infrastructure; @@ -23,7 +23,7 @@ public IChangeToken GetChangeToken() var changeTokenSource = new CancellationTokenSource(); return new CancellationChangeToken(changeTokenSource.Token); } - + return new CancellationChangeToken(ChangeToken.TokenSource.Token); } } diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerDataFilter.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerDataFilter.cs index d365caf75584..1b59f3b0ab45 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerDataFilter.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerDataFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerInboundOutboundConvention.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerInboundOutboundConvention.cs index fa826ebf6dae..2eefcce43dc5 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerInboundOutboundConvention.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerInboundOutboundConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerRouteChangeConvention.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerRouteChangeConvention.cs index c329b28c4208..04b26d679e04 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerRouteChangeConvention.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerRouteChangeConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityDisabledConvention.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityDisabledConvention.cs index 9b6be36b43f3..e44e2fec9bc3 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityDisabledConvention.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityDisabledConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityEnabledConvention.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityEnabledConvention.cs index bd19f1f92aa0..84fb8e83fa68 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityEnabledConvention.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ApiExplorerVisibilityEnabledConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationModels; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerApiController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerApiController.cs index a32ebed1544e..a7bc423c4689 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerApiController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerApiController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerHttpMethodController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerHttpMethodController.cs index 95de9f1497ab..60d1bec1c497 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerHttpMethodController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerHttpMethodController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerInboundOutboundController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerInboundOutboundController.cs index 55b4787a03af..b8b6aba27e2f 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerInboundOutboundController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerInboundOutboundController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetByConventionController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetByConventionController.cs index e6e39a5cadb9..1860c3bb4733 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetByConventionController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetByConventionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetExplicitlyController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetExplicitlyController.cs index 7aa4467540b0..644bf8224d45 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetExplicitlyController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerNameSetExplicitlyController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerParametersController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerParametersController.cs index e890e3d4d35b..7121462abbd0 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerParametersController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerParametersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerReloadableController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerReloadableController.cs index d6372a8a8620..91eb756eaade 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerReloadableController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerReloadableController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeController.cs index 3a5d52695477..9222b0707330 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeOverrideOnActionController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeOverrideOnActionController.cs index 78ba0af5ed64..c93c808095a8 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeOverrideOnActionController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseContentTypeOverrideOnActionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeOverrideOnActionController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeOverrideOnActionController.cs index 10f9a9524998..c9a09accea2f 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeOverrideOnActionController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeOverrideOnActionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithApiConventionController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithApiConventionController.cs index dcfb5a9892d5..79334be1890b 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithApiConventionController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithApiConventionController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithAttributeController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithAttributeController.cs index e902e8ec5642..4d7822f2b133 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithAttributeController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithAttributeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithoutAttributeController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithoutAttributeController.cs index 0dd2a8f9d974..311e052b4ca4 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithoutAttributeController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerResponseTypeWithoutAttributeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerRouteAndPathParametersInformationController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerRouteAndPathParametersInformationController.cs index 5e6fb5023961..b73afd712ddc 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerRouteAndPathParametersInformationController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerRouteAndPathParametersInformationController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerSystemVoid.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerSystemVoid.cs index b84e81d5ba0d..1dec30ce830a 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerSystemVoid.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerSystemVoid.cs @@ -1,6 +1,6 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs index be93692211c8..18741ed75163 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs index 055e91e0eabd..40d96eab8cc3 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilitySetExplicitlyController.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilitySetExplicitlyController.cs index ceeaf65748ff..2d034b9cfe16 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilitySetExplicitlyController.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilitySetExplicitlyController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Customer.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Customer.cs index 7a2e6f2e15f6..0009ce0a8624 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Customer.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Customer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace ApiExplorerWebSite { diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/CustomerCommentsDTO.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/CustomerCommentsDTO.cs index beaa134a5f73..e741bb3d4b6c 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/CustomerCommentsDTO.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/CustomerCommentsDTO.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDTO.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDTO.cs index 02065b5f1f9e..23b347be662f 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDTO.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDTO.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDetailsDTO.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDetailsDTO.cs index 9b2f5b982909..cf61b18a4c80 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDetailsDTO.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/OrderDetailsDTO.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Product.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Product.cs index 245df86d8bf3..a67832bd83aa 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Product.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Models/Product.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/PassThruAttribute.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/PassThruAttribute.cs index fa55ef3f837b..9e4f2b2d5659 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/PassThruAttribute.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/PassThruAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/ReloadAttribute.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/ReloadAttribute.cs index 9cb72225399c..bcead69ab78e 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/ReloadAttribute.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/ReloadAttribute.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; namespace ApiExplorerWebSite { diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/Startup.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/Startup.cs index c7cb1554f26a..7bccf12f8a2b 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Mvc/test/WebSites/ApiExplorerWebSite/WellKnownChangeToken.cs b/src/Mvc/test/WebSites/ApiExplorerWebSite/WellKnownChangeToken.cs index a862f4f88f57..39a82734fe65 100644 --- a/src/Mvc/test/WebSites/ApiExplorerWebSite/WellKnownChangeToken.cs +++ b/src/Mvc/test/WebSites/ApiExplorerWebSite/WellKnownChangeToken.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ActionModelController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ActionModelController.cs index 11d885a73962..1480f17cb0ef 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ActionModelController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ActionModelController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ApplicationModelController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ApplicationModelController.cs index d9333559d307..362b2ca23304 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ApplicationModelController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ApplicationModelController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ControllerModelController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ControllerModelController.cs index bb94f37756f4..5c1453934fec 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ControllerModelController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ControllerModelController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/HomeController.cs index e5c526bb5673..1bd1669e38e0 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/LicenseController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/LicenseController.cs index ed428934f546..c3d4815a1ed2 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/LicenseController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/LicenseController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/MultipleAreasController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/MultipleAreasController.cs index d80475284b3a..710c79b315d4 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/MultipleAreasController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/MultipleAreasController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ParameterModelController.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ParameterModelController.cs index e276da511d9c..6a06fe08ad27 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ParameterModelController.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Controllers/ParameterModelController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ActionDescriptionAttribute.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ActionDescriptionAttribute.cs index 07df2be3ec04..8c3e20a58e25 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ActionDescriptionAttribute.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ActionDescriptionAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationModels; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ApplicationDescription.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ApplicationDescription.cs index 69835063769a..fe16c80391cb 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ApplicationDescription.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ApplicationDescription.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationModels; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionAttribute.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionAttribute.cs index b5a80c8e85eb..6e627bfdf756 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionAttribute.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionConvention.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionConvention.cs index 6ce7e6590880..efd0454a6b7e 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionConvention.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/CloneActionConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerDescriptionAttribute.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerDescriptionAttribute.cs index 8a1e98647d34..a4dbc52b2fee 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerDescriptionAttribute.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerDescriptionAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ApplicationModels; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerLicenseConvention.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerLicenseConvention.cs index b1a3ed90e3e1..938e34340850 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerLicenseConvention.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/ControllerLicenseConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationModels; @@ -9,9 +9,8 @@ public class ControllerLicenseConvention : IControllerModelConvention { public void Apply(ControllerModel controller) { - controller.Properties["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."; + controller.Properties["license"] = @"Licensed to the .NET Foundation under one or more agreements. +The .NET Foundation licenses this file to you under the MIT license."; } } } \ No newline at end of file diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/FromHeaderConvention.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/FromHeaderConvention.cs index 8cdd4489e07a..b19441936fb7 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/FromHeaderConvention.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/FromHeaderConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasAttribute.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasAttribute.cs index 181bf5e309be..491494fc0ddf 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasAttribute.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasControllerConvention.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasControllerConvention.cs index 9342bb8bc32e..894edcee31c9 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasControllerConvention.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Conventions/MultipleAreasControllerConvention.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/WebSites/ApplicationModelWebSite/Startup.cs b/src/Mvc/test/WebSites/ApplicationModelWebSite/Startup.cs index be51dac7130b..be7126ef8fb6 100644 --- a/src/Mvc/test/WebSites/ApplicationModelWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/ApplicationModelWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/BasicWebSite/ActionDescriptorCreationCounter.cs b/src/Mvc/test/WebSites/BasicWebSite/ActionDescriptorCreationCounter.cs index b865321f47ad..4cab78195b54 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/ActionDescriptorCreationCounter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/ActionDescriptorCreationCounter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_HomeController.cs b/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_HomeController.cs index fb4629b805ed..a756019fdfd0 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_HomeController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_VerifyController.cs b/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_VerifyController.cs index 223f8e5aedd1..eac3e32459e5 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_VerifyController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Areas/Area1/Controllers/RemoteAttribute_VerifyController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Areas/Area2/Controllers/RemoteAttribute_VerifyController.cs b/src/Mvc/test/WebSites/BasicWebSite/Areas/Area2/Controllers/RemoteAttribute_VerifyController.cs index 65cca2586051..bc24c5af8fec 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Areas/Area2/Controllers/RemoteAttribute_VerifyController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Areas/Area2/Controllers/RemoteAttribute_VerifyController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/BasicAuthenticationHandler.cs b/src/Mvc/test/WebSites/BasicWebSite/BasicAuthenticationHandler.cs index 0044e91259ee..edaeaeb1aa01 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/BasicAuthenticationHandler.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/BasicAuthenticationHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Security.Claims; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Components/PassThroughViewComponent.cs b/src/Mvc/test/WebSites/BasicWebSite/Components/PassThroughViewComponent.cs index e49606578fac..eff51b5d59a9 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Components/PassThroughViewComponent.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Components/PassThroughViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Components/ViewDataViewComponent.cs b/src/Mvc/test/WebSites/BasicWebSite/Components/ViewDataViewComponent.cs index 4e586ee1c934..d56b62a1357e 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Components/ViewDataViewComponent.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Components/ViewDataViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/ConfigureAuthPolicies.cs b/src/Mvc/test/WebSites/BasicWebSite/ConfigureAuthPolicies.cs index feb2cca8b53d..76387c942e7e 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/ConfigureAuthPolicies.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/ConfigureAuthPolicies.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Mvc/test/WebSites/BasicWebSite/ContactsRepository.cs b/src/Mvc/test/WebSites/BasicWebSite/ContactsRepository.cs index 49589b48afb1..5ece02825eb4 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/ContactsRepository.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/ContactsRepository.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_MediaTypeSuffix.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_MediaTypeSuffix.cs index a2cb0d616007..84b0460d56d6 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_MediaTypeSuffix.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_MediaTypeSuffix.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_NoFallBackActionController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_NoFallBackActionController.cs index eb9a0a610cd2..9d65b119e21a 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_NoFallBackActionController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_NoFallBackActionController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesBaseController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesBaseController.cs index 426c02240e5b..f830fe076bda 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesBaseController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesBaseController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesController.cs index d2c64f8b21d7..536c4c655ccb 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_OveridesController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_PassThroughController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_PassThroughController.cs index a689368d0abf..f6a8211d2f44 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_PassThroughController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_PassThroughController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_WithFallbackActionController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_WithFallbackActionController.cs index c2332699add4..1a3343bc6b1f 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_WithFallbackActionController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionConstraints/ConsumesAttribute_WithFallbackActionController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionResultOfTController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionResultOfTController.cs index d6fb9607ab6f..86facc96366d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionResultOfTController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ActionResultOfTController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AntiforgeryController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AntiforgeryController.cs index 415a34ba4619..06e584b66790 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AntiforgeryController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AntiforgeryController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Filters; using BasicWebSite.Models; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncActionsController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncActionsController.cs index a870daab5167..173e1a1d5ed8 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncActionsController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncActionsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncDisposableController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncDisposableController.cs index 338ba2b178db..ab29d261c470 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncDisposableController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AsyncDisposableController.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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AuthorizeUserController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AuthorizeUserController.cs index 6de9d484de4e..abb147a23649 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/AuthorizeUserController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/AuthorizeUserController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesController.cs index 0ed0ebf5d4ed..86837fb1c5e3 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesSupportsGetController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesSupportsGetController.cs index b4220801ed99..2ca6305029ce 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesSupportsGetController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesSupportsGetController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesWithValidationController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesWithValidationController.cs index 810226de2bfb..ee900a053af5 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesWithValidationController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/BindPropertiesWithValidationController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContactApiController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContactApiController.cs index d333df973fd4..146cc4ee4938 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContactApiController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContactApiController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ContentNegotiationController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ContentNegotiationController.cs index 7227e77944db..5a07f79a4d6c 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ContentNegotiationController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ContentNegotiationController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FallbackOnTypeBasedMatchController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FallbackOnTypeBasedMatchController.cs index 929c81e0f33d..0f4de75de67b 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FallbackOnTypeBasedMatchController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FallbackOnTypeBasedMatchController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using BasicWebSite.Formatters; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FormatFilterController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FormatFilterController.cs index ec617bdf3ead..f0af847d29ed 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FormatFilterController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/FormatFilterController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Formatters; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/InvalidContentTypeController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/InvalidContentTypeController.cs index 82b2a7fb99bf..b0e656940976 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/InvalidContentTypeController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/InvalidContentTypeController.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.Mvc; namespace BasicWebSite.Controllers.ContentNegotiation diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentController.cs index c0882c99d4c6..db4b3f48d8ed 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentDoNotTreatNullValueAsNoContentController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentDoNotTreatNullValueAsNoContentController.cs index 5ce41a0b476c..127853569815 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentDoNotTreatNullValueAsNoContentController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoContentDoNotTreatNullValueAsNoContentController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoProducesContentOnClassController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoProducesContentOnClassController.cs index 31c7bd66af81..a3b2a71f8b9c 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoProducesContentOnClassController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NoProducesContentOnClassController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Formatters; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NormalController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NormalController.cs index e06937eff1bf..70dfb1d26ac3 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NormalController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/NormalController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Buffers; using BasicWebSite.Formatters; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentBaseController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentBaseController.cs index 5ffa16fa9e78..528489f24e90 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentBaseController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentBaseController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Formatters; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentOnClassController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentOnClassController.cs index 3fdc37844cd2..76e75dfd1132 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentOnClassController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesContentOnClassController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Formatters; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesJsonController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesJsonController.cs index 1d0fe2b002b8..73fb31f2ab58 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesJsonController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesJsonController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeParametersController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeParametersController.cs index 510c0ce725f3..03c0be966b60 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeParametersController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeParametersController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Formatters; using BasicWebSite.Models; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeSuffixesController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeSuffixesController.cs index fcd9b973d9f2..3e9e6fe1191e 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeSuffixesController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/ProducesWithMediaTypeSuffixesController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/TextPlainController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/TextPlainController.cs index 08450ef53b9c..3daa3261c75a 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/TextPlainController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ContentNegotiation/TextPlainController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/DefaultValuesController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/DefaultValuesController.cs index 3bf963c3ebe9..e8553ceebf82 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/DefaultValuesController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/DefaultValuesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/FiltersController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/FiltersController.cs index 75addb6f6bd5..459ce5218fad 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/FiltersController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/FiltersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/HomeController.cs index 802d73829750..4bb4b92d7188 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithNewtonsoftJsonController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithNewtonsoftJsonController.cs index 47f2616b1cfd..76d37558c2f3 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithNewtonsoftJsonController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithNewtonsoftJsonController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.NewtonsoftJson; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithSystemTextJsonController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithSystemTextJsonController.cs index 28362c511d9d..33dc1a6ac7d4 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithSystemTextJsonController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/JsonResultWithSystemTextJsonController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/LinksController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/LinksController.cs index 990fdc3ebb9f..7c98e70ec846 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/LinksController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/LinksController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/OrdersController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/OrdersController.cs index a25fc4daf835..86e1b7d8fa05 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/OrdersController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/OrdersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/ProductsController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/ProductsController.cs index 4f2571ef4c53..626b2325529e 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/ProductsController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/LinkGeneration/ProductsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/MonitorController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/MonitorController.cs index 5732b9ac4dd2..3bad210b8a00 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/MonitorController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/MonitorController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/NonNullableController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/NonNullableController.cs index 881706e9eb92..be765d40275e 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/NonNullableController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/NonNullableController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. #nullable enable using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/PageRouteController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/PageRouteController.cs index 2f2073be0699..bea7c2597697 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/PageRouteController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/PageRouteController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/PassThroughController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/PassThroughController.cs index d1101b2f7624..8633108732ef 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/PassThroughController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/PassThroughController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Components; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RazorComponentsController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RazorComponentsController.cs index 6b094048387c..89af8dff14e0 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RazorComponentsController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RazorComponentsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ReadFromThrowingRequestBodyController .cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ReadFromThrowingRequestBodyController .cs index 07c2c04e4849..d9ecf35fee35 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ReadFromThrowingRequestBodyController .cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ReadFromThrowingRequestBodyController .cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_HomeController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_HomeController.cs index 5e75011496a4..7366344027a0 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_HomeController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_VerifyController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_VerifyController.cs index ab027927fde5..66a1f0c67abe 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_VerifyController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RemoteAttribute_VerifyController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestFormLimitsController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestFormLimitsController.cs index 5bca108bbf7b..dcf408b2ebfb 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestFormLimitsController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestFormLimitsController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestScopedServiceController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestScopedServiceController.cs index a7bd55221703..9382e08da886 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestScopedServiceController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestScopedServiceController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestSizeLimitController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestSizeLimitController.cs index 535ba80889a9..547d34013925 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestSizeLimitController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RequestSizeLimitController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RoutingController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RoutingController.cs index d20cbfd2a988..dba4a42cd71c 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/RoutingController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/RoutingController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/SqlDataController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/SqlDataController.cs index b11d6116f6be..31285fd67181 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/SqlDataController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/SqlDataController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataController.cs index 0753a3221af7..c194161c184a 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataPropertyController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataPropertyController.cs index 75994f0b1a8b..d71a29f2f0cf 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataPropertyController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/TempDataPropertyController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/TestingController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/TestingController.cs index bf9a2cf5c535..b1ad3c9ad642 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/TestingController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/TestingController.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.Globalization; using System.Linq; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/UsersController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/UsersController.cs index 69f4f9d2bf15..eb2de115c6de 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/UsersController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/UsersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ViewDataPropertyController.cs b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ViewDataPropertyController.cs index 4041c8ffdb99..f2b9443fc3e2 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Controllers/ViewDataPropertyController.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Controllers/ViewDataPropertyController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using BasicWebSite.Components; using BasicWebSite.Models; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Conventions/ApplicationDescription.cs b/src/Mvc/test/WebSites/BasicWebSite/Conventions/ApplicationDescription.cs index 682eefac88fc..629629dbdb93 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Conventions/ApplicationDescription.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Conventions/ApplicationDescription.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationModels; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/RedirectAntiforgeryValidationFailedResultFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/RedirectAntiforgeryValidationFailedResultFilter.cs index ca7c61781bd1..a54a8939f369 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/RedirectAntiforgeryValidationFailedResultFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/RedirectAntiforgeryValidationFailedResultFilter.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Mvc; +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Core.Infrastructure; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/RequestIdService.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/RequestIdService.cs index 5b294796bd4e..685a346dfc99 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/RequestIdService.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/RequestIdService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/ServiceActionFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/ServiceActionFilter.cs index 68f002cab238..b4bfbb103c9c 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/ServiceActionFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/ServiceActionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/TestExceptionFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/TestExceptionFilter.cs index 592d36dcd266..0fff70d551e6 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/TestExceptionFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/TestExceptionFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceOutputResultFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceOutputResultFilter.cs index 91c3b8d4b033..1a189a2e2a31 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceOutputResultFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceOutputResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceResourceFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceResourceFilter.cs index 2a2196d47a7d..a09d64359388 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceResourceFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/TraceResourceFilter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Filters/UnprocessableResultFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/Filters/UnprocessableResultFilter.cs index ac85a6fc907f..b073849493b5 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Filters/UnprocessableResultFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Filters/UnprocessableResultFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Formatters/CustomFormatter.cs b/src/Mvc/test/WebSites/BasicWebSite/Formatters/CustomFormatter.cs index 61274b871671..1d04cfd2c7ec 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Formatters/CustomFormatter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Formatters/CustomFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Formatters/PlainTextFormatter.cs b/src/Mvc/test/WebSites/BasicWebSite/Formatters/PlainTextFormatter.cs index 5978642deebd..c629a2d308ca 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Formatters/PlainTextFormatter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Formatters/PlainTextFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V3.cs b/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V3.cs index 96b8471e35b9..2aac52cf5600 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V3.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V3.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V4.cs b/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V4.cs index 25a0f166573d..c2ba0839c972 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V4.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Formatters/VCardFormatter_V4.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/BasicWebSite/LocalizationPipeline.cs b/src/Mvc/test/WebSites/BasicWebSite/LocalizationPipeline.cs index 9273dbcbaa55..9203546ab445 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/LocalizationPipeline.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/LocalizationPipeline.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/BasicWebSite/ManagerHandler.cs b/src/Mvc/test/WebSites/BasicWebSite/ManagerHandler.cs index b681e2175719..04f6802b045d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/ManagerHandler.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/ManagerHandler.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/Contact.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/Contact.cs index a6514e7e1027..cd04b6818bf2 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/Contact.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/Contact.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/GenderType.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/GenderType.cs index 850c5477c7f6..eab35ca23398 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/GenderType.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/GenderType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicWebSite.Models { diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/LoginViewModel.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/LoginViewModel.cs index 6e524a3b70be..6698d66415ef 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/LoginViewModel.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/LoginViewModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/Person.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/Person.cs index 7fec349f3464..ff3c732309e3 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/Person.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/Person.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicWebSite.Models { diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/Product.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/Product.cs index f3bffd90cda1..a56b8997c2f1 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/Product.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/Product.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Json.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Json.cs index c7c15d5af06b..7de1929f430f 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Json.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Json.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicWebSite.Models { diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Xml.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Xml.cs index 09e216e4adac..3cc58dc5ed27 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Xml.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/Product_Xml.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicWebSite.Models { diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/Product_text.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/Product_text.cs index dc78b3edd224..e4486b1edfc7 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/Product_text.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/Product_text.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace BasicWebSite.Models { diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/RemoteAttributeUser.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/RemoteAttributeUser.cs index 754e0a521246..ae239796645d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/RemoteAttributeUser.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/RemoteAttributeUser.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Models/User.cs b/src/Mvc/test/WebSites/BasicWebSite/Models/User.cs index 7c2b6655cbab..34f317a0245d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Models/User.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Models/User.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Operations.cs b/src/Mvc/test/WebSites/BasicWebSite/Operations.cs index 2ce19488c036..9dd65f425312 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Operations.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Operations.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization.Infrastructure; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Program.cs b/src/Mvc/test/WebSites/BasicWebSite/Program.cs index 88a390d4223c..8e7ad26624ce 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Program.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/BasicWebSite/RequestIdMiddleware.cs b/src/Mvc/test/WebSites/BasicWebSite/RequestIdMiddleware.cs index 7fb4d9c8079b..201d91caa51b 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/RequestIdMiddleware.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/RequestIdMiddleware.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/RequestIdViewComponent.cs b/src/Mvc/test/WebSites/BasicWebSite/RequestIdViewComponent.cs index 4ba0f7937ebf..97fc71f17c44 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/RequestIdViewComponent.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/RequestIdViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/RequestScopedActionConstraint.cs b/src/Mvc/test/WebSites/BasicWebSite/RequestScopedActionConstraint.cs index e5ee7b03f0cc..7c1f43ec73e6 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/RequestScopedActionConstraint.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/RequestScopedActionConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/Mvc/test/WebSites/BasicWebSite/RequestScopedFilter.cs b/src/Mvc/test/WebSites/BasicWebSite/RequestScopedFilter.cs index 033cddbbc71c..35e765fcbe4a 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/RequestScopedFilter.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/RequestScopedFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/RequestScopedTagHelper.cs b/src/Mvc/test/WebSites/BasicWebSite/RequestScopedTagHelper.cs index f1fcff36236f..bd0b1fa00613 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/RequestScopedTagHelper.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/RequestScopedTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Services/WeatherForecastService.cs b/src/Mvc/test/WebSites/BasicWebSite/Services/WeatherForecastService.cs index 5491c579ec9f..4e326097f7bf 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Services/WeatherForecastService.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Services/WeatherForecastService.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/Startup.cs b/src/Mvc/test/WebSites/BasicWebSite/Startup.cs index ad0aa1bbdd75..29afe246091d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupRequestLimitSize.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupRequestLimitSize.cs index f8ce10236295..0332a34d760d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupRequestLimitSize.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupRequestLimitSize.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWhereReadingRequestBodyThrows.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWhereReadingRequestBodyThrows.cs index 2e3e2f1b9da5..9dfce09b4d28 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWhereReadingRequestBodyThrows.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWhereReadingRequestBodyThrows.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWithCookieTempDataProviderAndCookieConsent.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWithCookieTempDataProviderAndCookieConsent.cs index a80d41d673ff..e4e183bc8d5f 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWithCookieTempDataProviderAndCookieConsent.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWithCookieTempDataProviderAndCookieConsent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWithCustomInvalidModelStateFactory.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWithCustomInvalidModelStateFactory.cs index 90ef21416e8d..7355e4444820 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWithCustomInvalidModelStateFactory.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWithCustomInvalidModelStateFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Authentication; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWithNewtonsoftJson.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWithNewtonsoftJson.cs index eee75bb925a5..0ee0dad2d24e 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWithNewtonsoftJson.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWithNewtonsoftJson.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWithSessionTempDataProvider.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWithSessionTempDataProvider.cs index ab9192a61f34..9c0b1007bae7 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWithSessionTempDataProvider.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWithSessionTempDataProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWithSystemTextJson.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWithSystemTextJson.cs index 04601e20a0e8..6bf0cb0f5533 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWithSystemTextJson.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWithSystemTextJson.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StartupWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/BasicWebSite/StartupWithoutEndpointRouting.cs index 3a979735267a..2579d81152cc 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StartupWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/BasicWebSite/StoreIntoTempDataActionResult.cs b/src/Mvc/test/WebSites/BasicWebSite/StoreIntoTempDataActionResult.cs index 38c7b3a31d1a..6fc549edcddd 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/StoreIntoTempDataActionResult.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/StoreIntoTempDataActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/BasicWebSite/VndErrorAttribute.cs b/src/Mvc/test/WebSites/BasicWebSite/VndErrorAttribute.cs index c5b3f973e5de..f55e68bc650d 100644 --- a/src/Mvc/test/WebSites/BasicWebSite/VndErrorAttribute.cs +++ b/src/Mvc/test/WebSites/BasicWebSite/VndErrorAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/Common/TestResponseGenerator.cs b/src/Mvc/test/WebSites/Common/TestResponseGenerator.cs index 21d97865c5b4..235f725d996d 100644 --- a/src/Mvc/test/WebSites/Common/TestResponseGenerator.cs +++ b/src/Mvc/test/WebSites/Common/TestResponseGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ClientUIStubController.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ClientUIStubController.cs index 62564175d59f..b1da78f4a151 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ClientUIStubController.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ClientUIStubController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllerWithConstructorInjection.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllerWithConstructorInjection.cs index 12beb114fab0..1a5d48f9faa6 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllerWithConstructorInjection.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ControllerWithConstructorInjection.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Routing; @@ -27,9 +27,9 @@ public IActionResult Index() var urlHelper = UrlHelperFactory.GetUrlHelper(ActionContext); var content = string.Join( - " ", - urlHelper.Action(), - QueryService.GetValue(), + " ", + urlHelper.Action(), + QueryService.GetValue(), ActionContext.HttpContext.Request.Headers["Test-Header"]); return new ContentResult { Content = content }; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/EmployeeRecords.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/EmployeeRecords.cs index 840e891e9770..96c88ca9658a 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/EmployeeRecords.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/EmployeeRecords.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/GenericController.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/GenericController.cs index e0d5cebd8882..8f6664a52e70 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/GenericController.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/GenericController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/Inventory.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/Inventory.cs index 491994140c8f..c814deea657b 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/Inventory.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/Inventory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/NestedControllerOwner.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/NestedControllerOwner.cs index 0ece0dc75c87..54c78d619e07 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/NestedControllerOwner.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/NestedControllerOwner.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/QueryValueService.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/QueryValueService.cs index 6b4a752f6ab1..287d58fd2a6f 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/QueryValueService.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/QueryValueService.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Hosting; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ResourcesController.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ResourcesController.cs index 779e9f4ffc64..506c797f3277 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ResourcesController.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/ResourcesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/TimeScheduleController.cs b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/TimeScheduleController.cs index c44e7548bb4f..93e8eba3b6db 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/TimeScheduleController.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesClassLibrary/TimeScheduleController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/AnotherController.cs b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/AnotherController.cs index 28343ab5048c..81fb0d714a7d 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/AnotherController.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/AnotherController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Components/ComponentFromServicesViewComponent.cs b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Components/ComponentFromServicesViewComponent.cs index 54901d4fbbc0..5ee934a3096d 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Components/ComponentFromServicesViewComponent.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Components/ComponentFromServicesViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/NotInServicesController.cs b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/NotInServicesController.cs index ff89bb3f1c04..13ef2c20863c 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/NotInServicesController.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/NotInServicesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Startup.cs b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Startup.cs index 4193dac080d3..6a4ed9a856e1 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/TagHelpers/InServicesTagHelper.cs b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/TagHelpers/InServicesTagHelper.cs index dcb6be2efdda..2c511d71953d 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/TagHelpers/InServicesTagHelper.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/TagHelpers/InServicesTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ValueService.cs b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ValueService.cs index f08089282baf..fb771955095a 100644 --- a/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ValueService.cs +++ b/src/Mvc/test/WebSites/ControllersFromServicesWebSite/ValueService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace ControllersFromServicesWebSite { diff --git a/src/Mvc/test/WebSites/CorsWebSite/Controllers/BlogController.cs b/src/Mvc/test/WebSites/CorsWebSite/Controllers/BlogController.cs index 96aa4f77f034..f0a4cccd28c8 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/Controllers/BlogController.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/Controllers/BlogController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Cors; diff --git a/src/Mvc/test/WebSites/CorsWebSite/Controllers/CustomerController.cs b/src/Mvc/test/WebSites/CorsWebSite/Controllers/CustomerController.cs index af6a3369c50d..2b4fbcdb6590 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/Controllers/CustomerController.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/Controllers/CustomerController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Cors; diff --git a/src/Mvc/test/WebSites/CorsWebSite/Controllers/StoreController.cs b/src/Mvc/test/WebSites/CorsWebSite/Controllers/StoreController.cs index ec4dd879d96b..722d9d0b7388 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/Controllers/StoreController.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/Controllers/StoreController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Cors; diff --git a/src/Mvc/test/WebSites/CorsWebSite/Filters/AllRequestsBlockingAuthorizationFilter.cs b/src/Mvc/test/WebSites/CorsWebSite/Filters/AllRequestsBlockingAuthorizationFilter.cs index 02c1c27207e9..946fd1adf6ca 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/Filters/AllRequestsBlockingAuthorizationFilter.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/Filters/AllRequestsBlockingAuthorizationFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/CorsWebSite/Program.cs b/src/Mvc/test/WebSites/CorsWebSite/Program.cs index b58c5ff2f47c..6f20012732c6 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/Program.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/CorsWebSite/Startup.cs b/src/Mvc/test/WebSites/CorsWebSite/Startup.cs index de821da8621a..5ce81277e291 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Cors.Infrastructure; diff --git a/src/Mvc/test/WebSites/CorsWebSite/StartupWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/CorsWebSite/StartupWithoutEndpointRouting.cs index 0ab34118f075..94ed10621c29 100644 --- a/src/Mvc/test/WebSites/CorsWebSite/StartupWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/CorsWebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/AggregateExceptionController.cs b/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/AggregateExceptionController.cs index b648318cb0aa..bab97471c06a 100644 --- a/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/AggregateExceptionController.cs +++ b/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/AggregateExceptionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/ErrorPageMiddlewareController.cs b/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/ErrorPageMiddlewareController.cs index ba17eca5f88f..286a22cae869 100644 --- a/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/ErrorPageMiddlewareController.cs +++ b/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/ErrorPageMiddlewareController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/Startup.cs b/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/Startup.cs index 39143c0bf3c2..529482da7881 100644 --- a/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/ErrorPageMiddlewareWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/FilesWebSite/Controllers/DownloadFilesController.cs b/src/Mvc/test/WebSites/FilesWebSite/Controllers/DownloadFilesController.cs index 27b8dbfe5b91..33a60875fa83 100644 --- a/src/Mvc/test/WebSites/FilesWebSite/Controllers/DownloadFilesController.cs +++ b/src/Mvc/test/WebSites/FilesWebSite/Controllers/DownloadFilesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Mvc/test/WebSites/FilesWebSite/Controllers/EmbeddedFilesController.cs b/src/Mvc/test/WebSites/FilesWebSite/Controllers/EmbeddedFilesController.cs index 64e834742d28..5991a4ae66d6 100644 --- a/src/Mvc/test/WebSites/FilesWebSite/Controllers/EmbeddedFilesController.cs +++ b/src/Mvc/test/WebSites/FilesWebSite/Controllers/EmbeddedFilesController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Reflection; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FilesWebSite/Controllers/UploadFilesController.cs b/src/Mvc/test/WebSites/FilesWebSite/Controllers/UploadFilesController.cs index 3797be526967..b9df432b2fad 100644 --- a/src/Mvc/test/WebSites/FilesWebSite/Controllers/UploadFilesController.cs +++ b/src/Mvc/test/WebSites/FilesWebSite/Controllers/UploadFilesController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Collections.Generic; diff --git a/src/Mvc/test/WebSites/FilesWebSite/Models/Product.cs b/src/Mvc/test/WebSites/FilesWebSite/Models/Product.cs index 8d8921d1b0a0..66cb4db73697 100644 --- a/src/Mvc/test/WebSites/FilesWebSite/Models/Product.cs +++ b/src/Mvc/test/WebSites/FilesWebSite/Models/Product.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/FilesWebSite/Models/User.cs b/src/Mvc/test/WebSites/FilesWebSite/Models/User.cs index 76b32c6ae840..e80b82c3629e 100644 --- a/src/Mvc/test/WebSites/FilesWebSite/Models/User.cs +++ b/src/Mvc/test/WebSites/FilesWebSite/Models/User.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/FilesWebSite/Startup.cs b/src/Mvc/test/WebSites/FilesWebSite/Startup.cs index 7b7cb6aa91ae..65de42cd0b78 100644 --- a/src/Mvc/test/WebSites/FilesWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/FilesWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/AsyncEnumerableController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/AsyncEnumerableController.cs index 864e385c7638..584346eb5f2e 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/AsyncEnumerableController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/AsyncEnumerableController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DataContractSerializerController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DataContractSerializerController.cs index 0eaab3d11bf3..3af622e39a0d 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DataContractSerializerController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DataContractSerializerController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DoNotRespectBrowserAcceptHeaderController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DoNotRespectBrowserAcceptHeaderController.cs index 1684348e27e6..bbb987e54706 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DoNotRespectBrowserAcceptHeaderController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/DoNotRespectBrowserAcceptHeaderController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/HomeController.cs index 885374699480..c22d8f6a495f 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/InputFormatterController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/InputFormatterController.cs index 8d81f010ca7a..e7a08ee2eb1b 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/InputFormatterController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/InputFormatterController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonFormatterController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonFormatterController.cs index fbb2b6d1748c..e5baa09348d4 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonFormatterController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonFormatterController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Buffers; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonInputFormatterController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonInputFormatterController.cs index ccd6ca3e36a6..d8893f8ac226 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonInputFormatterController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonInputFormatterController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonOutputFormatterController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonOutputFormatterController.cs index 67ae87d4829e..7daa6bd23d13 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonOutputFormatterController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonOutputFormatterController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonPatchController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonPatchController.cs index 634388bc255c..9884813a7d9c 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonPatchController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/JsonPatchController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.JsonPatch; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicBindingController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicBindingController.cs index 9358ec50d62d..57f679f1c138 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicBindingController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicBindingController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using FormatterWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs index 2d428f9f4f46..9c74827f25a0 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using FormatterWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/RespectBrowserAcceptHeaderController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/RespectBrowserAcceptHeaderController.cs index d5b95b30d41b..ccd9e4de95bb 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/RespectBrowserAcceptHeaderController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/RespectBrowserAcceptHeaderController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/SerializableErrorController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/SerializableErrorController.cs index d40115fb86e0..2198ac0444d1 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/SerializableErrorController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/SerializableErrorController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/StreamController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/StreamController.cs index 7856d5adfaf0..015e3d300ebb 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/StreamController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/StreamController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TestApiController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TestApiController.cs index 832a5917c688..bc2c28ed851b 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TestApiController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TestApiController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using FormatterWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TopLevelValidationController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TopLevelValidationController.cs index 92b27adaf47c..b33ac9489be5 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TopLevelValidationController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/TopLevelValidationController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/ValidationController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/ValidationController.cs index 997bdf4b2db6..07a5ea5b03e4 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/ValidationController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/ValidationController.cs @@ -1,5 +1,5 @@ -// 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. +// 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 FormatterWebSite.Models; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/XmlSerializerController.cs b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/XmlSerializerController.cs index 0fffe773eefe..7a8b59b3b151 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Controllers/XmlSerializerController.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Controllers/XmlSerializerController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Filters/ModelStateValidationFilterAttribute.cs b/src/Mvc/test/WebSites/FormatterWebSite/Filters/ModelStateValidationFilterAttribute.cs index 12f5ec0fcb7f..8dd105ba29c9 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Filters/ModelStateValidationFilterAttribute.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Filters/ModelStateValidationFilterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/IModelConverter.cs b/src/Mvc/test/WebSites/FormatterWebSite/IModelConverter.cs index 1ce4131f173d..fe8f845dac37 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/IModelConverter.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/IModelConverter.cs @@ -1,5 +1,5 @@ -// 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. +// 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 FormatterWebSite.Models; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/BaseModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/BaseModel.cs index b7b6567b1e9b..b208d7f4fd46 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/BaseModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/BaseModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace FormatterWebSite.Models { diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/BookModelWithNoValidation.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/BookModelWithNoValidation.cs index ad13253e0310..571a4743eb77 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/BookModelWithNoValidation.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/BookModelWithNoValidation.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.Serialization; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedDummyClass.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedDummyClass.cs index 278056afdf18..ad287f9cd645 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedDummyClass.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedDummyClass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace FormatterWebSite { diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedModel.cs index 2b10ac357a8a..eb6ae5abbe5c 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/DerivedModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/Developer.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/Developer.cs index 4b7195f8cb68..edb311b252c2 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/Developer.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/Developer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/DummyClass.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/DummyClass.cs index 6d052682e2a8..0edc2611216d 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/DummyClass.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/DummyClass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; using System.Xml.Serialization; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/Employee.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/Employee.cs index 99c1ca8ef165..a7c52539e681 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/Employee.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/Employee.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/ErrorInfo.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/ErrorInfo.cs index c14c6d49807d..cdb9405bddc4 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/ErrorInfo.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/ErrorInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/IModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/IModel.cs index ce6e4b6d9b53..b77a2f4b4324 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/IModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/IModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace FormatterWebSite.Models { diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/InfinitelyRecursiveModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/InfinitelyRecursiveModel.cs index 370151143ed3..2f3c7c3147ff 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/InfinitelyRecursiveModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/InfinitelyRecursiveModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Newtonsoft.Json; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/InvalidModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/InvalidModel.cs index deda9398a328..2aaa5bc10bbe 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/InvalidModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/InvalidModel.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace FormatterWebSite.Models diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/Person.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/Person.cs index d84da1c2c742..5a21dd151384 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/Person.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/Person.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/Product.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/Product.cs index ed14c8f0f8c8..e34c3eb24957 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/Product.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/Product.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/Project.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/Project.cs index d3e53f0d175e..1688c170fb2f 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/Project.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/Project.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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/RecursiveIdentifier.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/RecursiveIdentifier.cs index 49351cb7c50d..79161504fd68 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/RecursiveIdentifier.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/RecursiveIdentifier.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/Review.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/Review.cs index dc8ad3027150..e4d1e146d721 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/Review.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/Review.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace FormatterWebSite { diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/SimpleTypePropertiesModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/SimpleTypePropertiesModel.cs index 878e465186e4..4dc743702ad9 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/SimpleTypePropertiesModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/SimpleTypePropertiesModel.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.ComponentModel.DataAnnotations; namespace FormatterWebSite diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/User.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/User.cs index 80952139f0f8..871985ac6aeb 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/User.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/User.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Models/ValidationProviderAttributeModel.cs b/src/Mvc/test/WebSites/FormatterWebSite/Models/ValidationProviderAttributeModel.cs index 05a3a0da75d9..20e59754da4c 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Models/ValidationProviderAttributeModel.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Models/ValidationProviderAttributeModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; @@ -16,7 +16,7 @@ public class ValidationProviderAttributeModel [LastName] public string LastName { get; set; } } - + public class FirstNameAttribute : ValidationProviderAttribute { public override IEnumerable GetValidationAttributes() diff --git a/src/Mvc/test/WebSites/FormatterWebSite/PolymorphicBinder.cs b/src/Mvc/test/WebSites/FormatterWebSite/PolymorphicBinder.cs index e7eefb71c2c3..ede2e6d0288f 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/PolymorphicBinder.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/PolymorphicBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using FormatterWebSite.Models; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Program.cs b/src/Mvc/test/WebSites/FormatterWebSite/Program.cs index 16c54a70dc81..008b2e3ffea5 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Program.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/Startup.cs b/src/Mvc/test/WebSites/FormatterWebSite/Startup.cs index b25ebaeffd61..c5e7e29202d7 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/StartupWithComplexParentValidation.cs b/src/Mvc/test/WebSites/FormatterWebSite/StartupWithComplexParentValidation.cs index 8def682f3c63..b0bf84c788e6 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/StartupWithComplexParentValidation.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/StartupWithComplexParentValidation.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/StartupWithJsonInputFormatter.cs b/src/Mvc/test/WebSites/FormatterWebSite/StartupWithJsonInputFormatter.cs index 546b6c065edf..8d0bdacdbea7 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/StartupWithJsonInputFormatter.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/StartupWithJsonInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/StartupWithRespectBrowserAcceptHeader.cs b/src/Mvc/test/WebSites/FormatterWebSite/StartupWithRespectBrowserAcceptHeader.cs index 5459a54b36b6..e93d334c9972 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/StartupWithRespectBrowserAcceptHeader.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/StartupWithRespectBrowserAcceptHeader.cs @@ -1,5 +1,5 @@ -// 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. +// 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.DependencyInjection; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/StringInputFormatter.cs b/src/Mvc/test/WebSites/FormatterWebSite/StringInputFormatter.cs index 746b1ea569a8..63f9227be34a 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/StringInputFormatter.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/StringInputFormatter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text; diff --git a/src/Mvc/test/WebSites/FormatterWebSite/ValidateBodyParameterAttribute.cs b/src/Mvc/test/WebSites/FormatterWebSite/ValidateBodyParameterAttribute.cs index 0be7c1fc33aa..cd9f507d2f33 100644 --- a/src/Mvc/test/WebSites/FormatterWebSite/ValidateBodyParameterAttribute.cs +++ b/src/Mvc/test/WebSites/FormatterWebSite/ValidateBodyParameterAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/GenericHostWebSite/Controllers/TestingController.cs b/src/Mvc/test/WebSites/GenericHostWebSite/Controllers/TestingController.cs index 9a35c53cdbf3..e1ee7bb4c668 100644 --- a/src/Mvc/test/WebSites/GenericHostWebSite/Controllers/TestingController.cs +++ b/src/Mvc/test/WebSites/GenericHostWebSite/Controllers/TestingController.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.Globalization; using System.Linq; diff --git a/src/Mvc/test/WebSites/GenericHostWebSite/Program.cs b/src/Mvc/test/WebSites/GenericHostWebSite/Program.cs index 81389a14946d..deb71d6d60b9 100644 --- a/src/Mvc/test/WebSites/GenericHostWebSite/Program.cs +++ b/src/Mvc/test/WebSites/GenericHostWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/GenericHostWebSite/Startup.cs b/src/Mvc/test/WebSites/GenericHostWebSite/Startup.cs index 65c51572dfc4..bd0d24b1a754 100644 --- a/src/Mvc/test/WebSites/GenericHostWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/GenericHostWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Areas/Customer/Controllers/HtmlGeneration_CustomerController.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Areas/Customer/Controllers/HtmlGeneration_CustomerController.cs index b1d021a62a16..3135d2392f8a 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Areas/Customer/Controllers/HtmlGeneration_CustomerController.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Areas/Customer/Controllers/HtmlGeneration_CustomerController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData - LackModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData - LackModel.cs index b7e4668c5b55..db30de9f975b 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData - LackModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData - LackModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using HtmlGenerationWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData.cs index 038d900db5c0..d2d5b39fbf5f 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/CheckViewData.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding.Metadata; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/SplashViewComponent.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/SplashViewComponent.cs index 2edc2c7b6fbf..e7c9b38d40e2 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/SplashViewComponent.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Components/SplashViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/Catalog_CacheTagHelperController.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/Catalog_CacheTagHelperController.cs index d72098f43fed..4223ab825332 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/Catalog_CacheTagHelperController.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/Catalog_CacheTagHelperController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Security.Claims; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/CheckViewData.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/CheckViewData.cs index ade765425d7c..a7f0ae227e8a 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/CheckViewData.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/CheckViewData.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using HtmlGenerationWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_HomeController.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_HomeController.cs index 184055fb7507..bcb9fb59e1b5 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_HomeController.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_OrderController.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_OrderController.cs index 0862ee8c81ac..fc528d9f829c 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_OrderController.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_OrderController.cs @@ -1,5 +1,5 @@ -// 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. +// 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 HtmlGenerationWebSite.Models; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_ProductController.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_ProductController.cs index 8c5751e4e306..9751046b37e9 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_ProductController.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_ProductController.cs @@ -1,5 +1,5 @@ -// 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. +// 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 HtmlGenerationWebSite.Models; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_WeirdExpressions.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_WeirdExpressions.cs index 7281b6cce1b9..70e3343d610a 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_WeirdExpressions.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Controllers/HtmlGeneration_WeirdExpressions.cs @@ -1,5 +1,5 @@ -// 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. +// 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 HtmlGenerationWebSite.Models; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/ISignalTokenProviderService.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/ISignalTokenProviderService.cs index 370bc89ca0e7..98f1702c5bd6 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/ISignalTokenProviderService.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/ISignalTokenProviderService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Primitives; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/AClass.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/AClass.cs index 23d303548808..bbd109c5afd1 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/AClass.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/AClass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Customer.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Customer.cs index 202611dfb807..3f1e9fada9a1 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Customer.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Customer.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/CustomerRecord.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/CustomerRecord.cs index d131f08484af..e119b64a0d6f 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/CustomerRecord.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/CustomerRecord.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/DayOfWeek.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/DayOfWeek.cs index 059df041de30..64116f182648 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/DayOfWeek.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/DayOfWeek.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Employee.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Employee.cs index cb9a0e407898..373f5b2414f6 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Employee.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Employee.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Folder.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Folder.cs index 5913299e3b1c..873c7eb3d7d4 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Folder.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Folder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Gender.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Gender.cs index b6d83253a4b9..c64ae85e1b80 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Gender.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Gender.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Item.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Item.cs index 60de1684c2ea..b04f3f5c7603 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Item.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Item.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Month.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Month.cs index 23b936a5337e..fc87980a2555 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Month.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Month.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Order.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Order.cs index 7110fde81a62..7c2f67713b95 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Order.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Order.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/PartialModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/PartialModel.cs index 5cb34225cd6b..58015078aee6 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/PartialModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/PartialModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Person.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Person.cs index d53521c3067b..d85370d9bd9a 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Person.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Person.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Product.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Product.cs index 9a70476b3393..338bf5602f03 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Product.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Product.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ProductRecommendations.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ProductRecommendations.cs index 648a541751d5..9e38b6fe394d 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ProductRecommendations.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ProductRecommendations.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/StatusMessageModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/StatusMessageModel.cs index 62161e05cc71..b790698ec288 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/StatusMessageModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/StatusMessageModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperTemplateModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperTemplateModel.cs index e599bddc03e3..54bd802d4891 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperTemplateModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperTemplateModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperViewModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperViewModel.cs index 540cda73d554..cf09ed875e61 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperViewModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/SuperViewModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/TemplateModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/TemplateModel.cs index f2e5f9f53031..ab044ce9e1d6 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/TemplateModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/TemplateModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ValidationProviderAttributeModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ValidationProviderAttributeModel.cs index 4c6669f060c5..654f4dd609ed 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ValidationProviderAttributeModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ValidationProviderAttributeModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ViewModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ViewModel.cs index 564502b91d58..832b5878b0fb 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ViewModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ViewModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace HtmlGenerationWebSite.Models { diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Warehouse.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Warehouse.cs index fa8bd6b02d46..c390d8733bbf 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Warehouse.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Warehouse.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/WeirdModel.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/WeirdModel.cs index 8dce43788964..5cf3877b7d01 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/WeirdModel.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/WeirdModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/ProductsService.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/ProductsService.cs index c2ce3d45869c..818d3c4ed1fc 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/ProductsService.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/ProductsService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/SignalTokenProviderService.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/SignalTokenProviderService.cs index d45e29118254..3db0fdb66bb2 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/SignalTokenProviderService.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/SignalTokenProviderService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Concurrent; using System.Threading; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Startup.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Startup.cs index 7d0b7258dc94..d4dc47caf146 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithCultureReplace.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithCultureReplace.cs index 1214b96f886c..c439f92bff6f 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithCultureReplace.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithCultureReplace.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.IO; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithoutEndpointRouting.cs index 6a680e00205a..d92d0d64e844 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/TestCacheTagHelper.cs b/src/Mvc/test/WebSites/HtmlGenerationWebSite/TestCacheTagHelper.cs index 2a99a3a3c6bd..adc1fe0e3b81 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/TestCacheTagHelper.cs +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/TestCacheTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.Encodings.Web; diff --git a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Script.cshtml b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Script.cshtml index aae275d7e4a0..9790ae3f86d0 100644 --- a/src/Mvc/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Script.cshtml +++ b/src/Mvc/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Script.cshtml @@ -1,6 +1,6 @@ @* - Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. - Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +Licensed to the .NET Foundation under one or more agreements. +The .NET Foundation licenses this file to you under the MIT license. *@ @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite.Views/Pages/Rzc/Page_Model.cs b/src/Mvc/test/WebSites/RazorBuildWebSite.Views/Pages/Rzc/Page_Model.cs index 9faad97ed31f..51314ac989f4 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite.Views/Pages/Rzc/Page_Model.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite.Views/Pages/Rzc/Page_Model.cs @@ -1,4 +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.Mvc.RazorPages; namespace RazorBuildWebSite.Pages.Rzc diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/CommonController.cs b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/CommonController.cs index 4659d40966cd..a51be7154adb 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/CommonController.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/CommonController.cs @@ -1,3 +1,5 @@ +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/PrecompilationController.cs b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/PrecompilationController.cs index a14f94a13f3d..7aa9f4e587d1 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/PrecompilationController.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/PrecompilationController.cs @@ -1,4 +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.Mvc; namespace RazorBuildWebSite.Controllers diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/RzcController.cs b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/RzcController.cs index cd032017a27d..79199fd38a42 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/RzcController.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/RzcController.cs @@ -1,4 +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.Mvc; namespace RazorBuildWebSite.Controllers diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/UpdateableViewsController.cs b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/UpdateableViewsController.cs index 609e8ab7bfbc..3aec32301b77 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/UpdateableViewsController.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite/Controllers/UpdateableViewsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/Startup.cs b/src/Mvc/test/WebSites/RazorBuildWebSite/Startup.cs index 24b332bdf6df..5e94fba77082 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/RazorBuildWebSite/UpdateableFileProvider.cs b/src/Mvc/test/WebSites/RazorBuildWebSite/UpdateableFileProvider.cs index 42968e9fa096..ec5791dc344c 100644 --- a/src/Mvc/test/WebSites/RazorBuildWebSite/UpdateableFileProvider.cs +++ b/src/Mvc/test/WebSites/RazorBuildWebSite/UpdateableFileProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorPagesClassLibrary/ClassLibraryStartup.cs b/src/Mvc/test/WebSites/RazorPagesClassLibrary/ClassLibraryStartup.cs index 0009c644a481..04765d056f02 100644 --- a/src/Mvc/test/WebSites/RazorPagesClassLibrary/ClassLibraryStartup.cs +++ b/src/Mvc/test/WebSites/RazorPagesClassLibrary/ClassLibraryStartup.cs @@ -1,4 +1,7 @@ -using Microsoft.AspNetCore.Builder; +// 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.DependencyInjection; namespace RazorPagesClassLibrary diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Areas/Accounts/Controllers/HomeController.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Areas/Accounts/Controllers/HomeController.cs index 596befbd2c83..327f1b084dc5 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Areas/Accounts/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Areas/Accounts/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Components/ViewDataViewComponent.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Components/ViewDataViewComponent.cs index ad499c9e0f68..fa0501208378 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Components/ViewDataViewComponent.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Components/ViewDataViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/AuthorizedActionController.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/AuthorizedActionController.cs index 5967c595eced..c5baa011ffa1 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/AuthorizedActionController.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/AuthorizedActionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/ClientValidationDisabledController.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/ClientValidationDisabledController.cs index 4f6b721c564e..464212f371bb 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/ClientValidationDisabledController.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/ClientValidationDisabledController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/RedirectController.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/RedirectController.cs index ea9a070809ee..e94ae54f5674 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/RedirectController.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Controllers/RedirectController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Conventions/CustomModelTypeConvention.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Conventions/CustomModelTypeConvention.cs index c37ce99a8dff..e7a6fc6a3798 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Conventions/CustomModelTypeConvention.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Conventions/CustomModelTypeConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationModels; using System.Reflection; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/CustomActionResult.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/CustomActionResult.cs index 65ab91721275..c0289884aefa 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/CustomActionResult.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/CustomActionResult.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelAttributeModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelAttributeModel.cs index fb924ba5ec38..47e4c92f536a 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelAttributeModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelAttributeModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages.Infrastructure; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelHandler.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelHandler.cs index d6622314da8b..14309d1bb8d3 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelHandler.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/HelloWorldWithPageModelHandler.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelAsFilter.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelAsFilter.cs index 503e9eb21c30..9d66e214efb4 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelAsFilter.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelAsFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelHandlerTestModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelHandlerTestModel.cs index a5d25a001ec6..49b57f0c3343 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelHandlerTestModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelHandlerTestModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithPageFilter.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithPageFilter.cs index 03d2f9a8f40e..2abe2dd981e9 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithPageFilter.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -33,7 +33,7 @@ public void OnPageHandlerSelected(PageHandlerSelectedContext context) } public void OnPageHandlerExecuting(PageHandlerExecutingContext context) - { + { } public void OnPageHandlerExecuted(PageHandlerExecutedContext context) diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithResponseCache.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithResponseCache.cs index d60240490dbf..c8bd3827b7e3 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithResponseCache.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/ModelWithResponseCache.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Models/IUserModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Models/IUserModel.cs index 19cc1d40a982..08c36e9fcd98 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Models/IUserModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Models/IUserModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorPagesWebSite { diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Models/RenderPartialModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Models/RenderPartialModel.cs index 4d4dd804ee38..67c16cba52a6 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Models/RenderPartialModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Models/RenderPartialModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorPagesWebSite.Models { diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Models/UserModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Models/UserModel.cs index 80c2d8fdc814..deb83a0ea573 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Models/UserModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Models/UserModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/PageTestDisposeAsync.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/PageTestDisposeAsync.cs index 47e68cfad8c9..ae6cc2123db6 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/PageTestDisposeAsync.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/PageTestDisposeAsync.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/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/AntiforgeryDefault.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/AntiforgeryDefault.cshtml.cs index 9f56cbd7e901..9853675efb6f 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/AntiforgeryDefault.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/AntiforgeryDefault.cshtml.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/IgnoreAntiforgery.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/IgnoreAntiforgery.cshtml.cs index 34c4c739b77a..db8ddf641f42 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/IgnoreAntiforgery.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Antiforgery/IgnoreAntiforgery.cshtml.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Conventions/AuthFolder/AnonymousModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Conventions/AuthFolder/AnonymousModel.cs index 3ba2e4605bc8..d9548d466de4 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Conventions/AuthFolder/AnonymousModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Conventions/AuthFolder/AnonymousModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/CustomPageBase.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/CustomPageBase.cs index 31d3522032cd..2f25acd14f91 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/CustomPageBase.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/CustomPageBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; namespace RazorPagesWebSite diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/PageWithModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/PageWithModel.cs index c10d51930e9f..9798691c611a 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/PageWithModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomBaseType/PageWithModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; namespace RazorPagesWebSite diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomModelTypeModel.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomModelTypeModel.cshtml.cs index e78cce042804..34797e43372b 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomModelTypeModel.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/CustomModelTypeModel.cshtml.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.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/AuthFilterOnPageWithModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/AuthFilterOnPageWithModel.cs index 3beb6bd6f8ac..ad7cfda5dde4 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/AuthFilterOnPageWithModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/AuthFilterOnPageWithModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/FiltersAppliedToPageAndPageModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/FiltersAppliedToPageAndPageModel.cs index fa47e824b4b8..ff2763888229 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/FiltersAppliedToPageAndPageModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/FiltersAppliedToPageAndPageModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageFilter.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageFilter.cs index 98e4f633ab36..29961a1ed3b5 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageFilter.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageModelFilter.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageModelFilter.cs index 3972219eddb9..a405950cf0ea 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageModelFilter.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Filters/TestPageModelFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Filters; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/HandlerWithParameter.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/HandlerWithParameter.cshtml.cs index d1b8ade28abe..34b72e111634 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/HandlerWithParameter.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/HandlerWithParameter.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Localized/PageWithModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Localized/PageWithModel.cs index c06f62ae1335..55924cea774b 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Localized/PageWithModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Localized/PageWithModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ModelWithAuthFilter.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ModelWithAuthFilter.cs index 8be778392079..25b553046a01 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ModelWithAuthFilter.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ModelWithAuthFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindFormFile.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindFormFile.cshtml.cs index ccfcc87440ae..3597d820b026 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindFormFile.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindFormFile.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Http; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesOnModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesOnModel.cs index b06c38017801..43687ad0425e 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesOnModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesOnModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesWithSupportsGetOnModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesWithSupportsGetOnModel.cs index d4b1f831559f..bc6cc977edca 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesWithSupportsGetOnModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesWithSupportsGetOnModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyAndArgumentBinding.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyAndArgumentBinding.cs index 0c20c4c36b10..3a37d9d3a5ac 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyAndArgumentBinding.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyAndArgumentBinding.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyBinding.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyBinding.cs index 2e7332b3ee87..48dd425a225d 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyBinding.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PageModelWithPropertyBinding.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PolymorphicBinding.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PolymorphicBinding.cs index 0986986da02d..a929c7ff9436 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PolymorphicBinding.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/PolymorphicBinding.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Redirects/RedirectFromModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Redirects/RedirectFromModel.cs index a2d593bed4d3..68ca02cbb3ff 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Redirects/RedirectFromModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Redirects/RedirectFromModel.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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtAuthFilter.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtAuthFilter.cshtml.cs index 174ad98b1dd0..5d4af9cbf3ca 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtAuthFilter.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtAuthFilter.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtPageFilter.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtPageFilter.cshtml.cs index 58d9f62766da..9f2ae55d9c1f 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtPageFilter.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ShortCircuitPageAtPageFilter.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryUpdateModelPageModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryUpdateModelPageModel.cs index 05f7785c58cb..072aa39e8455 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryUpdateModelPageModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryUpdateModelPageModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryValidateModelPageModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryValidateModelPageModel.cs index bde677cb9829..32af48972e77 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryValidateModelPageModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/TryValidateModelPageModel.cs @@ -1,5 +1,5 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithCompareValidation.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithCompareValidation.cs index 8ca3f8dd2e6b..b09151da2ae4 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithCompareValidation.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithCompareValidation.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithValidation.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithValidation.cs index 607f71938049..3ccd1f24a624 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithValidation.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/Validation/PageWithValidation.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.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataInPage.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataInPage.cs index fd6eed7a3783..7954527adf8b 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataInPage.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataInPage.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.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataSetInViewStart/Index.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataSetInViewStart/Index.cs index f911dbfe5e2b..256cf4600b7a 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataSetInViewStart/Index.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataSetInViewStart/Index.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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataToViewComponentPage.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataToViewComponentPage.cs index d38ab3b08e35..48652de7068c 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataToViewComponentPage.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewData/ViewDataToViewComponentPage.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.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewDataAvailableAfterHandlerExecuted.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewDataAvailableAfterHandlerExecuted.cshtml.cs index 548623d5f9f6..627748e92479 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewDataAvailableAfterHandlerExecuted.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Pages/ViewDataAvailableAfterHandlerExecuted.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/PolymorphicModelBinder.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/PolymorphicModelBinder.cs index fcdd15075196..9c5edd7d2215 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/PolymorphicModelBinder.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/PolymorphicModelBinder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Program.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Program.cs index b5fdb843f7b7..2ea991da0c61 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Program.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Properties/AssemblyInfo.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Properties/AssemblyInfo.cs index bd7ade2f845b..7c143c581309 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Properties/AssemblyInfo.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.ApplicationParts; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/RenderPartial.cshtml.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/RenderPartial.cshtml.cs index 03f6a00337fd..fe49bf9c1a77 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/RenderPartial.cshtml.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/RenderPartial.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Services/CustomService.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Services/CustomService.cs index 23dbf1c0ba87..cd4771aa345e 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Services/CustomService.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Services/CustomService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace CustomNamespace { diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/Startup.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/Startup.cs index d29e1cabbd7a..e265e8489896 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithBasePath.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithBasePath.cs index 53ac7e22ca6a..a8c5668bb97f 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithBasePath.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithBasePath.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithClientValidationDisabled.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithClientValidationDisabled.cs index e7251a74cb3d..4df3f2973af2 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithClientValidationDisabled.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithClientValidationDisabled.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithoutEndpointRouting.cs index 2993998ca3a8..b7666bf4200e 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.AspNetCore.Authentication.Cookies; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/SetTempDataOnPageModelAndRedirect.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/SetTempDataOnPageModelAndRedirect.cs index 3f46ef442dcf..a352fc3cd09f 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/SetTempDataOnPageModelAndRedirect.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/SetTempDataOnPageModelAndRedirect.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/TempDataPageModel.cs b/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/TempDataPageModel.cs index e2a3ebe605a7..a87794437e2b 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/TempDataPageModel.cs +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/TempData/TempDataPageModel.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentForViewWithPaths.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentForViewWithPaths.cs index e6e2f88f0fa2..d13639709b78 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentForViewWithPaths.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentForViewWithPaths.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentThatSetsTitle.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentThatSetsTitle.cs index 0b55d56504fa..cf0cb25ab5f0 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentThatSetsTitle.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentThatSetsTitle.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithFlush.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithFlush.cs index 7a3045dbad2b..2ce3648f14d0 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithFlush.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithFlush.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithLayout.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithLayout.cs index b195e19a3629..ec2df477a236 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithLayout.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithLayout.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithRelativePath.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithRelativePath.cs index 981f7a15eeb6..742b52b5fd31 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithRelativePath.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithRelativePath.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithViewStart.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithViewStart.cs index 983e09487e88..bcfb5f4536e9 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithViewStart.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithViewStart.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Components/InheritingViewComponent.cs b/src/Mvc/test/WebSites/RazorWebSite/Components/InheritingViewComponent.cs index b08abd28b964..efdd68e3718b 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Components/InheritingViewComponent.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Components/InheritingViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/AddTagHelperComponentController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/AddTagHelperComponentController.cs index 403520dcff1c..131858ddc80d 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/AddTagHelperComponentController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/AddTagHelperComponentController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/BackSlashController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/BackSlashController.cs index ca43a6f58d1e..49242e5db18b 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/BackSlashController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/BackSlashController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/DataAnnotationController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/DataAnnotationController.cs index 7d4bdb2c4a1e..718c351fdb0a 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/DataAnnotationController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/DataAnnotationController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using RazorWebSite.Models; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/DirectivesController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/DirectivesController.cs index 4a7c400527dc..d2a264f07eeb 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/DirectivesController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/DirectivesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ExpanderViewsController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ExpanderViewsController.cs index 6042c9f38dba..cd964b256037 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ExpanderViewsController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ExpanderViewsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/FlushPoint.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/FlushPoint.cs index 82c2b625ac75..32cfeb9d24cd 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/FlushPoint.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/FlushPoint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/HtmlHelperOptionsController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/HtmlHelperOptionsController.cs index 91b20ea8245c..2d6e706c2d91 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/HtmlHelperOptionsController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/HtmlHelperOptionsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/NestedViewStartsController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/NestedViewStartsController.cs index cd688707bba7..a0441f984999 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/NestedViewStartsController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/NestedViewStartsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialViewEngineController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialViewEngineController.cs index c294519f64d6..37b0941aceee 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialViewEngineController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialViewEngineController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialsWithLayoutController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialsWithLayoutController.cs index 070892c74706..8392471ebc5a 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialsWithLayoutController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/PartialsWithLayoutController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/TagHelperComponentController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/TagHelperComponentController.cs index d3be1d2fbd6b..37845518a8a9 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/TagHelperComponentController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/TagHelperComponentController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/TemplateExpander.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/TemplateExpander.cs index 152f5e1bb232..20ddbf2cce60 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/TemplateExpander.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/TemplateExpander.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/UrlResolutionController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/UrlResolutionController.cs index 0d6902aac28c..ea5d8f037cce 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/UrlResolutionController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/UrlResolutionController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewEngineController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewEngineController.cs index 30693412c412..32d7ecb10c3a 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewEngineController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewEngineController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewNameSpecification_HomeController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewNameSpecification_HomeController.cs index 8a7a59d3b98d..a55faa129b86 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewNameSpecification_HomeController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewNameSpecification_HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewWithPathsController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewWithPathsController.cs index a98754a0d001..086540c31346 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewWithPathsController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewWithPathsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewsConsumingCompilationOptionsController.cs b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewsConsumingCompilationOptionsController.cs index 91e4911673a2..814ade2b4b1c 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewsConsumingCompilationOptionsController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Controllers/ViewsConsumingCompilationOptionsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Models/Address.cs b/src/Mvc/test/WebSites/RazorWebSite/Models/Address.cs index c2eafbe8ce3e..3186086d5b70 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Models/Address.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Models/Address.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorWebSite { diff --git a/src/Mvc/test/WebSites/RazorWebSite/Models/EnumModel.cs b/src/Mvc/test/WebSites/RazorWebSite/Models/EnumModel.cs index 3a993cc65ac5..32786f41eb7e 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Models/EnumModel.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Models/EnumModel.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Models/Person.cs b/src/Mvc/test/WebSites/RazorWebSite/Models/Person.cs index 2cd62fd19a14..f940c48f4503 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Models/Person.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Models/Person.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorWebSite { diff --git a/src/Mvc/test/WebSites/RazorWebSite/MyBasePage.cs b/src/Mvc/test/WebSites/RazorWebSite/MyBasePage.cs index 1a37870c52e8..72e7c52d040f 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/MyBasePage.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/MyBasePage.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Razor; diff --git a/src/Mvc/test/WebSites/RazorWebSite/NestedViewImportsController.cs b/src/Mvc/test/WebSites/RazorWebSite/NestedViewImportsController.cs index 4e186761fa30..96a07ded71cc 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/NestedViewImportsController.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/NestedViewImportsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Program.cs b/src/Mvc/test/WebSites/RazorWebSite/Program.cs index 6e8622bb7b5c..e90f11b3731f 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Program.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/BackSlashExpander.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/BackSlashExpander.cs index 722bd096d6ba..2f0b7fbbbddc 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/BackSlashExpander.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/BackSlashExpander.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Razor; @@ -18,7 +18,7 @@ public virtual IEnumerable ExpandViewLocations(ViewLocationExpanderConte if (context.ActionContext is ViewContext viewContext && (string)viewContext.ViewData["back-slash"] == "true") { return new[] { $@"Views\BackSlash\{context.ViewName}.cshtml" }; - + } return viewLocations; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/FrameworkSpecificHelper.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/FrameworkSpecificHelper.cs index 7e56263a4940..000536690cfa 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/FrameworkSpecificHelper.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/FrameworkSpecificHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorWebSite { diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/InjectedHelper.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/InjectedHelper.cs index 9e97ff14311f..ba83b8bea473 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/InjectedHelper.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/InjectedHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorWebSite { diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/NonMainPageViewLocationExpander.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/NonMainPageViewLocationExpander.cs index 6fd040d924c4..2ca214190a68 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/NonMainPageViewLocationExpander.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/NonMainPageViewLocationExpander.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Razor; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/TaskReturningService.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/TaskReturningService.cs index a76babdd0960..bc1d8ddb7cf8 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/TaskReturningService.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/TaskReturningService.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/TestBodyTagHelperComponent.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/TestBodyTagHelperComponent.cs index f83a7b6cf1c9..c4c273bc19ec 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/TestBodyTagHelperComponent.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/TestBodyTagHelperComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorWebSite/Services/TestHeadTagHelperComponent.cs b/src/Mvc/test/WebSites/RazorWebSite/Services/TestHeadTagHelperComponent.cs index 6242cf6b716e..90f31ec4f54d 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Services/TestHeadTagHelperComponent.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Services/TestHeadTagHelperComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RazorWebSite/SingleType.cs b/src/Mvc/test/WebSites/RazorWebSite/SingleType.cs index ab8ec1e9c6f8..eb3347ade91b 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/SingleType.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/SingleType.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RazorWebSite { diff --git a/src/Mvc/test/WebSites/RazorWebSite/Startup.cs b/src/Mvc/test/WebSites/RazorWebSite/Startup.cs index b4dde6201805..3f18d8844610 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/WebSites/RazorWebSite/StartupDataAnnotations.cs b/src/Mvc/test/WebSites/RazorWebSite/StartupDataAnnotations.cs index 8344a71ee775..924d158a487a 100644 --- a/src/Mvc/test/WebSites/RazorWebSite/StartupDataAnnotations.cs +++ b/src/Mvc/test/WebSites/RazorWebSite/StartupDataAnnotations.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/DynamicController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/DynamicController.cs index b7aeba5d9855..beac32598fc6 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/DynamicController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/DynamicController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/FallbackController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/FallbackController.cs index 59a19bfeddb9..b6969d65d960 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/FallbackController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/FallbackController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/LG3Controller.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/LG3Controller.cs index dafe56ee2251..89c003f634be 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/LG3Controller.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/LG3Controller.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Routing; @@ -35,7 +35,7 @@ public string LinkInsideOfAreaFail() public string LinkOutsideOfArea() { return _linkGenerator.GetPathByAction( - HttpContext, + HttpContext, action: nameof(SomeAction), controller: "LG1", values: new { area = "", }); diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/Pages/LGAreaPage.cshtml.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/Pages/LGAreaPage.cshtml.cs index bc3137d121fd..c10845584635 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/Pages/LGAreaPage.cshtml.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/Pages/LGAreaPage.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/UserManagementController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/UserManagementController.cs index fe204e789638..f7f1a04f9efc 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/UserManagementController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Admin/UserManagementController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Order/OrderController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Order/OrderController.cs index fe7582db299f..0c28658d68d2 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Order/OrderController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Order/OrderController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/FlightController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/FlightController.cs index 5fe4b9d7939c..d1f1eda383e2 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/FlightController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/FlightController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/HomeController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/HomeController.cs index eceed74837c2..73dff0ca7bb5 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/HomeController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/RailController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/RailController.cs index 89cdfc756f6b..d20c104f2f44 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/RailController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Areas/Travel/RailController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/ControllerRouteTokenTransformerConvention.cs b/src/Mvc/test/WebSites/RoutingWebSite/ControllerRouteTokenTransformerConvention.cs index 5659c35a1ce0..2007ecb5d22c 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/ControllerRouteTokenTransformerConvention.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/ControllerRouteTokenTransformerConvention.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BanksController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BanksController.cs index a39658633094..75d3198a3335 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BanksController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BanksController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BlogController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BlogController.cs index 82e90c695ce1..083243a07cee 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BlogController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BlogController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BranchesController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BranchesController.cs index 847d30dad0e7..2c5ef59d8913 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BranchesController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/BranchesController.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/Mvc/test/WebSites/RoutingWebSite/Controllers/CompanyController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/CompanyController.cs index bbb27e242fa1..250275d3d31e 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/CompanyController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/CompanyController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ContactController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ContactController.cs index 3421f6580b00..d90fb40c1e4f 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ContactController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ContactController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ConventionalTransformerController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ConventionalTransformerController.cs index 07d4384ae223..577fd2bce91a 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ConventionalTransformerController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ConventionalTransformerController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DataTokensController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DataTokensController.cs index b6ae43877706..cee944228a04 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DataTokensController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DataTokensController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DebugController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DebugController.cs index b217902a6cdb..f9526395d326 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DebugController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DebugController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DefaultValuesController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DefaultValuesController.cs index f28c5c14c516..7c4f1e0dd09e 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DefaultValuesController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DefaultValuesController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DynamicOrderController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DynamicOrderController.cs index d58b9fc24c31..a78e02b10b8f 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DynamicOrderController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/DynamicOrderController.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/Mvc/test/WebSites/RoutingWebSite/Controllers/EmployeeController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EmployeeController.cs index bf36643a6831..e024a6388c33 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EmployeeController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EmployeeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointNameController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointNameController.cs index cca88e3962ad..b658759f40d4 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointNameController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointNameController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Routing; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointRoutingController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointRoutingController.cs index 22d61bac9283..9b299338f55f 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointRoutingController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/EndpointRoutingController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/FriendsController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/FriendsController.cs index b6f3779e2dba..d132fe80dc8d 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/FriendsController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/FriendsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/HomeController.cs index 1adc73f9907e..98d3a5d79913 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG1Controller.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG1Controller.cs index acf1fe2807e2..89d3d49dfb60 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG1Controller.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG1Controller.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Http; @@ -16,7 +16,7 @@ public LG1Controller(LinkGenerator linkGenerator) { _linkGenerator = linkGenerator; } - + public string LinkToSelf() { return _linkGenerator.GetPathByAction(HttpContext, values: QueryToRouteValues(HttpContext.Request.Query)); diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG2Controller.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG2Controller.cs index b8a25750fe6b..efbc6cf2dcac 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG2Controller.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LG2Controller.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LinkParserController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LinkParserController.cs index 614a207d1587..8e5cc001ead6 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LinkParserController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LinkParserController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LoginController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LoginController.cs index 724481f5b71b..afea74a75439 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LoginController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/LoginController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/MapsController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/MapsController.cs index ce1aa800aaad..20b7767b8813 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/MapsController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/MapsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/NonParameterConstraintController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/NonParameterConstraintController.cs index af9ac7e6000d..e983bd9302eb 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/NonParameterConstraintController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/NonParameterConstraintController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/OrderController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/OrderController.cs index f0770ab539fd..bbc29eadd644 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/OrderController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/OrderController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageParameterController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageParameterController.cs index 3174963111d5..a8cabb8512cf 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageParameterController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageParameterController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageRouteController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageRouteController.cs index 0c629474f0aa..c78185229129 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageRouteController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/PageRouteController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ParameterTransformerController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ParameterTransformerController.cs index e9a8a76f20d7..3d90b85a6c05 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ParameterTransformerController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/ParameterTransformerController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RouteDataController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RouteDataController.cs index 97f49e00c4b0..aa33da80a54a 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RouteDataController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RouteDataController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RoutingController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RoutingController.cs index 388bba57138f..b6b55f8cde4b 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RoutingController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/RoutingController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/StoreController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/StoreController.cs index d7ad0dc7e166..676b5a1c8926 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/StoreController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/StoreController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/TeamController.cs b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/TeamController.cs index 71ab959a194c..626bfed9e2c7 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Controllers/TeamController.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Controllers/TeamController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/DynamicVersion.cs b/src/Mvc/test/WebSites/RoutingWebSite/DynamicVersion.cs index 398f4c4bb3a4..4b310a0eda9c 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/DynamicVersion.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/DynamicVersion.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace RoutingWebSite { diff --git a/src/Mvc/test/WebSites/RoutingWebSite/HttpMergeAttribute.cs b/src/Mvc/test/WebSites/RoutingWebSite/HttpMergeAttribute.cs index 013a90d2bf8b..b11ace362776 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/HttpMergeAttribute.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/HttpMergeAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Pages/DynamicPage.cshtml.cs b/src/Mvc/test/WebSites/RoutingWebSite/Pages/DynamicPage.cshtml.cs index a0acca5a176f..8ba3b0a69e01 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Pages/DynamicPage.cshtml.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Pages/DynamicPage.cshtml.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/Mvc/test/WebSites/RoutingWebSite/Pages/FallbackPage.cshtml.cs b/src/Mvc/test/WebSites/RoutingWebSite/Pages/FallbackPage.cshtml.cs index a8df7eac3d2a..411ae1aa603b 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Pages/FallbackPage.cshtml.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Pages/FallbackPage.cshtml.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/Mvc/test/WebSites/RoutingWebSite/Pages/LGAnotherPage.cshtml.cs b/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGAnotherPage.cshtml.cs index 1cc95da5522c..812d6a5b3965 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGAnotherPage.cshtml.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGAnotherPage.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGPage.cshtml.cs b/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGPage.cshtml.cs index 56e82afd2d0e..47c23133a1ae 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGPage.cshtml.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Pages/LGPage.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Program.cs b/src/Mvc/test/WebSites/RoutingWebSite/Program.cs index d3a8d1c6d5c9..d1f28823e5e4 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Program.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/QueryStringConstraint.cs b/src/Mvc/test/WebSites/RoutingWebSite/QueryStringConstraint.cs index d4661e013921..8366df98885b 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/QueryStringConstraint.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/QueryStringConstraint.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Routing; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/RemoveControllerActionDescriptorProvider.cs b/src/Mvc/test/WebSites/RoutingWebSite/RemoveControllerActionDescriptorProvider.cs index c04493b421a0..c1d398b72d94 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/RemoveControllerActionDescriptorProvider.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/RemoveControllerActionDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/Startup.cs b/src/Mvc/test/WebSites/RoutingWebSite/Startup.cs index ba84c82b03fc..8b9a3ec4de2c 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamic.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamic.cs index abf8f46b91bc..11cb34aa6581 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamic.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamic.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicAndRazorPages.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicAndRazorPages.cs index 81c8aec08f94..8d4b17ecba32 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicAndRazorPages.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicAndRazorPages.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicOrder.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicOrder.cs index d4e68a6ebf7a..7d4a1b0c5fa1 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicOrder.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupForDynamicOrder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupForFallback.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupForFallback.cs index 613954986612..07a5ae8ef87a 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupForFallback.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupForFallback.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupForLinkGenerator.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupForLinkGenerator.cs index b77dc5cd2b42..b369863efe79 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupForLinkGenerator.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupForLinkGenerator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupRoutingDifferentBranches.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupRoutingDifferentBranches.cs index cf1658fa098c..ecd2710a31f6 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupRoutingDifferentBranches.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupRoutingDifferentBranches.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/StartupWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/RoutingWebSite/StartupWithoutEndpointRouting.cs index 9b74128a820c..7d9b085a3cbd 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/StartupWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/RoutingWebSite/TestParameterTransformer.cs b/src/Mvc/test/WebSites/RoutingWebSite/TestParameterTransformer.cs index 4721f4f17938..2bd3f821dd37 100644 --- a/src/Mvc/test/WebSites/RoutingWebSite/TestParameterTransformer.cs +++ b/src/Mvc/test/WebSites/RoutingWebSite/TestParameterTransformer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text.RegularExpressions; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/BearerAuth.cs b/src/Mvc/test/WebSites/SecurityWebSite/BearerAuth.cs index b0fdc2cb8a61..02925fb7eeb5 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/BearerAuth.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/BearerAuth.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AdministrationController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AdministrationController.cs index 74e8e9f77518..f7d5190e45fd 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AdministrationController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AdministrationController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AntiforgeryController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AntiforgeryController.cs index 24deaff65715..42b749d873a8 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AntiforgeryController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AntiforgeryController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedActionsController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedActionsController.cs index 960c6153d24e..8df7b0614b65 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedActionsController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedActionsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedController.cs index 3d8829ddf694..e783208e02c4 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/AuthorizedController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/HomeController.cs index 2a639ae39994..e26e8a0b45c4 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/IgnoreAntiforgeryController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/IgnoreAntiforgeryController.cs index 64b877967910..8eb2bd420f3f 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/IgnoreAntiforgeryController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/IgnoreAntiforgeryController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/LoginController.cs b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/LoginController.cs index 044cc39d4910..116c6ceb4df3 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Controllers/LoginController.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Controllers/LoginController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Security.Claims; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/CountingPolicyEvaluator.cs b/src/Mvc/test/WebSites/SecurityWebSite/CountingPolicyEvaluator.cs index 0b4aaadea20c..e1fefc4b2a10 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/CountingPolicyEvaluator.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/CountingPolicyEvaluator.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaConvention.cshtml.cs b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaConvention.cshtml.cs index 3c479caafb18..69bbd562d0b0 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaConvention.cshtml.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaConvention.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaModel.cshtml.cs b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaModel.cshtml.cs index ebbe8242963b..a45dde568a95 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaModel.cshtml.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AllowAnonymousPageViaModel.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaConvention.cshtml.cs b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaConvention.cshtml.cs index 8ce1c26ee28d..9134d47bd87e 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaConvention.cshtml.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaConvention.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaModel.cshtml.cs b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaModel.cshtml.cs index bd4e75ade0c8..b5af361abeab 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaModel.cshtml.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Pages/AuthorizePageViaModel.cshtml.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authorization; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Program.cs b/src/Mvc/test/WebSites/SecurityWebSite/Program.cs index 464fbffbeaf0..270d39842b21 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Program.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/Startup.cs b/src/Mvc/test/WebSites/SecurityWebSite/Startup.cs index e70e49df7491..3a70d22f9352 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Authorization.Policy; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilter.cs b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilter.cs index c467b1b7a151..7fa7249fe113 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilter.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilterWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilterWithoutEndpointRouting.cs index 89b1e4fe5c2c..08308ff1e729 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilterWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalAuthFilterWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilter.cs b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilter.cs index 87f1563711cf..2ec2231d4c7f 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilter.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Authorization.Policy; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs index e9e2c566e496..ffe7c36f2e38 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Authorization.Policy; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithRequireAuth.cs b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithRequireAuth.cs index f7891cf3ab5d..ab676a7a43da 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithRequireAuth.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithRequireAuth.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Authorization.Policy; diff --git a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithUseMvc.cs b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithUseMvc.cs index bfd4ccb6a27b..b22db7a32c47 100644 --- a/src/Mvc/test/WebSites/SecurityWebSite/StartupWithUseMvc.cs +++ b/src/Mvc/test/WebSites/SecurityWebSite/StartupWithUseMvc.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Authentication.Cookies; using Microsoft.AspNetCore.Authorization.Policy; diff --git a/src/Mvc/test/WebSites/SimpleWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/SimpleWebSite/Controllers/HomeController.cs index 9d4cf866a3ee..9317591a5c31 100644 --- a/src/Mvc/test/WebSites/SimpleWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/SimpleWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/SimpleWebSite/Startup.cs b/src/Mvc/test/WebSites/SimpleWebSite/Startup.cs index 3bc3b568ebd2..d9acc2461065 100644 --- a/src/Mvc/test/WebSites/SimpleWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/SimpleWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/FakeEntryPoint.cs b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/FakeEntryPoint.cs index d15ecd83ca01..5c65c5afb0e8 100644 --- a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/FakeEntryPoint.cs +++ b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/FakeEntryPoint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. /// /// This is a class we use to reference this assembly statically from tests diff --git a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/Program.cs b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/Program.cs index 5975bfbf2930..51aabd0a31f3 100644 --- a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/Program.cs +++ b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilder/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using static Microsoft.AspNetCore.Http.Results; diff --git a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/FakeEntryPoint.cs b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/FakeEntryPoint.cs index addbac61c829..1a47723fcb08 100644 --- a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/FakeEntryPoint.cs +++ b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/FakeEntryPoint.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. /// /// This is a class we use to reference this assembly statically from tests diff --git a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/Program.cs b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/Program.cs index a77fa70765ef..0a6e758f327a 100644 --- a/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/Program.cs +++ b/src/Mvc/test/WebSites/SimpleWebSiteWithWebApplicationBuilderException/Program.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/CopyrightViewComponent.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/CopyrightViewComponent.cs index 414ec21a3fa3..0da450e79807 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/CopyrightViewComponent.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/CopyrightViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/DanViewComponent.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/DanViewComponent.cs index d23997fca79b..c1bad0620346 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/DanViewComponent.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/DanViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/GenericViewComponent.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/GenericViewComponent.cs index 5bc7a6770066..96a13cd2dbd7 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/GenericViewComponent.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/GenericViewComponent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/JacketColor.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/JacketColor.cs index 2c466ba60f97..edb9056646c9 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Components/JacketColor.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Components/JacketColor.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace TagHelpersWebSite { diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EmployeeController.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EmployeeController.cs index 392e3d0940f4..0953ad0df23a 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EmployeeController.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EmployeeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EncodersController.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EncodersController.cs index fe7464810a26..f98783358727 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EncodersController.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/EncodersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/HomeController.cs index 297df79a5bca..b9cdce382777 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/RemoveDefaultInheritedTagHelpersController.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/RemoveDefaultInheritedTagHelpersController.cs index 4f164a29da4b..7fa52a3b8149 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/RemoveDefaultInheritedTagHelpersController.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Controllers/RemoveDefaultInheritedTagHelpersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Models/Employee.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Models/Employee.cs index 556d3ba95517..1bc2533ba56b 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Models/Employee.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Models/Employee.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Models/WebsiteContext.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Models/WebsiteContext.cs index 398a8b2c011c..a128dea928b7 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Models/WebsiteContext.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Models/WebsiteContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/MyHtmlContent.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/MyHtmlContent.cs index 6a1096306c6b..e8f043433c85 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/MyHtmlContent.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/MyHtmlContent.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text.Encodings.Web; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/Startup.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/Startup.cs index 7da912507b60..8eb498dd92e7 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ATagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ATagHelper.cs index 2326ee9ca6cf..14fac9cd512e 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ATagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ATagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AddProcessedAttributeTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AddProcessedAttributeTagHelper.cs index 88e62e03053d..892c197b00c8 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AddProcessedAttributeTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AddProcessedAttributeTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AutoLinkerTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AutoLinkerTagHelper.cs index c0dfd903df85..bc39fe40eb59 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AutoLinkerTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/AutoLinkerTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text.RegularExpressions; using System.Threading.Tasks; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/BoldTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/BoldTagHelper.cs index f13ad6ef45d4..3f3b88ea3e94 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/BoldTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/BoldTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ConditionTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ConditionTagHelper.cs index 4b3716c7e4bb..3b6fb6d3cc8d 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ConditionTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/ConditionTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/CustomEncoderTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/CustomEncoderTagHelper.cs index b274e1670fec..39ddcca8380a 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/CustomEncoderTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/CustomEncoderTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Text.Encodings.Web; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DefaultEncoderTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DefaultEncoderTagHelper.cs index 6b85369587ef..7396a6ba31e8 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DefaultEncoderTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DefaultEncoderTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DictionaryPrefixTestTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DictionaryPrefixTestTagHelper.cs index 08b015a4fe92..098c75bc9b88 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DictionaryPrefixTestTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/DictionaryPrefixTestTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Rendering; @@ -21,7 +21,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output) foreach (var item in PrefixValues) { var liTag = new TagBuilder("li"); - + liTag.InnerHtml.Append(item.Value.Name); ulTag.InnerHtml.AppendHtml(liTag); diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NestedViewImportsTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NestedViewImportsTagHelper.cs index cd698b5f56ea..ec879506085c 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NestedViewImportsTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NestedViewImportsTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NullEncoderTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NullEncoderTagHelper.cs index adb62665e0db..20a4a0a6d56f 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NullEncoderTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/NullEncoderTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/PrettyTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/PrettyTagHelper.cs index 267e410199c7..d7dd5e4e50f7 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/PrettyTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/PrettyTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/RootViewStartTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/RootViewStartTagHelper.cs index 664b66c7335c..dcf7c2c9b9f9 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/RootViewStartTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/RootViewStartTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/SurroundTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/SurroundTagHelper.cs index 1679512dd62a..73faf61c3841 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/SurroundTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/SurroundTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.TagHelpers; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/TagCloudViewComponentTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/TagCloudViewComponentTagHelper.cs index 50c86e7e2520..79220a0bbe23 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/TagCloudViewComponentTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/TagCloudViewComponentTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/WebsiteInformationTagHelper.cs b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/WebsiteInformationTagHelper.cs index 5a71299064b3..4408154be0dd 100644 --- a/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/WebsiteInformationTagHelper.cs +++ b/src/Mvc/test/WebSites/TagHelpersWebSite/TagHelpers/WebsiteInformationTagHelper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/AddressController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/AddressController.cs index bd3f40ac4e18..9a56414a0792 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/AddressController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/AddressController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/BooksController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/BooksController.cs index 098ecbb19875..f1c9951c89a1 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/BooksController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/BooksController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/CustomersController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/CustomersController.cs index 37c32ea9c531..84d66cb99991 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/CustomersController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/CustomersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsController.cs index 1e61957273ae..5fcd95b69d62 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsV2Controller.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsV2Controller.cs index d5345a2f4711..91786a98123f 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsV2Controller.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/ItemsV2Controller.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesController.cs index 50cddab665cd..507bd780fbee 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesV2Controller.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesV2Controller.cs index ab9779d63383..e5e0b2e49c6d 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesV2Controller.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/MoviesV2Controller.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/PetsController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/PetsController.cs index 002a3356ae07..992ba147eec5 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/PetsController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/PetsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/RoutingController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/RoutingController.cs index 62c6966095b4..b4b23719e2a6 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/RoutingController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/RoutingController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http.Features; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/TicketsController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/TicketsController.cs index 843de3f33d88..c40b7d403d7e 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/TicketsController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/TicketsController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/VouchersController.cs b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/VouchersController.cs index f2b5fa7ff27f..c7c1fafb901c 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Controllers/VouchersController.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Controllers/VouchersController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Program.cs b/src/Mvc/test/WebSites/VersioningWebSite/Program.cs index 7dce10d19d1d..9f96a81c5599 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Program.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Program.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Hosting; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/Startup.cs b/src/Mvc/test/WebSites/VersioningWebSite/Startup.cs index 4a1f66e12811..9117b22aa958 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/StartupWithoutEndpointRouting.cs b/src/Mvc/test/WebSites/VersioningWebSite/StartupWithoutEndpointRouting.cs index c6fc0c475a01..cf260f5f2b04 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/StartupWithoutEndpointRouting.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/StartupWithoutEndpointRouting.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionAttribute.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionAttribute.cs index 5a90faf2fbf3..89e47d44bc52 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionAttribute.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.ActionConstraints; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionDeleteAttribute.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionDeleteAttribute.cs index 9354c56b231a..d6828ad38803 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionDeleteAttribute.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionDeleteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionGetAttribute.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionGetAttribute.cs index b809c585f974..e2175934fa16 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionGetAttribute.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionGetAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionPostAttribute.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionPostAttribute.cs index 9738cd946dd0..a42dab965986 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionPostAttribute.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionPostAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionPutAttribute.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionPutAttribute.cs index ad1dafc17654..02fc0b958858 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionPutAttribute.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionPutAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Routing; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionRangeValidator.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionRangeValidator.cs index 858aacc16e9e..4d415dc44b9f 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionRangeValidator.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionRangeValidator.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Http; using Microsoft.AspNetCore.Mvc.ActionConstraints; diff --git a/src/Mvc/test/WebSites/VersioningWebSite/VersionRouteAttribute.cs b/src/Mvc/test/WebSites/VersioningWebSite/VersionRouteAttribute.cs index 1a5123b47d1f..935beb1c649d 100644 --- a/src/Mvc/test/WebSites/VersioningWebSite/VersionRouteAttribute.cs +++ b/src/Mvc/test/WebSites/VersioningWebSite/VersionRouteAttribute.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/HomeController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/HomeController.cs index 97db10c12597..2587cbb21743 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/HomeController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/HomeController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IEnumerableController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IEnumerableController.cs index 2917c5ca6673..8fbbbd400d0d 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IEnumerableController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IEnumerableController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IQueryableController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IQueryableController.cs index f60955f4d5a1..222c4ff25521 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IQueryableController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/IQueryableController.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/SerializableErrorController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/SerializableErrorController.cs index 4b65e47edbc5..2ce116a14138 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/SerializableErrorController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/SerializableErrorController.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/ValidationController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/ValidationController.cs index 8553aaaefa87..1e042a7ec595 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/ValidationController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/ValidationController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlApiControllerBase.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlApiControllerBase.cs index 529642814454..dad6594095a9 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlApiControllerBase.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlApiControllerBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlDataContractApiController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlDataContractApiController.cs index fc4918943bdf..8be6c4183d6c 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlDataContractApiController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlDataContractApiController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlSerializedApiController.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlSerializedApiController.cs index b6e39ad96b43..c1a89113933f 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlSerializedApiController.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Controllers/XmlSerializedApiController.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Mvc; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Address.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Address.cs index bd162913b4bf..b394e3ee8972 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Address.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Address.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/DummyClass.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/DummyClass.cs index 683efe201b0b..fed5a8134fbe 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/DummyClass.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/DummyClass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace XmlFormattersWebSite { diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Employee.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Employee.cs index 071461808442..bfc18db750db 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Employee.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Employee.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Person.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Person.cs index 1a78b7dd8637..b3ee0fe9e228 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Person.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Person.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Store.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Store.cs index cce9d39ba56d..522b806a9d3a 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Store.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Models/Store.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapper.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapper.cs index d7f30f151b11..144cf43d1fb7 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapper.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapper.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProvider.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProvider.cs index 4daefdb45459..1997ef9285f4 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProvider.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Mvc.Formatters.Xml; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProviderFactory.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProviderFactory.cs index 0409ab62a73e..a3119c99ff02 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProviderFactory.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/PersonWrapperProviderFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Mvc.Formatters.Xml; using XmlFormattersWebSite.Models; diff --git a/src/Mvc/test/WebSites/XmlFormattersWebSite/Startup.cs b/src/Mvc/test/WebSites/XmlFormattersWebSite/Startup.cs index 21e00674a7a0..3af3c290ec50 100644 --- a/src/Mvc/test/WebSites/XmlFormattersWebSite/Startup.cs +++ b/src/Mvc/test/WebSites/XmlFormattersWebSite/Startup.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using Microsoft.AspNetCore.Builder; diff --git a/src/ObjectPool/src/DefaultObjectPool.cs b/src/ObjectPool/src/DefaultObjectPool.cs index 8fb9a40de180..9e82caf8557a 100644 --- a/src/ObjectPool/src/DefaultObjectPool.cs +++ b/src/ObjectPool/src/DefaultObjectPool.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/ObjectPool/src/DefaultObjectPoolProvider.cs b/src/ObjectPool/src/DefaultObjectPoolProvider.cs index b37a946d6d55..707614836358 100644 --- a/src/ObjectPool/src/DefaultObjectPoolProvider.cs +++ b/src/ObjectPool/src/DefaultObjectPoolProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/ObjectPool/src/DefaultPooledObjectPolicy.cs b/src/ObjectPool/src/DefaultPooledObjectPolicy.cs index 892f7adab16e..c2b063902376 100644 --- a/src/ObjectPool/src/DefaultPooledObjectPolicy.cs +++ b/src/ObjectPool/src/DefaultPooledObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.ObjectPool { diff --git a/src/ObjectPool/src/DisposableObjectPool.cs b/src/ObjectPool/src/DisposableObjectPool.cs index 165a61aa96f7..61ecf1affefd 100644 --- a/src/ObjectPool/src/DisposableObjectPool.cs +++ b/src/ObjectPool/src/DisposableObjectPool.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ObjectPool/src/IPooledObjectPolicy.cs b/src/ObjectPool/src/IPooledObjectPolicy.cs index 998d146ada8a..b13db9153f70 100644 --- a/src/ObjectPool/src/IPooledObjectPolicy.cs +++ b/src/ObjectPool/src/IPooledObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.ObjectPool { diff --git a/src/ObjectPool/src/LeakTrackingObjectPool.cs b/src/ObjectPool/src/LeakTrackingObjectPool.cs index 2740fa1d6f78..7c63ae4a8b18 100644 --- a/src/ObjectPool/src/LeakTrackingObjectPool.cs +++ b/src/ObjectPool/src/LeakTrackingObjectPool.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/ObjectPool/src/LeakTrackingObjectPoolProvider.cs b/src/ObjectPool/src/LeakTrackingObjectPoolProvider.cs index cf9d79682d43..5aa4eeaf0e40 100644 --- a/src/ObjectPool/src/LeakTrackingObjectPoolProvider.cs +++ b/src/ObjectPool/src/LeakTrackingObjectPoolProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/ObjectPool/src/ObjectPool.cs b/src/ObjectPool/src/ObjectPool.cs index 306629147c60..46f4969c5a1e 100644 --- a/src/ObjectPool/src/ObjectPool.cs +++ b/src/ObjectPool/src/ObjectPool.cs @@ -1,5 +1,5 @@ -// 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. +// 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.CodeAnalysis; diff --git a/src/ObjectPool/src/ObjectPoolProvider.cs b/src/ObjectPool/src/ObjectPoolProvider.cs index 6b8ca219eac6..0b979aad4efe 100644 --- a/src/ObjectPool/src/ObjectPoolProvider.cs +++ b/src/ObjectPool/src/ObjectPoolProvider.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.ObjectPool { diff --git a/src/ObjectPool/src/ObjectPoolProviderExtensions.cs b/src/ObjectPool/src/ObjectPoolProviderExtensions.cs index f2ef3224bdee..097b20d883ab 100644 --- a/src/ObjectPool/src/ObjectPoolProviderExtensions.cs +++ b/src/ObjectPool/src/ObjectPoolProviderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; diff --git a/src/ObjectPool/src/PooledObjectPolicy.cs b/src/ObjectPool/src/PooledObjectPolicy.cs index 538b1c124ce9..a1059d01b0f7 100644 --- a/src/ObjectPool/src/PooledObjectPolicy.cs +++ b/src/ObjectPool/src/PooledObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.ObjectPool { diff --git a/src/ObjectPool/src/StringBuilderPooledObjectPolicy.cs b/src/ObjectPool/src/StringBuilderPooledObjectPolicy.cs index a051c0496c5b..af24cbc55c92 100644 --- a/src/ObjectPool/src/StringBuilderPooledObjectPolicy.cs +++ b/src/ObjectPool/src/StringBuilderPooledObjectPolicy.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; diff --git a/src/ObjectPool/test/DefaultObjectPoolProviderTest.cs b/src/ObjectPool/test/DefaultObjectPoolProviderTest.cs index 7096b60b3452..0241a3824d76 100644 --- a/src/ObjectPool/test/DefaultObjectPoolProviderTest.cs +++ b/src/ObjectPool/test/DefaultObjectPoolProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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 Xunit; diff --git a/src/ObjectPool/test/DefaultObjectPoolTest.cs b/src/ObjectPool/test/DefaultObjectPoolTest.cs index 9bf84dca03b5..8055b8e92793 100644 --- a/src/ObjectPool/test/DefaultObjectPoolTest.cs +++ b/src/ObjectPool/test/DefaultObjectPoolTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; diff --git a/src/ObjectPool/test/DisposableObjectPoolTest.cs b/src/ObjectPool/test/DisposableObjectPoolTest.cs index 3bcefbaf66a1..36cf9b9292e5 100644 --- a/src/ObjectPool/test/DisposableObjectPoolTest.cs +++ b/src/ObjectPool/test/DisposableObjectPoolTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ObjectPool/test/ThreadingTest.cs b/src/ObjectPool/test/ThreadingTest.cs index c106ef6550fd..18b446419633 100644 --- a/src/ObjectPool/test/ThreadingTest.cs +++ b/src/ObjectPool/test/ThreadingTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using Xunit; diff --git a/src/ProjectTemplates/BlazorTemplates.Tests/AssemblyInfo.AssemblyFixtures.cs b/src/ProjectTemplates/BlazorTemplates.Tests/AssemblyInfo.AssemblyFixtures.cs index 7e6e39bbf8d2..461f795a1c76 100644 --- a/src/ProjectTemplates/BlazorTemplates.Tests/AssemblyInfo.AssemblyFixtures.cs +++ b/src/ProjectTemplates/BlazorTemplates.Tests/AssemblyInfo.AssemblyFixtures.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using ProjectTemplates.Tests.Infrastructure; diff --git a/src/ProjectTemplates/BlazorTemplates.Tests/BlazorServerTemplateTest.cs b/src/ProjectTemplates/BlazorTemplates.Tests/BlazorServerTemplateTest.cs index d152e9c979e3..e5c084748050 100644 --- a/src/ProjectTemplates/BlazorTemplates.Tests/BlazorServerTemplateTest.cs +++ b/src/ProjectTemplates/BlazorTemplates.Tests/BlazorServerTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplateTest.cs b/src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplateTest.cs index b8af501b8318..e6266d559c5c 100644 --- a/src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplateTest.cs +++ b/src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/ProjectTemplates/BlazorTemplates.Tests/BlazorWasmTemplateTest.cs b/src/ProjectTemplates/BlazorTemplates.Tests/BlazorWasmTemplateTest.cs index 78d4f6ac06e3..c84410c87dbe 100644 --- a/src/ProjectTemplates/BlazorTemplates.Tests/BlazorWasmTemplateTest.cs +++ b/src/ProjectTemplates/BlazorTemplates.Tests/BlazorWasmTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/BlazorTemplates.Tests/PlaywrightFixture.cs b/src/ProjectTemplates/BlazorTemplates.Tests/PlaywrightFixture.cs index f5ad94c908d3..595e310bcd5e 100644 --- a/src/ProjectTemplates/BlazorTemplates.Tests/PlaywrightFixture.cs +++ b/src/ProjectTemplates/BlazorTemplates.Tests/PlaywrightFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/ProjectTemplates/BlazorTemplates.Tests/package.json b/src/ProjectTemplates/BlazorTemplates.Tests/package.json index c48c6bd8a461..b0614c31fca1 100644 --- a/src/ProjectTemplates/BlazorTemplates.Tests/package.json +++ b/src/ProjectTemplates/BlazorTemplates.Tests/package.json @@ -9,7 +9,7 @@ "prepare": "selenium-standalone install --config ../../Shared/E2ETesting/selenium-config.json" }, "author": "", - "license": "Apache-2.0", + "license": "MIT", "dependencies": { "selenium-standalone": "^6.17.0" } diff --git a/src/ProjectTemplates/Shared/AspNetProcess.cs b/src/ProjectTemplates/Shared/AspNetProcess.cs index 39618b2a9e10..0d329df810ca 100644 --- a/src/ProjectTemplates/Shared/AspNetProcess.cs +++ b/src/ProjectTemplates/Shared/AspNetProcess.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/Shared/DevelopmentCertificate.cs b/src/ProjectTemplates/Shared/DevelopmentCertificate.cs index cc814808e0fe..75630883fc7f 100644 --- a/src/ProjectTemplates/Shared/DevelopmentCertificate.cs +++ b/src/ProjectTemplates/Shared/DevelopmentCertificate.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/ProjectTemplates/Shared/ErrorMessages.cs b/src/ProjectTemplates/Shared/ErrorMessages.cs index d5fe81c71c6a..450f25a91953 100644 --- a/src/ProjectTemplates/Shared/ErrorMessages.cs +++ b/src/ProjectTemplates/Shared/ErrorMessages.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Internal; diff --git a/src/ProjectTemplates/Shared/PageUrls.cs b/src/ProjectTemplates/Shared/PageUrls.cs index deb12fb16c65..083f4770f443 100644 --- a/src/ProjectTemplates/Shared/PageUrls.cs +++ b/src/ProjectTemplates/Shared/PageUrls.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Templates.Test.Helpers { diff --git a/src/ProjectTemplates/Shared/ProcessLock.cs b/src/ProjectTemplates/Shared/ProcessLock.cs index 38c07a4768d2..9bef4633aa7f 100644 --- a/src/ProjectTemplates/Shared/ProcessLock.cs +++ b/src/ProjectTemplates/Shared/ProcessLock.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/Shared/ProcessResult.cs b/src/ProjectTemplates/Shared/ProcessResult.cs index ced315345bcc..81ff0f2bd13b 100644 --- a/src/ProjectTemplates/Shared/ProcessResult.cs +++ b/src/ProjectTemplates/Shared/ProcessResult.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Internal; diff --git a/src/ProjectTemplates/Shared/Project.cs b/src/ProjectTemplates/Shared/Project.cs index 8862b36183eb..95d7c3a3363e 100644 --- a/src/ProjectTemplates/Shared/Project.cs +++ b/src/ProjectTemplates/Shared/Project.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -102,13 +102,13 @@ internal async Task RunDotNetNewAsync( try { Output.WriteLine("Acquired DotNetNewLock"); - + if (Directory.Exists(TemplateOutputDir)) { Output.WriteLine($"Template directory already exists, deleting contents of {TemplateOutputDir}"); Directory.Delete(TemplateOutputDir, recursive: true); } - + using var execution = ProcessEx.Run(Output, AppContext.BaseDirectory, DotNetMuxer.MuxerPathOrDefault(), argString, environmentVariables); await execution.Exited; return new ProcessResult(execution); diff --git a/src/ProjectTemplates/Shared/ProjectFactoryFixture.cs b/src/ProjectTemplates/Shared/ProjectFactoryFixture.cs index 52fbed63dd00..9af84efc680d 100644 --- a/src/ProjectTemplates/Shared/ProjectFactoryFixture.cs +++ b/src/ProjectTemplates/Shared/ProjectFactoryFixture.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Concurrent; diff --git a/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs b/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs index b50068b3e59e..20a2a00a8619 100644 --- a/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs +++ b/src/ProjectTemplates/Shared/TemplatePackageInstaller.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/ProjectTemplates/Shared/TestOutputLogger.cs b/src/ProjectTemplates/Shared/TestOutputLogger.cs index 5f69b7928da6..e551905ec60a 100644 --- a/src/ProjectTemplates/Shared/TestOutputLogger.cs +++ b/src/ProjectTemplates/Shared/TestOutputLogger.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using Microsoft.Extensions.Logging; diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js index 57e8b2e475d6..553d427471b0 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js @@ -2,4 +2,4 @@ // 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. // @version v3.2.11 -!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js index 57e8b2e475d6..553d427471b0 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js @@ -2,4 +2,4 @@ // 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. // @version v3.2.11 -!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js index 57e8b2e475d6..553d427471b0 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js @@ -2,4 +2,4 @@ // 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. // @version v3.2.11 -!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); \ No newline at end of file +!function(a){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery-validation")):jQuery.validator.unobtrusive=a(jQuery)}(function(a){function e(a,e,n){a.rules[e]=n,a.message&&(a.messages[e]=a.message)}function n(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function t(a){return a.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function r(a){return a.substr(0,a.lastIndexOf(".")+1)}function i(a,e){return 0===a.indexOf("*.")&&(a=a.replace("*.",e)),a}function o(e,n){var r=a(this).find("[data-valmsg-for='"+t(n[0].name)+"']"),i=r.attr("data-valmsg-replace"),o=i?a.parseJSON(i)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",r),o?(r.empty(),e.removeClass("input-validation-error").appendTo(r)):e.hide()}function d(e,n){var t=a(this).find("[data-valmsg-summary=true]"),r=t.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),t.addClass("validation-summary-errors").removeClass("validation-summary-valid"),a.each(n.errorList,function(){a("
  • ").html(this.message).appendTo(r)}))}function s(e){var n=e.data("unobtrusiveContainer");if(n){var t=n.attr("data-valmsg-replace"),r=t?a.parseJSON(t):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(e){var n=a(this),t="__jquery_unobtrusive_validation_form_reset";if(!n.data(t)){n.data(t,!0);try{n.data("validator").resetForm()}finally{n.removeData(t)}n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function u(e){var n=a(e),t=n.data(v),r=a.proxy(l,e),i=f.unobtrusive.options||{},u=function(n,t){var r=i[n];r&&a.isFunction(r)&&r.apply(e,t)};return t||(t={options:{errorClass:i.errorClass||"input-validation-error",errorElement:i.errorElement||"span",errorPlacement:function(){o.apply(e,arguments),u("errorPlacement",arguments)},invalidHandler:function(){d.apply(e,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){s.apply(e,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+v,r).on("reset."+v,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(v,t)),t}var m,f=a.validator,v="unobtrusiveValidation";return f.unobtrusive={adapters:[],parseElement:function(e,n){var t,r,i,o=a(e),d=o.parents("form")[0];d&&(t=u(d),t.options.rules[e.name]=r={},t.options.messages[e.name]=i={},a.each(this.adapters,function(){var n="data-val-"+this.name,t=o.attr(n),s={};void 0!==t&&(n+="-",a.each(this.params,function(){s[this]=o.attr(n+this)}),this.adapt({element:e,form:d,message:t,params:s,rules:r,messages:i}))}),a.extend(r,{__dummy__:!0}),n||t.attachValidation())},parse:function(e){var n=a(e),t=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){f.unobtrusive.parseElement(this,!0)}),t.each(function(){var a=u(this);a&&a.attachValidation()})}},m=f.unobtrusive.adapters,m.add=function(a,e,n){return n||(n=e,e=[]),this.push({name:a,params:e,adapt:n}),this},m.addBool=function(a,n){return this.add(a,function(t){e(t,n||a,!0)})},m.addMinMax=function(a,n,t,r,i,o){return this.add(a,[i||"min",o||"max"],function(a){var i=a.params.min,o=a.params.max;i&&o?e(a,r,[i,o]):i?e(a,n,i):o&&e(a,t,o)})},m.addSingleVal=function(a,n,t){return this.add(a,[n||"val"],function(r){e(r,t||a,r.params[n])})},f.addMethod("__dummy__",function(a,e,n){return!0}),f.addMethod("regex",function(a,e,n){var t;return!!this.optional(e)||(t=new RegExp(n).exec(a),t&&0===t.index&&t[0].length===a.length)}),f.addMethod("nonalphamin",function(a,e,n){var t;return n&&(t=a.match(/\W/g),t=t&&t.length>=n),t}),f.methods.extension?(m.addSingleVal("accept","mimtype"),m.addSingleVal("extension","extension")):m.addSingleVal("extension","extension","accept"),m.addSingleVal("regex","pattern"),m.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),m.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),m.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),m.add("equalto",["other"],function(n){var o=r(n.element.name),d=n.params.other,s=i(d,o),l=a(n.form).find(":input").filter("[name='"+t(s)+"']")[0];e(n,"equalTo",l)}),m.add("required",function(a){"INPUT"===a.element.tagName.toUpperCase()&&"CHECKBOX"===a.element.type.toUpperCase()||e(a,"required",!0)}),m.add("remote",["url","type","additionalfields"],function(o){var d={url:o.params.url,type:o.params.type||"GET",data:{}},s=r(o.element.name);a.each(n(o.params.additionalfields||o.element.name),function(e,n){var r=i(n,s);d.data[r]=function(){var e=a(o.form).find(":input").filter("[name='"+t(r)+"']");return e.is(":checkbox")?e.filter(":checked").val()||e.filter(":hidden").val()||"":e.is(":radio")?e.filter(":checked").val()||"":e.val()}}),e(o,"remote",d)}),m.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&e(a,"minlength",a.params.min),a.params.nonalphamin&&e(a,"nonalphamin",a.params.nonalphamin),a.params.regex&&e(a,"regex",a.params.regex)}),m.add("fileextensions",["extensions"],function(a){e(a,"extension",a.params.extensions)}),a(function(){f.unobtrusive.parse(document)}),f.unobtrusive}); diff --git a/src/ProjectTemplates/test/AssemblyInfo.AssemblyFixtures.cs b/src/ProjectTemplates/test/AssemblyInfo.AssemblyFixtures.cs index b4a3b7fcf6cd..7e531ec57ea6 100644 --- a/src/ProjectTemplates/test/AssemblyInfo.AssemblyFixtures.cs +++ b/src/ProjectTemplates/test/AssemblyInfo.AssemblyFixtures.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Testing; using Templates.Test.Helpers; diff --git a/src/ProjectTemplates/test/BaselineTest.cs b/src/ProjectTemplates/test/BaselineTest.cs index 2228450f5765..801b9b78582c 100644 --- a/src/ProjectTemplates/test/BaselineTest.cs +++ b/src/ProjectTemplates/test/BaselineTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/ProjectTemplates/test/BlazorServerTemplateTest.cs b/src/ProjectTemplates/test/BlazorServerTemplateTest.cs index 8870ff78f8bb..f16a58e77aaf 100644 --- a/src/ProjectTemplates/test/BlazorServerTemplateTest.cs +++ b/src/ProjectTemplates/test/BlazorServerTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/test/BlazorTemplateTest.cs b/src/ProjectTemplates/test/BlazorTemplateTest.cs index bc0087fa3531..792e9fd24750 100644 --- a/src/ProjectTemplates/test/BlazorTemplateTest.cs +++ b/src/ProjectTemplates/test/BlazorTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/ProjectTemplates/test/BlazorWasmTemplateTest.cs b/src/ProjectTemplates/test/BlazorWasmTemplateTest.cs index 2e1bcf342143..97a580dddd8b 100644 --- a/src/ProjectTemplates/test/BlazorWasmTemplateTest.cs +++ b/src/ProjectTemplates/test/BlazorWasmTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/test/ByteOrderMarkTest.cs b/src/ProjectTemplates/test/ByteOrderMarkTest.cs index bd5d7a185fc6..0b86918bfde4 100644 --- a/src/ProjectTemplates/test/ByteOrderMarkTest.cs +++ b/src/ProjectTemplates/test/ByteOrderMarkTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/ProjectTemplates/test/EmptyWebTemplateTest.cs b/src/ProjectTemplates/test/EmptyWebTemplateTest.cs index 96d099be5fb1..e90ccbf5b94c 100644 --- a/src/ProjectTemplates/test/EmptyWebTemplateTest.cs +++ b/src/ProjectTemplates/test/EmptyWebTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Templates.Test.Helpers; diff --git a/src/ProjectTemplates/test/GrpcTemplateTest.cs b/src/ProjectTemplates/test/GrpcTemplateTest.cs index dc7b5fd6f8cc..76db82c03550 100644 --- a/src/ProjectTemplates/test/GrpcTemplateTest.cs +++ b/src/ProjectTemplates/test/GrpcTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/ProjectTemplates/test/IdentityUIPackageTest.cs b/src/ProjectTemplates/test/IdentityUIPackageTest.cs index e635aabbe5c2..77a04fa062c2 100644 --- a/src/ProjectTemplates/test/IdentityUIPackageTest.cs +++ b/src/ProjectTemplates/test/IdentityUIPackageTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.IO; diff --git a/src/ProjectTemplates/test/ItemTemplateTests/BlazorServerTests.cs b/src/ProjectTemplates/test/ItemTemplateTests/BlazorServerTests.cs index b089a5262f1a..3b97cfdaff78 100644 --- a/src/ProjectTemplates/test/ItemTemplateTests/BlazorServerTests.cs +++ b/src/ProjectTemplates/test/ItemTemplateTests/BlazorServerTests.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Testing; diff --git a/src/ProjectTemplates/test/MvcTemplateTest.cs b/src/ProjectTemplates/test/MvcTemplateTest.cs index 1718059effa9..371191cab77a 100644 --- a/src/ProjectTemplates/test/MvcTemplateTest.cs +++ b/src/ProjectTemplates/test/MvcTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/test/RazorClassLibraryTemplateTest.cs b/src/ProjectTemplates/test/RazorClassLibraryTemplateTest.cs index 689d32a4b0c0..4a547b2377fe 100644 --- a/src/ProjectTemplates/test/RazorClassLibraryTemplateTest.cs +++ b/src/ProjectTemplates/test/RazorClassLibraryTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Testing; diff --git a/src/ProjectTemplates/test/RazorPagesTemplateTest.cs b/src/ProjectTemplates/test/RazorPagesTemplateTest.cs index 3d6c4b21ccb1..f88b54ae97f4 100644 --- a/src/ProjectTemplates/test/RazorPagesTemplateTest.cs +++ b/src/ProjectTemplates/test/RazorPagesTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/test/WebApiTemplateTest.cs b/src/ProjectTemplates/test/WebApiTemplateTest.cs index 645d8ced7535..ddc6e185320e 100644 --- a/src/ProjectTemplates/test/WebApiTemplateTest.cs +++ b/src/ProjectTemplates/test/WebApiTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/ProjectTemplates/test/WorkerTemplateTest.cs b/src/ProjectTemplates/test/WorkerTemplateTest.cs index fca3e8c10879..80e67c18738e 100644 --- a/src/ProjectTemplates/test/WorkerTemplateTest.cs +++ b/src/ProjectTemplates/test/WorkerTemplateTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Templates.Test.Helpers; diff --git a/src/ProjectTemplates/test/package.json b/src/ProjectTemplates/test/package.json index c48c6bd8a461..b0614c31fca1 100644 --- a/src/ProjectTemplates/test/package.json +++ b/src/ProjectTemplates/test/package.json @@ -9,7 +9,7 @@ "prepare": "selenium-standalone install --config ../../Shared/E2ETesting/selenium-config.json" }, "author": "", - "license": "Apache-2.0", + "license": "MIT", "dependencies": { "selenium-standalone": "^6.17.0" } diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/CSharpIdentifier.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/CSharpIdentifier.cs index a7571910d7c3..5ea84b6d56c3 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/CSharpIdentifier.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/CSharpIdentifier.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ExtensionInitializer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ExtensionInitializer.cs index 51f16b552f8c..bf8683909899 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ExtensionInitializer.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ExtensionInitializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IInjectTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IInjectTargetExtension.cs index 781932ba8c9d..3001ef74bc09 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IInjectTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IInjectTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IViewComponentTagHelperTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IViewComponentTagHelperTargetExtension.cs index 45a0d581a50b..b418b444d125 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IViewComponentTagHelperTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/IViewComponentTagHelperTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectDirective.cs index f5ea58312176..c51816f79959 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -41,7 +41,7 @@ internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { // Runs after the @model and @namespace directives public override int Order => 10; - + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectIntermediateNode.cs index 8325c2b7a1f2..6c6357385048 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectTargetExtension.cs index d64023ade7ed..8a76fad13f42 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/InjectTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/LegacySectionTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/LegacySectionTargetExtension.cs index 629541143a30..9453f30c9088 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/LegacySectionTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/LegacySectionTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelDirective.cs index c16f46153ff6..5e6de23914f6 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelExpressionPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelExpressionPass.cs index c943afe5bc23..51be5ea2a4df 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelExpressionPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ModelExpressionPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcImportProjectFeature.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcImportProjectFeature.cs index fa8a40fedb72..a084fd5154a3 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcImportProjectFeature.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcImportProjectFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcViewDocumentClassifierPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcViewDocumentClassifierPass.cs index bcfc120e781e..618329c9bc71 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcViewDocumentClassifierPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/MvcViewDocumentClassifierPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -18,9 +18,9 @@ public class MvcViewDocumentClassifierPass : DocumentClassifierPassBase protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) => true; protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, + RazorCodeDocument codeDocument, + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, MethodDeclarationIntermediateNode method) { base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/AssemblyInfo.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/AssemblyInfo.cs index 8233c626078d..7cde171b44cc 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/AssemblyInfo.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensions.cs index 6fe73b57aeb7..329a20779ec7 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensionsDiagnosticFactory.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensionsDiagnosticFactory.cs index af883af3d4d1..e153f03f5384 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensionsDiagnosticFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/RazorExtensionsDiagnosticFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/TagHelperDescriptorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/TagHelperDescriptorExtensions.cs index b455fc742317..456d9e065640 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/TagHelperDescriptorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/TagHelperDescriptorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperConventions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperConventions.cs index f02d874dc5a8..4b970e44d746 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperConventions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperConventions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X { diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorFactory.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorFactory.cs index 795786f5b807..5db919b03553 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -59,7 +59,7 @@ public virtual TagHelperDescriptor CreateDescriptor(INamedTypeSymbol type) var descriptorBuilder = TagHelperDescriptorBuilder.Create(ViewComponentTagHelperConventions.Kind, typeName, assemblyName); descriptorBuilder.SetTypeName(typeName); descriptorBuilder.DisplayName = displayName; - + if (TryFindInvokeMethod(type, out var method, out var diagnostic)) { var methodParameters = method.Parameters; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorProvider.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorProvider.cs index 318994ec0ebd..79439c20abd1 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorProvider.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperIntermediateNode.cs index b1399ffbeab9..3b9691e6ff44 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperMetadata.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperMetadata.cs index 1718829c3906..5cce7be67016 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperMetadata.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperMetadata.cs @@ -1,12 +1,12 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X { public static class ViewComponentTagHelperMetadata { /// - /// The key in a containing + /// The key in a containing /// the short name of a view component. /// public static readonly string Name = "MVC.ViewComponent.Name"; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperPass.cs index 91865fc75d06..63ce9b922e36 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperPass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperTargetExtension.cs index f571457e9700..42f9d74a0a55 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTagHelperTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypeVisitor.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypeVisitor.cs index 516a666151e9..7a40057cc6d5 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypeVisitor.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypeVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypes.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypes.cs index e9d8f598f858..09f3914a2f6e 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypes.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/src/ViewComponentTypes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectDirectiveTest.cs index 63560c0f1f5f..b07a3b546c73 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectTargetExtensionTest.cs index ec314d03f67d..e4f17e5ad9d2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/InjectTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs index e4144fe7184f..2003808757ed 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.IntegrationTests; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/LegacySectionTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/LegacySectionTargetExtensionTest.cs index edf09ff60abe..c005817ed392 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/LegacySectionTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/LegacySectionTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelDirectiveTest.cs index 0cb572a8a8a8..d34b3625be90 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs index 573159771f2b..fab89448675d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcImportProjectFeatureTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcImportProjectFeatureTest.cs index e53046ed5aaa..1f9f4e73c943 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcImportProjectFeatureTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcImportProjectFeatureTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcShim.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcShim.cs index a50560e593e7..855c0ccffd83 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcShim.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcShim.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcViewDocumentClassifierPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcViewDocumentClassifierPassTest.cs index a0a38252678d..a0f79fead092 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcViewDocumentClassifierPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/MvcViewDocumentClassifierPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/Properties/AssemblyInfo.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/Properties/AssemblyInfo.cs index 3337ebeac24b..fb33a59c5309 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/Properties/AssemblyInfo.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/SourceMappingsSerializer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/SourceMappingsSerializer.cs index c081118d86a9..d8089d8fa014 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/SourceMappingsSerializer.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/SourceMappingsSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/TagHelperDescriptorExtensionsTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/TagHelperDescriptorExtensionsTest.cs index f080719b5a08..04b4d43314a0 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/TagHelperDescriptorExtensionsTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/TagHelperDescriptorExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Xunit; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs index 491a2faaab9c..429a984a8905 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorProviderTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorProviderTest.cs index 862b97d71538..4ca9dc9cbcba 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorProviderTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperDescriptorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs index befa9d011c91..ea4dfccb0b02 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperTargetExtensionTest.cs index 2e3c476a3618..6c3e89729500 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTypeVisitorTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTypeVisitorTest.cs index 96d879756c07..d74a44ad6462 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTypeVisitorTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTypeVisitorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/AssemblyAttributeInjectionPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/AssemblyAttributeInjectionPass.cs index c03e517ae920..27e4fe40adb0 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/AssemblyAttributeInjectionPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/AssemblyAttributeInjectionPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -82,7 +82,7 @@ private static string MakeVerbatimStringLiteral(string value) value = value.Replace("\"", "\"\""); return $"@\"{value}\""; } - + private static string ConvertToViewEnginePath(string relativePath) { if (string.IsNullOrEmpty(relativePath)) @@ -95,7 +95,7 @@ private static string ConvertToViewEnginePath(string relativePath) { relativePath = "/" + relativePath; } - + relativePath = relativePath.Replace('\\', '/'); return relativePath; } diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/CSharpIdentifier.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/CSharpIdentifier.cs index 28e08063e6a7..20622f31919b 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/CSharpIdentifier.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/CSharpIdentifier.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ExtensionInitializer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ExtensionInitializer.cs index 03d05f7f9bbc..e290f12de7e2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ExtensionInitializer.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ExtensionInitializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IInjectTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IInjectTargetExtension.cs index c334e23c2bb8..8595a463d41d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IInjectTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IInjectTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IViewComponentTagHelperTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IViewComponentTagHelperTargetExtension.cs index f3e07a2b75bc..76f9b354067a 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IViewComponentTagHelperTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/IViewComponentTagHelperTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectDirective.cs index 9442aaf64164..bceb02026def 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -41,7 +41,7 @@ internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { // Runs after the @model and @namespace directives public override int Order => 10; - + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectIntermediateNode.cs index 4e3603f40de8..e56b112f3f97 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectTargetExtension.cs index d2723ba99d72..409f16c338fa 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InjectTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InstrumentationPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InstrumentationPass.cs index f10aeb9707a5..fe41b8713d31 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InstrumentationPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/InstrumentationPass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Globalization; @@ -26,7 +26,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentInte for (var i = 0; i < walker.Items.Count; i++) { var node = walker.Items[i]; - + AddInstrumentation(node); } } @@ -115,7 +115,7 @@ public override void VisitTagHelper(TagHelperIntermediateNode node) for (var i = 0; i < node.Children.Count; i++) { var child = node.Children[i]; - if (child is TagHelperBodyIntermediateNode || + if (child is TagHelperBodyIntermediateNode || child is DefaultTagHelperBodyIntermediateNode) { VisitDefault(child); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelDirective.cs index cf80df5f686c..dd62e8c776c0 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelExpressionPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelExpressionPass.cs index ef8e8fb181de..bad5bbb48026 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelExpressionPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ModelExpressionPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcImportProjectFeature.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcImportProjectFeature.cs index b5a585192256..4c5f7deeec7e 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcImportProjectFeature.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcImportProjectFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcViewDocumentClassifierPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcViewDocumentClassifierPass.cs index 813dd2db4a12..7575ca495e4d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcViewDocumentClassifierPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/MvcViewDocumentClassifierPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; @@ -18,9 +18,9 @@ public class MvcViewDocumentClassifierPass : DocumentClassifierPassBase protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) => true; protected override void OnDocumentStructureCreated( - RazorCodeDocument codeDocument, - NamespaceDeclarationIntermediateNode @namespace, - ClassDeclarationIntermediateNode @class, + RazorCodeDocument codeDocument, + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, MethodDeclarationIntermediateNode method) { base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/NamespaceDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/NamespaceDirective.cs index b66a34658de3..b7dff4220145 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/NamespaceDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/NamespaceDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PageDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PageDirective.cs index 9b483f9b9f55..9d7338fa624a 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PageDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PageDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PagesPropertyInjectionPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PagesPropertyInjectionPass.cs index 4010c1903b09..181898f2b543 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PagesPropertyInjectionPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/PagesPropertyInjectionPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/AssemblyInfo.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/AssemblyInfo.cs index a7a402e09a68..aa0e87b877ed 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/AssemblyInfo.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensions.cs index afb0e896e094..221c35fa3455 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensionsDiagnosticFactory.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensionsDiagnosticFactory.cs index 05a01d38a9fc..580ef9730f70 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensionsDiagnosticFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorExtensionsDiagnosticFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorPageDocumentClassifierPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorPageDocumentClassifierPass.cs index dbda9500fcc3..01e45885425e 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorPageDocumentClassifierPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/RazorPageDocumentClassifierPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/TagHelperDescriptorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/TagHelperDescriptorExtensions.cs index b7bd72ec7011..579fa312b9d8 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/TagHelperDescriptorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/TagHelperDescriptorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperConventions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperConventions.cs index 30e8d1c36f91..d6383bbdab79 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperConventions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperConventions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X { diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorFactory.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorFactory.cs index ef989c3f7fcb..0938f9ff2ee1 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorProvider.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorProvider.cs index 4806acc806c3..8c0b7fc2e267 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorProvider.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperIntermediateNode.cs index a42b88416bc9..6140beaa60b3 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperMetadata.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperMetadata.cs index ad77c7a29eed..9d4aca9ed749 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperMetadata.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperMetadata.cs @@ -1,12 +1,12 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X { public static class ViewComponentTagHelperMetadata { /// - /// The key in a containing + /// The key in a containing /// the short name of a view component. /// public static readonly string Name = "MVC.ViewComponent.Name"; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperPass.cs index 81c21566fc2c..e8668c92d3f1 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperPass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperTargetExtension.cs index fb58a5197099..b8d6bf009e3f 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTagHelperTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypeVisitor.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypeVisitor.cs index aed17fb2f213..c50be4d8b897 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypeVisitor.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypeVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypes.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypes.cs index cd7e2771be76..8e824868e1d4 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypes.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/src/ViewComponentTypes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/AssemblyAttributeInjectionPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/AssemblyAttributeInjectionPassTest.cs index 3754276dbfc3..ca432d402152 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/AssemblyAttributeInjectionPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/AssemblyAttributeInjectionPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectDirectiveTest.cs index ff128921c984..178b187e39e2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectTargetExtensionTest.cs index 53e7debcf734..a363d22ec0d7 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InjectTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InstrumentationPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InstrumentationPassTest.cs index e1bd402e2696..90825d8926e5 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InstrumentationPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/InstrumentationPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; @@ -64,7 +64,7 @@ public void InstrumentationPass_InstrumentsHtml() Source = CreateSource(1) }); builder.Pop(); - + var pass = new InstrumentationPass() { Engine = RazorProjectEngine.CreateEmpty().Engine, diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs index 5bc78e055000..9956759eb158 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs index 36611468a368..729840c0c4ea 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelDirectiveTest.cs index e20876455ef4..0e079da3368a 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs index cb3e7882ab6b..dc36e41f46de 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcImportProjectFeatureTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcImportProjectFeatureTest.cs index 13c686adf919..f6c5941855c5 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcImportProjectFeatureTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcImportProjectFeatureTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcShim.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcShim.cs index acbdea28f370..90b2871a9c0f 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcShim.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcShim.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcViewDocumentClassifierPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcViewDocumentClassifierPassTest.cs index 455ed1ba2189..fddbd051e063 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcViewDocumentClassifierPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/MvcViewDocumentClassifierPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/NamespaceDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/NamespaceDirectiveTest.cs index 8e5d76c6783a..dc1a7e323d6a 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/NamespaceDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/NamespaceDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; @@ -127,7 +127,7 @@ public void Pass_SetsNamespace_ComputedFromImports() var @class = new ClassDeclarationIntermediateNode() { ClassName = "default" }; builder.Add(@class); - + document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; var codeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("ignored", "/Account/Manage/AddUser.cshtml")); @@ -174,7 +174,7 @@ public void Pass_SetsNamespace_ComputedFromSource() var @class = new ClassDeclarationIntermediateNode() { ClassName = "default" }; builder.Add(@class); - + document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; var codeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("ignored", "/Account/Manage/AddUser.cshtml")); @@ -259,7 +259,7 @@ public void Pass_SetsNamespace_ComputedFromSource_ForView() var @class = new ClassDeclarationIntermediateNode() { ClassName = "default" }; builder.Add(@class); - + document.DocumentKind = MvcViewDocumentClassifierPass.MvcViewDocumentKind; var codeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("ignored", "/Account/Manage/AddUser.cshtml")); @@ -297,7 +297,7 @@ public void Pass_SetsNamespace_VerbatimFromImports() var @class = new ClassDeclarationIntermediateNode() { ClassName = "default" }; builder.Add(@class); - + document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; var codeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("ignored", "/Account/Manage/AddUser.cshtml")); @@ -333,7 +333,7 @@ public void Pass_DoesNothing_ForUnknownDocumentKind() var @class = new ClassDeclarationIntermediateNode() { ClassName = "default" }; builder.Add(@class); - + document.DocumentKind = null; var codeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("ignored", "/Account/Manage/AddUser.cshtml")); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/PageDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/PageDirectiveTest.cs index 1bdb156298fa..53dff510055f 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/PageDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/PageDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/Properties/AssemblyInfo.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/Properties/AssemblyInfo.cs index 3337ebeac24b..fb33a59c5309 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/Properties/AssemblyInfo.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/RazorPageDocumentClassifierPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/RazorPageDocumentClassifierPassTest.cs index 4f895243bf32..3ebfcfb17d9d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/RazorPageDocumentClassifierPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/RazorPageDocumentClassifierPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/SourceMappingsSerializer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/SourceMappingsSerializer.cs index 8c63fd74448e..6f2bb89176ef 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/SourceMappingsSerializer.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/SourceMappingsSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/TagHelperDescriptorExtensionsTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/TagHelperDescriptorExtensionsTest.cs index af0b983b5535..959c3d3a72c2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/TagHelperDescriptorExtensionsTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/TagHelperDescriptorExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Xunit; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs index bf56cb729fda..e16962f0b00c 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorProviderTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorProviderTest.cs index d78e7b0a8216..cb45f950e12b 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorProviderTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperDescriptorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Linq; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs index 00330a4eefab..997e568fafd1 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Razor.Language; @@ -178,7 +178,7 @@ public void ViewComponentTagHelperPass_Execute_CreatesViewComponentTagHelper_Nes }; var irDocument = CreateIRDocument(projectEngine, codeDocument); - + var vcthFullName = "AspNetCore.test.__Generated__TagCloudViewComponentTagHelper"; // Act diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperTargetExtensionTest.cs index c5c148b6a50b..314560031f82 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTypeVisitorTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTypeVisitorTest.cs index ad75c89bfb24..c45c210caefd 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTypeVisitorTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTypeVisitorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ExtensionInitializer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ExtensionInitializer.cs index 8c650ebedb73..dae4363c0e18 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ExtensionInitializer.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ExtensionInitializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Components; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IInjectTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IInjectTargetExtension.cs index 89f74d5aaafd..d47a7d026fb2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IInjectTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IInjectTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IViewComponentTagHelperTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IViewComponentTagHelperTargetExtension.cs index 1f303e7422d1..f19029035a1d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IViewComponentTagHelperTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/IViewComponentTagHelperTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectDirective.cs index 0543fbca9fb2..ec190b9e5946 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -41,7 +41,7 @@ internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { // Runs after the @model and @namespace directives public override int Order => 10; - + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind && diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectIntermediateNode.cs index 572d8bb1dc23..fe76db4f5217 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectTargetExtension.cs index d416d3aa0add..1e6aa50be4a6 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/InjectTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelDirective.cs index cf252d18297d..e39c3dfc9ce6 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelExpressionPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelExpressionPass.cs index 7b44002ff989..ff4490563a0e 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelExpressionPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ModelExpressionPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcImportProjectFeature.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcImportProjectFeature.cs index b85402ef79f1..6f53c3cbc41e 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcImportProjectFeature.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcImportProjectFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcViewDocumentClassifierPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcViewDocumentClassifierPass.cs index 91378d632ff3..8c96517000d4 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcViewDocumentClassifierPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/MvcViewDocumentClassifierPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PageDirective.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PageDirective.cs index 27523d68268b..286e96acab25 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PageDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PageDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PagesPropertyInjectionPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PagesPropertyInjectionPass.cs index 4a47275e1365..a66c72db84c1 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PagesPropertyInjectionPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/PagesPropertyInjectionPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/AssemblyInfo.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/AssemblyInfo.cs index 7d8a47bc677e..ed615f183aab 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/AssemblyInfo.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Mvc.Razor.Extensions; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensions.cs index 1919bbb04d24..57b075f67b2b 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; @@ -21,7 +21,7 @@ public static void Register(RazorProjectEngineBuilder builder) InjectDirective.Register(builder); ModelDirective.Register(builder); PageDirective.Register(builder); - + SectionDirective.Register(builder); builder.Features.Add(new DefaultTagHelperDescriptorProvider()); @@ -36,7 +36,7 @@ public static void Register(RazorProjectEngineBuilder builder) builder.Features.Add(new ModelExpressionPass()); builder.Features.Add(new PagesPropertyInjectionPass()); builder.Features.Add(new ViewComponentTagHelperPass()); - + builder.Features.Add(new RazorPageDocumentClassifierPass(builder.Configuration.UseConsolidatedMvcViews)); builder.Features.Add(new MvcViewDocumentClassifierPass(builder.Configuration.UseConsolidatedMvcViews)); diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensionsDiagnosticFactory.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensionsDiagnosticFactory.cs index 182cd37b1c7c..25c3059bd044 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensionsDiagnosticFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorExtensionsDiagnosticFactory.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Threading.Tasks; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorPageDocumentClassifierPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorPageDocumentClassifierPass.cs index 65eed6f8554b..5d51d8307f2d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorPageDocumentClassifierPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/RazorPageDocumentClassifierPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/TagHelperDescriptorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/TagHelperDescriptorExtensions.cs index dd32c0b013a4..03dc3f65e41d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/TagHelperDescriptorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/TagHelperDescriptorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperConventions.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperConventions.cs index fa7563d37ba6..4ac84054927d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperConventions.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperConventions.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorFactory.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorFactory.cs index 1338631cbb32..7d0fdbc3585b 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorProvider.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorProvider.cs index 970b29152b06..7eeb9eda4792 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorProvider.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperDescriptorProvider.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperIntermediateNode.cs index 9283b2c092a1..0078fd0c4482 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperMetadata.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperMetadata.cs index ca8aae361daf..ccbea6a5f9e6 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperMetadata.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperMetadata.cs @@ -1,12 +1,12 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { public static class ViewComponentTagHelperMetadata { /// - /// The key in a containing + /// The key in a containing /// the short name of a view component. /// public static readonly string Name = "MVC.ViewComponent.Name"; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperPass.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperPass.cs index 9292ae75cc6b..cc0b873e060a 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperPass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperTargetExtension.cs index a69c0df16623..3365ef41ab27 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTagHelperTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypeVisitor.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypeVisitor.cs index b5dc33737ec1..31ece6c398b2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypeVisitor.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypeVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypes.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypes.cs index 5558ba5e06e6..014cefab9732 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypes.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/src/ViewComponentTypes.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ConsolidatedMvcViewDocumentClassifierPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ConsolidatedMvcViewDocumentClassifierPassTest.cs index d8d5751f60b9..4f3315e6ed23 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ConsolidatedMvcViewDocumentClassifierPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ConsolidatedMvcViewDocumentClassifierPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectDirectiveTest.cs index a935b23bfb12..fc6cb2fd7d16 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectTargetExtensionTest.cs index 65a632d61341..a676d371ea62 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/InjectTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs index edfe250ed16b..f87c682eae63 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs index 1d807edab3c9..aba0171e3d52 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Text; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs index 8a9ecab95016..3465e29ef591 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcImportProjectFeatureTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcImportProjectFeatureTest.cs index 7e811ee261a5..bf840dfdc042 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcImportProjectFeatureTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcImportProjectFeatureTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcShim.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcShim.cs index 0ee1e1a66da7..13bb3e9e548f 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcShim.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcShim.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcViewDocumentClassifierPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcViewDocumentClassifierPassTest.cs index 3cb503f9fca7..2c199dbb27b2 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcViewDocumentClassifierPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/MvcViewDocumentClassifierPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/PageDirectiveTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/PageDirectiveTest.cs index 6cf27963587b..3cf1f07d6fab 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/PageDirectiveTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/PageDirectiveTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Properties/AssemblyInfo.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Properties/AssemblyInfo.cs index 3337ebeac24b..fb33a59c5309 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Properties/AssemblyInfo.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/RazorPageDocumentClassifierPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/RazorPageDocumentClassifierPassTest.cs index 779958703e13..6ac91ae28a51 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/RazorPageDocumentClassifierPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/RazorPageDocumentClassifierPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/SourceMappingsSerializer.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/SourceMappingsSerializer.cs index c2dd799b05bb..0fa06356fb60 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/SourceMappingsSerializer.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/SourceMappingsSerializer.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Text; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TagHelperDescriptorExtensionsTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TagHelperDescriptorExtensionsTest.cs index e9e423853cfb..826dd282c5cd 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TagHelperDescriptorExtensionsTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TagHelperDescriptorExtensionsTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Xunit; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorFactoryTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorFactoryTest.cs index 679d402c3c9d..3802e05ec099 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorFactoryTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorFactoryTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorProviderTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorProviderTest.cs index 5fd567133f5f..3725e9368586 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorProviderTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperDescriptorProviderTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.CodeAnalysis; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs index 02039ced8aec..1f4d111ae0ee 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Razor.Language; @@ -178,7 +178,7 @@ public void ViewComponentTagHelperPass_Execute_CreatesViewComponentTagHelper_Nes }; var irDocument = CreateIRDocument(projectEngine, codeDocument); - + var vcthFullName = "AspNetCore.test.__Generated__TagCloudViewComponentTagHelper"; // Act diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperTargetExtensionTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperTargetExtensionTest.cs index 934859dbb0bd..b189e235365d 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperTargetExtensionTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperTargetExtensionTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language; using Microsoft.AspNetCore.Razor.Language.CodeGeneration; diff --git a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTypeVisitorTest.cs b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTypeVisitorTest.cs index 3e72a824bc61..57593fb397bf 100644 --- a/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTypeVisitorTest.cs +++ b/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTypeVisitorTest.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptor.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptor.cs index 3e33f1230018..4eeb6694beb1 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptor.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorBuilder.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorBuilder.cs index 46fc3cc6aaa2..09841c861bf2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorBuilder.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -12,6 +12,6 @@ public abstract class AllowedChildTagDescriptorBuilder public abstract string DisplayName { get; set; } public abstract RazorDiagnosticCollection Diagnostics { get; } - + } } diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorComparer.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorComparer.cs index f6b4ea5776a3..d23fef4e026d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorComparer.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AssemblyExtension.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AssemblyExtension.cs index 97f1c31c153e..14a502f73945 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AssemblyExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AssemblyExtension.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Reflection; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AttributeStructure.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AttributeStructure.cs index 9a191578c498..eb35e720388d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AttributeStructure.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/AttributeStructure.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Razor.Language { diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptor.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptor.cs index 6a11b3aba45e..89b53922f4db 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptor.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilder.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilder.cs index 051f2655d67b..df7d87e94fc5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilder.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilderExtensions.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilderExtensions.cs index ba565acf2dfa..9ed889b11462 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilderExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorBuilderExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Components; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorComparer.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorComparer.cs index 2e0508c19cf2..f0fc04182888 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorComparer.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorExtensions.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorExtensions.cs index 8542e4a6338a..03d52f2ffac9 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Components; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptor.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptor.cs index 904718d7300b..021d036ea23d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptor.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorBuilder.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorBuilder.cs index 64ab98a6edbe..1f66e59a1ee5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorBuilder.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorComparer.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorComparer.cs index 8896c341d3ff..ace60ba9b178 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorComparer.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeParameterDescriptorComparer.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CSharpIdentifier.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CSharpIdentifier.cs index 00a27fb4bc65..aa7586997815 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CSharpIdentifier.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CSharpIdentifier.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; using System.Text; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Checksum.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Checksum.cs index ca862c5441d3..eb4651335976 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Checksum.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Checksum.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ClassifiedSpanVisitor.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ClassifiedSpanVisitor.cs index 96544078e367..d022f0df4b4a 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ClassifiedSpanVisitor.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/ClassifiedSpanVisitor.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeRenderingContext.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeRenderingContext.cs index d144558bb08c..435354a5fedb 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeRenderingContext.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeRenderingContext.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTarget.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTarget.cs index ba8ba8b48c0e..0419e27105a7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTarget.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTarget.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; @@ -58,7 +58,7 @@ public static CodeTarget CreateDefault( public static CodeTarget CreateEmpty( RazorCodeDocument codeDocument, - RazorCodeGenerationOptions options, + RazorCodeGenerationOptions options, Action configure) { if (codeDocument == null) diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTargetBuilder.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTargetBuilder.cs index de9daf2ea609..ca3f14cad533 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTargetBuilder.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeTargetBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriter.cs index 44c606431b36..8977fdfb0438 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Runtime.CompilerServices; @@ -83,7 +83,7 @@ public CodeWriter Indent(int size) var actualSize = 0; if (IndentWithTabs) { - // Avoid writing directly to the StringBuilder here, that will throw off the manual indexing + // Avoid writing directly to the StringBuilder here, that will throw off the manual indexing // done by the base class. var tabs = size / TabSize; actualSize += tabs; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriterExtensions.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriterExtensions.cs index c17a41af4e8e..5128d9d17ceb 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriterExtensions.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/CodeWriterExtensions.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -685,7 +685,7 @@ public LinePragmaWriter( { WriteLineNumberDirective(writer, span); } - + // Capture the line index after writing the #line directive. _startLineIndex = writer.Location.LineIndex; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeRenderingContext.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeRenderingContext.cs index afb717391a1b..b50124a9907a 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeRenderingContext.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeRenderingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTarget.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTarget.cs index e9ef7d1ee716..5dccffabc4c8 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTarget.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTarget.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTargetBuilder.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTargetBuilder.cs index 8ae23bddf493..21d8ed299fe0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTargetBuilder.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultCodeTargetBuilder.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultDocumentWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultDocumentWriter.cs index 0c2d584e3487..f4c5b223b9e4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultDocumentWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DefaultDocumentWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DesignTimeNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DesignTimeNodeWriter.cs index 9bf56e2eec55..73f39e2e5493 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DesignTimeNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DesignTimeNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Extensions; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DocumentWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DocumentWriter.cs index abe058078bf9..050a79de9f62 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DocumentWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/DocumentWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.ComponentModel; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/ICodeTargetExtension.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/ICodeTargetExtension.cs index c8414f13355d..ee7de605023d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/ICodeTargetExtension.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/ICodeTargetExtension.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/IntermediateNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/IntermediateNodeWriter.cs index 5d6d116fc6ec..64fff77534a2 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/IntermediateNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/IntermediateNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Intermediate; @@ -33,7 +33,7 @@ public virtual void WriteComponentAttribute(CodeRenderingContext context, Compon { throw new NotSupportedException("This writer does not support components."); } - + public virtual void WriteComponentChildContent(CodeRenderingContext context, ComponentChildContentIntermediateNode node) { throw new NotSupportedException("This writer does not support components."); diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LinePragma.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LinePragma.cs index 8344b412adfd..d85fb7fb29c0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LinePragma.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LinePragma.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Globalization; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LiteralRuntimeNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LiteralRuntimeNodeWriter.cs index 21d542f663af..edf8f7522c2d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LiteralRuntimeNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/LiteralRuntimeNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/RuntimeNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/RuntimeNodeWriter.cs index abd15f4c9589..ed8cbdcd61b4 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/RuntimeNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/RuntimeNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -209,7 +209,7 @@ public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext co var parameterSepLength = 2; // Offset accounts for the length of the method, its arguments, and any // additional characters like open parens and quoted strings - var offsetLength = WriteAttributeValueMethod.Length + var offsetLength = WriteAttributeValueMethod.Length + methodInvocationParenLength + node.Prefix.Length + stringLiteralQuoteLength @@ -218,7 +218,7 @@ public override void WriteCSharpExpressionAttributeValue(CodeRenderingContext co + parameterSepLength; using (context.CodeWriter.BuildEnhancedLinePragma(node.Source.Value, context, offsetLength)) { - + context.CodeWriter .WriteStartMethodInvocation(WriteAttributeValueMethod) .WriteStringLiteral(node.Prefix) @@ -367,13 +367,13 @@ internal void WriteHtmlLiteral(CodeRenderingContext context, int maxStringLitera if (charactersRemaining > 1) { // Take one less character this iteration. We're attempting to split inbetween a surrogate pair. - // This can happen when something like an emoji sits on the barrier between splits; if we were to + // This can happen when something like an emoji sits on the barrier between splits; if we were to // split the emoji we'd end up with invalid bytes in our output. charactersToSubstring--; } else { - // The user has an invalid file with a partial surrogate a the splitting point. + // The user has an invalid file with a partial surrogate a the splitting point. // We'll let the invalid character flow but we'll explode later on. } } diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs index eec5a76575fc..6f6d5444594e 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperRenderingContext.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperRenderingContext.cs index a8cbe5c96c5f..af65ce140778 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperRenderingContext.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/CodeGeneration/TagHelperRenderingContext.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentBindLoweringPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentBindLoweringPass.cs index eb73e0f4a713..517020848d9b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentBindLoweringPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentBindLoweringPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentChildContentDiagnosticPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentChildContentDiagnosticPass.cs index ea102fa9c98b..e70ff3dc38e8 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentChildContentDiagnosticPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentChildContentDiagnosticPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Intermediate; @@ -68,7 +68,7 @@ public override void VisitComponentChildContent(ComponentChildContentIntermediat } } } - + base.VisitDefault(node); } } diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeDirective.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeDirective.cs index 509e8928d3fe..07c490514bd0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeDirective.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeTarget.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeTarget.cs index a106dd5d5def..ac3606c73d53 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeTarget.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCodeTarget.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentComplexAttributeContentPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentComplexAttributeContentPass.cs index 37d3d4ca2ed3..bd9afc5b53c0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentComplexAttributeContentPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentComplexAttributeContentPass.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Microsoft.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentConstrainedTypeParamDirective.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentConstrainedTypeParamDirective.cs index 7b4ce15bf3c4..fdd0f5814833 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentConstrainedTypeParamDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentConstrainedTypeParamDirective.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCssScopePass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCssScopePass.cs index 9192f23e692f..1d2d062af0f0 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCssScopePass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentCssScopePass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDesignTimeNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDesignTimeNodeWriter.cs index 9379d302b4b9..0da1c22cc370 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDesignTimeNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDesignTimeNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs index 0aa49c6446e8..9dd9441ebc3d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDiagnosticFactory.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -16,7 +16,7 @@ internal static class ComponentDiagnosticFactory public static readonly RazorDiagnosticDescriptor UnsupportedTagHelperDirective = new RazorDiagnosticDescriptor( $"{DiagnosticPrefix}9978", - () => + () => "The directives @addTagHelper, @removeTagHelper and @tagHelperPrefix are not valid in a component document. " + "Use '@using ' directive instead.", RazorDiagnosticSeverity.Error); diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDocumentClassifierPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDocumentClassifierPass.cs index af3ee7432fee..46913e768961 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDocumentClassifierPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDocumentClassifierPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.IO; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDuplicateAttributeDiagnosticPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDuplicateAttributeDiagnosticPass.cs index 5d6014e6c72f..857995f8a7c9 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDuplicateAttributeDiagnosticPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentDuplicateAttributeDiagnosticPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentEventHandlerLoweringPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentEventHandlerLoweringPass.cs index 727656f111ed..ddc2f08d487a 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentEventHandlerLoweringPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentEventHandlerLoweringPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentGenericTypePass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentGenericTypePass.cs index ca85ab8df364..e332ae78fbe3 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentGenericTypePass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentGenericTypePass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentImportProjectFeature.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentImportProjectFeature.cs index 5f19a23bca78..0285744062b5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentImportProjectFeature.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentImportProjectFeature.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirective.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirective.cs index dd8ebd6a0f78..6921a282c9ca 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirective.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirectivePass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirectivePass.cs index 6ad554b03a2a..91fbee3dfba7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirectivePass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectDirectivePass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectIntermediateNode.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectIntermediateNode.cs index ee0363fd7e9e..25f129671e57 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectIntermediateNode.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentInjectIntermediateNode.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -27,7 +27,7 @@ public ComponentInjectIntermediateNode(string typeName, string memberName) public string MemberName { get; } public override IntermediateNodeCollection Children => IntermediateNodeCollection.ReadOnly; - + public override void Accept(IntermediateNodeVisitor visitor) { diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentIntermediateNodePassBase.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentIntermediateNodePassBase.cs index 5aa169ff4f1f..7e1ad4fe0f11 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentIntermediateNodePassBase.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentIntermediateNodePassBase.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentKeyLoweringPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentKeyLoweringPass.cs index 178700310129..164fddc6ce9b 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentKeyLoweringPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentKeyLoweringPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.Intermediate; @@ -69,7 +69,7 @@ private IntermediateToken DetermineKeyValueToken(TagHelperDirectiveAttributeInte } } } - + return !string.IsNullOrWhiteSpace(foundToken?.Content) ? foundToken : null; } } diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirective.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirective.cs index 394bed3b5611..17fd958c4f34 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirective.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirectivePass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirectivePass.cs index 244c95df78b0..6730f7848448 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirectivePass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLayoutDirectivePass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -36,7 +36,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentInte Kind = TokenKind.CSharp, Content = $"[{ComponentsApi.LayoutAttribute.FullTypeName}(typeof({token.Content}))]", }); - + // Insert the new attribute on top of the class for (var i = 0; i < @namespace.Children.Count; i++) { diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLoweringPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLoweringPass.cs index fa0c73783502..43b51c7c5125 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLoweringPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentLoweringPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -241,7 +241,7 @@ public override void VisitTagHelperBody(TagHelperBodyIntermediateNode node) _children.Add(RewriteChildContent(attribute, child.Source, child.Children)); continue; } - + // If we get here then this is significant content inside a component with explicit child content. child.Diagnostics.Add(ComponentDiagnosticFactory.Create_ChildContentMixedWithExplicitChildContent(child.Source, _component)); _children.Add(child); diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupBlockPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupBlockPass.cs index 52dd998120d0..4f9615d841a7 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupBlockPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupBlockPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupEncodingPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupEncodingPass.cs index 5a53497de990..40de9ace5600 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupEncodingPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMarkupEncodingPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMetadata.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMetadata.cs index 7f5a664524ef..6d4f17501e4d 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMetadata.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentMetadata.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentNodeWriter.cs index 69ea35710b9d..e5f4dd340e86 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; @@ -32,7 +32,7 @@ public sealed override void EndWriterScope(CodeRenderingContext context) public sealed override void WriteCSharpCodeAttributeValue(CodeRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) { - // We used to support syntaxes like but this is no longer the + // We used to support syntaxes like but this is no longer the // case. // // We provide an error for this case just to be friendly. @@ -57,7 +57,7 @@ public override void WriteComponentTypeInferenceMethod(CodeRenderingContext cont var parameters = GetTypeInferenceMethodParameters(node); // This is really similar to the code in WriteComponentAttribute and WriteComponentChildContent - except simpler because - // attributes and child contents look like variables. + // attributes and child contents look like variables. // // Looks like: // @@ -74,7 +74,7 @@ public override void WriteComponentTypeInferenceMethod(CodeRenderingContext cont // them verbatim. // // The problem is that RenderTreeBuilder wants an Action. The caller can't write the type - // name if it contains generics, and we can't write the variable they want to assign to. + // name if it contains generics, and we can't write the variable they want to assign to. var writer = context.CodeWriter; writer.Write("public static void "); @@ -126,7 +126,7 @@ public override void WriteComponentTypeInferenceMethod(CodeRenderingContext cont writer.WriteLine(); writer.Indent(writer.CurrentIndent + writer.TabSize); writer.Write(constraint); - + } writer.WriteLine(); diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirective.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirective.cs index 8fefd172f8d7..0a06eea97113 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirective.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Intermediate; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirectivePass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirectivePass.cs index d6a026d3dd5a..693559d41778 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirectivePass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPageDirectivePass.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPreserveWhitespaceDirective.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPreserveWhitespaceDirective.cs index b8cbd690c0b2..a3a59837ca02 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPreserveWhitespaceDirective.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentPreserveWhitespaceDirective.cs @@ -1,5 +1,5 @@ -// 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. +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. using System; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentReferenceCaptureLoweringPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentReferenceCaptureLoweringPass.cs index b4d776aacf46..8bc52fe1a4bc 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentReferenceCaptureLoweringPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentReferenceCaptureLoweringPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.Razor.Language.Intermediate; @@ -79,7 +79,7 @@ private IntermediateToken DetermineIdentifierToken(TagHelperDirectiveAttributeIn } } } - + return !string.IsNullOrWhiteSpace(foundToken?.Content) ? foundToken : null; } } diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentRuntimeNodeWriter.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentRuntimeNodeWriter.cs index 14a2519255d1..32fc975bafb5 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentRuntimeNodeWriter.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentRuntimeNodeWriter.cs @@ -1,5 +1,5 @@ -// 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. +// 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; diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentScriptTagPass.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentScriptTagPass.cs index 6fad5cfca5d5..f94b90009aca 100644 --- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentScriptTagPass.cs +++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Components/ComponentScriptTagPass.cs @@ -1,5 +1,5 @@ -// 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. +// 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.AspNetCore.Razor.Language.Intermediate; @@ -34,7 +34,7 @@ public override void VisitMarkupElement(MarkupElementIntermediateNode node) // We allow you to suppress this error like: //