Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Hidalgo Caballero committed Dec 20, 2017
1 parent 1118ae5 commit 89abec1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ jobs:

# Store Artifacts
- store_artifacts:
path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0-beta3.nupkg
path: ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0.nupkg
- store_artifacts:
path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0-beta3.nupkg
path: ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0.nupkg

# Deploy
- deploy:
name: MyGet
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
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
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
dotnet nuget push ./src/GraphQL.Common/bin/Release/GraphQL.Common.1.0.0.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
dotnet nuget push ./src/GraphQL.Client/bin/Release/GraphQL.Client.1.0.0.nupkg --api-key $MY_GET_API_KEY --source $MY_GET_SOURCE
fi
workflows:
Expand Down
3 changes: 2 additions & 1 deletion GraphQL.Client.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.0
VisualStudioVersion = 15.0.27130.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{47C98B55-08F1-4428-863E-2C5C876DEEFE}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -72,6 +72,7 @@ Global
{42BEFACE-39F9-4FE4-B725-15CD2B16292E} = {47C98B55-08F1-4428-863E-2C5C876DEEFE}
{FEDAE425-B505-4DD6-98ED-3F8593358FC8} = {0B0EDB0F-FF67-4B78-A8DB-B5C23E1FEE8C}
{EEF323E0-CA8E-49A2-B3D7-D4185D92492B} = {0B0EDB0F-FF67-4B78-A8DB-B5C23E1FEE8C}
{6326E0E2-3F48-4BAF-80D3-47AED5EB647C} = {63F75859-4698-4EDE-8B70-4ACBB8BC425A}
{C1406F03-650F-4633-887D-312943251919} = {63F75859-4698-4EDE-8B70-4ACBB8BC425A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
Expand Down
1 change: 0 additions & 1 deletion root.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/graphql-dotnet/graphql-client.git</RepositoryUrl>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<Version>1.0.0-beta3</Version>
<WarningLevel>4</WarningLevel>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions src/GraphQL.Client/GraphQL.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<PropertyGroup>
<Description>A GraphQL Client</Description>
<Version>1.0.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
23 changes: 17 additions & 6 deletions src/GraphQL.Client/GraphQLClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using GraphQL.Common.Request;
Expand All @@ -13,6 +14,14 @@ namespace GraphQL.Client {
/// </summary>
public partial class GraphQLClient : IDisposable {

#region Properties

/// <summary>
/// Gets the headers which should be sent with each request.
/// </summary>
public HttpRequestHeaders DefaultRequestHeaders =>
this.httpClient.DefaultRequestHeaders;

/// <summary>
/// The GraphQL EndPoint to be used
/// </summary>
Expand All @@ -26,6 +35,8 @@ public Uri EndPoint {
/// </summary>
public GraphQLClientOptions Options { get; set; }

#endregion

private readonly HttpClient httpClient;

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

/// <summary>
/// Releases unmanaged resources
/// </summary>
public void Dispose() =>
this.httpClient.Dispose();

/// <summary>
/// Reads the <see cref="HttpResponseMessage"/>
/// </summary>
Expand All @@ -145,12 +162,6 @@ private async Task<GraphQLResponse> ReadHttpResponseMessageAsync(HttpResponseMes
return JsonConvert.DeserializeObject<GraphQLResponse>(resultString, this.Options.JsonSerializerSettings);
}

/// <summary>
/// Releases unmanaged resources
/// </summary>
public void Dispose() =>
this.httpClient.Dispose();

}

}
1 change: 1 addition & 0 deletions src/GraphQL.Common/GraphQL.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<PropertyGroup>
<Description>Common GraphQL classes</Description>
<Version>1.0.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 89abec1

Please sign in to comment.