private Uri GetRequestUri <T>(ApplyResourceEditCommand <T> command) { string requestUri = this.GetMessageBase <OrderEdit>(); requestUri += $"/{command.Id}/apply"; return(new Uri(requestUri, UriKind.Relative)); }
private HttpContent GetHttpContent <T>(ApplyResourceEditCommand <T> command) { var requestBody = new { EditVersion = command.EditVersion, ResourceVersion = command.ResourceVersion }; return(new StringContent(this.serializerService.Serialize(requestBody))); }
public HttpRequestMessage GetRequestMessage <T>(ApplyResourceEditCommand <T> command) { return(this.GetRequestMessage <T>(this.GetRequestUri <T>(command), this.GetHttpContent(command), HttpMethod)); }
public ApplyResourceEditHttpApiCommand(ApplyResourceEditCommand <T> command, IRequestMessageBuilderFactory requestMessageBuilderFactory) { this.command = command; this.requestBuilder = requestMessageBuilderFactory.GetRequestMessageBuilder <ApplyResourceEditRequestMessageBuilder>(); }