Ejemplo n.º 1
0
 public static Task <SanityMutationResponse> DeleteAsync(this SanityClient client, string id, CancellationToken cancellationToken = default)
 {
     return(client.BeginTransaction().DeleteById(id).CommitAsync(false, false, SanityMutationVisibility.Sync, cancellationToken));
 }
Ejemplo n.º 2
0
 public static Task <SanityMutationResponse> DeleteAsync(this SanityClient client, string id)
 {
     return(client.BeginTransaction().DeleteById(id).CommitAsync(false, false));
 }
Ejemplo n.º 3
0
 public static Task <SanityMutationResponse <TDoc> > SetAsync <TDoc>(this SanityClient client, TDoc document, CancellationToken cancellationToken = default)
 {
     return(client.BeginTransaction <TDoc>().SetValues(document).CommitAsync(false, true, SanityMutationVisibility.Sync, cancellationToken));
 }
Ejemplo n.º 4
0
 public static Task <SanityMutationResponse <TDoc> > SetAsync <TDoc>(this SanityClient client, TDoc document)
 {
     return(client.BeginTransaction <TDoc>().SetValues(document).CommitAsync(false, true));
 }