Skip to content

Commit 432b644

Browse files
author
Raul Hidalgo Caballero
authored
Deleted GetFromFile and PostFromFile extension methods (#20)
1 parent 1f1b94e commit 432b644

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/GraphQL.Client/GraphQLClientExtensions.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -116,28 +116,6 @@ public static async Task<GraphQLResponse> GetIntrospectionQueryAsync(this GraphQ
116116
public static async Task<GraphQLResponse> PostIntrospectionQueryAsync(this GraphQLClient graphQLClient) =>
117117
await graphQLClient.PostAsync(IntrospectionQuery).ConfigureAwait(false);
118118

119-
#if !NETSTANDARD1_1
120-
121-
/// <summary>
122-
/// Send the Query defined in a file via GET
123-
/// </summary>
124-
/// <param name="graphQLClient">The GraphQLClient</param>
125-
/// <param name="filePath">The Path of the File</param>
126-
/// <returns>The GraphQLResponse</returns>
127-
public static async Task<GraphQLResponse> GetFromFile(this GraphQLClient graphQLClient, string filePath) =>
128-
await graphQLClient.GetQueryAsync(File.ReadAllText(filePath)).ConfigureAwait(false);
129-
130-
/// <summary>
131-
/// Send the Query defined in a file via POST
132-
/// </summary>
133-
/// <param name="graphQLClient">The GraphQLClient</param>
134-
/// <param name="filePath">The Path of the File</param>
135-
/// <returns>The GraphQLResponse</returns>
136-
public static async Task<GraphQLResponse> PostFromFile(this GraphQLClient graphQLClient, string filePath) =>
137-
await graphQLClient.PostQueryAsync(File.ReadAllText(filePath)).ConfigureAwait(false);
138-
139-
#endif
140-
141119
}
142120

143121
}

0 commit comments

Comments
 (0)