We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c6bd57 commit 07c555aCopy full SHA for 07c555a
src/WampSharp.Default/Newtonsoft/JsonFormatter.cs
@@ -7,7 +7,16 @@ namespace WampSharp.Newtonsoft
7
{
8
public class JsonFormatter : IWampFormatter<JToken>
9
10
- private readonly JsonSerializer mSerializer = new JsonSerializer();
+ private readonly JsonSerializer mSerializer;
11
+
12
+ public JsonFormatter() : this(new JsonSerializer())
13
+ {
14
+ }
15
16
+ public JsonFormatter(JsonSerializer serializer)
17
18
+ mSerializer = serializer;
19
20
21
public bool CanConvert(JToken argument, Type type)
22
0 commit comments