Files
ProxyGenerator/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpMessageInvokerProxy.g.cs
T
Adam Hathcock 6391515c19 More options (#5)
* update generator and tests

* Add ImplementationOptions

* option tests

* fix some tests

* UseExtendedInterfaces with flag enum parsing

* add test for using base interfaces instead of interface

* add ProxyForBaseInterface

* add extra overload

* don't put new if we're replacing interfaces

* really remove AutoMapper

* remove akka and fix up interface

* Bigger bump for version

* adjust readme
2024-05-24 13:16:14 +01:00

51 lines
2.1 KiB
C#

//----------------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by https://github.com/specklesystems/ProxyGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------------------------------------------------------
#nullable enable
using System;
namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial class HttpMessageInvokerProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IHttpMessageInvoker
{
public global::System.Net.Http.HttpMessageInvoker _Instance { get; }
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
public virtual global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken)
{
global::System.Net.Http.HttpRequestMessage request_ = request;
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
var result__989347188 = _Instance.Send(request_, cancellationToken_);
return result__989347188;
}
public virtual global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken)
{
global::System.Net.Http.HttpRequestMessage request_ = request;
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
var result__1161702976 = _Instance.SendAsync(request_, cancellationToken_);
return result__1161702976;
}
public void Dispose()
{
_Instance.Dispose();
}
public HttpMessageInvokerProxy(global::System.Net.Http.HttpMessageInvoker instance)
{
_Instance = instance;
}
}
}
#nullable restore