diff --git a/build/dependencies.props b/build/dependencies.props index 0c7d2bca9d..ee0b0b8ccf 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -1,4 +1,4 @@ - + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) @@ -17,7 +17,7 @@ 2.0.3 4.5.1 4.5.0 - 10.0.1 + 11.0.2 9.0.1 2.3.1 2.4.0 diff --git a/src/Microsoft.HttpRepl/AggregateDirectoryStructure.cs b/src/Microsoft.HttpRepl/AggregateDirectoryStructure.cs index ed763a3e8f..19dcb289f8 100644 --- a/src/Microsoft.HttpRepl/AggregateDirectoryStructure.cs +++ b/src/Microsoft.HttpRepl/AggregateDirectoryStructure.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.HttpRepl/Commands/BaseHttpCommand.cs b/src/Microsoft.HttpRepl/Commands/BaseHttpCommand.cs index 3db2f39b7b..374544790b 100644 --- a/src/Microsoft.HttpRepl/Commands/BaseHttpCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/BaseHttpCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Diagnostics; using System.IO; diff --git a/src/Microsoft.HttpRepl/Commands/ChangeDirectoryCommand.cs b/src/Microsoft.HttpRepl/Commands/ChangeDirectoryCommand.cs index 3a983698cf..c2baaf0de5 100644 --- a/src/Microsoft.HttpRepl/Commands/ChangeDirectoryCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/ChangeDirectoryCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.HttpRepl/Commands/ClearCommand.cs b/src/Microsoft.HttpRepl/Commands/ClearCommand.cs index a695dfc544..4244946c95 100644 --- a/src/Microsoft.HttpRepl/Commands/ClearCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/ClearCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.HttpRepl/Commands/ConfigCommand.cs b/src/Microsoft.HttpRepl/Commands/ConfigCommand.cs index 56003280ab..773bee0f04 100644 --- a/src/Microsoft.HttpRepl/Commands/ConfigCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/ConfigCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/src/Microsoft.HttpRepl/Commands/DeleteCommand.cs b/src/Microsoft.HttpRepl/Commands/DeleteCommand.cs index a861b35142..7c9b789db3 100644 --- a/src/Microsoft.HttpRepl/Commands/DeleteCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/DeleteCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class DeleteCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/EchoCommand.cs b/src/Microsoft.HttpRepl/Commands/EchoCommand.cs index 19eb33788b..691eb5679f 100644 --- a/src/Microsoft.HttpRepl/Commands/EchoCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/EchoCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.HttpRepl/Commands/ExitCommand.cs b/src/Microsoft.HttpRepl/Commands/ExitCommand.cs index ebc0635876..af76ad95df 100644 --- a/src/Microsoft.HttpRepl/Commands/ExitCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/ExitCommand.cs @@ -1,4 +1,7 @@ -using System.Threading; +// Copyright (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 System.Threading; using System.Threading.Tasks; using Microsoft.Repl; using Microsoft.Repl.Commanding; diff --git a/src/Microsoft.HttpRepl/Commands/Formatter.cs b/src/Microsoft.HttpRepl/Commands/Formatter.cs index 5a450e3406..d1783dc357 100644 --- a/src/Microsoft.HttpRepl/Commands/Formatter.cs +++ b/src/Microsoft.HttpRepl/Commands/Formatter.cs @@ -1,18 +1,15 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class Formatter { - //private readonly List _prefix = new List(); private int _prefix; private int _maxDepth; public void RegisterEntry(int prefixLength, int depth) { - //while (_prefix.Count < depth + 1) - //{ - // _prefix.Add(0); - //} - if (depth > _maxDepth) { _maxDepth = depth; @@ -30,4 +27,4 @@ return (indent + prefix).PadRight(_prefix + 3 + _maxDepth * 4) + entry; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/Commands/GetCommand.cs b/src/Microsoft.HttpRepl/Commands/GetCommand.cs index 76765ce374..e5441cecd1 100644 --- a/src/Microsoft.HttpRepl/Commands/GetCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/GetCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class GetCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/HeadCommand.cs b/src/Microsoft.HttpRepl/Commands/HeadCommand.cs index 97023f5860..fbd3de4971 100644 --- a/src/Microsoft.HttpRepl/Commands/HeadCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/HeadCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class HeadCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/HelpCommand.cs b/src/Microsoft.HttpRepl/Commands/HelpCommand.cs index de909a4906..f205fc1243 100644 --- a/src/Microsoft.HttpRepl/Commands/HelpCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/HelpCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.HttpRepl/Commands/ListCommand.cs b/src/Microsoft.HttpRepl/Commands/ListCommand.cs index 078a20d398..b1aa0718a3 100644 --- a/src/Microsoft.HttpRepl/Commands/ListCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/ListCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Globalization; using System.Linq; diff --git a/src/Microsoft.HttpRepl/Commands/OptionsCommand.cs b/src/Microsoft.HttpRepl/Commands/OptionsCommand.cs index f6a3c8903c..5da5cadfaf 100644 --- a/src/Microsoft.HttpRepl/Commands/OptionsCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/OptionsCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class OptionsCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/PatchCommand.cs b/src/Microsoft.HttpRepl/Commands/PatchCommand.cs index c5d9c875be..bfb9cc9192 100644 --- a/src/Microsoft.HttpRepl/Commands/PatchCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/PatchCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class PatchCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/PostCommand.cs b/src/Microsoft.HttpRepl/Commands/PostCommand.cs index 216fe8ef1d..61edb6d4c8 100644 --- a/src/Microsoft.HttpRepl/Commands/PostCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/PostCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class PostCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/PrefCommand.cs b/src/Microsoft.HttpRepl/Commands/PrefCommand.cs index 7f16af09b3..2a64d2f017 100644 --- a/src/Microsoft.HttpRepl/Commands/PrefCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/PrefCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.HttpRepl/Commands/PutCommand.cs b/src/Microsoft.HttpRepl/Commands/PutCommand.cs index a65439dfb7..4f37e1776c 100644 --- a/src/Microsoft.HttpRepl/Commands/PutCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/PutCommand.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Commands +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Commands { public class PutCommand : BaseHttpCommand { diff --git a/src/Microsoft.HttpRepl/Commands/RunCommand.cs b/src/Microsoft.HttpRepl/Commands/RunCommand.cs index 6dd2f4a378..3228dbccf1 100644 --- a/src/Microsoft.HttpRepl/Commands/RunCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/RunCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.IO; using System.Threading; diff --git a/src/Microsoft.HttpRepl/Commands/SetBaseCommand.cs b/src/Microsoft.HttpRepl/Commands/SetBaseCommand.cs index c346f541d4..77e5f0adde 100644 --- a/src/Microsoft.HttpRepl/Commands/SetBaseCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/SetBaseCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.HttpRepl/Commands/SetDiagCommand.cs b/src/Microsoft.HttpRepl/Commands/SetDiagCommand.cs index 4e86452b7c..535d1a2026 100644 --- a/src/Microsoft.HttpRepl/Commands/SetDiagCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/SetDiagCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Net.Http; diff --git a/src/Microsoft.HttpRepl/Commands/SetHeaderCommand.cs b/src/Microsoft.HttpRepl/Commands/SetHeaderCommand.cs index c95d22a6be..3db62f47b3 100644 --- a/src/Microsoft.HttpRepl/Commands/SetHeaderCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/SetHeaderCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.HttpRepl/Commands/SetSwaggerCommand.cs b/src/Microsoft.HttpRepl/Commands/SetSwaggerCommand.cs index 9c9a1f36cc..be99891d5e 100644 --- a/src/Microsoft.HttpRepl/Commands/SetSwaggerCommand.cs +++ b/src/Microsoft.HttpRepl/Commands/SetSwaggerCommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/Microsoft.HttpRepl/Commands/TreeNode.cs b/src/Microsoft.HttpRepl/Commands/TreeNode.cs index 256d5d9dae..1ae5db3cbc 100644 --- a/src/Microsoft.HttpRepl/Commands/TreeNode.cs +++ b/src/Microsoft.HttpRepl/Commands/TreeNode.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; namespace Microsoft.HttpRepl.Commands @@ -44,4 +47,4 @@ namespace Microsoft.HttpRepl.Commands return self + Environment.NewLine + string.Join(Environment.NewLine, _children); } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/Commands/UICommand.cs b/src/Microsoft.HttpRepl/Commands/UICommand.cs index ddf4ca4097..0eb02826f9 100644 --- a/src/Microsoft.HttpRepl/Commands/UICommand.cs +++ b/src/Microsoft.HttpRepl/Commands/UICommand.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; diff --git a/src/Microsoft.HttpRepl/Diagnostics/ConfigItem.cs b/src/Microsoft.HttpRepl/Diagnostics/ConfigItem.cs index ba16701d58..8e5c2943e4 100644 --- a/src/Microsoft.HttpRepl/Diagnostics/ConfigItem.cs +++ b/src/Microsoft.HttpRepl/Diagnostics/ConfigItem.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Diagnostics +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Diagnostics { public class ConfigItem { diff --git a/src/Microsoft.HttpRepl/Diagnostics/DiagEndpoint.cs b/src/Microsoft.HttpRepl/Diagnostics/DiagEndpoint.cs index 80e619dcc3..a38e50bada 100644 --- a/src/Microsoft.HttpRepl/Diagnostics/DiagEndpoint.cs +++ b/src/Microsoft.HttpRepl/Diagnostics/DiagEndpoint.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Diagnostics +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Diagnostics { public class DiagEndpoint { diff --git a/src/Microsoft.HttpRepl/Diagnostics/DiagEndpointMetadata.cs b/src/Microsoft.HttpRepl/Diagnostics/DiagEndpointMetadata.cs index 53e5aa3918..5989daf094 100644 --- a/src/Microsoft.HttpRepl/Diagnostics/DiagEndpointMetadata.cs +++ b/src/Microsoft.HttpRepl/Diagnostics/DiagEndpointMetadata.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Diagnostics +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Diagnostics { public class DiagEndpointMetadata { diff --git a/src/Microsoft.HttpRepl/Diagnostics/DiagItem.cs b/src/Microsoft.HttpRepl/Diagnostics/DiagItem.cs index c0fbf2df9c..a9d0692cfd 100644 --- a/src/Microsoft.HttpRepl/Diagnostics/DiagItem.cs +++ b/src/Microsoft.HttpRepl/Diagnostics/DiagItem.cs @@ -1,4 +1,7 @@ -namespace Microsoft.HttpRepl.Diagnostics +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.HttpRepl.Diagnostics { public class DiagItem { diff --git a/src/Microsoft.HttpRepl/Diagnostics/DiagnosticsState.cs b/src/Microsoft.HttpRepl/Diagnostics/DiagnosticsState.cs index 3fe27cce19..90033d9062 100644 --- a/src/Microsoft.HttpRepl/Diagnostics/DiagnosticsState.cs +++ b/src/Microsoft.HttpRepl/Diagnostics/DiagnosticsState.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.HttpRepl.Diagnostics { diff --git a/src/Microsoft.HttpRepl/DirectoryStructure.cs b/src/Microsoft.HttpRepl/DirectoryStructure.cs index f682488b9b..8787f962fc 100644 --- a/src/Microsoft.HttpRepl/DirectoryStructure.cs +++ b/src/Microsoft.HttpRepl/DirectoryStructure.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.HttpRepl/DirectoryStructureExtensions.cs b/src/Microsoft.HttpRepl/DirectoryStructureExtensions.cs index 2b7ad5341a..822fa41e6f 100644 --- a/src/Microsoft.HttpRepl/DirectoryStructureExtensions.cs +++ b/src/Microsoft.HttpRepl/DirectoryStructureExtensions.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; using System.Linq; namespace Microsoft.HttpRepl diff --git a/src/Microsoft.HttpRepl/Formatting/JsonVisitor.cs b/src/Microsoft.HttpRepl/Formatting/JsonVisitor.cs index fa40ee62ab..2538e2fdf2 100644 --- a/src/Microsoft.HttpRepl/Formatting/JsonVisitor.cs +++ b/src/Microsoft.HttpRepl/Formatting/JsonVisitor.cs @@ -1,4 +1,7 @@ -using System.IO; +// Copyright (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 System.IO; using System.Text; using Microsoft.HttpRepl.Preferences; using Microsoft.Repl.ConsoleHandling; diff --git a/src/Microsoft.HttpRepl/HttpState.cs b/src/Microsoft.HttpRepl/HttpState.cs index 55cfdd6188..d012a8fc45 100644 --- a/src/Microsoft.HttpRepl/HttpState.cs +++ b/src/Microsoft.HttpRepl/HttpState.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/Microsoft.HttpRepl/IDirectoryStructure.cs b/src/Microsoft.HttpRepl/IDirectoryStructure.cs index 5c02e8e476..e3641e3ca8 100644 --- a/src/Microsoft.HttpRepl/IDirectoryStructure.cs +++ b/src/Microsoft.HttpRepl/IDirectoryStructure.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.HttpRepl { @@ -12,13 +15,4 @@ namespace Microsoft.HttpRepl IRequestInfo RequestInfo { get; } } - - public interface IRequestInfo - { - IReadOnlyDictionary> ContentTypesByMethod { get; } - - IReadOnlyList Methods { get; } - - string GetRequestBodyForContentType(string contentType, string method); - } } diff --git a/src/Microsoft.HttpRepl/IRequestInfo.cs b/src/Microsoft.HttpRepl/IRequestInfo.cs new file mode 100644 index 0000000000..24054f6142 --- /dev/null +++ b/src/Microsoft.HttpRepl/IRequestInfo.cs @@ -0,0 +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. + +using System.Collections.Generic; + +namespace Microsoft.HttpRepl +{ + public interface IRequestInfo + { + IReadOnlyDictionary> ContentTypesByMethod { get; } + + IReadOnlyList Methods { get; } + + string GetRequestBodyForContentType(string contentType, string method); + } +} diff --git a/src/Microsoft.HttpRepl/OpenApi/Either.cs b/src/Microsoft.HttpRepl/OpenApi/Either.cs index f1e7dfacb3..8e3069de89 100644 --- a/src/Microsoft.HttpRepl/OpenApi/Either.cs +++ b/src/Microsoft.HttpRepl/OpenApi/Either.cs @@ -1,3 +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. + namespace Microsoft.HttpRepl.OpenApi { public class Either @@ -30,4 +33,4 @@ namespace Microsoft.HttpRepl.OpenApi return new Either(value); } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/EitherConverter.cs b/src/Microsoft.HttpRepl/OpenApi/EitherConverter.cs index b89a85c9ef..a7197abc8b 100644 --- a/src/Microsoft.HttpRepl/OpenApi/EitherConverter.cs +++ b/src/Microsoft.HttpRepl/OpenApi/EitherConverter.cs @@ -1,3 +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. + using System; using Newtonsoft.Json; @@ -29,4 +32,4 @@ namespace Microsoft.HttpRepl.OpenApi throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/EndpointMetadata.cs b/src/Microsoft.HttpRepl/OpenApi/EndpointMetadata.cs index e46387b3e0..27bb4d1b35 100644 --- a/src/Microsoft.HttpRepl/OpenApi/EndpointMetadata.cs +++ b/src/Microsoft.HttpRepl/OpenApi/EndpointMetadata.cs @@ -1,3 +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. + using System.Collections.Generic; namespace Microsoft.HttpRepl.OpenApi @@ -14,4 +17,4 @@ namespace Microsoft.HttpRepl.OpenApi public IReadOnlyDictionary>> AvailableRequests { get; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/EndpointMetadataReader.cs b/src/Microsoft.HttpRepl/OpenApi/EndpointMetadataReader.cs index 8635d6fbee..243b8fa92e 100644 --- a/src/Microsoft.HttpRepl/OpenApi/EndpointMetadataReader.cs +++ b/src/Microsoft.HttpRepl/OpenApi/EndpointMetadataReader.cs @@ -1,3 +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. + using System.Collections.Generic; using Newtonsoft.Json.Linq; @@ -35,4 +38,4 @@ namespace Microsoft.HttpRepl.OpenApi return null; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/IEndpointMetadataReader.cs b/src/Microsoft.HttpRepl/OpenApi/IEndpointMetadataReader.cs index 287740c7af..385f9dfce0 100644 --- a/src/Microsoft.HttpRepl/OpenApi/IEndpointMetadataReader.cs +++ b/src/Microsoft.HttpRepl/OpenApi/IEndpointMetadataReader.cs @@ -1,3 +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. + using System.Collections.Generic; using Newtonsoft.Json.Linq; @@ -9,4 +12,4 @@ namespace Microsoft.HttpRepl.OpenApi IEnumerable ReadMetadata(JObject document); } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/OpenApiV3EndpointMetadataReader.cs b/src/Microsoft.HttpRepl/OpenApi/OpenApiV3EndpointMetadataReader.cs index 5fa968efc6..c009951608 100644 --- a/src/Microsoft.HttpRepl/OpenApi/OpenApiV3EndpointMetadataReader.cs +++ b/src/Microsoft.HttpRepl/OpenApi/OpenApiV3EndpointMetadataReader.cs @@ -1,3 +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. + using System; using System.Collections.Generic; using System.Linq; @@ -95,4 +98,4 @@ namespace Microsoft.HttpRepl.OpenApi return metadata; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/Parameter.cs b/src/Microsoft.HttpRepl/OpenApi/Parameter.cs index faf21e5f9a..0a44f489c5 100644 --- a/src/Microsoft.HttpRepl/OpenApi/Parameter.cs +++ b/src/Microsoft.HttpRepl/OpenApi/Parameter.cs @@ -1,3 +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. + namespace Microsoft.HttpRepl.OpenApi { public class Parameter @@ -10,4 +13,4 @@ namespace Microsoft.HttpRepl.OpenApi public Schema Schema { get; set; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/PointerUtil.cs b/src/Microsoft.HttpRepl/OpenApi/PointerUtil.cs index b01730b116..db36c082bf 100644 --- a/src/Microsoft.HttpRepl/OpenApi/PointerUtil.cs +++ b/src/Microsoft.HttpRepl/OpenApi/PointerUtil.cs @@ -1,3 +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. + using System; using System.Globalization; using System.Linq; @@ -215,4 +218,4 @@ namespace Microsoft.HttpRepl.OpenApi // return root; //} } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/Schema.cs b/src/Microsoft.HttpRepl/OpenApi/Schema.cs index 028c0b13ca..c84bbdda0f 100644 --- a/src/Microsoft.HttpRepl/OpenApi/Schema.cs +++ b/src/Microsoft.HttpRepl/OpenApi/Schema.cs @@ -1,3 +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. + using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; @@ -122,4 +125,4 @@ namespace Microsoft.HttpRepl.OpenApi public bool UniqueItems { get; set; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/SwaggerV1EndpointMetadataReader.cs b/src/Microsoft.HttpRepl/OpenApi/SwaggerV1EndpointMetadataReader.cs index 7f4fef4fb1..d62fc8c3b1 100644 --- a/src/Microsoft.HttpRepl/OpenApi/SwaggerV1EndpointMetadataReader.cs +++ b/src/Microsoft.HttpRepl/OpenApi/SwaggerV1EndpointMetadataReader.cs @@ -1,3 +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. + using System; using System.Collections.Generic; using System.Linq; @@ -103,4 +106,4 @@ namespace Microsoft.HttpRepl.OpenApi return metadata; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/OpenApi/SwaggerV2EndpointMetadataReader.cs b/src/Microsoft.HttpRepl/OpenApi/SwaggerV2EndpointMetadataReader.cs index 5e7ecfe6aa..66b16d2ed5 100644 --- a/src/Microsoft.HttpRepl/OpenApi/SwaggerV2EndpointMetadataReader.cs +++ b/src/Microsoft.HttpRepl/OpenApi/SwaggerV2EndpointMetadataReader.cs @@ -1,3 +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. + using System; using System.Collections.Generic; using System.Linq; @@ -84,4 +87,4 @@ namespace Microsoft.HttpRepl.OpenApi return metadata; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/Preferences/IJsonConfig.cs b/src/Microsoft.HttpRepl/Preferences/IJsonConfig.cs index 21918e44ef..96d36ad7af 100644 --- a/src/Microsoft.HttpRepl/Preferences/IJsonConfig.cs +++ b/src/Microsoft.HttpRepl/Preferences/IJsonConfig.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.ConsoleHandling; +// Copyright (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.Repl.ConsoleHandling; namespace Microsoft.HttpRepl.Preferences { @@ -26,4 +29,4 @@ namespace Microsoft.HttpRepl.Preferences AllowedColors NullColor { get; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.HttpRepl/Preferences/JsonConfig.cs b/src/Microsoft.HttpRepl/Preferences/JsonConfig.cs index a1902e245e..67ce8aa2ed 100644 --- a/src/Microsoft.HttpRepl/Preferences/JsonConfig.cs +++ b/src/Microsoft.HttpRepl/Preferences/JsonConfig.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.ConsoleHandling; +// Copyright (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.Repl.ConsoleHandling; namespace Microsoft.HttpRepl.Preferences { diff --git a/src/Microsoft.HttpRepl/Preferences/RequestConfig.cs b/src/Microsoft.HttpRepl/Preferences/RequestConfig.cs index a3f9b55259..ae2b41e1fc 100644 --- a/src/Microsoft.HttpRepl/Preferences/RequestConfig.cs +++ b/src/Microsoft.HttpRepl/Preferences/RequestConfig.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.ConsoleHandling; +// Copyright (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.Repl.ConsoleHandling; namespace Microsoft.HttpRepl.Preferences { diff --git a/src/Microsoft.HttpRepl/Preferences/RequestOrResponseConfig.cs b/src/Microsoft.HttpRepl/Preferences/RequestOrResponseConfig.cs index c509a89f5e..c4385ad032 100644 --- a/src/Microsoft.HttpRepl/Preferences/RequestOrResponseConfig.cs +++ b/src/Microsoft.HttpRepl/Preferences/RequestOrResponseConfig.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.ConsoleHandling; +// Copyright (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.Repl.ConsoleHandling; namespace Microsoft.HttpRepl.Preferences { diff --git a/src/Microsoft.HttpRepl/Preferences/ResponseConfig.cs b/src/Microsoft.HttpRepl/Preferences/ResponseConfig.cs index 123a86ff79..d3a6c9c26f 100644 --- a/src/Microsoft.HttpRepl/Preferences/ResponseConfig.cs +++ b/src/Microsoft.HttpRepl/Preferences/ResponseConfig.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.ConsoleHandling; +// Copyright (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.Repl.ConsoleHandling; namespace Microsoft.HttpRepl.Preferences { diff --git a/src/Microsoft.HttpRepl/Preferences/WellKnownPreference.cs b/src/Microsoft.HttpRepl/Preferences/WellKnownPreference.cs index a6c16a6da7..1cd17a04ce 100644 --- a/src/Microsoft.HttpRepl/Preferences/WellKnownPreference.cs +++ b/src/Microsoft.HttpRepl/Preferences/WellKnownPreference.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Reflection; using Microsoft.Repl.ConsoleHandling; diff --git a/src/Microsoft.HttpRepl/Program.cs b/src/Microsoft.HttpRepl/Program.cs index f64fcf377a..a0e1c9addf 100644 --- a/src/Microsoft.HttpRepl/Program.cs +++ b/src/Microsoft.HttpRepl/Program.cs @@ -1,4 +1,7 @@ -using System.Threading; +// Copyright (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 System.Threading; using System.Threading.Tasks; using Microsoft.Repl; using Microsoft.Repl.Commanding; diff --git a/src/Microsoft.HttpRepl/Suggestions/HeaderCompletion.cs b/src/Microsoft.HttpRepl/Suggestions/HeaderCompletion.cs index 05372d7bec..74ceab2507 100644 --- a/src/Microsoft.HttpRepl/Suggestions/HeaderCompletion.cs +++ b/src/Microsoft.HttpRepl/Suggestions/HeaderCompletion.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.HttpRepl/Suggestions/ServerPathCompletion.cs b/src/Microsoft.HttpRepl/Suggestions/ServerPathCompletion.cs index a50df8ae8d..2311b714b3 100644 --- a/src/Microsoft.HttpRepl/Suggestions/ServerPathCompletion.cs +++ b/src/Microsoft.HttpRepl/Suggestions/ServerPathCompletion.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.Repl/Commanding/CommandHistory.cs b/src/Microsoft.Repl/Commanding/CommandHistory.cs index 83c7206a9d..27489df0d1 100644 --- a/src/Microsoft.Repl/Commanding/CommandHistory.cs +++ b/src/Microsoft.Repl/Commanding/CommandHistory.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; namespace Microsoft.Repl.Commanding diff --git a/src/Microsoft.Repl/Commanding/CommandInputLocation.cs b/src/Microsoft.Repl/Commanding/CommandInputLocation.cs index 1612384b61..e1ed19a50c 100644 --- a/src/Microsoft.Repl/Commanding/CommandInputLocation.cs +++ b/src/Microsoft.Repl/Commanding/CommandInputLocation.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.Commanding +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.Commanding { public enum CommandInputLocation { @@ -7,4 +10,4 @@ OptionName, OptionValue } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/CommandInputProcessingIssue.cs b/src/Microsoft.Repl/Commanding/CommandInputProcessingIssue.cs index 501b4357da..f294718ff0 100644 --- a/src/Microsoft.Repl/Commanding/CommandInputProcessingIssue.cs +++ b/src/Microsoft.Repl/Commanding/CommandInputProcessingIssue.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.Commanding +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.Commanding { public class CommandInputProcessingIssue { @@ -12,4 +15,4 @@ Text = text; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/CommandInputProcessingIssueKind.cs b/src/Microsoft.Repl/Commanding/CommandInputProcessingIssueKind.cs index cd69dccb85..dfc8a5f563 100644 --- a/src/Microsoft.Repl/Commanding/CommandInputProcessingIssueKind.cs +++ b/src/Microsoft.Repl/Commanding/CommandInputProcessingIssueKind.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.Commanding +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.Commanding { public enum CommandInputProcessingIssueKind { @@ -8,4 +11,4 @@ OptionUseCountOutOfRange, MissingRequiredOptionInput, } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/CommandInputSpecification.cs b/src/Microsoft.Repl/Commanding/CommandInputSpecification.cs index 370b9f3d34..0e24c3fffa 100644 --- a/src/Microsoft.Repl/Commanding/CommandInputSpecification.cs +++ b/src/Microsoft.Repl/Commanding/CommandInputSpecification.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.Repl.Commanding { @@ -41,4 +44,4 @@ namespace Microsoft.Repl.Commanding return new CommandInputSpecificationBuilder(nameParts); } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/CommandInputSpecificationBuilder.cs b/src/Microsoft.Repl/Commanding/CommandInputSpecificationBuilder.cs index 5ad5edf345..019782d0b8 100644 --- a/src/Microsoft.Repl/Commanding/CommandInputSpecificationBuilder.cs +++ b/src/Microsoft.Repl/Commanding/CommandInputSpecificationBuilder.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.Repl.Commanding { @@ -63,4 +66,4 @@ namespace Microsoft.Repl.Commanding return new CommandInputSpecification(_name, _optionPreamble, _options, _minimumArgs, _maximumArgs); } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/CommandOptionSpecification.cs b/src/Microsoft.Repl/Commanding/CommandOptionSpecification.cs index d925e5b2c9..6f7e4469fe 100644 --- a/src/Microsoft.Repl/Commanding/CommandOptionSpecification.cs +++ b/src/Microsoft.Repl/Commanding/CommandOptionSpecification.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.Repl.Commanding { @@ -26,4 +29,4 @@ namespace Microsoft.Repl.Commanding AcceptsValue = RequiresValue || acceptsValue; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/CommandWithStructuredInputBase.cs b/src/Microsoft.Repl/Commanding/CommandWithStructuredInputBase.cs index 38443486e8..1957205913 100644 --- a/src/Microsoft.Repl/Commanding/CommandWithStructuredInputBase.cs +++ b/src/Microsoft.Repl/Commanding/CommandWithStructuredInputBase.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; @@ -190,4 +193,4 @@ namespace Microsoft.Repl.Commanding protected abstract CommandInputSpecification InputSpec { get; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/DefaultCommandDispatcher.cs b/src/Microsoft.Repl/Commanding/DefaultCommandDispatcher.cs index 932e8cdb1a..2b85c2bc57 100644 --- a/src/Microsoft.Repl/Commanding/DefaultCommandDispatcher.cs +++ b/src/Microsoft.Repl/Commanding/DefaultCommandDispatcher.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.Repl/Commanding/DefaultCommandInput.cs b/src/Microsoft.Repl/Commanding/DefaultCommandInput.cs index 0d3b97932e..ead59738b3 100644 --- a/src/Microsoft.Repl/Commanding/DefaultCommandInput.cs +++ b/src/Microsoft.Repl/Commanding/DefaultCommandInput.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using Microsoft.Repl.Parsing; @@ -190,4 +193,4 @@ namespace Microsoft.Repl.Commanding public IReadOnlyDictionary> Options { get; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/Commanding/ICommand.cs b/src/Microsoft.Repl/Commanding/ICommand.cs index be575437e2..3b754924f0 100644 --- a/src/Microsoft.Repl/Commanding/ICommand.cs +++ b/src/Microsoft.Repl/Commanding/ICommand.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Repl.Parsing; diff --git a/src/Microsoft.Repl/Commanding/ICommandDispatcher.cs b/src/Microsoft.Repl/Commanding/ICommandDispatcher.cs index c175490833..d2d9000123 100644 --- a/src/Microsoft.Repl/Commanding/ICommandDispatcher.cs +++ b/src/Microsoft.Repl/Commanding/ICommandDispatcher.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Repl.Parsing; diff --git a/src/Microsoft.Repl/Commanding/ICommandHistory.cs b/src/Microsoft.Repl/Commanding/ICommandHistory.cs index 8e25db8906..cd506fb2b3 100644 --- a/src/Microsoft.Repl/Commanding/ICommandHistory.cs +++ b/src/Microsoft.Repl/Commanding/ICommandHistory.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; namespace Microsoft.Repl.Commanding { diff --git a/src/Microsoft.Repl/Commanding/InputElement.cs b/src/Microsoft.Repl/Commanding/InputElement.cs index c02c7f0f23..1f0c7cd764 100644 --- a/src/Microsoft.Repl/Commanding/InputElement.cs +++ b/src/Microsoft.Repl/Commanding/InputElement.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.Commanding +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.Commanding { public class InputElement { @@ -26,4 +29,4 @@ ParseResultSectionIndex = sectionIndex; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/ConsoleHandling/AllowedColors.cs b/src/Microsoft.Repl/ConsoleHandling/AllowedColors.cs index a71dc2c8a4..fd9245db28 100644 --- a/src/Microsoft.Repl/ConsoleHandling/AllowedColors.cs +++ b/src/Microsoft.Repl/ConsoleHandling/AllowedColors.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; namespace Microsoft.Repl.ConsoleHandling { @@ -24,4 +27,4 @@ namespace Microsoft.Repl.ConsoleHandling Bold = 0x100, None = 0x99 } -} \ No newline at end of file +} diff --git a/src/Microsoft.Repl/ConsoleHandling/AnsiColorExtensions.cs b/src/Microsoft.Repl/ConsoleHandling/AnsiColorExtensions.cs index cab5bc6f05..8d535bf15f 100644 --- a/src/Microsoft.Repl/ConsoleHandling/AnsiColorExtensions.cs +++ b/src/Microsoft.Repl/ConsoleHandling/AnsiColorExtensions.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.ConsoleHandling +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.ConsoleHandling { public static class AnsiColorExtensions { diff --git a/src/Microsoft.Repl/ConsoleHandling/AnsiConsole.cs b/src/Microsoft.Repl/ConsoleHandling/AnsiConsole.cs index 24944f8871..205c7713b5 100644 --- a/src/Microsoft.Repl/ConsoleHandling/AnsiConsole.cs +++ b/src/Microsoft.Repl/ConsoleHandling/AnsiConsole.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.IO; namespace Microsoft.Repl.ConsoleHandling diff --git a/src/Microsoft.Repl/ConsoleHandling/ConsoleManager.cs b/src/Microsoft.Repl/ConsoleHandling/ConsoleManager.cs index a15c1fd420..ad4231ad5e 100644 --- a/src/Microsoft.Repl/ConsoleHandling/ConsoleManager.cs +++ b/src/Microsoft.Repl/ConsoleHandling/ConsoleManager.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/src/Microsoft.Repl/ConsoleHandling/IConsoleManager.cs b/src/Microsoft.Repl/ConsoleHandling/IConsoleManager.cs index 9ab7b26a15..ca93dbe88d 100644 --- a/src/Microsoft.Repl/ConsoleHandling/IConsoleManager.cs +++ b/src/Microsoft.Repl/ConsoleHandling/IConsoleManager.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Threading; namespace Microsoft.Repl.ConsoleHandling diff --git a/src/Microsoft.Repl/ConsoleHandling/IWritable.cs b/src/Microsoft.Repl/ConsoleHandling/IWritable.cs index f18fa123a1..fcb5441a69 100644 --- a/src/Microsoft.Repl/ConsoleHandling/IWritable.cs +++ b/src/Microsoft.Repl/ConsoleHandling/IWritable.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.ConsoleHandling +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.ConsoleHandling { public interface IWritable { diff --git a/src/Microsoft.Repl/ConsoleHandling/Point.cs b/src/Microsoft.Repl/ConsoleHandling/Point.cs index 4eeb68989d..e705eada63 100644 --- a/src/Microsoft.Repl/ConsoleHandling/Point.cs +++ b/src/Microsoft.Repl/ConsoleHandling/Point.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.ConsoleHandling +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.ConsoleHandling { public struct Point { diff --git a/src/Microsoft.Repl/ConsoleHandling/Reporter.cs b/src/Microsoft.Repl/ConsoleHandling/Reporter.cs index 5b10d2be02..a7da8d0060 100644 --- a/src/Microsoft.Repl/ConsoleHandling/Reporter.cs +++ b/src/Microsoft.Repl/ConsoleHandling/Reporter.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; namespace Microsoft.Repl.ConsoleHandling { diff --git a/src/Microsoft.Repl/ConsoleHandling/Writable.cs b/src/Microsoft.Repl/ConsoleHandling/Writable.cs index b12c2ad4e7..1b32e939f4 100644 --- a/src/Microsoft.Repl/ConsoleHandling/Writable.cs +++ b/src/Microsoft.Repl/ConsoleHandling/Writable.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; namespace Microsoft.Repl.ConsoleHandling { diff --git a/src/Microsoft.Repl/Disposable.cs b/src/Microsoft.Repl/Disposable.cs index 78002fb1d9..40b892ace1 100644 --- a/src/Microsoft.Repl/Disposable.cs +++ b/src/Microsoft.Repl/Disposable.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; namespace Microsoft.Repl { diff --git a/src/Microsoft.Repl/IShellState.cs b/src/Microsoft.Repl/IShellState.cs index 2ec1cb1514..1941fa65f9 100644 --- a/src/Microsoft.Repl/IShellState.cs +++ b/src/Microsoft.Repl/IShellState.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.Commanding; +// Copyright (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.Repl.Commanding; using Microsoft.Repl.ConsoleHandling; using Microsoft.Repl.Input; using Microsoft.Repl.Suggestions; diff --git a/src/Microsoft.Repl/Input/AsyncKeyPressHandler.cs b/src/Microsoft.Repl/Input/AsyncKeyPressHandler.cs index 616a749611..4ac3793979 100644 --- a/src/Microsoft.Repl/Input/AsyncKeyPressHandler.cs +++ b/src/Microsoft.Repl/Input/AsyncKeyPressHandler.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.Repl/Input/IInputManager.cs b/src/Microsoft.Repl/Input/IInputManager.cs index 100dd22bea..b67f3e3936 100644 --- a/src/Microsoft.Repl/Input/IInputManager.cs +++ b/src/Microsoft.Repl/Input/IInputManager.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.Repl/Input/InputManager.cs b/src/Microsoft.Repl/Input/InputManager.cs index a635ccd37a..e1d6055683 100644 --- a/src/Microsoft.Repl/Input/InputManager.cs +++ b/src/Microsoft.Repl/Input/InputManager.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/src/Microsoft.Repl/Input/KeyHandlers.cs b/src/Microsoft.Repl/Input/KeyHandlers.cs index 7b23f08769..192c55319c 100644 --- a/src/Microsoft.Repl/Input/KeyHandlers.cs +++ b/src/Microsoft.Repl/Input/KeyHandlers.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Threading; using System.Threading.Tasks; using Microsoft.Repl.Parsing; diff --git a/src/Microsoft.Repl/Parsing/CoreParseResult.cs b/src/Microsoft.Repl/Parsing/CoreParseResult.cs index 8f345813f6..1655e4a36a 100644 --- a/src/Microsoft.Repl/Parsing/CoreParseResult.cs +++ b/src/Microsoft.Repl/Parsing/CoreParseResult.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.Repl/Parsing/CoreParser.cs b/src/Microsoft.Repl/Parsing/CoreParser.cs index 35be4867a5..7075f764a0 100644 --- a/src/Microsoft.Repl/Parsing/CoreParser.cs +++ b/src/Microsoft.Repl/Parsing/CoreParser.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; using System.Linq; namespace Microsoft.Repl.Parsing diff --git a/src/Microsoft.Repl/Parsing/ICoreParseResult.cs b/src/Microsoft.Repl/Parsing/ICoreParseResult.cs index 20ac2c7b4e..55bf5b2264 100644 --- a/src/Microsoft.Repl/Parsing/ICoreParseResult.cs +++ b/src/Microsoft.Repl/Parsing/ICoreParseResult.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.Repl.Parsing { diff --git a/src/Microsoft.Repl/Parsing/IParser.cs b/src/Microsoft.Repl/Parsing/IParser.cs index c909f7d94f..86ce9ed940 100644 --- a/src/Microsoft.Repl/Parsing/IParser.cs +++ b/src/Microsoft.Repl/Parsing/IParser.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.Parsing +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.Parsing { public interface IParser { diff --git a/src/Microsoft.Repl/Scripting/IScriptExecutor.cs b/src/Microsoft.Repl/Scripting/IScriptExecutor.cs index 7d832d8306..fcd5be2b53 100644 --- a/src/Microsoft.Repl/Scripting/IScriptExecutor.cs +++ b/src/Microsoft.Repl/Scripting/IScriptExecutor.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.Repl/Scripting/ScriptExecutor.cs b/src/Microsoft.Repl/Scripting/ScriptExecutor.cs index 3ec4bf5d21..6fafa6cbe4 100644 --- a/src/Microsoft.Repl/Scripting/ScriptExecutor.cs +++ b/src/Microsoft.Repl/Scripting/ScriptExecutor.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/Microsoft.Repl/Shell.cs b/src/Microsoft.Repl/Shell.cs index 49f450eae0..8d6cddb035 100644 --- a/src/Microsoft.Repl/Shell.cs +++ b/src/Microsoft.Repl/Shell.cs @@ -1,4 +1,7 @@ -using System.Threading; +// Copyright (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 System.Threading; using System.Threading.Tasks; using Microsoft.Repl.Commanding; using Microsoft.Repl.Input; diff --git a/src/Microsoft.Repl/ShellState.cs b/src/Microsoft.Repl/ShellState.cs index ef0ccf2a64..cb94bc63a2 100644 --- a/src/Microsoft.Repl/ShellState.cs +++ b/src/Microsoft.Repl/ShellState.cs @@ -1,4 +1,7 @@ -using Microsoft.Repl.Commanding; +// Copyright (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.Repl.Commanding; using Microsoft.Repl.ConsoleHandling; using Microsoft.Repl.Input; using Microsoft.Repl.Suggestions; diff --git a/src/Microsoft.Repl/Suggestions/FileSystemCompletion.cs b/src/Microsoft.Repl/Suggestions/FileSystemCompletion.cs index 71237fcd27..5b852a9b59 100644 --- a/src/Microsoft.Repl/Suggestions/FileSystemCompletion.cs +++ b/src/Microsoft.Repl/Suggestions/FileSystemCompletion.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/src/Microsoft.Repl/Suggestions/ISuggestionManager.cs b/src/Microsoft.Repl/Suggestions/ISuggestionManager.cs index f7e11a06fb..51e09c3a1c 100644 --- a/src/Microsoft.Repl/Suggestions/ISuggestionManager.cs +++ b/src/Microsoft.Repl/Suggestions/ISuggestionManager.cs @@ -1,4 +1,7 @@ -namespace Microsoft.Repl.Suggestions +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.Repl.Suggestions { public interface ISuggestionManager { diff --git a/src/Microsoft.Repl/Suggestions/SuggestionManager.cs b/src/Microsoft.Repl/Suggestions/SuggestionManager.cs index 1fd9e861da..ba68ee9d46 100644 --- a/src/Microsoft.Repl/Suggestions/SuggestionManager.cs +++ b/src/Microsoft.Repl/Suggestions/SuggestionManager.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (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 System; using System.Collections.Generic; using Microsoft.Repl.Parsing; diff --git a/src/Microsoft.Repl/Utils.cs b/src/Microsoft.Repl/Utils.cs index 37ffcd97fb..eaf8160222 100644 --- a/src/Microsoft.Repl/Utils.cs +++ b/src/Microsoft.Repl/Utils.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (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 System.Collections.Generic; namespace Microsoft.Repl {