public async Task WhenAsync(MergePatchInOutLineMvoDto c) { var idObj = InOutLineMvoProxyUtils.ToIdString((c as IMergePatchInOutLineMvo).InOutLineId); var uriParameters = new InOutLineMvoUriParameters(); uriParameters.Id = idObj; var req = new InOutLineMvoPatchRequest(uriParameters, (MergePatchInOutLineMvoDto)c); var resp = await _ramlClient.InOutLineMvo.Patch(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); }
public async Task <IInOutLineMvoStateEvent> GetStateEventAsync(InOutLineId inOutLineId, long version) { var idObj = InOutLineMvoProxyUtils.ToIdString(inOutLineId); var uriParameters = new InOutLineMvoStateEventUriParameters(); uriParameters.Id = idObj; uriParameters.Version = version.ToString(); var req = new InOutLineMvoStateEventGetRequest(uriParameters); var resp = await _ramlClient.InOutLineMvoStateEvent.Get(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); return(resp.Content); }
public async Task <IInOutLineMvoState> GetHistoryStateAsync(InOutLineId inOutLineId, long version) { var idObj = InOutLineMvoProxyUtils.ToIdString(inOutLineId); var uriParameters = new InOutLineMvoHistoryStateUriParameters(); uriParameters.Id = idObj; uriParameters.Version = version.ToString(); var req = new InOutLineMvoHistoryStateGetRequest(uriParameters); var resp = await _ramlClient.InOutLineMvoHistoryState.Get(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); return((resp.Content == null) ? null : resp.Content.ToInOutLineMvoState()); }
public async Task <IInOutLineMvoState> GetAsync(InOutLineId inOutLineId) { IInOutLineMvoState state = null; var idObj = InOutLineMvoProxyUtils.ToIdString(inOutLineId); var uriParameters = new InOutLineMvoUriParameters(); uriParameters.Id = idObj; var req = new InOutLineMvoGetRequest(uriParameters); var resp = await _ramlClient.InOutLineMvo.Get(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); state = (resp.Content == null) ? null : resp.Content.ToInOutLineMvoState(); return(state); }
public async Task WhenAsync(DeleteInOutLineMvoDto c) { var idObj = InOutLineMvoProxyUtils.ToIdString((c as IDeleteInOutLineMvo).InOutLineId); var uriParameters = new InOutLineMvoUriParameters(); uriParameters.Id = idObj; var q = new InOutLineMvoDeleteQuery(); q.CommandId = c.CommandId; q.RequesterId = c.RequesterId; q.Version = Convert.ToString(c.InOutVersion); var req = new InOutLineMvoDeleteRequest(uriParameters); req.Query = q; var resp = await _ramlClient.InOutLineMvo.Delete(req); InOutLineMvoProxyUtils.ThrowOnHttpResponseError(resp); }