generated from mrahhal/template-dotnet-package
-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
InvalidOperationException: HttpContext is required. in pagination service constructor. #9
Comments
Hello, That makes sense. Should move the exception throwing from the ctor to only the places that actually need |
Having the same issue. |
Will be released soon. |
Released in v3.0.0. |
Thanks! Appreciate all the work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Is there any way one can make injection of the
IHttpContextAccessor
into PaginationService optional when using outside of httpcontext.For example, I'm using masstransit to publish integration events to rabbitmq, on getting to one of the consumers or receive endpoints, that called a method using
IPaginationService
, it tried constructing theIPaginationService
and threwInvalidOperationException
, "HttpContext is Required". I feel because it is outside the scope of httpcontext. Though I want create my own implementation using just the first overload withKeysetQueryModel
object without injectingIHttpContextAccessor
.Regards
The text was updated successfully, but these errors were encountered: