From 16cb4c0a2f403f0112c163cb5b64bcb9d745a5b9 Mon Sep 17 00:00:00 2001 From: daniv-msft <48293037+daniv-msft@users.noreply.github.com> Date: Thu, 18 Apr 2019 09:24:41 -0700 Subject: [PATCH] Add copyright headers on samples --- .../getting-started/mywebapi/Controllers/ValuesController.cs | 5 ++++- samples/dotnetcore/getting-started/mywebapi/Program.cs | 5 ++++- samples/dotnetcore/getting-started/mywebapi/Startup.cs | 5 ++++- .../webfrontend/Controllers/HomeController.cs | 5 ++++- .../getting-started/webfrontend/Models/ErrorViewModel.cs | 3 +++ samples/dotnetcore/getting-started/webfrontend/Program.cs | 5 ++++- samples/dotnetcore/getting-started/webfrontend/Startup.cs | 5 ++++- .../getting-started/webfrontend/Views/Home/About.cshtml | 5 ++++- .../getting-started/webfrontend/Views/Home/Contact.cshtml | 5 ++++- .../getting-started/webfrontend/Views/Home/Index.cshtml | 5 ++++- .../getting-started/webfrontend/Views/Shared/Error.cshtml | 5 ++++- .../getting-started/webfrontend/Views/Shared/_Layout.cshtml | 5 ++++- .../Views/Shared/_ValidationScriptsPartial.cshtml | 3 +++ .../getting-started/webfrontend/Views/_ViewImports.cshtml | 3 +++ .../getting-started/webfrontend/Views/_ViewStart.cshtml | 5 ++++- .../getting-started/webfrontend/wwwroot/css/site.css | 5 ++++- .../getting-started/webfrontend/wwwroot/css/site.min.css | 3 +++ samples/golang/getting-started/mywebapi/src/app/main.go | 3 +++ .../golang/getting-started/webfrontend/src/app/index.html | 3 +++ samples/golang/getting-started/webfrontend/src/app/main.go | 3 +++ .../src/main/java/com/ms/sample/mywebapi/Application.java | 3 +++ .../src/main/java/com/ms/sample/webfrontend/Application.java | 3 +++ .../webfrontend/src/main/resources/static/app.css | 3 +++ .../webfrontend/src/main/resources/static/app.js | 3 +++ .../webfrontend/src/main/resources/static/index.html | 3 +++ samples/nodejs/getting-started/mywebapi/server.js | 3 +++ samples/nodejs/getting-started/webfrontend/public/app.css | 3 +++ samples/nodejs/getting-started/webfrontend/public/app.js | 3 +++ samples/nodejs/getting-started/webfrontend/public/index.html | 3 +++ samples/nodejs/getting-started/webfrontend/server.js | 3 +++ 30 files changed, 103 insertions(+), 13 deletions(-) diff --git a/samples/dotnetcore/getting-started/mywebapi/Controllers/ValuesController.cs b/samples/dotnetcore/getting-started/mywebapi/Controllers/ValuesController.cs index 9be3feab9..0b2db672e 100644 --- a/samples/dotnetcore/getting-started/mywebapi/Controllers/ValuesController.cs +++ b/samples/dotnetcore/getting-started/mywebapi/Controllers/ValuesController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/samples/dotnetcore/getting-started/mywebapi/Program.cs b/samples/dotnetcore/getting-started/mywebapi/Program.cs index 38b696078..98b7a64bc 100644 --- a/samples/dotnetcore/getting-started/mywebapi/Program.cs +++ b/samples/dotnetcore/getting-started/mywebapi/Program.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/samples/dotnetcore/getting-started/mywebapi/Startup.cs b/samples/dotnetcore/getting-started/mywebapi/Startup.cs index 82bfcde70..210f93de6 100644 --- a/samples/dotnetcore/getting-started/mywebapi/Startup.cs +++ b/samples/dotnetcore/getting-started/mywebapi/Startup.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/samples/dotnetcore/getting-started/webfrontend/Controllers/HomeController.cs b/samples/dotnetcore/getting-started/webfrontend/Controllers/HomeController.cs index 48fc20a7a..f4d7b9651 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Controllers/HomeController.cs +++ b/samples/dotnetcore/getting-started/webfrontend/Controllers/HomeController.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/samples/dotnetcore/getting-started/webfrontend/Models/ErrorViewModel.cs b/samples/dotnetcore/getting-started/webfrontend/Models/ErrorViewModel.cs index a2e0a2b55..be617be14 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Models/ErrorViewModel.cs +++ b/samples/dotnetcore/getting-started/webfrontend/Models/ErrorViewModel.cs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + using System; namespace webfrontend.Models diff --git a/samples/dotnetcore/getting-started/webfrontend/Program.cs b/samples/dotnetcore/getting-started/webfrontend/Program.cs index 16665345d..46f59db3d 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Program.cs +++ b/samples/dotnetcore/getting-started/webfrontend/Program.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/samples/dotnetcore/getting-started/webfrontend/Startup.cs b/samples/dotnetcore/getting-started/webfrontend/Startup.cs index 49bc16b8d..d8bab5678 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Startup.cs +++ b/samples/dotnetcore/getting-started/webfrontend/Startup.cs @@ -1,4 +1,7 @@ -using System; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/samples/dotnetcore/getting-started/webfrontend/Views/Home/About.cshtml b/samples/dotnetcore/getting-started/webfrontend/Views/Home/About.cshtml index 3674e37a8..e6e0a36da 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Views/Home/About.cshtml +++ b/samples/dotnetcore/getting-started/webfrontend/Views/Home/About.cshtml @@ -1,4 +1,7 @@ -@{ + + +@{ ViewData["Title"] = "About"; }

@ViewData["Title"]

diff --git a/samples/dotnetcore/getting-started/webfrontend/Views/Home/Contact.cshtml b/samples/dotnetcore/getting-started/webfrontend/Views/Home/Contact.cshtml index a11a1867c..5e1c9ab83 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Views/Home/Contact.cshtml +++ b/samples/dotnetcore/getting-started/webfrontend/Views/Home/Contact.cshtml @@ -1,4 +1,7 @@ -@{ + + +@{ ViewData["Title"] = "Contact"; }

@ViewData["Title"]

diff --git a/samples/dotnetcore/getting-started/webfrontend/Views/Home/Index.cshtml b/samples/dotnetcore/getting-started/webfrontend/Views/Home/Index.cshtml index f804781a3..ece11be41 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Views/Home/Index.cshtml +++ b/samples/dotnetcore/getting-started/webfrontend/Views/Home/Index.cshtml @@ -1,4 +1,7 @@ -@{ + + +@{ ViewData["Title"] = "Home Page"; } diff --git a/samples/dotnetcore/getting-started/webfrontend/Views/Shared/Error.cshtml b/samples/dotnetcore/getting-started/webfrontend/Views/Shared/Error.cshtml index ec2ea6bd0..c6999c2f1 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Views/Shared/Error.cshtml +++ b/samples/dotnetcore/getting-started/webfrontend/Views/Shared/Error.cshtml @@ -1,4 +1,7 @@ -@model ErrorViewModel + + +@model ErrorViewModel @{ ViewData["Title"] = "Error"; } diff --git a/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_Layout.cshtml b/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_Layout.cshtml index 303718e63..06ed3d458 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_Layout.cshtml +++ b/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_Layout.cshtml @@ -1,4 +1,7 @@ - + + + diff --git a/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_ValidationScriptsPartial.cshtml b/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_ValidationScriptsPartial.cshtml index e144e6d5c..1319d1e5e 100644 --- a/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_ValidationScriptsPartial.cshtml +++ b/samples/dotnetcore/getting-started/webfrontend/Views/Shared/_ValidationScriptsPartial.cshtml @@ -1,3 +1,6 @@ + +