The-Standard-Organization / STX.REST.RESTFulSense.Clients

A client / server library wrapper around the existing .NET Core `HttpClient` implementation to provide meaningful exceptions for APIs response status codes.
MIT License
8 stars 5 forks source link

CODE RUB: Change SelectAllStatusDetails on the ErrorBroker to be ValueTask<IQueryable<StatusDetail>> SelectAllStatusDetailsAsync(); #51

Closed cjdutoit closed 3 months ago

cjdutoit commented 3 months ago

https://www.youtube.com/watch?v=wCB0h3Smv-Q&t=524s

    internal interface IErrorBroker
    {
        ValueTask<IQueryable<StatusDetail>> SelectAllStatusDetailsAsync();
    }
    internal partial class ErrorBroker : IErrorBroker
    {
        public async ValueTask<IQueryable<StatusDetail>> SelectAllStatusDetailsAsync() =>
            await ValueTask.FromResult(statusDetails.AsQueryable());
    }