@@ -98,7 +98,7 @@ public async Task<bool> TryHandleEmptyNotification(string method)
9898 /// <returns>
9999 /// <c>true</c>, if a notification handler was registered for specified method; otherwise, <c>false</c>.
100100 /// </returns>
101- public async Task < bool > TryHandleNotification ( string method , JObject notification )
101+ public async Task < bool > TryHandleNotification ( string method , JToken notification )
102102 {
103103 if ( string . IsNullOrWhiteSpace ( method ) )
104104 throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( method ) } .", nameof ( method ) ) ;
@@ -130,7 +130,7 @@ public async Task<bool> TryHandleNotification(string method, JObject notificatio
130130 /// <returns>
131131 /// If a registered handler was found, a <see cref="Task"/> representing the operation; otherwise, <c>null</c>.
132132 /// </returns>
133- public Task < object > TryHandleRequest ( string method , JObject request , CancellationToken cancellationToken )
133+ public Task < object > TryHandleRequest ( string method , JToken request , CancellationToken cancellationToken )
134134 {
135135 if ( string . IsNullOrWhiteSpace ( method ) )
136136 throw new ArgumentException ( $ "Argument cannot be null, empty, or entirely composed of whitespace: { nameof ( method ) } .", nameof ( method ) ) ;
@@ -157,7 +157,7 @@ public Task<object> TryHandleRequest(string method, JObject request, Cancellatio
157157 /// <returns>
158158 /// The deserialised payload (if one is present and expected).
159159 /// </returns>
160- object DeserializePayload ( Type payloadType , JObject payload )
160+ object DeserializePayload ( Type payloadType , JToken payload )
161161 {
162162 if ( payloadType == null )
163163 throw new ArgumentNullException ( nameof ( payloadType ) ) ;
0 commit comments