With the below method, it's giving CRR0030:
C#public async Task<Result<T>> Handle(HsdesEqlFilterQuery<T> request, CancellationToken cancellationToken) {
using var body = HsdesRequestFactory.CreateRequestBody("get_records_by_eql", request);
return await hsdesClient.SendRequestAsync<T>(body, cancellationToken);
}
I think that's incorrect though, because of the using statement. If I remove the async and await tokens, then the body is potentially going to get disposed before the caller has awaited the request.
Scott,
Thank you for the report. You are right, async and await keywords are necessary here. The CRR0030 error is a false report in this use case. We will correct this.