Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected call of GetAwaiter in QueryCaller #51

Closed
dermeister0 opened this issue Jun 21, 2018 · 1 comment
Closed

Unexpected call of GetAwaiter in QueryCaller #51

dermeister0 opened this issue Jun 21, 2018 · 1 comment

Comments

@dermeister0
Copy link
Member

        public async Task<TResult> WithAsync<TResult>(Expression<Func<TQuery, Task<TResult>>> expression,
            CancellationToken cancellationToken = default(CancellationToken))
        {

            …

            return ((Task<TResult>)queryParameters.Result).Result;
        }

Should be:

return await (Task<TResult>)queryParameters.Result;
@krasninja
Copy link
Member

Will be fixed in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants