# ListeningHostRepository.Add

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

## Add(ListeningHost) {#Sisk_Core_Http_ListeningHostRepository_Add_Sisk_Core_Http_ListeningHost_}

Adds a listeninghost to this repository. If this listeninghost already exists in this class, an exception will be thrown.

```csharp
public void Add(ListeningHost item)
```

### Parameters

`item` [ListeningHost](https://docs.sisk-framework.org/api/Sisk.Core.Http.ListeningHost.md)

The [ListeningHost](https://docs.sisk-framework.org/api/Sisk.Core.Http.ListeningHost.md) to add to this collection.
