Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DeleterBase.cs
1using System;
2using System.Collections.Generic;
3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
6
8{
12 public abstract class DeleterBase : IContentDeleter
13 {
17 public DeleterBase()
18 {
19 }
20
24 public abstract string[] UriSchemes
25 {
26 get;
27 }
28
35 public abstract bool CanDelete(Uri Uri, out Grade Grade);
36
45 public virtual Task<object> DeleteAsync(Uri Uri, X509Certificate Certificate,
46 RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair<string, string>[] Headers)
47 {
48 return this.DeleteAsync(Uri, Certificate, RemoteCertificateValidator, 60000, Headers);
49 }
50
60 public abstract Task<object> DeleteAsync(Uri Uri, X509Certificate Certificate,
61 RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair<string, string>[] Headers);
62 }
63}
Abstract base class for deleters.
Definition: DeleterBase.cs:13
DeleterBase()
Abstract base class for deleters.
Definition: DeleterBase.cs:17
virtual Task< object > DeleteAsync(Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Definition: DeleterBase.cs:45
abstract bool CanDelete(Uri Uri, out Grade Grade)
If the deleter is able to delete to a resource, given its URI.
abstract Task< object > DeleteAsync(Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Deletes a resource, using a Uniform Resource Identifier (or Locator).
abstract string[] UriSchemes
Supported URI schemes.
Definition: DeleterBase.cs:25
Basic interface for Internet Content deleters. A class implementing this interface and having a defau...
delegate void RemoteCertificateEventHandler(object Sender, RemoteCertificateEventArgs e)
Delegate for remote certificate event handlers.
Grade
Grade enumeration
Definition: Grade.cs:7