Skip to content

Commit

Permalink
Rename second non-generic GraphService.SendAsync to GraphService.Post…
Browse files Browse the repository at this point in the history
…Async
  • Loading branch information
nozzlegear committed Dec 10, 2024
1 parent cc60155 commit 3a05c15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ShopifySharp/Services/Graph/GraphService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ public virtual Task<TResult> SendAsync<TResult>(string graphqlQuery, int? graphq
public virtual async Task<TResult> SendAsync<TResult>(GraphRequest request, int? graphqlQueryCost = null, CancellationToken cancellationToken = default)
where TResult : class
{
return (TResult)await SendAsync(request, typeof(TResult), graphqlQueryCost, cancellationToken);
return (TResult)await PostAsync(request, typeof(TResult), graphqlQueryCost, cancellationToken);
}

public virtual Task<object> SendAsync(string graphqlQuery, Type resultType, int? graphqlQueryCost = null, CancellationToken cancellationToken = default)
public virtual Task<object> PostAsync(string graphqlQuery, Type resultType, int? graphqlQueryCost = null, CancellationToken cancellationToken = default)
{
return SendAsync(new GraphRequest { query = graphqlQuery }, resultType, graphqlQueryCost, cancellationToken);
return PostAsync(new GraphRequest { query = graphqlQuery }, resultType, graphqlQueryCost, cancellationToken);
}

public virtual async Task<object> PostAsync(GraphRequest request, Type resultType, int? graphqlQueryCost = null, CancellationToken cancellationToken = default)
Expand Down

0 comments on commit 3a05c15

Please sign in to comment.