public Task <HttpRequestMessage> GetRequestMessage(MoneroResponseSubType subType, dynamic requestParams, CancellationToken token) { HttpRequestMessage httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, _uri); AnonymousRequest request = GetRequest(subType, requestParams); return(SerializeRequest(httpRequestMessage, request, token)); }
public Task <HttpRequestMessage> GetRequestMessage(MoneroResponseSubType subType, dynamic requestParams, CancellationToken token) { AnonymousRequest request = GetRequest(subType, requestParams); IUriBuilder uriBuilder = new UriBuilderDirector(new UriBuilder(_url, _port, RequestEndpointExtensionRetriever.FetchEndpoint(request))); HttpRequestMessage httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, uriBuilder.Build()); return(SerializeRequest(httpRequestMessage, request, token)); }