Skip to main content

Class BindingRule

Namespace: Consul
Assembly: Consul.dll

BindingRule is used to interact with ACL Binding Rules in Consul through the API

public class BindingRule : IBindingRuleEndpoint

Inheritance

objectBindingRule

Implements

IBindingRuleEndpoint

Inherited Members

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Methods

Create(ACLBindingRule, CancellationToken)

Creates a new ACL BindingRule in Consul

public Task<WriteResult<ACLBindingRuleResponse>> Create(ACLBindingRule entry, CancellationToken ct = default)

Parameters

entry ACLBindingRule

The new ACL AuthMethod

ct CancellationToken

Cancellation token for long poll request. If set, OperationCanceledException will be thrown if the request is cancelled before completing

Returns

Task <WriteResult <ACLBindingRuleResponse >>

A write result containing the created ACL AuthMethod

Create(ACLBindingRule, WriteOptions, CancellationToken)

Creates a new ACL BindingRule in Consul

public Task<WriteResult<ACLBindingRuleResponse>> Create(ACLBindingRule entry, WriteOptions options, CancellationToken ct = default)

Parameters

entry ACLBindingRule

A new Binding Rule Entry

options WriteOptions

ct CancellationToken

Cancellation token for long poll request. If set, OperationCanceledException will be thrown if the request is cancelled before completing

Returns

Task <WriteResult <ACLBindingRuleResponse >>

A new Binding Rule

  • Methods
    • Create(ACLBindingRule, CancellationToken)
    • Create(ACLBindingRule, WriteOptions, CancellationToken)