Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpMessageHandler.cs
Go to the documentation of this file.
3
4namespace System.Net.Http;
5
6public abstract class HttpMessageHandler : IDisposable
7{
9 {
10 if (System.Net.NetEventSource.Log.IsEnabled())
11 {
12 System.Net.NetEventSource.Info(this, null, ".ctor");
13 }
14 }
15
17 {
18 throw new NotSupportedException(System.SR.Format(System.SR.net_http_missing_sync_implementation, GetType(), "HttpMessageHandler", "Send"));
19 }
20
22
23 protected virtual void Dispose(bool disposing)
24 {
25 }
26
27 public void Dispose()
28 {
29 Dispose(disposing: true);
30 GC.SuppressFinalize(this);
31 }
32}
static void SuppressFinalize(object obj)
Definition GC.cs:202
Definition GC.cs:8
Task< HttpResponseMessage > SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
virtual HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken)
virtual void Dispose(bool disposing)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static string net_http_missing_sync_implementation
Definition SR.cs:194
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7