From f46c8533dfedf212f3b47106ef6c76208dbc7717 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 14 Mar 2023 18:39:23 +0100 Subject: [PATCH] Add test for HttpClient (#62) --- .../Http/IHttpClient.cs | 14 ++++++++ .../ProxyInterfaceConsumer - Backup.csproj | 33 +++++++++++++++++++ .../ProxyInterfaceConsumer.csproj | 1 + 3 files changed, 48 insertions(+) create mode 100644 src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs create mode 100644 src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer - Backup.csproj diff --git a/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs b/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs new file mode 100644 index 0000000..0f92b75 --- /dev/null +++ b/src-examples/ProxyInterfaceConsumer/Http/IHttpClient.cs @@ -0,0 +1,14 @@ +namespace ProxyInterfaceConsumer.Http +{ + [ProxyInterfaceGenerator.Proxy(typeof(System.Net.Http.HttpClient, true))] + public partial interface IHttpClient : IHttpMessageInvoker + { + + } + + [ProxyInterfaceGenerator.Proxy(typeof(System.Net.Http.HttpMessageInvoker))] + public partial interface IHttpMessageInvoker + { + + } +} \ No newline at end of file diff --git a/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer - Backup.csproj b/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer - Backup.csproj new file mode 100644 index 0000000..6e1a196 --- /dev/null +++ b/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer - Backup.csproj @@ -0,0 +1,33 @@ + + + + net7.0 + Exe + enable + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj b/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj index 6ac3dcc..acaa276 100644 --- a/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj +++ b/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj @@ -20,6 +20,7 @@ +