|
| 1 | +//HintName: IGeneratedClient.g.cs |
| 2 | +#nullable disable |
| 3 | +#pragma warning disable |
| 4 | +namespace Refit.Implementation |
| 5 | +{ |
| 6 | + |
| 7 | + partial class Generated |
| 8 | + { |
| 9 | + |
| 10 | + /// <inheritdoc /> |
| 11 | + [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] |
| 12 | + [global::System.Diagnostics.DebuggerNonUserCode] |
| 13 | + [global::RefitInternalGenerated.PreserveAttribute] |
| 14 | + [global::System.Reflection.Obfuscation(Exclude=true)] |
| 15 | + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] |
| 16 | + partial class RefitGeneratorTestIGeneratedClient |
| 17 | + : global::RefitGeneratorTest.IGeneratedClient |
| 18 | + |
| 19 | + { |
| 20 | + /// <inheritdoc /> |
| 21 | + public global::System.Net.Http.HttpClient Client { get; } |
| 22 | + readonly global::Refit.IRequestBuilder requestBuilder; |
| 23 | + |
| 24 | + /// <inheritdoc /> |
| 25 | + public RefitGeneratorTestIGeneratedClient(global::System.Net.Http.HttpClient client, global::Refit.IRequestBuilder requestBuilder) |
| 26 | + { |
| 27 | + Client = client; |
| 28 | + this.requestBuilder = requestBuilder; |
| 29 | + } |
| 30 | + |
| 31 | + |
| 32 | + private static readonly global::System.Type[] ______typeParameters = new global::System.Type[] {typeof(string) }; |
| 33 | + |
| 34 | + /// <inheritdoc /> |
| 35 | + public async global::System.Threading.Tasks.Task<string> Get(string? @user) |
| 36 | + { |
| 37 | + var ______arguments = new object[] { @user }; |
| 38 | + var ______func = requestBuilder.BuildRestResultFuncForMethod("Get", ______typeParameters ); |
| 39 | + |
| 40 | + return await ((global::System.Threading.Tasks.Task<string>)______func(this.Client, ______arguments)).ConfigureAwait(false); |
| 41 | + } |
| 42 | + |
| 43 | + private static readonly global::System.Type[] ______typeParameters0 = new global::System.Type[] {typeof(string) }; |
| 44 | + |
| 45 | + /// <inheritdoc /> |
| 46 | + async global::System.Threading.Tasks.Task<string> global::RefitGeneratorTest.IGeneratedClient.Get(string? @user) |
| 47 | + { |
| 48 | + var ______arguments = new object[] { @user }; |
| 49 | + var ______func = requestBuilder.BuildRestResultFuncForMethod("Get", ______typeParameters0 ); |
| 50 | + |
| 51 | + return await ((global::System.Threading.Tasks.Task<string>)______func(this.Client, ______arguments)).ConfigureAwait(false); |
| 52 | + } |
| 53 | + } |
| 54 | + } |
| 55 | +} |
| 56 | + |
| 57 | +#pragma warning restore |
0 commit comments