2using System.Collections.Generic;
3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
46 public virtual Task<object>
PutAsync(Uri Uri,
object Data, X509Certificate Certificate,
49 return this.
PutAsync(Uri, Data, Certificate, RemoteCertificateValidator, 60000, Headers);
62 public virtual async Task<object>
PutAsync(Uri Uri,
object Data, X509Certificate Certificate,
66 KeyValuePair<byte[], string> Result = await this.
PutAsync(Uri, P.Key, P.Value, Certificate,
67 RemoteCertificateValidator, TimeoutMs, Headers);
82 public virtual Task<KeyValuePair<byte[], string>>
PutAsync(Uri Uri,
byte[] EncodedData,
string ContentType,
85 return this.
PutAsync(Uri, EncodedData, ContentType, Certificate, RemoteCertificateValidator, 60000, Headers);
99 public abstract Task<KeyValuePair<byte[], string>>
PutAsync(Uri Uri,
byte[] EncodedData,
string ContentType,
100 X509Certificate Certificate,
RemoteCertificateEventHandler RemoteCertificateValidator,
int TimeoutMs, params KeyValuePair<string, string>[] Headers);
Static class managing encoding and decoding of internet content.
static Task< KeyValuePair< byte[], string > > EncodeAsync(object Object, Encoding Encoding, params string[] AcceptedContentTypes)
Encodes an object.
static Task< object > DecodeAsync(string ContentType, byte[] Data, Encoding Encoding, KeyValuePair< string, string >[] Fields, Uri BaseUri)
Decodes an object.
Abstract base class for putters.
virtual Task< KeyValuePair< byte[], string > > PutAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler 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.
abstract Task< KeyValuePair< byte[], string > > PutAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Puts to a resource, using a Uniform Resource Identifier (or Locator).
virtual async Task< object > PutAsync(Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Puts to a resource, using a Uniform Resource Identifier (or Locator).
PutterBase()
Abstract base class for putters.
abstract string[] UriSchemes
Supported URI schemes.
virtual Task< object > PutAsync(Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler 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...
delegate void RemoteCertificateEventHandler(object Sender, RemoteCertificateEventArgs e)
Delegate for remote certificate event handlers.