Answer the question
In order to leave comments, you need to log in
How can I transfer a request from one service to a second service?
How can I transfer a request from one service to a second service via sdk.
I need from one service to call the second one by post-request. For example, there is such a request that takes a boolean value as a parameter:
public Task Method(bool force = false)
=> this.PostAsync(new RequestParameters(
Routes.ControllerRoute.RouteSuffix));
public RequestParameters(
string route,
Dictionary<string, string> queryParams = null,
Dictionary<string, string> pathParams = null,
CancellationToken cancellationToken = default)
{
RouteParameters = new RouteParameters(route, queryParams, pathParams);
CancellationToken = cancellationToken;
}
Answer the question
In order to leave comments, you need to log in
Most likely - through query parameters. route?force=true
If calling RequestParameters, then:
var parameters = new RequestParameters(route, new Dictionary<string, string> { ["force"] = "true"});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question