Skip to content

Commit

Permalink
Fix template formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Feb 16, 2019
1 parent 913d617 commit c1d02f0
Show file tree
Hide file tree
Showing 3 changed files with 581 additions and 581 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,27 @@ namespace {{Namespace}}
{{#ConstraintClauses}}
{{.}}
{{/ConstraintClauses}}
{

{
/// <inheritdoc />
public HttpClient Client { get; protected set; }
readonly IRequestBuilder requestBuilder;

/// <inheritdoc />
public AutoGenerated{{GeneratedClassSuffix}}(HttpClient client, IRequestBuilder requestBuilder)
{
Client = client;
this.requestBuilder = requestBuilder;
Client = client;
this.requestBuilder = requestBuilder;
}

{{#MethodList}}

/// <inheritdoc />
public virtual {{ReturnType}} {{Name}}{{#MethodTypeParameters}}<{{.}}>
{{/MethodTypeParameters}}({{ArgumentListWithTypes}})
{{#MethodConstraintClauses}}
{{.}}
{{/MethodConstraintClauses}}
{
{
{{#IsRefitMethod}}
var arguments = new object[] { {{ArgumentList}} };
var func = requestBuilder.BuildRestResultFuncForMethod("{{Name}}", new Type[] { {{ArgumentTypesList}} }{{#MethodTypeParameterList}}, new Type[] { {{.}} }{{/MethodTypeParameterList}});
Expand All @@ -74,10 +75,9 @@ namespace {{Namespace}}
{{^IsRefitMethod}}
throw new NotImplementedException("Either this method has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument.");
{{/IsRefitMethod}}
}

}
{{/MethodList}}
}
}
}
}

{{/ClassList}}
Loading

0 comments on commit c1d02f0

Please sign in to comment.