Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IContentPoster.cs
1using System;
3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
6
7namespace Waher.Content
8{
13 public interface IContentPoster
14 {
18 string[] UriSchemes
19 {
20 get;
21 }
22
29 bool CanPost(Uri Uri, out Grade Grade);
30
40 Task<ContentResponse> PostAsync(Uri Uri, object Data, X509Certificate Certificate,
41 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
42 params KeyValuePair<string, string>[] Headers);
43
54 Task<ContentResponse> PostAsync(Uri Uri, object Data, X509Certificate Certificate,
55 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
56 int TimeoutMs, params KeyValuePair<string, string>[] Headers);
57
68 Task<ContentBinaryResponse> PostAsync(Uri Uri, byte[] EncodedData,
69 string ContentType, X509Certificate Certificate,
70 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
71 params KeyValuePair<string, string>[] Headers);
72
84 Task<ContentBinaryResponse> PostAsync(Uri Uri, byte[] EncodedData,
85 string ContentType, X509Certificate Certificate,
86 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
87 int TimeoutMs, params KeyValuePair<string, string>[] Headers);
88 }
89}
Basic interface for Internet Content posters. A class implementing this interface and having a defaul...
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).
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).
string[] UriSchemes
Supported URI schemes.
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).
bool CanPost(Uri Uri, out Grade Grade)
If the poster is able to post to a resource, given its URI.
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).
Grade
Grade enumeration
Definition: Grade.cs:7