Turn on the AOT analyzer. (#92)

* Turn on the AOT analyzer.

* Address feedback

* Add missing types.

* Fix build and react to conflicts.

* Fix failing test.

* Address feedback.
This commit is contained in:
Eirik Tsarpalis 2025-03-18 18:48:28 +02:00 • committed by GitHub
commit e7fa6194f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -603,7 +603,7 @@ public class McpServerTests
supportsSampling ? new ClientCapabilities { Sampling = new SamplingCapability() } :
null;
public async Task<T> SendRequestAsync<T>(JsonRpcRequest request, CancellationToken cancellationToken) where T : class
public Task<T> SendRequestAsync<T>(JsonRpcRequest request, CancellationToken cancellationToken) where T : class
{
CreateMessageRequestParams rp = Assert.IsType<CreateMessageRequestParams>(request.Params);
@ -627,7 +627,7 @@ public class McpServerTests
Role = "assistant",
StopReason = "endTurn",
};
return (T)(object)result;
return Task.FromResult((T)(object)result);
}
public ValueTask DisposeAsync() => default;