Esempio n. 1
0
        private async Task <Wit> UpdateAsync(int id, JsonPatchDocument patchDocument, bool?validateOnly, bool?bypassRules,
                                             bool?supressNotifications, WorkItemExpand?expand, CancellationToken cancellationToken)
        {
            if (this.ValidateOnly)
            {
                validateOnly = true;
            }

            using var mc = log?.Enter(LogLevel.RawApis, new object[] { patchDocument, id, validateOnly, bypassRules, supressNotifications, expand, null, cancellationToken }, "UpdateWorkItemAsync");
            log?.Dump(patchDocument);

            return(await WorkItemClient.UpdateWorkItemAsync(patchDocument, id, validateOnly, bypassRules, supressNotifications, expand, userState : null, cancellationToken)
                   .ConfigureAwait(false));
        }