Skip to content

Commit

Permalink
Merge pull request #22 from dstuckims/updatefileheaders
Browse files Browse the repository at this point in the history
Update source file headers to mention MIT/license
  • Loading branch information
jtaubensee authored Nov 16, 2016
2 parents 2171ea9 + 7d18ff0 commit b871515
Show file tree
Hide file tree
Showing 46 changed files with 98 additions and 149 deletions.
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/AuthorizationFailedException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/AsyncLock.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/ExceptionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/Fx.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/InputQueue.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/SecurityToken.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/StringExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/TimeoutHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/TokenProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/TrackingContext.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/Common/UriHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/ConnectionLostException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/EndpointAlreadyExistsException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/EndpointNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/HybridConnectionClient.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/HybridConnectionConstants.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/HybridConnectionListener.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/HybridConnectionStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/IConnectionStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/ListenerCommand.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/ManagementOperations.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/QuotaExceededException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/RelayConnectionStringBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/RelayConstants.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/RelayEventSource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/RelayException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/SR.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/ServerBusyException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/TokenRenewer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/WebSocketExceptionHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/WebSocketStream.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay
{
Expand Down
8 changes: 3 additions & 5 deletions src/Microsoft.Azure.Relay/WebSockets/Net45/ClientWebSocket.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay.WebSockets
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Net;
using System.Net.WebSockets;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

// From: https://referencesource.microsoft.com/#System/net/System/Net/WebSockets/ClientWebSocket.cs
sealed class ClientWebSocket : WebSocket
{
private readonly ClientWebSocketOptions options;
Expand Down
8 changes: 3 additions & 5 deletions src/Microsoft.Azure.Relay/WebSockets/Net45/Internal.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay.WebSockets
{
using System;

// From: https://referencesource.microsoft.com/#System/net/System/Net/Internal.cs
//
// this class contains known header names
//
Expand Down
8 changes: 4 additions & 4 deletions src/Microsoft.Azure.Relay/WebSockets/Net45/Logging.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay.WebSockets
{
Expand All @@ -10,7 +9,8 @@ namespace Microsoft.Azure.Relay.WebSockets
using System.Security;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;


// From: https://referencesource.microsoft.com/#System/net/System/Net/Logging.cs
internal class Logging
{
private static volatile bool s_LoggingEnabled = true;
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.Azure.Relay/WebSockets/Net45/SR.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay.WebSockets
{
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.Azure.Relay/WebSockets/Net45/WebSocketBuffer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.Relay.WebSockets
{
Expand All @@ -9,6 +8,7 @@ namespace Microsoft.Azure.Relay.WebSockets
using System.Globalization;
using System.Runtime.InteropServices;

// From: https://referencesource.microsoft.com/#System/net/System/Net/WebSockets/WebSocketBuffer.cs
// This class helps to abstract the internal WebSocket buffer, which is used to interact with the native WebSocket
// protocol component (WSPC). It helps to shield the details of the layout and the involved pointer arithmetic.
// The internal WebSocket buffer also contains a segment, which is used by the WebSocketBase class to buffer
Expand Down
Loading

0 comments on commit b871515

Please sign in to comment.