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;
2using System.Collections.Generic;
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<object> PostAsync(Uri Uri, object Data, X509Certificate Certificate,
41 RemoteCertificateEventHandler RemoteCertificateValidator,
42 params KeyValuePair<string, string>[] Headers);
43
54 Task<object> PostAsync(Uri Uri, object Data, X509Certificate Certificate,
55 RemoteCertificateEventHandler RemoteCertificateValidator,
56 int TimeoutMs, params KeyValuePair<string, string>[] Headers);
57
68 Task<KeyValuePair<byte[], string>> PostAsync(Uri Uri, byte[] EncodedData,
69 string ContentType, X509Certificate Certificate,
70 RemoteCertificateEventHandler RemoteCertificateValidator,
71 params KeyValuePair<string, string>[] Headers);
72
84 Task<KeyValuePair<byte[], string>> PostAsync(Uri Uri, byte[] EncodedData,
85 string ContentType, X509Certificate Certificate,
86 RemoteCertificateEventHandler 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...
string[] UriSchemes
Supported URI schemes.
Task< object > PostAsync(Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler 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< object > PostAsync(Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Task< KeyValuePair< byte[], string > > PostAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Task< KeyValuePair< byte[], string > > PostAsync(Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Posts to a resource, using a Uniform Resource Identifier (or Locator).
delegate void RemoteCertificateEventHandler(object Sender, RemoteCertificateEventArgs e)
Delegate for remote certificate event handlers.
Grade
Grade enumeration
Definition: Grade.cs:7