✅ How to get arguments from one method and pass them to another extension?
I have following:
What I want:
1. if user don't use
WithChunks
extension than I just need to run all logic inside QueryQl
2. if user use WithChunks
than I need to run logic inside WithChunks
now it looks simple:
WithChunks
is smth generic so I don't need to pass filter, fieldSet
, I want to get it from task
but how can I do it?9 Replies
Usually done with a builder
so the first method you call creates a returns a builder that the following methods use to access/modify the result
is it possible to do this without builder?
and you have some method at the end to "end" the building, either a
.Build()
or .ToList()
etc
not afaik
if you are fine with then its this is easily donebut
QueryQl
is a method from SubjectClient
:
I can't use builder hereoh its not your method?
hmm I decided to just create another extension QueryQlWithChunks
Thats also an option.
thanks for helping
yw