public Task PatchAsync(string id, PatchRequest patch)
        {
            if (id == null)
            {
                throw new ArgumentNullException(nameof(id));
            }

            if (patch == null)
            {
                throw new ArgumentNullException(nameof(patch));
            }

            return(_commands.PatchAsync(id, new[] { patch }, ignoreMissing: false));
        }
Exemple #2
0
 /// <summary>
 /// Sends a patch request for a specific document, ignoring the document's Etag
 /// </summary>
 /// <param name="key">Id of the document to patch</param>
 /// <param name="patches">Array of patch requests</param>
 /// <param name="commands">The low level database commands interface.</param>
 public static Task PatchAsync(this IAsyncDatabaseCommands commands, string key, PatchRequest[] patches)
 {
     return(commands.PatchAsync(key, patches, null));
 }