Skip to content

Commit

Permalink
Merge pull request #62 from jenschude/client_ihttphandler_fix
Browse files Browse the repository at this point in the history
use IHttpHandler in generated client constructor
  • Loading branch information
byme8 authored Jul 3, 2023
2 parents 21377ad + a432e71 commit ed66e92
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/TestApp/TestStandardLibrary/Generated/GraphQL.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public TestServerClient(global::System.Net.Http.HttpClient client, global::ZeroQ
{
}

public TestServerClient(global::ZeroQL.HttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
public TestServerClient(global::ZeroQL.IHttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/TestApp/ZeroQL.TestApp/Generated/GraphQL.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public TestServerClient(global::System.Net.Http.HttpClient client, global::ZeroQ
{
}

public TestServerClient(global::ZeroQL.HttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
public TestServerClient(global::ZeroQL.IHttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace GraphQLClient
{
}

public TestApp(global::ZeroQL.HttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
public TestApp(global::ZeroQL.IHttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace GraphQLClient
{
}

public TestApp(global::ZeroQL.HttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
public TestApp(global::ZeroQL.IHttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null) : base(client, queryPipeline)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static ClassDeclarationSyntax GenerateClient(
.WithBody(Block()),
ConstructorDeclaration(clientName ?? "GraphQLClient")
.WithParameterList(ParseParameterList(
"(global::ZeroQL.HttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null)"))
"(global::ZeroQL.IHttpHandler client, global::ZeroQL.Pipelines.IGraphQLQueryPipeline? queryPipeline = null)"))
// call base constructor
.WithInitializer(ConstructorInitializer(SyntaxKind.BaseConstructorInitializer,
ArgumentList(SeparatedList<ArgumentSyntax>()
Expand Down

0 comments on commit ed66e92

Please sign in to comment.