@@ -98,7 +98,7 @@ public async Task<bool> TryHandleEmptyNotification(string method)
98
98
/// <returns>
99
99
/// <c>true</c>, if a notification handler was registered for specified method; otherwise, <c>false</c>.
100
100
/// </returns>
101
- public async Task < bool > TryHandleNotification ( string method , JObject notification )
101
+ public async Task < bool > TryHandleNotification ( string method , JToken notification )
102
102
{
103
103
if ( string . IsNullOrWhiteSpace ( method ) )
104
104
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
130
130
/// <returns>
131
131
/// If a registered handler was found, a <see cref="Task"/> representing the operation; otherwise, <c>null</c>.
132
132
/// </returns>
133
- public Task < object > TryHandleRequest ( string method , JObject request , CancellationToken cancellationToken )
133
+ public Task < object > TryHandleRequest ( string method , JToken request , CancellationToken cancellationToken )
134
134
{
135
135
if ( string . IsNullOrWhiteSpace ( method ) )
136
136
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
157
157
/// <returns>
158
158
/// The deserialised payload (if one is present and expected).
159
159
/// </returns>
160
- object DeserializePayload ( Type payloadType , JObject payload )
160
+ object DeserializePayload ( Type payloadType , JToken payload )
161
161
{
162
162
if ( payloadType == null )
163
163
throw new ArgumentNullException ( nameof ( payloadType ) ) ;
0 commit comments