diff --git a/CodeMaid.config b/CodeMaid.config index 5a8678c74a..7e5627380b 100644 --- a/CodeMaid.config +++ b/CodeMaid.config @@ -17,6 +17,7 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- diff --git a/src/BuildScriptGenerator/BuildPropertyAttribute.cs b/src/BuildScriptGenerator/BuildPropertyAttribute.cs index 25f7a8a7b6..33a79853e2 100644 --- a/src/BuildScriptGenerator/BuildPropertyAttribute.cs +++ b/src/BuildScriptGenerator/BuildPropertyAttribute.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/BuildScriptGeneratorOptions.cs b/src/BuildScriptGenerator/BuildScriptGeneratorOptions.cs index 18f036e9a4..ec4c3d4bef 100644 --- a/src/BuildScriptGenerator/BuildScriptGeneratorOptions.cs +++ b/src/BuildScriptGenerator/BuildScriptGeneratorOptions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; using Microsoft.Extensions.Logging; diff --git a/src/BuildScriptGenerator/BuildScriptGeneratorServiceCollectionExtensions.cs b/src/BuildScriptGenerator/BuildScriptGeneratorServiceCollectionExtensions.cs index 5172b5ea1f..89b6b4121b 100644 --- a/src/BuildScriptGenerator/BuildScriptGeneratorServiceCollectionExtensions.cs +++ b/src/BuildScriptGenerator/BuildScriptGeneratorServiceCollectionExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.DependencyInjection; diff --git a/src/BuildScriptGenerator/Constants.cs b/src/BuildScriptGenerator/Constants.cs index bcda497cd0..62e8023d7b 100644 --- a/src/BuildScriptGenerator/Constants.cs +++ b/src/BuildScriptGenerator/Constants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator @@ -10,4 +11,4 @@ public static class Constants public const string BuildEnvironmentFileName = "build.env"; } -} +} \ No newline at end of file diff --git a/src/BuildScriptGenerator/DefaulTempDirectoryProvider.cs b/src/BuildScriptGenerator/DefaulTempDirectoryProvider.cs index 32d1943ee6..47f96ee5c3 100644 --- a/src/BuildScriptGenerator/DefaulTempDirectoryProvider.cs +++ b/src/BuildScriptGenerator/DefaulTempDirectoryProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; using System.IO; diff --git a/src/BuildScriptGenerator/DefaultEnvironment.cs b/src/BuildScriptGenerator/DefaultEnvironment.cs index 70edef444f..9c5a4b6abd 100644 --- a/src/BuildScriptGenerator/DefaultEnvironment.cs +++ b/src/BuildScriptGenerator/DefaultEnvironment.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/DefaultEnvironmentSettingsProvider.cs b/src/BuildScriptGenerator/DefaultEnvironmentSettingsProvider.cs index b024df5d1c..014316edaa 100644 --- a/src/BuildScriptGenerator/DefaultEnvironmentSettingsProvider.cs +++ b/src/BuildScriptGenerator/DefaultEnvironmentSettingsProvider.cs @@ -1,5 +1,7 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/DefaultScriptExecutor.cs b/src/BuildScriptGenerator/DefaultScriptExecutor.cs index 619dc66db0..2fc5b8644b 100644 --- a/src/BuildScriptGenerator/DefaultScriptExecutor.cs +++ b/src/BuildScriptGenerator/DefaultScriptExecutor.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/DefaultScriptGenerator.cs b/src/BuildScriptGenerator/DefaultScriptGenerator.cs index 83955a9c48..76eeabbe97 100644 --- a/src/BuildScriptGenerator/DefaultScriptGenerator.cs +++ b/src/BuildScriptGenerator/DefaultScriptGenerator.cs @@ -1,5 +1,10 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------- +// -------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreBashBuildScriptProperties.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreBashBuildScriptProperties.cs index 11d313dbdd..eaab4dfe18 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreBashBuildScriptProperties.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreBashBuildScriptProperties.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.DotnetCore diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreConstants.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreConstants.cs index 7176b6f6c4..13d436407a 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreConstants.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreConstants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.DotnetCore diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreLanguageDetector.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreLanguageDetector.cs index 324026be79..83bebb6729 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreLanguageDetector.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreLanguageDetector.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGenerator.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGenerator.cs index df51b515d8..be8fb107c4 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGenerator.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGenerator.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptions.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptions.cs index 12e6834035..337181da51 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptions.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptionsSetup.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptionsSetup.cs index 25a9004814..cc8147568d 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptionsSetup.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorOptionsSetup.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.Options; diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorServiceCollectionExtensions.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorServiceCollectionExtensions.cs index 9ba75e081b..44060250a6 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorServiceCollectionExtensions.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreScriptGeneratorServiceCollectionExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.DependencyInjection; diff --git a/src/BuildScriptGenerator/DotnetCore/DotnetCoreVersionProvider.cs b/src/BuildScriptGenerator/DotnetCore/DotnetCoreVersionProvider.cs index 4cbf72357b..bedbff077a 100644 --- a/src/BuildScriptGenerator/DotnetCore/DotnetCoreVersionProvider.cs +++ b/src/BuildScriptGenerator/DotnetCore/DotnetCoreVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/DotnetCore/IDotnetCoreVersionProvider.cs b/src/BuildScriptGenerator/DotnetCore/IDotnetCoreVersionProvider.cs index abf68bd7cf..c2acd8136b 100644 --- a/src/BuildScriptGenerator/DotnetCore/IDotnetCoreVersionProvider.cs +++ b/src/BuildScriptGenerator/DotnetCore/IDotnetCoreVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/EnvironmentSettings.cs b/src/BuildScriptGenerator/EnvironmentSettings.cs index 5882e2bafc..8093f51403 100644 --- a/src/BuildScriptGenerator/EnvironmentSettings.cs +++ b/src/BuildScriptGenerator/EnvironmentSettings.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator diff --git a/src/BuildScriptGenerator/EnvironmentSettingsKeys.cs b/src/BuildScriptGenerator/EnvironmentSettingsKeys.cs index 7fc34b2c3c..457ce9ca9e 100644 --- a/src/BuildScriptGenerator/EnvironmentSettingsKeys.cs +++ b/src/BuildScriptGenerator/EnvironmentSettingsKeys.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator diff --git a/src/BuildScriptGenerator/Exceptions/InvalidUsageException.cs b/src/BuildScriptGenerator/Exceptions/InvalidUsageException.cs index 644e0b9528..9391e14106 100644 --- a/src/BuildScriptGenerator/Exceptions/InvalidUsageException.cs +++ b/src/BuildScriptGenerator/Exceptions/InvalidUsageException.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/Exceptions/UnsupportedLanguageException.cs b/src/BuildScriptGenerator/Exceptions/UnsupportedLanguageException.cs index e9e8c17c51..849987f3c7 100644 --- a/src/BuildScriptGenerator/Exceptions/UnsupportedLanguageException.cs +++ b/src/BuildScriptGenerator/Exceptions/UnsupportedLanguageException.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Exceptions { diff --git a/src/BuildScriptGenerator/Exceptions/UnsupportedVersionException.cs b/src/BuildScriptGenerator/Exceptions/UnsupportedVersionException.cs index b976115de4..e9add67150 100644 --- a/src/BuildScriptGenerator/Exceptions/UnsupportedVersionException.cs +++ b/src/BuildScriptGenerator/Exceptions/UnsupportedVersionException.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Exceptions { diff --git a/src/BuildScriptGenerator/IEnvironment.cs b/src/BuildScriptGenerator/IEnvironment.cs index 818d73c0bf..14e01b7cd9 100644 --- a/src/BuildScriptGenerator/IEnvironment.cs +++ b/src/BuildScriptGenerator/IEnvironment.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections; diff --git a/src/BuildScriptGenerator/IEnvironmentSettingsProvider.cs b/src/BuildScriptGenerator/IEnvironmentSettingsProvider.cs index 2c54e17035..78153b7436 100644 --- a/src/BuildScriptGenerator/IEnvironmentSettingsProvider.cs +++ b/src/BuildScriptGenerator/IEnvironmentSettingsProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator diff --git a/src/BuildScriptGenerator/ILanguageDetector.cs b/src/BuildScriptGenerator/ILanguageDetector.cs index fe98ee038c..884cf52198 100644 --- a/src/BuildScriptGenerator/ILanguageDetector.cs +++ b/src/BuildScriptGenerator/ILanguageDetector.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator diff --git a/src/BuildScriptGenerator/ILanguageScriptGenerator.cs b/src/BuildScriptGenerator/ILanguageScriptGenerator.cs index 538d6dbf69..d9456fb0e3 100644 --- a/src/BuildScriptGenerator/ILanguageScriptGenerator.cs +++ b/src/BuildScriptGenerator/ILanguageScriptGenerator.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/IScriptExecutor.cs b/src/BuildScriptGenerator/IScriptExecutor.cs index 900a799b46..36760ba57a 100644 --- a/src/BuildScriptGenerator/IScriptExecutor.cs +++ b/src/BuildScriptGenerator/IScriptExecutor.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Diagnostics; diff --git a/src/BuildScriptGenerator/IScriptGenerator.cs b/src/BuildScriptGenerator/IScriptGenerator.cs index cd43649038..7d8f1e9ecf 100644 --- a/src/BuildScriptGenerator/IScriptGenerator.cs +++ b/src/BuildScriptGenerator/IScriptGenerator.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator { diff --git a/src/BuildScriptGenerator/ITempDirectoryProvider.cs b/src/BuildScriptGenerator/ITempDirectoryProvider.cs index 072989b7e0..dec7bba1e5 100644 --- a/src/BuildScriptGenerator/ITempDirectoryProvider.cs +++ b/src/BuildScriptGenerator/ITempDirectoryProvider.cs @@ -1,5 +1,7 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator diff --git a/src/BuildScriptGenerator/LanguageDetectorResult.cs b/src/BuildScriptGenerator/LanguageDetectorResult.cs index 7181467b45..d073516552 100644 --- a/src/BuildScriptGenerator/LanguageDetectorResult.cs +++ b/src/BuildScriptGenerator/LanguageDetectorResult.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator diff --git a/src/BuildScriptGenerator/NameAndValuePairParser.cs b/src/BuildScriptGenerator/NameAndValuePairParser.cs index a77cfe26a4..10d59e9682 100644 --- a/src/BuildScriptGenerator/NameAndValuePairParser.cs +++ b/src/BuildScriptGenerator/NameAndValuePairParser.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/Node/INodeVersionProvider.cs b/src/BuildScriptGenerator/Node/INodeVersionProvider.cs index 609b79b90b..093c0c4955 100644 --- a/src/BuildScriptGenerator/Node/INodeVersionProvider.cs +++ b/src/BuildScriptGenerator/Node/INodeVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/Node/NodeBashBuildScriptProperties.cs b/src/BuildScriptGenerator/Node/NodeBashBuildScriptProperties.cs index 2a2a838c08..e15a3dd9d1 100644 --- a/src/BuildScriptGenerator/Node/NodeBashBuildScriptProperties.cs +++ b/src/BuildScriptGenerator/Node/NodeBashBuildScriptProperties.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Node diff --git a/src/BuildScriptGenerator/Node/NodeConstants.cs b/src/BuildScriptGenerator/Node/NodeConstants.cs index 8a5c07e23d..5e36a63f5f 100644 --- a/src/BuildScriptGenerator/Node/NodeConstants.cs +++ b/src/BuildScriptGenerator/Node/NodeConstants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Node diff --git a/src/BuildScriptGenerator/Node/NodeLanguageDetector.cs b/src/BuildScriptGenerator/Node/NodeLanguageDetector.cs index 7fc48bb410..2f018b8de6 100644 --- a/src/BuildScriptGenerator/Node/NodeLanguageDetector.cs +++ b/src/BuildScriptGenerator/Node/NodeLanguageDetector.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/Node/NodeScriptGenerator.cs b/src/BuildScriptGenerator/Node/NodeScriptGenerator.cs index 56ff20be88..7de123dbc0 100644 --- a/src/BuildScriptGenerator/Node/NodeScriptGenerator.cs +++ b/src/BuildScriptGenerator/Node/NodeScriptGenerator.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptions.cs b/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptions.cs index 765dfa9a51..4ef4766a66 100644 --- a/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptions.cs +++ b/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Node diff --git a/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptionsSetup.cs b/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptionsSetup.cs index bcd655edee..086ef0f2ed 100644 --- a/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptionsSetup.cs +++ b/src/BuildScriptGenerator/Node/NodeScriptGeneratorOptionsSetup.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.Options; diff --git a/src/BuildScriptGenerator/Node/NodeScriptGeneratorServiceCollectionExtensions.cs b/src/BuildScriptGenerator/Node/NodeScriptGeneratorServiceCollectionExtensions.cs index 4d47c62e6e..85baf93864 100644 --- a/src/BuildScriptGenerator/Node/NodeScriptGeneratorServiceCollectionExtensions.cs +++ b/src/BuildScriptGenerator/Node/NodeScriptGeneratorServiceCollectionExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.DependencyInjection; diff --git a/src/BuildScriptGenerator/Node/NodeVersionProvider.cs b/src/BuildScriptGenerator/Node/NodeVersionProvider.cs index ae0deed6b7..03ef0b82f1 100644 --- a/src/BuildScriptGenerator/Node/NodeVersionProvider.cs +++ b/src/BuildScriptGenerator/Node/NodeVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; using Microsoft.Extensions.Options; diff --git a/src/BuildScriptGenerator/Properties/AssemblyInfo.cs b/src/BuildScriptGenerator/Properties/AssemblyInfo.cs index 21acfe737c..48f13d59df 100644 --- a/src/BuildScriptGenerator/Properties/AssemblyInfo.cs +++ b/src/BuildScriptGenerator/Properties/AssemblyInfo.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Runtime.CompilerServices; diff --git a/src/BuildScriptGenerator/Python/IPythonVersionProvider.cs b/src/BuildScriptGenerator/Python/IPythonVersionProvider.cs index bccb40e45a..73a9a4716c 100644 --- a/src/BuildScriptGenerator/Python/IPythonVersionProvider.cs +++ b/src/BuildScriptGenerator/Python/IPythonVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/Python/PythonBashBuildScriptProperties.cs b/src/BuildScriptGenerator/Python/PythonBashBuildScriptProperties.cs index e25cb76d9a..3ada4cd1b8 100644 --- a/src/BuildScriptGenerator/Python/PythonBashBuildScriptProperties.cs +++ b/src/BuildScriptGenerator/Python/PythonBashBuildScriptProperties.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Python diff --git a/src/BuildScriptGenerator/Python/PythonConstants.cs b/src/BuildScriptGenerator/Python/PythonConstants.cs index af82405911..ea2a2e68c4 100644 --- a/src/BuildScriptGenerator/Python/PythonConstants.cs +++ b/src/BuildScriptGenerator/Python/PythonConstants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Python diff --git a/src/BuildScriptGenerator/Python/PythonLanguageDetector.cs b/src/BuildScriptGenerator/Python/PythonLanguageDetector.cs index 9ec58ef596..7c3cc7add1 100644 --- a/src/BuildScriptGenerator/Python/PythonLanguageDetector.cs +++ b/src/BuildScriptGenerator/Python/PythonLanguageDetector.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/Python/PythonScriptGenerator.cs b/src/BuildScriptGenerator/Python/PythonScriptGenerator.cs index 714e742a56..91e340e502 100644 --- a/src/BuildScriptGenerator/Python/PythonScriptGenerator.cs +++ b/src/BuildScriptGenerator/Python/PythonScriptGenerator.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptions.cs b/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptions.cs index f8c1623bc6..3a5b5d358d 100644 --- a/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptions.cs +++ b/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptionsSetup.cs b/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptionsSetup.cs index 31aa14db60..976e417082 100644 --- a/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptionsSetup.cs +++ b/src/BuildScriptGenerator/Python/PythonScriptGeneratorOptionsSetup.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.Options; diff --git a/src/BuildScriptGenerator/Python/PythonScriptGeneratorServiceCollectionExtensions.cs b/src/BuildScriptGenerator/Python/PythonScriptGeneratorServiceCollectionExtensions.cs index 9e5e5432be..ccff500ccc 100644 --- a/src/BuildScriptGenerator/Python/PythonScriptGeneratorServiceCollectionExtensions.cs +++ b/src/BuildScriptGenerator/Python/PythonScriptGeneratorServiceCollectionExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.DependencyInjection; diff --git a/src/BuildScriptGenerator/Python/PythonVersionProvider.cs b/src/BuildScriptGenerator/Python/PythonVersionProvider.cs index ef62c3d342..e7a6f60e07 100644 --- a/src/BuildScriptGenerator/Python/PythonVersionProvider.cs +++ b/src/BuildScriptGenerator/Python/PythonVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; using System.Linq; diff --git a/src/BuildScriptGenerator/ScriptGeneratorContext.cs b/src/BuildScriptGenerator/ScriptGeneratorContext.cs index dcaee56289..abcd96b12a 100644 --- a/src/BuildScriptGenerator/ScriptGeneratorContext.cs +++ b/src/BuildScriptGenerator/ScriptGeneratorContext.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/SemanticVersionResolver.cs b/src/BuildScriptGenerator/SemanticVersionResolver.cs index 38364530ec..d8975a1992 100644 --- a/src/BuildScriptGenerator/SemanticVersionResolver.cs +++ b/src/BuildScriptGenerator/SemanticVersionResolver.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/SourceRepo/DefaultSourceRepoProvider.cs b/src/BuildScriptGenerator/SourceRepo/DefaultSourceRepoProvider.cs index 4d5e8c3e4b..8cb04b355f 100644 --- a/src/BuildScriptGenerator/SourceRepo/DefaultSourceRepoProvider.cs +++ b/src/BuildScriptGenerator/SourceRepo/DefaultSourceRepoProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.IO; diff --git a/src/BuildScriptGenerator/SourceRepo/ISourceRepo.cs b/src/BuildScriptGenerator/SourceRepo/ISourceRepo.cs index 910abd2b93..4ef10ba63b 100644 --- a/src/BuildScriptGenerator/SourceRepo/ISourceRepo.cs +++ b/src/BuildScriptGenerator/SourceRepo/ISourceRepo.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/src/BuildScriptGenerator/SourceRepo/ISourceRepoProvider.cs b/src/BuildScriptGenerator/SourceRepo/ISourceRepoProvider.cs index ebd21551fa..ad78ee09d0 100644 --- a/src/BuildScriptGenerator/SourceRepo/ISourceRepoProvider.cs +++ b/src/BuildScriptGenerator/SourceRepo/ISourceRepoProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator { diff --git a/src/BuildScriptGenerator/SourceRepo/LocalSourceRepo.cs b/src/BuildScriptGenerator/SourceRepo/LocalSourceRepo.cs index 38a29f44d0..f53750c6cd 100644 --- a/src/BuildScriptGenerator/SourceRepo/LocalSourceRepo.cs +++ b/src/BuildScriptGenerator/SourceRepo/LocalSourceRepo.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGenerator/VersionProviderHelpers.cs b/src/BuildScriptGenerator/VersionProviderHelpers.cs index 47d8d903c2..2f1811d0a0 100644 --- a/src/BuildScriptGenerator/VersionProviderHelpers.cs +++ b/src/BuildScriptGenerator/VersionProviderHelpers.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; diff --git a/src/BuildScriptGeneratorCli/CliServiceCollectionExtensions.cs b/src/BuildScriptGeneratorCli/CliServiceCollectionExtensions.cs index 52fb41fa6d..382e6cf438 100644 --- a/src/BuildScriptGeneratorCli/CliServiceCollectionExtensions.cs +++ b/src/BuildScriptGeneratorCli/CliServiceCollectionExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using McMaster.Extensions.CommandLineUtils; diff --git a/src/BuildScriptGeneratorCli/Commands/BaseCommand.cs b/src/BuildScriptGeneratorCli/Commands/BaseCommand.cs index 7678ac40b0..f5eefede9b 100644 --- a/src/BuildScriptGeneratorCli/Commands/BaseCommand.cs +++ b/src/BuildScriptGeneratorCli/Commands/BaseCommand.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGeneratorCli/Commands/BuildCommand.cs b/src/BuildScriptGeneratorCli/Commands/BuildCommand.cs index 45d9f053de..f6a1403b9c 100644 --- a/src/BuildScriptGeneratorCli/Commands/BuildCommand.cs +++ b/src/BuildScriptGeneratorCli/Commands/BuildCommand.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGeneratorCli/Commands/BuildScriptGeneratorOptionsHelper.cs b/src/BuildScriptGeneratorCli/Commands/BuildScriptGeneratorOptionsHelper.cs index 424db27b3e..2fa9407d38 100644 --- a/src/BuildScriptGeneratorCli/Commands/BuildScriptGeneratorOptionsHelper.cs +++ b/src/BuildScriptGeneratorCli/Commands/BuildScriptGeneratorOptionsHelper.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGeneratorCli/Commands/LanguagesCommand.cs b/src/BuildScriptGeneratorCli/Commands/LanguagesCommand.cs index b692206160..9faca130d1 100644 --- a/src/BuildScriptGeneratorCli/Commands/LanguagesCommand.cs +++ b/src/BuildScriptGeneratorCli/Commands/LanguagesCommand.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGeneratorCli/Commands/ScriptCommand.cs b/src/BuildScriptGeneratorCli/Commands/ScriptCommand.cs index 12c2e54fd0..ba62247af4 100644 --- a/src/BuildScriptGeneratorCli/Commands/ScriptCommand.cs +++ b/src/BuildScriptGeneratorCli/Commands/ScriptCommand.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGeneratorCli/Constants.cs b/src/BuildScriptGeneratorCli/Constants.cs index 65e990c8f5..251d3b3851 100644 --- a/src/BuildScriptGeneratorCli/Constants.cs +++ b/src/BuildScriptGeneratorCli/Constants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGeneratorCli diff --git a/src/BuildScriptGeneratorCli/Program.cs b/src/BuildScriptGeneratorCli/Program.cs index 0c081a95e3..2ac1c0b138 100644 --- a/src/BuildScriptGeneratorCli/Program.cs +++ b/src/BuildScriptGeneratorCli/Program.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Linq; diff --git a/src/BuildScriptGeneratorCli/Properties/AssemblyInfo.cs b/src/BuildScriptGeneratorCli/Properties/AssemblyInfo.cs index f1d60122e5..92ebdf1cdb 100644 --- a/src/BuildScriptGeneratorCli/Properties/AssemblyInfo.cs +++ b/src/BuildScriptGeneratorCli/Properties/AssemblyInfo.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Runtime.CompilerServices; diff --git a/src/BuildScriptGeneratorCli/ScriptGenerator.cs b/src/BuildScriptGeneratorCli/ScriptGenerator.cs index c37c73e751..c43ef8f7ec 100644 --- a/src/BuildScriptGeneratorCli/ScriptGenerator.cs +++ b/src/BuildScriptGeneratorCli/ScriptGenerator.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/BuildScriptGeneratorCli/ServiceProviderBuilder.cs b/src/BuildScriptGeneratorCli/ServiceProviderBuilder.cs index a36258a446..0781547b6d 100644 --- a/src/BuildScriptGeneratorCli/ServiceProviderBuilder.cs +++ b/src/BuildScriptGeneratorCli/ServiceProviderBuilder.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/Oryx.Common.Utilities/EventStopwatch.cs b/src/Oryx.Common.Utilities/EventStopwatch.cs index 39030d6e8a..87107b4dc5 100644 --- a/src/Oryx.Common.Utilities/EventStopwatch.cs +++ b/src/Oryx.Common.Utilities/EventStopwatch.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; diff --git a/src/Oryx.Common.Utilities/LoggerAiExtensions.cs b/src/Oryx.Common.Utilities/LoggerAiExtensions.cs index 199547c71f..d39d280ebf 100644 --- a/src/Oryx.Common.Utilities/LoggerAiExtensions.cs +++ b/src/Oryx.Common.Utilities/LoggerAiExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; using Microsoft.ApplicationInsights; diff --git a/src/Oryx.Common.Utilities/LoggingConstants.cs b/src/Oryx.Common.Utilities/LoggingConstants.cs index ab1535d250..104985867e 100644 --- a/src/Oryx.Common.Utilities/LoggingConstants.cs +++ b/src/Oryx.Common.Utilities/LoggingConstants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/Oryx.Common.Utilities/ProcessHelper.cs b/src/Oryx.Common.Utilities/ProcessHelper.cs index c87361a221..ea62a31ec3 100644 --- a/src/Oryx.Common.Utilities/ProcessHelper.cs +++ b/src/Oryx.Common.Utilities/ProcessHelper.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/src/startupscriptgenerator/common/fsvalidation.go b/src/startupscriptgenerator/common/fsvalidation.go index 4ca3c48067..f5f21ff55a 100644 --- a/src/startupscriptgenerator/common/fsvalidation.go +++ b/src/startupscriptgenerator/common/fsvalidation.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package common import ( diff --git a/src/startupscriptgenerator/common/logging.go b/src/startupscriptgenerator/common/logging.go index 1cf4d87ad3..fdebcc9c14 100644 --- a/src/startupscriptgenerator/common/logging.go +++ b/src/startupscriptgenerator/common/logging.go @@ -1,30 +1,36 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package common import ( - "os" "fmt" + "os" "time" + "github.com/Microsoft/ApplicationInsights-Go/appinsights" "github.com/Microsoft/ApplicationInsights-Go/appinsights/contracts" ) const SHUTDOWN_CLOSE_TIMEOUT time.Duration = 3 * time.Second -const SHUTDOWN_EXIT_TIMEOUT time.Duration = 6 * time.Second +const SHUTDOWN_EXIT_TIMEOUT time.Duration = 6 * time.Second const APPLICATION_INSIGHTS_INSTRUMENTATION_KEY_ENV_VAR_NAME string = "ORYX_AI_INSTRUMENTATION_KEY" const APP_SERVICE_APP_NAME_ENV_VAR_NAME string = "APPSETTING_WEBSITE_SITE_NAME" type Logger struct { - AiClient appinsights.TelemetryClient - LoggerName string - AppName string + AiClient appinsights.TelemetryClient + LoggerName string + AppName string } func GetLogger(name string) *Logger { key := os.Getenv(APPLICATION_INSIGHTS_INSTRUMENTATION_KEY_ENV_VAR_NAME) logger := Logger{ - AiClient: appinsights.NewTelemetryClient(key), - LoggerName: name, - AppName: os.Getenv(APP_SERVICE_APP_NAME_ENV_VAR_NAME), + AiClient: appinsights.NewTelemetryClient(key), + LoggerName: name, + AppName: os.Getenv(APP_SERVICE_APP_NAME_ENV_VAR_NAME), } return &logger } @@ -75,14 +81,14 @@ func (logger *Logger) Shutdown() { select { case <-logger.AiClient.Channel().Close(SHUTDOWN_CLOSE_TIMEOUT): // Two second timeout for retries. - + // If we got here, then all telemetry was submitted // successfully, and we can proceed to exiting. case <-time.After(SHUTDOWN_EXIT_TIMEOUT): // Five second absolute timeout. This covers any // previous telemetry submission that may not have // completed before Close was called. - + // There are a number of reasons we could have // reached here. We gave it a go, but telemetry // submission failed somewhere. Perhaps old events @@ -90,4 +96,4 @@ func (logger *Logger) Shutdown() { // Either way, we don't want to wait around for it // to complete, so let's just exit. } -} \ No newline at end of file +} diff --git a/src/startupscriptgenerator/dotnetcore/main.go b/src/startupscriptgenerator/dotnetcore/main.go index 142bbec55b..497192330c 100644 --- a/src/startupscriptgenerator/dotnetcore/main.go +++ b/src/startupscriptgenerator/dotnetcore/main.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( @@ -38,10 +43,10 @@ func main() { } entrypointGenerator := DotnetCoreStartupScriptGenerator{ - SourcePath: fullSourcePath, - PublishedOutputPath: fullPublishedOutputPath, - UserStartupCommand: *userStartupCommandPtr, - DefaultAppFilePath: fullDefaultAppFilePath, + SourcePath: fullSourcePath, + PublishedOutputPath: fullPublishedOutputPath, + UserStartupCommand: *userStartupCommandPtr, + DefaultAppFilePath: fullDefaultAppFilePath, } command := entrypointGenerator.GenerateEntrypointScript() diff --git a/src/startupscriptgenerator/dotnetcore/scriptgenerator.go b/src/startupscriptgenerator/dotnetcore/scriptgenerator.go index bdd0825209..8e04482950 100644 --- a/src/startupscriptgenerator/dotnetcore/scriptgenerator.go +++ b/src/startupscriptgenerator/dotnetcore/scriptgenerator.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/src/startupscriptgenerator/node/main.go b/src/startupscriptgenerator/node/main.go index fb1c4e3084..ff0471c8a5 100644 --- a/src/startupscriptgenerator/node/main.go +++ b/src/startupscriptgenerator/node/main.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/src/startupscriptgenerator/node/main_test.go b/src/startupscriptgenerator/node/main_test.go index 4238919cbe..3a0e0749ba 100644 --- a/src/startupscriptgenerator/node/main_test.go +++ b/src/startupscriptgenerator/node/main_test.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/src/startupscriptgenerator/node/scriptgenerator.go b/src/startupscriptgenerator/node/scriptgenerator.go index 9b66432d31..adc4bb5742 100644 --- a/src/startupscriptgenerator/node/scriptgenerator.go +++ b/src/startupscriptgenerator/node/scriptgenerator.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( @@ -5,8 +10,8 @@ import ( "io/ioutil" "os" "path/filepath" - "strings" "startupscriptgenerator/common" + "strings" ) type NodeStartupScriptGenerator struct { @@ -78,7 +83,7 @@ func (gen *NodeStartupScriptGenerator) GenerateEntrypointScript() string { commandSource = "User" logger.LogInformation("User-supplied startup command: '%s'", gen.UserStartupCommand) } - + scriptBuilder.WriteString(startupCommand + "\n") logger.LogProperties("Finalizing script", map[string]string{"commandSource": commandSource}) @@ -101,7 +106,7 @@ func (gen *NodeStartupScriptGenerator) getCandidateFilesStartCommand(appPath str startupFileCommand := "" filesToSearch := []string{"bin/www", "server.js", "app.js", "index.js", "hostingstart.js"} - + for _, file := range filesToSearch { fullPath := filepath.Join(gen.SourcePath, file) if _, err := os.Stat(fullPath); !os.IsNotExist(err) { diff --git a/src/startupscriptgenerator/node/scriptgenerator_test.go b/src/startupscriptgenerator/node/scriptgenerator_test.go index 2790d93091..d53f663662 100644 --- a/src/startupscriptgenerator/node/scriptgenerator_test.go +++ b/src/startupscriptgenerator/node/scriptgenerator_test.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/src/startupscriptgenerator/python/main.go b/src/startupscriptgenerator/python/main.go index d2551b3b8f..87adef0d6b 100644 --- a/src/startupscriptgenerator/python/main.go +++ b/src/startupscriptgenerator/python/main.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/src/startupscriptgenerator/python/scriptgenerator.go b/src/startupscriptgenerator/python/scriptgenerator.go index 5503d9b040..2d69550028 100644 --- a/src/startupscriptgenerator/python/scriptgenerator.go +++ b/src/startupscriptgenerator/python/scriptgenerator.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/src/startupscriptgenerator/python/scriptgenerator_test.go b/src/startupscriptgenerator/python/scriptgenerator_test.go index 806c6a0b2a..589af44a9e 100644 --- a/src/startupscriptgenerator/python/scriptgenerator_test.go +++ b/src/startupscriptgenerator/python/scriptgenerator_test.go @@ -1,3 +1,8 @@ +// -------------------------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. +// -------------------------------------------------------------------------------------------- + package main import ( diff --git a/tests/BuildScriptGenerator.Tests/DefaultEnvironmentSettingsProviderTest.cs b/tests/BuildScriptGenerator.Tests/DefaultEnvironmentSettingsProviderTest.cs index 5bcecafabc..f01fa89e27 100644 --- a/tests/BuildScriptGenerator.Tests/DefaultEnvironmentSettingsProviderTest.cs +++ b/tests/BuildScriptGenerator.Tests/DefaultEnvironmentSettingsProviderTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGenerator.Tests/DefaultEnvironmentTest.cs b/tests/BuildScriptGenerator.Tests/DefaultEnvironmentTest.cs index 3fc65c6a48..d024a7f85c 100644 --- a/tests/BuildScriptGenerator.Tests/DefaultEnvironmentTest.cs +++ b/tests/BuildScriptGenerator.Tests/DefaultEnvironmentTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGenerator.Tests/DefaultScriptGeneratorTest.cs b/tests/BuildScriptGenerator.Tests/DefaultScriptGeneratorTest.cs index 838c7ff452..a54fa8abb9 100644 --- a/tests/BuildScriptGenerator.Tests/DefaultScriptGeneratorTest.cs +++ b/tests/BuildScriptGenerator.Tests/DefaultScriptGeneratorTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; diff --git a/tests/BuildScriptGenerator.Tests/DefaultTempDirectoryProviderTest.cs b/tests/BuildScriptGenerator.Tests/DefaultTempDirectoryProviderTest.cs index 773a8519e1..40f594f563 100644 --- a/tests/BuildScriptGenerator.Tests/DefaultTempDirectoryProviderTest.cs +++ b/tests/BuildScriptGenerator.Tests/DefaultTempDirectoryProviderTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGenerator.Tests/DotnetCore/DotnetCoreLanguageDetectorTest.cs b/tests/BuildScriptGenerator.Tests/DotnetCore/DotnetCoreLanguageDetectorTest.cs index 9c8a6dcff3..497eb1f65b 100644 --- a/tests/BuildScriptGenerator.Tests/DotnetCore/DotnetCoreLanguageDetectorTest.cs +++ b/tests/BuildScriptGenerator.Tests/DotnetCore/DotnetCoreLanguageDetectorTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.Logging.Abstractions; diff --git a/tests/BuildScriptGenerator.Tests/DotnetCore/TestDotnetCoreVersionProvider.cs b/tests/BuildScriptGenerator.Tests/DotnetCore/TestDotnetCoreVersionProvider.cs index 0030d4e301..ec671f66f2 100644 --- a/tests/BuildScriptGenerator.Tests/DotnetCore/TestDotnetCoreVersionProvider.cs +++ b/tests/BuildScriptGenerator.Tests/DotnetCore/TestDotnetCoreVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/tests/BuildScriptGenerator.Tests/NameValuePairParserTest.cs b/tests/BuildScriptGenerator.Tests/NameValuePairParserTest.cs index 3ea422e6a6..353fcace8b 100644 --- a/tests/BuildScriptGenerator.Tests/NameValuePairParserTest.cs +++ b/tests/BuildScriptGenerator.Tests/NameValuePairParserTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Xunit; diff --git a/tests/BuildScriptGenerator.Tests/Node/CachedSourceRepo.cs b/tests/BuildScriptGenerator.Tests/Node/CachedSourceRepo.cs index 778909e3d7..326c06f8ad 100644 --- a/tests/BuildScriptGenerator.Tests/Node/CachedSourceRepo.cs +++ b/tests/BuildScriptGenerator.Tests/Node/CachedSourceRepo.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/tests/BuildScriptGenerator.Tests/Node/NodeLanguageDetectorTest.cs b/tests/BuildScriptGenerator.Tests/Node/NodeLanguageDetectorTest.cs index fdaad6bbe3..26e6d533ee 100644 --- a/tests/BuildScriptGenerator.Tests/Node/NodeLanguageDetectorTest.cs +++ b/tests/BuildScriptGenerator.Tests/Node/NodeLanguageDetectorTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.Logging.Abstractions; diff --git a/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorOptionsSetupTest.cs b/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorOptionsSetupTest.cs index 78467dbfd9..49e6dcbcb9 100644 --- a/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorOptionsSetupTest.cs +++ b/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorOptionsSetupTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Oryx.BuildScriptGenerator.Node; diff --git a/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorTest.cs b/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorTest.cs index 79fd0f8bc3..6cb857b470 100644 --- a/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorTest.cs +++ b/tests/BuildScriptGenerator.Tests/Node/NodeScriptGeneratorTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Extensions.Logging.Abstractions; diff --git a/tests/BuildScriptGenerator.Tests/Node/NodeVersionProviderTest.cs b/tests/BuildScriptGenerator.Tests/Node/NodeVersionProviderTest.cs index 58599182d3..a804e8ac1f 100644 --- a/tests/BuildScriptGenerator.Tests/Node/NodeVersionProviderTest.cs +++ b/tests/BuildScriptGenerator.Tests/Node/NodeVersionProviderTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGenerator.Tests/Node/TestNodeVersionProvider.cs b/tests/BuildScriptGenerator.Tests/Node/TestNodeVersionProvider.cs index 75f356989e..08978818dc 100644 --- a/tests/BuildScriptGenerator.Tests/Node/TestNodeVersionProvider.cs +++ b/tests/BuildScriptGenerator.Tests/Node/TestNodeVersionProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/tests/BuildScriptGenerator.Tests/Python/PythonLanguageDetectorTest.cs b/tests/BuildScriptGenerator.Tests/Python/PythonLanguageDetectorTest.cs index 6229383066..9034dce85e 100644 --- a/tests/BuildScriptGenerator.Tests/Python/PythonLanguageDetectorTest.cs +++ b/tests/BuildScriptGenerator.Tests/Python/PythonLanguageDetectorTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGenerator.Tests/Python/PythonScriptGeneratorOptionsSetupTest.cs b/tests/BuildScriptGenerator.Tests/Python/PythonScriptGeneratorOptionsSetupTest.cs index a3996f4e3c..941215c761 100644 --- a/tests/BuildScriptGenerator.Tests/Python/PythonScriptGeneratorOptionsSetupTest.cs +++ b/tests/BuildScriptGenerator.Tests/Python/PythonScriptGeneratorOptionsSetupTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Oryx.BuildScriptGenerator.Python; diff --git a/tests/BuildScriptGenerator.Tests/SemanticVersionResolverTest.cs b/tests/BuildScriptGenerator.Tests/SemanticVersionResolverTest.cs index c0a7b67037..e243b0050a 100644 --- a/tests/BuildScriptGenerator.Tests/SemanticVersionResolverTest.cs +++ b/tests/BuildScriptGenerator.Tests/SemanticVersionResolverTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Xunit; diff --git a/tests/BuildScriptGenerator.Tests/Settings.cs b/tests/BuildScriptGenerator.Tests/Settings.cs index ba2499e8f6..aac620ca3e 100644 --- a/tests/BuildScriptGenerator.Tests/Settings.cs +++ b/tests/BuildScriptGenerator.Tests/Settings.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Microsoft.Oryx.BuildScriptGenerator.Tests diff --git a/tests/BuildScriptGenerator.Tests/SourceRepo/DefaultSourceRepoProviderTest.cs b/tests/BuildScriptGenerator.Tests/SourceRepo/DefaultSourceRepoProviderTest.cs index 5a1c70527d..9dec01cda1 100644 --- a/tests/BuildScriptGenerator.Tests/SourceRepo/DefaultSourceRepoProviderTest.cs +++ b/tests/BuildScriptGenerator.Tests/SourceRepo/DefaultSourceRepoProviderTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGenerator.Tests/SourceRepo/LocalSourceRepoTest.cs b/tests/BuildScriptGenerator.Tests/SourceRepo/LocalSourceRepoTest.cs index 5a94f295cc..05d0633d45 100644 --- a/tests/BuildScriptGenerator.Tests/SourceRepo/LocalSourceRepoTest.cs +++ b/tests/BuildScriptGenerator.Tests/SourceRepo/LocalSourceRepoTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGeneratorCli.Tests/BuildCommandTest.cs b/tests/BuildScriptGeneratorCli.Tests/BuildCommandTest.cs index 7704a23f8f..c4d99890b8 100644 --- a/tests/BuildScriptGeneratorCli.Tests/BuildCommandTest.cs +++ b/tests/BuildScriptGeneratorCli.Tests/BuildCommandTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGeneratorCli.Tests/BuildScriptGeneratorOptionsHelperTest.cs b/tests/BuildScriptGeneratorCli.Tests/BuildScriptGeneratorOptionsHelperTest.cs index 4bef16fb5e..24756cd324 100644 --- a/tests/BuildScriptGeneratorCli.Tests/BuildScriptGeneratorOptionsHelperTest.cs +++ b/tests/BuildScriptGeneratorCli.Tests/BuildScriptGeneratorOptionsHelperTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGeneratorCli.Tests/ProgramTest.cs b/tests/BuildScriptGeneratorCli.Tests/ProgramTest.cs index dd128b6989..755d124eb8 100644 --- a/tests/BuildScriptGeneratorCli.Tests/ProgramTest.cs +++ b/tests/BuildScriptGeneratorCli.Tests/ProgramTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using McMaster.Extensions.CommandLineUtils; diff --git a/tests/BuildScriptGeneratorCli.Tests/ScriptCommandTest.cs b/tests/BuildScriptGeneratorCli.Tests/ScriptCommandTest.cs index 2ba2b29927..39e2197944 100644 --- a/tests/BuildScriptGeneratorCli.Tests/ScriptCommandTest.cs +++ b/tests/BuildScriptGeneratorCli.Tests/ScriptCommandTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/BuildScriptGeneratorCli.Tests/TestConsole.cs b/tests/BuildScriptGeneratorCli.Tests/TestConsole.cs index ecf0f10053..2a4e46e794 100644 --- a/tests/BuildScriptGeneratorCli.Tests/TestConsole.cs +++ b/tests/BuildScriptGeneratorCli.Tests/TestConsole.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; using System.IO; diff --git a/tests/Oryx.BuildImage.Tests/BuildScriptGenFromBuildImageTests.cs b/tests/Oryx.BuildImage.Tests/BuildScriptGenFromBuildImageTests.cs index f052422281..b3ddeb00dd 100644 --- a/tests/Oryx.BuildImage.Tests/BuildScriptGenFromBuildImageTests.cs +++ b/tests/Oryx.BuildImage.Tests/BuildScriptGenFromBuildImageTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.BuildImage.Tests/DotnetCoreSampleAppsTest.cs b/tests/Oryx.BuildImage.Tests/DotnetCoreSampleAppsTest.cs index a450e2ef78..4e9ef5d9c9 100644 --- a/tests/Oryx.BuildImage.Tests/DotnetCoreSampleAppsTest.cs +++ b/tests/Oryx.BuildImage.Tests/DotnetCoreSampleAppsTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.BuildImage.Tests/NodeJSSampleAppsTest.cs b/tests/Oryx.BuildImage.Tests/NodeJSSampleAppsTest.cs index 6291c96698..946c71e123 100644 --- a/tests/Oryx.BuildImage.Tests/NodeJSSampleAppsTest.cs +++ b/tests/Oryx.BuildImage.Tests/NodeJSSampleAppsTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; using System.IO; diff --git a/tests/Oryx.BuildImage.Tests/PythonSampleAppsTest.cs b/tests/Oryx.BuildImage.Tests/PythonSampleAppsTest.cs index 7ea964a497..61721d06be 100644 --- a/tests/Oryx.BuildImage.Tests/PythonSampleAppsTest.cs +++ b/tests/Oryx.BuildImage.Tests/PythonSampleAppsTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.BuildImage.Tests/SampleAppsTestBase.cs b/tests/Oryx.BuildImage.Tests/SampleAppsTestBase.cs index 6b4c87614c..1f7fc0df2a 100644 --- a/tests/Oryx.BuildImage.Tests/SampleAppsTestBase.cs +++ b/tests/Oryx.BuildImage.Tests/SampleAppsTestBase.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Oryx.BuildImage.Tests diff --git a/tests/Oryx.BuildImage.Tests/Settings.cs b/tests/Oryx.BuildImage.Tests/Settings.cs index d9605e57ed..8ea6929f29 100644 --- a/tests/Oryx.BuildImage.Tests/Settings.cs +++ b/tests/Oryx.BuildImage.Tests/Settings.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Oryx.BuildImage.Tests diff --git a/tests/Oryx.BuildImage.Tests/VersionInformationTest.cs b/tests/Oryx.BuildImage.Tests/VersionInformationTest.cs index cf2a9ac306..0dda067199 100644 --- a/tests/Oryx.BuildImage.Tests/VersionInformationTest.cs +++ b/tests/Oryx.BuildImage.Tests/VersionInformationTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Integration.Tests/AksTests/SampleAppsTest.cs b/tests/Oryx.Integration.Tests/AksTests/SampleAppsTest.cs index 15328cff2c..b5e66750f6 100644 --- a/tests/Oryx.Integration.Tests/AksTests/SampleAppsTest.cs +++ b/tests/Oryx.Integration.Tests/AksTests/SampleAppsTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using k8s; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/Constants.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/Constants.cs index 8ba0a6fb4e..f50d47c64f 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/Constants.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/Constants.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Oryx.Integration.Tests.LocalDockerTests diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/DatabaseTestsBase.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/DatabaseTestsBase.cs index 0dd29141f1..485bc68cdc 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/DatabaseTestsBase.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/DatabaseTestsBase.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MSSqlServerDatabaseSetupFixture.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MSSqlServerDatabaseSetupFixture.cs index dc337c787d..8f29f33e8b 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MSSqlServerDatabaseSetupFixture.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MSSqlServerDatabaseSetupFixture.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MssqlServerIntegrationTests.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MssqlServerIntegrationTests.cs index 131de12478..a0c6ca7828 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MssqlServerIntegrationTests.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MssqlServerIntegrationTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.IO; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlDatabaseSetupFixture.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlDatabaseSetupFixture.cs index f082e56b48..ff4a4f90cc 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlDatabaseSetupFixture.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlDatabaseSetupFixture.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlIntegrationTests.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlIntegrationTests.cs index c74c0340c0..0e54ab75a4 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlIntegrationTests.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/MySqlIntegrationTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.IO; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresDatabaseSetupFixture.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresDatabaseSetupFixture.cs index 90f5af50e4..6ad36ec21f 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresDatabaseSetupFixture.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresDatabaseSetupFixture.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresIntegrationTests.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresIntegrationTests.cs index e8ca8051e0..a332770013 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresIntegrationTests.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/PostgresIntegrationTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.IO; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/SqliteIntegrationTests.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/SqliteIntegrationTests.cs index a8963e9044..cca81f0fb2 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/SqliteIntegrationTests.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DatabaseTests/SqliteIntegrationTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.IO; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/DotnetCoreEndToEndTests.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/DotnetCoreEndToEndTests.cs index 55f02fc127..752722637e 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/DotnetCoreEndToEndTests.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/DotnetCoreEndToEndTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Integration.Tests/LocalDockerTests/EndToEndTests.cs b/tests/Oryx.Integration.Tests/LocalDockerTests/EndToEndTests.cs index 30e3133f08..a7baf6e279 100644 --- a/tests/Oryx.Integration.Tests/LocalDockerTests/EndToEndTests.cs +++ b/tests/Oryx.Integration.Tests/LocalDockerTests/EndToEndTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.IO; diff --git a/tests/Oryx.RuntimeImage.Tests/DotnetCoreImageVersionsTest.cs b/tests/Oryx.RuntimeImage.Tests/DotnetCoreImageVersionsTest.cs index b6aea2b48b..54d5d06244 100644 --- a/tests/Oryx.RuntimeImage.Tests/DotnetCoreImageVersionsTest.cs +++ b/tests/Oryx.RuntimeImage.Tests/DotnetCoreImageVersionsTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; @@ -77,4 +78,4 @@ private void RunAsserts(Action action, string message) } } } -} +} \ No newline at end of file diff --git a/tests/Oryx.RuntimeImage.Tests/DotnetCoreStartupScriptGenerationTest.cs b/tests/Oryx.RuntimeImage.Tests/DotnetCoreStartupScriptGenerationTest.cs index 7ada1dbf20..e08f0f0cb5 100644 --- a/tests/Oryx.RuntimeImage.Tests/DotnetCoreStartupScriptGenerationTest.cs +++ b/tests/Oryx.RuntimeImage.Tests/DotnetCoreStartupScriptGenerationTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.RuntimeImage.Tests/NodeImagesTest.cs b/tests/Oryx.RuntimeImage.Tests/NodeImagesTest.cs index 12e56d6022..b344a5c8c4 100644 --- a/tests/Oryx.RuntimeImage.Tests/NodeImagesTest.cs +++ b/tests/Oryx.RuntimeImage.Tests/NodeImagesTest.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.RuntimeImage.Tests/PythonImagesTests.cs b/tests/Oryx.RuntimeImage.Tests/PythonImagesTests.cs index e9f8bf3442..09fdfdf38b 100644 --- a/tests/Oryx.RuntimeImage.Tests/PythonImagesTests.cs +++ b/tests/Oryx.RuntimeImage.Tests/PythonImagesTests.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.RuntimeImage.Tests/Settings.cs b/tests/Oryx.RuntimeImage.Tests/Settings.cs index 3560292382..e3fbe735fe 100644 --- a/tests/Oryx.RuntimeImage.Tests/Settings.cs +++ b/tests/Oryx.RuntimeImage.Tests/Settings.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Oryx.RuntimeImage.Tests { diff --git a/tests/Oryx.Tests.Common/DockerCli.cs b/tests/Oryx.Tests.Common/DockerCli.cs index c00e085c1e..d9a2e34b83 100644 --- a/tests/Oryx.Tests.Common/DockerCli.cs +++ b/tests/Oryx.Tests.Common/DockerCli.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/DockerCliExtensions.cs b/tests/Oryx.Tests.Common/DockerCliExtensions.cs index 6775c0d670..959606e784 100644 --- a/tests/Oryx.Tests.Common/DockerCliExtensions.cs +++ b/tests/Oryx.Tests.Common/DockerCliExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Collections.Generic; diff --git a/tests/Oryx.Tests.Common/DockerCommandResult.cs b/tests/Oryx.Tests.Common/DockerCommandResult.cs index 8c8e72143e..323fce3180 100644 --- a/tests/Oryx.Tests.Common/DockerCommandResult.cs +++ b/tests/Oryx.Tests.Common/DockerCommandResult.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/DockerRunCommandProcessResult.cs b/tests/Oryx.Tests.Common/DockerRunCommandProcessResult.cs index 3e32b145f5..09ed2cc4b6 100644 --- a/tests/Oryx.Tests.Common/DockerRunCommandProcessResult.cs +++ b/tests/Oryx.Tests.Common/DockerRunCommandProcessResult.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/DockerRunCommandResult.cs b/tests/Oryx.Tests.Common/DockerRunCommandResult.cs index b07b79af85..f298cd218c 100644 --- a/tests/Oryx.Tests.Common/DockerRunCommandResult.cs +++ b/tests/Oryx.Tests.Common/DockerRunCommandResult.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/DockerVolume.cs b/tests/Oryx.Tests.Common/DockerVolume.cs index 8b8ffc0c9f..f6e6d5937d 100644 --- a/tests/Oryx.Tests.Common/DockerVolume.cs +++ b/tests/Oryx.Tests.Common/DockerVolume.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; @@ -123,4 +124,4 @@ private static void CopyDirectories(string sourceDirName, string destDirName, bo } } } -} +} \ No newline at end of file diff --git a/tests/Oryx.Tests.Common/EnableOnPlatformAttribute.cs b/tests/Oryx.Tests.Common/EnableOnPlatformAttribute.cs index 407a379631..b25db3e8bf 100644 --- a/tests/Oryx.Tests.Common/EnableOnPlatformAttribute.cs +++ b/tests/Oryx.Tests.Common/EnableOnPlatformAttribute.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Runtime.InteropServices; diff --git a/tests/Oryx.Tests.Common/EndToEndTestHelper.cs b/tests/Oryx.Tests.Common/EndToEndTestHelper.cs index 241989f7fd..1a89593bac 100644 --- a/tests/Oryx.Tests.Common/EndToEndTestHelper.cs +++ b/tests/Oryx.Tests.Common/EndToEndTestHelper.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/EnvironmentVariable.cs b/tests/Oryx.Tests.Common/EnvironmentVariable.cs index f5dd05376b..d34c86f21d 100644 --- a/tests/Oryx.Tests.Common/EnvironmentVariable.cs +++ b/tests/Oryx.Tests.Common/EnvironmentVariable.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/Settings.cs b/tests/Oryx.Tests.Common/Settings.cs index d86e65d4a1..d6ad57bb1f 100644 --- a/tests/Oryx.Tests.Common/Settings.cs +++ b/tests/Oryx.Tests.Common/Settings.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- namespace Oryx.Tests.Common diff --git a/tests/Oryx.Tests.Common/ShellScriptBuilder.cs b/tests/Oryx.Tests.Common/ShellScriptBuilder.cs index dfdef46f08..c655308880 100644 --- a/tests/Oryx.Tests.Common/ShellScriptBuilder.cs +++ b/tests/Oryx.Tests.Common/ShellScriptBuilder.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System.Text; diff --git a/tests/Oryx.Tests.Common/StringExtensions.cs b/tests/Oryx.Tests.Common/StringExtensions.cs index e9ee76f7f2..2872b2021f 100644 --- a/tests/Oryx.Tests.Common/StringExtensions.cs +++ b/tests/Oryx.Tests.Common/StringExtensions.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/TestEnvironment.cs b/tests/Oryx.Tests.Common/TestEnvironment.cs index fa5c122d41..8fbfbfe6bc 100644 --- a/tests/Oryx.Tests.Common/TestEnvironment.cs +++ b/tests/Oryx.Tests.Common/TestEnvironment.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System; diff --git a/tests/Oryx.Tests.Common/TestEnvironmentSettingsProvider.cs b/tests/Oryx.Tests.Common/TestEnvironmentSettingsProvider.cs index 6d87af127f..e2e15ab36f 100644 --- a/tests/Oryx.Tests.Common/TestEnvironmentSettingsProvider.cs +++ b/tests/Oryx.Tests.Common/TestEnvironmentSettingsProvider.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using Microsoft.Oryx.BuildScriptGenerator; diff --git a/tests/Oryx.Tests.Common/TestTempDirTestFixture.cs b/tests/Oryx.Tests.Common/TestTempDirTestFixture.cs index 23c923f71e..83746e24b6 100644 --- a/tests/Oryx.Tests.Common/TestTempDirTestFixture.cs +++ b/tests/Oryx.Tests.Common/TestTempDirTestFixture.cs @@ -1,5 +1,6 @@ // -------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT license. // -------------------------------------------------------------------------------------------- using System;