Skip to main content

Class SemaphoreOptions

Namespace: Consul
Assembly: Consul.dll

SemaphoreOptions is used to parameterize the Semaphore

public class SemaphoreOptions

Inheritance​

object ← SemaphoreOptions

Inherited Members​

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

Constructors​

SemaphoreOptions(string, int)​

public SemaphoreOptions(string prefix, int limit)

Parameters​

prefix string

limit int

Properties​

Limit​

public int Limit { get; set; }

Property Value​

int

MonitorRetries​

public int MonitorRetries { get; set; }

Property Value​

int

MonitorRetryTime​

public TimeSpan MonitorRetryTime { get; set; }

Property Value​

TimeSpan

Prefix​

public string Prefix { get; set; }

Property Value​

string

SemaphoreTryOnce​

public bool SemaphoreTryOnce { get; set; }

Property Value​

bool

SemaphoreWaitTime​

public TimeSpan SemaphoreWaitTime { get; set; }

Property Value​

TimeSpan

Session​

public string Session { get; set; }

Property Value​

string

SessionName​

public string SessionName { get; set; }

Property Value​

string

SessionTTL​

public TimeSpan SessionTTL { get; set; }

Property Value​

TimeSpan

Value​

public byte[] Value { get; set; }

Property Value​

byte []

  • Constructors
    • SemaphoreOptions(string, int)
  • Properties
    • Limit
    • MonitorRetries
    • MonitorRetryTime
    • Prefix
    • SemaphoreTryOnce
    • SemaphoreWaitTime
    • Session
    • SessionName
    • SessionTTL
    • Value