Sisk

Method

HttpContextInterlocked.CompareExchange

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

CompareExchange(string, long, long, long) #

Atomically compares the value associated with the specified name and replaces it when equal.

C#
public double CompareExchange(string name, long value, long comparand, long notFound = -1)

Parameters #

name string

The name of the value.

value long

The replacement value.

comparand long

The value to compare with the stored value.

notFound long

The value returned when name is not present.

Returns #

double

The original stored value, or notFound when the name is not present.

CompareExchange(string, double, double, double) #

Atomically compares the value associated with the specified name and replaces it when equal.

C#
public double CompareExchange(string name, double value, double comparand, double notFound = -1)

Parameters #

name string

The name of the value.

value double

The replacement value.

comparand double

The value to compare with the stored value.

notFound double

The value returned when name is not present.

Returns #

double

The original stored value, or notFound when the name is not present.

CompareExchange(string, long, long, long) #

Atomically compares the value associated with the specified name and replaces it when equal.

C#
public double CompareExchange(string name, long value, long comparand, long notFound = -1)

Parameters #

name string

The name of the value.

value long

The replacement value.

comparand long

The value to compare with the stored value.

notFound long

The value returned when name is not present.

Returns #

double

The original stored value, or notFound when the name is not present.

CompareExchange(string, double, double, double) #

Atomically compares the value associated with the specified name and replaces it when equal.

C#
public double CompareExchange(string name, double value, double comparand, double notFound = -1)

Parameters #

name string

The name of the value.

value double

The replacement value.

comparand double

The value to compare with the stored value.

notFound double

The value returned when name is not present.

Returns #

double

The original stored value, or notFound when the name is not present.

Type to search the documentation and the API reference.