Skip to content

Commit

Permalink
Remove relevant interface methods from < NET6.0 targets
Browse files Browse the repository at this point in the history
The implementations for these two methods use parts of the GraphQL serializer which are only available when targeting .NET 6.0 or greater.
  • Loading branch information
nozzlegear committed Feb 12, 2024
1 parent 769660f commit 7977ce3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ShopifySharp/Services/Graph/IGraphService.cs
Expand Up @@ -55,6 +55,7 @@ public interface IGraphService : IShopifyService
/// <returns>A JsonElement containing the data from the request.</returns>
Task<JsonElement> SendAsync(string graphqlQuery, int? graphqlQueryCost = null, CancellationToken cancellationToken = default);

#if NET6_0_OR_GREATER
/// <summary>
/// Executes a Graph API Call.
/// </summary>
Expand All @@ -78,5 +79,6 @@ public interface IGraphService : IShopifyService
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>A <see cref="TResult"/> containing the data from the request.</returns>
Task<TResult> SendAsync<TResult>(string graphqlQuery, int? graphqlQueryCost = null, CancellationToken cancellationToken = default) where TResult : class;
#endif
}
}
}

0 comments on commit 7977ce3

Please sign in to comment.