Skip to content

Commit 33a80a1

Browse files
committed
fix IJsonSerializer
1 parent 38b9810 commit 33a80a1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/SocketIOClient.Newtonsoft.Json/NewtonsoftJsonSerializer.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ namespace SocketIOClient.Newtonsoft.Json
77
{
88
public class NewtonsoftJsonSerializer : IJsonSerializer
99
{
10-
public NewtonsoftJsonSerializer(int eio)
11-
{
12-
this.eio = eio;
13-
}
14-
15-
readonly int eio;
16-
1710
public Func<JsonSerializerSettings> JsonSerializerOptions { get; }
1811

1912
public JsonSerializeResult Serialize(object[] data)
@@ -49,7 +42,7 @@ private JsonSerializerSettings GetOptions()
4942
JsonSerializerSettings options;
5043
if (OptionsProvider != null)
5144
{
52-
options = Options();
45+
options = OptionsProvider();
5346
}
5447
else
5548
{

0 commit comments

Comments
 (0)