Skip to content

Commit 53bdfb0

Browse files
gedemgedem
authored andcommitted
ContextMessage value nullable fix
1 parent 9d4dcc5 commit 53bdfb0

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

src/NetCoreStack.WebSockets/Extensions/WebSocketExtensions.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ public static ArraySegment<byte> ToSegment(this WebSocketMessageContext webSocke
9898
throw new ArgumentNullException(nameof(webSocketContext));
9999
}
100100

101-
if (webSocketContext.Value == null)
102-
{
103-
throw new ArgumentNullException(nameof(webSocketContext.Value));
104-
}
105-
106101
var content = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(webSocketContext));
107102
return new ArraySegment<byte>(content, 0, content.Length);
108103
}

src/NetCoreStack.WebSockets/NetCoreStack.WebSockets.xproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@
1111
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
1212
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
1313
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
14-
<SccProjectName>
15-
</SccProjectName>
16-
<SccProvider>
17-
</SccProvider>
18-
<SccAuxPath>
19-
</SccAuxPath>
20-
<SccLocalPath>
21-
</SccLocalPath>
14+
<SccProjectName>SAK</SccProjectName>
15+
<SccProvider>SAK</SccProvider>
16+
<SccAuxPath>SAK</SccAuxPath>
17+
<SccLocalPath>SAK</SccLocalPath>
2218
</PropertyGroup>
2319
<PropertyGroup>
2420
<SchemaVersion>2.0</SchemaVersion>

test/ServerTestApp/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"Swashbuckle": "6.0.0-beta902",
2121
"NetCoreStack.WebSockets": "1.0.0-*",
2222
"Microsoft.Extensions.Caching.Redis": "1.1.0",
23-
"Common.Libs": "1.0.0-*",
23+
"Common.Libs": "1.0.0-*"
2424
},
2525

2626
"tools": {
27-
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
27+
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final"
2828
},
2929

3030
"frameworks": {

0 commit comments

Comments
 (0)