3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
46 public virtual Task<ContentResponse>
PostAsync(Uri Uri,
object Data, X509Certificate Certificate,
47 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator, params KeyValuePair<string, string>[] Headers)
62 public virtual async Task<ContentResponse>
PostAsync(Uri Uri,
object Data, X509Certificate Certificate,
63 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
int TimeoutMs, params KeyValuePair<string, string>[] Headers)
68 Result = await this.
PostAsync(Uri, Array.Empty<
byte>(),
string.Empty, Certificate, RemoteCertificateValidator, TimeoutMs, Headers);
94 public virtual Task<ContentBinaryResponse>
PostAsync(Uri Uri,
byte[] EncodedData,
string ContentType,
95 X509Certificate Certificate, EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator, params KeyValuePair<string, string>[] Headers)
111 public abstract Task<ContentBinaryResponse>
PostAsync(Uri Uri,
byte[] EncodedData,
string ContentType,
112 X509Certificate Certificate, EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
int TimeoutMs,
113 params KeyValuePair<string, string>[] Headers);
Contains information about a binary response to a content request.
bool HasError
If an error occurred.
string ContentType
Internet Content-Type of encoded object.
Exception Error
Error response.
byte[] Encoded
Encoded object.
Contains information about a response to a content request.
byte[] Encoded
Encoded object.
string ContentType
Internet Content-Type of encoded object.
bool HasError
If an error occurred.
Static class managing encoding and decoding of internet content.
static int DefaultTimeout
Default timeout of internet access methods, in milliseconds.
static Task< ContentResponse > EncodeAsync(object Object, Encoding Encoding, params string[] AcceptedContentTypes)
Encodes an object.
static Task< ContentResponse > DecodeAsync(string ContentType, byte[] Data, Encoding Encoding, KeyValuePair< string, string >[] Fields, Uri BaseUri)
Decodes an object.
Abstract base class for posters.
virtual async Task< ContentResponse > PostAsync(Uri Uri, object Data, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
abstract Task< ContentBinaryResponse > PostAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
abstract string[] UriSchemes
Supported URI schemes.
virtual Task< ContentBinaryResponse > PostAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
abstract bool CanPost(Uri Uri, out Grade Grade)
If the poster is able to post to a resource, given its URI.
virtual Task< ContentResponse > PostAsync(Uri Uri, object Data, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
PosterBase()
Abstract base class for posters.
Basic interface for Internet Content posters. A class implementing this interface and having a defaul...