Sisk

Class

HttpContext.HttpContextInterlocked

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

Provides atomic operations for numeric values stored by name in an RequestBag.

C#
public sealed class HttpContext.HttpContextInterlocked

Inheritance #

object ← HttpContext.HttpContextInterlocked

Inherited Members #

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

Remarks #

Values created by this type are stored as Double. Operations are atomic with respect to other operations performed by this instance, but not with respect to direct access to the context bag.

Methods #

NameDescription
Add(string, int)Atomically adds an integer to the value associated with the specified name.
Add(string, double)Atomically adds a number to the value associated with the specified name.
Add(string, int)Atomically adds an integer to the value associated with the specified name.
Add(string, double)Atomically adds a number to the value associated with the specified name.
CompareExchange(string, long, long, long)Atomically compares the value associated with the specified name and replaces it when equal.
CompareExchange(string, double, double, double)Atomically compares the value associated with the specified name and replaces it when equal.
CompareExchange(string, long, long, long)Atomically compares the value associated with the specified name and replaces it when equal.
CompareExchange(string, double, double, double)Atomically compares the value associated with the specified name and replaces it when equal.
Exchange(string, long)Atomically replaces the value associated with the specified name.
Exchange(string, double)Atomically replaces the value associated with the specified name.
Exchange(string, long)Atomically replaces the value associated with the specified name.
Exchange(string, double)Atomically replaces the value associated with the specified name.
Inspect(string)Atomically reads the value associated with the specified name.
Inspect(string)Atomically reads the value associated with the specified name.

Type to search the documentation and the API reference.