Skip to content

Commit 89abec1

Browse files
author
Raul Hidalgo Caballero
committed
v1.0.0
1 parent 1118ae5 commit 89abec1

File tree

6 files changed

+25
-12
lines changed

6 files changed

+25
-12
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ jobs:
4040

4141
# Store Artifacts
4242
- store_artifacts:
43-
path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0-beta3.nupkg
43+
path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0.nupkg
4444
- store_artifacts:
45-
path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0-beta3.nupkg
45+
path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0.nupkg
4646

4747
# Deploy
4848
- deploy:
4949
name: MyGet
5050
command: |
5151
if [ "${CIRCLE_BRANCH}" == "master" ]; then
52-
dotnet nuget push ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0-beta3.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
53-
dotnet nuget push ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0-beta3.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
52+
dotnet nuget push ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
53+
dotnet nuget push ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
5454
fi
5555
5656
workflows:

GraphQL.Client.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27130.0
4+
VisualStudioVersion = 15.0.27130.2010
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{47C98B55-08F1-4428-863E-2C5C876DEEFE}"
77
ProjectSection(SolutionItems) = preProject
@@ -72,6 +72,7 @@ Global
7272
{42BEFACE-39F9-4FE4-B725-15CD2B16292E} = {47C98B55-08F1-4428-863E-2C5C876DEEFE}
7373
{FEDAE425-B505-4DD6-98ED-3F8593358FC8} = {0B0EDB0F-FF67-4B78-A8DB-B5C23E1FEE8C}
7474
{EEF323E0-CA8E-49A2-B3D7-D4185D92492B} = {0B0EDB0F-FF67-4B78-A8DB-B5C23E1FEE8C}
75+
{6326E0E2-3F48-4BAF-80D3-47AED5EB647C} = {63F75859-4698-4EDE-8B70-4ACBB8BC425A}
7576
{C1406F03-650F-4633-887D-312943251919} = {63F75859-4698-4EDE-8B70-4ACBB8BC425A}
7677
EndGlobalSection
7778
GlobalSection(ExtensibilityGlobals) = postSolution

root.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<RepositoryType>git</RepositoryType>
1818
<RepositoryUrl>https://github.com/graphql-dotnet/graphql-client.git</RepositoryUrl>
1919
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
20-
<Version>1.0.0-beta3</Version>
2120
<WarningLevel>4</WarningLevel>
2221
</PropertyGroup>
2322

src/GraphQL.Client/GraphQL.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
<PropertyGroup>
77
<Description>A GraphQL Client</Description>
8+
<Version>1.0.0</Version>
89
</PropertyGroup>
910

1011
<PropertyGroup>

src/GraphQL.Client/GraphQLClient.cs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Net.Http;
3+
using System.Net.Http.Headers;
34
using System.Text;
45
using System.Threading.Tasks;
56
using GraphQL.Common.Request;
@@ -13,6 +14,14 @@ namespace GraphQL.Client {
1314
/// </summary>
1415
public partial class GraphQLClient : IDisposable {
1516

17+
#region Properties
18+
19+
/// <summary>
20+
/// Gets the headers which should be sent with each request.
21+
/// </summary>
22+
public HttpRequestHeaders DefaultRequestHeaders =>
23+
this.httpClient.DefaultRequestHeaders;
24+
1625
/// <summary>
1726
/// The GraphQL EndPoint to be used
1827
/// </summary>
@@ -26,6 +35,8 @@ public Uri EndPoint {
2635
/// </summary>
2736
public GraphQLClientOptions Options { get; set; }
2837

38+
#endregion
39+
2940
private readonly HttpClient httpClient;
3041

3142
#region Constructors
@@ -135,6 +146,12 @@ public async Task<GraphQLResponse> PostAsync(GraphQLRequest request) {
135146
return await this.ReadHttpResponseMessageAsync(httpResponseMessage).ConfigureAwait(false);
136147
}
137148

149+
/// <summary>
150+
/// Releases unmanaged resources
151+
/// </summary>
152+
public void Dispose() =>
153+
this.httpClient.Dispose();
154+
138155
/// <summary>
139156
/// Reads the <see cref="HttpResponseMessage"/>
140157
/// </summary>
@@ -145,12 +162,6 @@ private async Task<GraphQLResponse> ReadHttpResponseMessageAsync(HttpResponseMes
145162
return JsonConvert.DeserializeObject<GraphQLResponse>(resultString, this.Options.JsonSerializerSettings);
146163
}
147164

148-
/// <summary>
149-
/// Releases unmanaged resources
150-
/// </summary>
151-
public void Dispose() =>
152-
this.httpClient.Dispose();
153-
154165
}
155166

156167
}

src/GraphQL.Common/GraphQL.Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
<PropertyGroup>
77
<Description>Common GraphQL classes</Description>
8+
<Version>1.0.0</Version>
89
</PropertyGroup>
910

1011
<PropertyGroup>

0 commit comments

Comments
 (0)