Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 022c692

Browse files
committed
Revert WebSocketRequestedProtocols to IList<string>
1 parent 9dd0e4a commit 022c692

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.AspNet.Http.Abstractions/WebSocketManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System.Collections.Generic;
45
using System.Net.WebSockets;
56
using System.Threading.Tasks;
6-
using Microsoft.Framework.Primitives;
77

88
namespace Microsoft.AspNet.Http
99
{
1010
public abstract class WebSocketManager
1111
{
1212
public abstract bool IsWebSocketRequest { get; }
1313

14-
public abstract StringValues WebSocketRequestedProtocols { get; }
14+
public abstract IList<string> WebSocketRequestedProtocols { get; }
1515

1616
public virtual Task<WebSocket> AcceptWebSocketAsync()
1717
{

src/Microsoft.AspNet.Http/DefaultWebSocketManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5+
using System.Collections.Generic;
56
using System.Net.WebSockets;
67
using System.Threading.Tasks;
78
using Microsoft.AspNet.Http.Features;
8-
using Microsoft.Framework.Primitives;
99
using Microsoft.Net.Http.Headers;
1010

1111
namespace Microsoft.AspNet.Http.Internal
@@ -39,7 +39,7 @@ public override bool IsWebSocketRequest
3939
}
4040
}
4141

42-
public override StringValues WebSocketRequestedProtocols
42+
public override IList<string> WebSocketRequestedProtocols
4343
{
4444
get
4545
{

0 commit comments

Comments
 (0)