Class DeleteAcceptingRequest<TIn>
Namespace: Consul
Assembly: Consul.dll
Performs a DELETE to API endpoints in Consul
public class DeleteAcceptingRequest<TIn> : ConsulRequest
Type Parameters
TIn
A generic type to be serialised and sent with the DELETE
Inheritance
object ← ConsulRequest ← DeleteAcceptingRequest<TIn>
Inherited Members
ConsulRequest.ApplyOptions(ConsulClientConfiguration) , ConsulRequest.ApplyHeaders(HttpRequestMessage, ConsulClientConfiguration) , ConsulRequest.BuildConsulUri(string, Dictionary<string, string>) , ConsulRequest.Deserialize<TOut>(Stream) , ConsulRequest.Serialize(object) , object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()
Constructors
DeleteAcceptingRequest(ConsulClient, string, TIn, WriteOptions)
public DeleteAcceptingRequest(ConsulClient client, string url, TIn body, WriteOptions options = null)
Parameters
client
ConsulClient
url
string
body
TIn
options
WriteOptions
Properties
Options
public WriteOptions Options { get; set; }
Property Value
Methods
ApplyHeaders(HttpRequestMessage, ConsulClientConfiguration)
protected override void ApplyHeaders(HttpRequestMessage message, ConsulClientConfiguration clientConfig)
Parameters
message
HttpRequestMessage
clientConfig
ConsulClientConfiguration
ApplyOptions(ConsulClientConfiguration)
protected override void ApplyOptions(ConsulClientConfiguration clientConfig)
Parameters
clientConfig
ConsulClientConfiguration
Execute(CancellationToken)
Execute the DELETE request to the API
public Task<WriteResult> Execute(CancellationToken ct)
Parameters
Cancellation token for long poll request. If set, OperationCanceledException will be thrown if the request is cancelled before completing
Returns
Task <WriteResult >
The result of the DELETE