Beispiel #1
0
        public async Task WhenAsync(MergePatchUserClaimMvoDto c)
        {
            var idObj         = UserClaimMvoProxyUtils.ToIdString((c as IMergePatchUserClaimMvo).UserClaimId);
            var uriParameters = new UserClaimMvoUriParameters();

            uriParameters.Id = idObj;

            var req  = new UserClaimMvoPatchRequest(uriParameters, (MergePatchUserClaimMvoDto)c);
            var resp = await _ramlClient.UserClaimMvo.Patch(req);

            UserClaimMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }
Beispiel #2
0
        public async Task <IUserClaimMvoState> GetAsync(UserClaimId userClaimId)
        {
            IUserClaimMvoState state = null;
            var idObj         = UserClaimMvoProxyUtils.ToIdString(userClaimId);
            var uriParameters = new UserClaimMvoUriParameters();

            uriParameters.Id = idObj;

            var req = new UserClaimMvoGetRequest(uriParameters);

            var resp = await _ramlClient.UserClaimMvo.Get(req);

            UserClaimMvoProxyUtils.ThrowOnHttpResponseError(resp);
            state = resp.Content;
            return(state);
        }
Beispiel #3
0
        public async Task WhenAsync(DeleteUserClaimMvoDto c)
        {
            var idObj         = UserClaimMvoProxyUtils.ToIdString((c as IDeleteUserClaimMvo).UserClaimId);
            var uriParameters = new UserClaimMvoUriParameters();

            uriParameters.Id = idObj;

            var q = new UserClaimMvoDeleteQuery();

            q.CommandId   = c.CommandId;
            q.RequesterId = c.RequesterId;
            q.Version     = Convert.ToString(c.Version);

            var req = new UserClaimMvoDeleteRequest(uriParameters);

            req.Query = q;

            var resp = await _ramlClient.UserClaimMvo.Delete(req);

            UserClaimMvoProxyUtils.ThrowOnHttpResponseError(resp);
        }