@@ -343,7 +343,7 @@ public void SendNotification(string method, object notification)
343343 {
344344 // No Id means it's a notification.
345345 Method = method ,
346- Params = JObject . FromObject ( notification , Serializer . JsonSerializer )
346+ Params = JToken . FromObject ( notification , Serializer . JsonSerializer )
347347 } ) ;
348348 }
349349
@@ -401,7 +401,7 @@ public void SendNotification(string method, object notification)
401401 {
402402 Id = requestId ,
403403 Method = method ,
404- Params = request != null ? JObject . FromObject ( request , Serializer . JsonSerializer ) : null
404+ Params = request != null ? JToken . FromObject ( request , Serializer . JsonSerializer ) : null
405405 } ) ;
406406
407407 await responseCompletion . Task ;
@@ -464,7 +464,7 @@ public void SendNotification(string method, object notification)
464464 {
465465 Id = requestId ,
466466 Method = method ,
467- Params = request != null ? JObject . FromObject ( request , Serializer . JsonSerializer ) : null
467+ Params = request != null ? JToken . FromObject ( request , Serializer . JsonSerializer ) : null
468468 } ) ;
469469
470470 ServerMessage response = await responseCompletion . Task ;
@@ -899,7 +899,7 @@ private void DispatchRequest(ServerMessage requestMessage)
899899 {
900900 Id = requestMessage . Id ,
901901 Method = requestMessage . Method ,
902- Result = handlerTask . Result != null ? JObject . FromObject ( handlerTask . Result , Serializer . JsonSerializer ) : null
902+ Result = handlerTask . Result != null ? JToken . FromObject ( handlerTask . Result , Serializer . JsonSerializer ) : null
903903 } ) ;
904904 }
905905
0 commit comments