3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
46 public virtual Task<ContentResponse>
PutAsync(Uri Uri,
object Data, X509Certificate Certificate,
47 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator, params KeyValuePair<string, string>[] Headers)
62 public virtual async Task<ContentResponse>
PutAsync(Uri Uri,
object Data, X509Certificate Certificate,
63 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
int TimeoutMs, params KeyValuePair<string, string>[] Headers)
70 RemoteCertificateValidator, TimeoutMs, Headers);
88 public virtual Task<ContentBinaryResponse>
PutAsync(Uri Uri,
byte[] EncodedData,
string ContentType,
89 X509Certificate Certificate, EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator, params KeyValuePair<string, string>[] Headers)
105 public abstract Task<ContentBinaryResponse>
PutAsync(Uri Uri,
byte[] EncodedData,
string ContentType,
106 X509Certificate Certificate, EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
int TimeoutMs, 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 putters.
virtual Task< ContentBinaryResponse > PutAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Puts to a resource, using a Uniform Resource Identifier (or Locator).
abstract bool CanPut(Uri Uri, out Grade Grade)
If the putter is able to put to a resource, given its URI.
PutterBase()
Abstract base class for putters.
abstract string[] UriSchemes
Supported URI schemes.
virtual async Task< ContentResponse > PutAsync(Uri Uri, object Data, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Puts to a resource, using a Uniform Resource Identifier (or Locator).
abstract Task< ContentBinaryResponse > PutAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Puts to a resource, using a Uniform Resource Identifier (or Locator).
virtual Task< ContentResponse > PutAsync(Uri Uri, object Data, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Basic interface for Internet Content putters. A class implementing this interface and having a defaul...