# HttpContextInterlocked.Add

Kind: Method  
Namespace: `Sisk.Core.Http`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Http.HttpContext.HttpContextInterlocked.Add.html

## Add(string, int) {#Sisk_Core_Http_HttpContext_HttpContextInterlocked_Add_System_String_System_Int32_}

Atomically adds an integer to the value associated with the specified name.

```csharp
public void Add(string name, int value)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the value.

`value` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The value to add.

### Remarks

If `name` is not present, it is created with `value`.

## Add(string, double) {#Sisk_Core_Http_HttpContext_HttpContextInterlocked_Add_System_String_System_Double_}

Atomically adds a number to the value associated with the specified name.

```csharp
public void Add(string name, double value)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the value.

`value` [double](https://learn.microsoft.com/dotnet/api/system.double)

The value to add.

### Remarks

If `name` is not present, it is created with `value`.

## Add(string, int) {#Sisk_Core_Http_HttpContext_HttpContextInterlocked_Add_System_String_System_Int32_}

Atomically adds an integer to the value associated with the specified name.

```csharp
public void Add(string name, int value)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the value.

`value` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The value to add.

### Remarks

If `name` is not present, it is created with `value`.

## Add(string, double) {#Sisk_Core_Http_HttpContext_HttpContextInterlocked_Add_System_String_System_Double_}

Atomically adds a number to the value associated with the specified name.

```csharp
public void Add(string name, double value)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the value.

`value` [double](https://learn.microsoft.com/dotnet/api/system.double)

The value to add.

### Remarks

If `name` is not present, it is created with `value`.
