Skip to content

Commit 71ce37e

Browse files
davidfowlpakrym
authored andcommitted
Remove WebSocketProtocol dependencies (#6651)
1 parent 6d28c44 commit 71ce37e

File tree

9 files changed

+9
-16
lines changed

9 files changed

+9
-16
lines changed

src/Servers/IIS/IIS/test/Common.Tests/Common.Tests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
@@ -10,7 +10,6 @@
1010
<Reference Include="Microsoft.Extensions.Logging" />
1111
<Reference Include="Microsoft.Extensions.Logging.Testing" />
1212
<Reference Include="System.Diagnostics.EventLog" />
13-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
1413
</ItemGroup>
1514

1615
</Project>

src/Servers/IIS/IIS/test/IIS.ForwardsCompatibility.FunctionalTests/IIS.ForwardsCompatibility.FunctionalTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
@@ -29,7 +29,6 @@
2929
<Reference Include="Microsoft.Extensions.Logging" />
3030
<Reference Include="Microsoft.Extensions.Logging.Testing" />
3131
<Reference Include="System.Diagnostics.EventLog" />
32-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
3332
</ItemGroup>
3433

3534
</Project>

src/Servers/IIS/IIS/test/IIS.FunctionalTests/IIS.FunctionalTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.0</TargetFramework>
@@ -30,7 +30,6 @@
3030
<Reference Include="Microsoft.Extensions.Logging.Testing" />
3131
<Reference Include="Microsoft.Extensions.Logging" />
3232
<Reference Include="System.Diagnostics.EventLog" />
33-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
3433
</ItemGroup>
3534

3635
</Project>

src/Servers/IIS/IIS/test/IIS.Tests/IIS.Tests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<Import Project="..\..\..\build\testsite.props" />
44

@@ -18,7 +18,6 @@
1818
<Reference Include="Microsoft.Extensions.Logging.Testing" />
1919
<Reference Include="Microsoft.Extensions.Logging" />
2020
<Reference Include="System.Diagnostics.EventLog" />
21-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
2221
</ItemGroup>
2322

2423
<ItemGroup>

src/Servers/IIS/IIS/test/IISExpress.FunctionalTests/IISExpress.FunctionalTests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<Reference Include="Microsoft.Extensions.Logging" />
3131
<Reference Include="Microsoft.Extensions.Logging.Testing" />
3232
<Reference Include="System.Diagnostics.EventLog" />
33-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
3433
</ItemGroup>
3534

3635
</Project>

src/Servers/IIS/IIS/test/testassets/InProcessWebSite/InProcessWebSite.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<Import Project="..\..\..\..\build\testsite.props" />
44

@@ -20,7 +20,6 @@
2020
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
2121
<Reference Include="Microsoft.Extensions.Configuration.Json" />
2222
<Reference Include="Microsoft.Extensions.Logging.Console" />
23-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
2423
<Reference Include="xunit.assert" />
2524
</ItemGroup>
2625

src/Servers/IIS/IIS/test/testassets/InProcessWebSite/Startup.WebSockets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private static async Task<WebSocket> Upgrade(HttpContext context)
9696
Stream opaqueTransport = await upgradeFeature.UpgradeAsync();
9797

9898
// Get the WebSocket object
99-
var ws = WebSocketProtocol.CreateFromStream(opaqueTransport, isServer: true, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2));
99+
var ws = WebSocket.CreateFromStream(opaqueTransport, isServer: true, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2));
100100
return ws;
101101
}
102102

src/Servers/IIS/IIS/test/testassets/StressTestWebSite/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void Configure(IApplicationBuilder app)
3636
app.Map("/ResponseHeaders", ResponseHeaders);
3737
app.Map("/EnvironmentVariables", EnvironmentVariables);
3838
app.Map("/RequestInformation", RequestInformation);
39-
app.Map("/WebSocket", WebSocket);
39+
app.Map("/WebSocket", WebSockets);
4040

4141
app.Run(async context =>
4242
{
@@ -152,7 +152,7 @@ private void RequestInformation(IApplicationBuilder app)
152152
});
153153
}
154154

155-
private void WebSocket(IApplicationBuilder app)
155+
private void WebSockets(IApplicationBuilder app)
156156
{
157157
app.Run(async context =>
158158
{
@@ -170,7 +170,7 @@ private void WebSocket(IApplicationBuilder app)
170170
Stream opaqueTransport = await upgradeFeature.UpgradeAsync();
171171

172172
// Get the WebSocket object
173-
var ws = WebSocketProtocol.CreateFromStream(opaqueTransport, isServer: true, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2));
173+
var ws = WebSocket.CreateFromStream(opaqueTransport, isServer: true, subProtocol: null, keepAliveInterval: TimeSpan.FromMinutes(2));
174174

175175
var appLifetime = app.ApplicationServices.GetRequiredService<IApplicationLifetime>();
176176

src/Servers/IIS/IIS/test/testassets/StressTestWebSite/StressTestWebSite.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<Reference Include="Microsoft.AspNetCore.ResponseCompression" />
2020
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
2121
<Reference Include="Microsoft.Extensions.Logging.Console" />
22-
<Reference Include="System.Net.WebSockets.WebSocketProtocol" />
2322
</ItemGroup>
2423

2524
</Project>

0 commit comments

Comments
 (0)