From 7502d475a54d57e6ac0af21ef366a742edc3f5b0 Mon Sep 17 00:00:00 2001 From: Raul Hidalgo Caballero Date: Sat, 27 Jan 2018 13:59:34 +0100 Subject: [PATCH] Deleted GetFromFile and PostFromFile extension methods --- src/GraphQL.Client/GraphQLClientExtensions.cs | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/GraphQL.Client/GraphQLClientExtensions.cs b/src/GraphQL.Client/GraphQLClientExtensions.cs index 7bdaeca7..74741a29 100644 --- a/src/GraphQL.Client/GraphQLClientExtensions.cs +++ b/src/GraphQL.Client/GraphQLClientExtensions.cs @@ -116,28 +116,6 @@ public static async Task GetIntrospectionQueryAsync(this GraphQ public static async Task PostIntrospectionQueryAsync(this GraphQLClient graphQLClient) => await graphQLClient.PostAsync(IntrospectionQuery).ConfigureAwait(false); - #if !NETSTANDARD1_1 - - /// - /// Send the Query defined in a file via GET - /// - /// The GraphQLClient - /// The Path of the File - /// The GraphQLResponse - public static async Task GetFromFile(this GraphQLClient graphQLClient, string filePath) => - await graphQLClient.GetQueryAsync(File.ReadAllText(filePath)).ConfigureAwait(false); - - /// - /// Send the Query defined in a file via POST - /// - /// The GraphQLClient - /// The Path of the File - /// The GraphQLResponse - public static async Task PostFromFile(this GraphQLClient graphQLClient, string filePath) => - await graphQLClient.PostQueryAsync(File.ReadAllText(filePath)).ConfigureAwait(false); - - #endif - } }