Skip to content

Commit 13a3a13

Browse files
author
Elad Zelingher
committed
Updating Newtonsoft Msgpack
1 parent f34d7af commit 13a3a13

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

NuGet/WampSharp.NewtonsoftMsgpack.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<dependencies>
88
<dependency id="WampSharp" version="[$version$]" />
99
<dependency id="WampSharp.NewtonsoftJson" version="[$version$]" />
10-
<dependency id="Newtonsoft.Msgpack" version="[0.1.6]" />
10+
<dependency id="Newtonsoft.Msgpack" version="[0.1.8]" />
1111
</dependencies>
1212
<id>WampSharp.NewtonsoftMsgpack</id>
1313
<title>WampSharp Newtonsoft.Msgpack binding</title>

src/net45/Default/WampSharp.NewtonsoftMsgpack/MsgPack/MessagePackParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public byte[] Format(WampMessage<object> message)
6464

6565
using (MemoryStream memoryStream = new MemoryStream())
6666
{
67-
using (MessagePackWriter writer = new MessagePackWriter(memoryStream))
67+
using (MessagePackWriter writer = new MessagePackWriter(memoryStream) {WriteDateTimeAsString = true})
6868
{
6969
mSerializer.Serialize(writer, array);
7070
memoryStream.Position = 0;
@@ -97,7 +97,7 @@ public WampMessage<JToken> Parse(Stream stream)
9797

9898
public void Format(WampMessage<object> message, Stream stream)
9999
{
100-
using (MessagePackWriter writer = new MessagePackWriter(stream) {CloseOutput = false})
100+
using (MessagePackWriter writer = new MessagePackWriter(stream) {CloseOutput = false, WriteDateTimeAsString = true })
101101
{
102102
writer.Formatting = Formatting.None;
103103
object[] array = mMessageFormatter.Format(message);

src/net45/Default/WampSharp.NewtonsoftMsgpack/WampSharp.NewtonsoftMsgpack.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<Private>True</Private>
4444
</Reference>
4545
<Reference Include="Newtonsoft.Msgpack, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
46-
<HintPath>..\..\packages\Newtonsoft.Msgpack.0.1.6\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
46+
<HintPath>..\..\packages\Newtonsoft.Msgpack.0.1.8\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
4747
<Private>True</Private>
4848
</Reference>
4949
<Reference Include="System" />

src/net45/Default/WampSharp.NewtonsoftMsgpack/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<packages>
33
<package id="MsgPack.Cli" version="0.6.2" targetFramework="net45" />
44
<package id="Newtonsoft.Json" version="6.0.5" targetFramework="net45" />
5-
<package id="Newtonsoft.Msgpack" version="0.1.6" targetFramework="net45" />
5+
<package id="Newtonsoft.Msgpack" version="0.1.8" targetFramework="net45" />
66
</packages>

src/net45/Samples/WAMP2/WampSharp.Samples.Callee/WampSharp.Samples.Callee.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<Private>True</Private>
5252
</Reference>
5353
<Reference Include="Newtonsoft.Msgpack, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
54-
<HintPath>..\..\..\packages\Newtonsoft.Msgpack.0.1.6\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
54+
<HintPath>..\..\..\packages\Newtonsoft.Msgpack.0.1.8\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
5555
<Private>True</Private>
5656
</Reference>
5757
<Reference Include="System" />

src/net45/Samples/WAMP2/WampSharp.Samples.Callee/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Fleck" version="0.13.0.57" targetFramework="net45" />
55
<package id="MsgPack.Cli" version="0.6.2" targetFramework="net45" />
66
<package id="Newtonsoft.Json" version="6.0.5" targetFramework="net45" />
7-
<package id="Newtonsoft.Msgpack" version="0.1.6" targetFramework="net45" />
7+
<package id="Newtonsoft.Msgpack" version="0.1.8" targetFramework="net45" />
88
<package id="Rx-Core" version="2.2.5" targetFramework="net45" />
99
<package id="Rx-Interfaces" version="2.2.5" targetFramework="net45" />
1010
<package id="Rx-Linq" version="2.2.5" targetFramework="net45" />

src/net45/Samples/WAMP2/WampSharp.Samples.Caller/WampSharp.Samples.Caller.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<Private>True</Private>
5252
</Reference>
5353
<Reference Include="Newtonsoft.Msgpack, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
54-
<HintPath>..\..\..\packages\Newtonsoft.Msgpack.0.1.6\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
54+
<HintPath>..\..\..\packages\Newtonsoft.Msgpack.0.1.8\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
5555
<Private>True</Private>
5656
</Reference>
5757
<Reference Include="System" />

src/net45/Samples/WAMP2/WampSharp.Samples.Caller/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Fleck" version="0.13.0.57" targetFramework="net45" />
55
<package id="MsgPack.Cli" version="0.6.2" targetFramework="net45" />
66
<package id="Newtonsoft.Json" version="6.0.5" targetFramework="net45" />
7-
<package id="Newtonsoft.Msgpack" version="0.1.6" targetFramework="net45" />
7+
<package id="Newtonsoft.Msgpack" version="0.1.8" targetFramework="net45" />
88
<package id="Rx-Core" version="2.2.5" targetFramework="net45" />
99
<package id="Rx-Interfaces" version="2.2.5" targetFramework="net45" />
1010
<package id="Rx-Linq" version="2.2.5" targetFramework="net45" />

src/net45/Samples/WAMP2/WampSharp.Samples.EdgeJs/WampSharp.Samples.EdgeJs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<Private>True</Private>
5555
</Reference>
5656
<Reference Include="Newtonsoft.Msgpack, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
57-
<HintPath>..\..\..\packages\Newtonsoft.Msgpack.0.1.6\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
57+
<HintPath>..\..\..\packages\Newtonsoft.Msgpack.0.1.8\lib\net45\Newtonsoft.Msgpack.dll</HintPath>
5858
<Private>True</Private>
5959
</Reference>
6060
<Reference Include="System" />

src/net45/Samples/WAMP2/WampSharp.Samples.EdgeJs/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<package id="Fleck" version="0.13.0.57" targetFramework="net45" />
66
<package id="MsgPack.Cli" version="0.6.2" targetFramework="net45" />
77
<package id="Newtonsoft.Json" version="6.0.5" targetFramework="net45" />
8-
<package id="Newtonsoft.Msgpack" version="0.1.6" targetFramework="net45" />
8+
<package id="Newtonsoft.Msgpack" version="0.1.8" targetFramework="net45" />
99
<package id="Rx-Core" version="2.2.5" targetFramework="net45" />
1010
<package id="Rx-Interfaces" version="2.2.5" targetFramework="net45" />
1111
<package id="Rx-Linq" version="2.2.5" targetFramework="net45" />

0 commit comments

Comments
 (0)