# ListeningHostRepository.CopyTo

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

## CopyTo(ListeningHost[], int) {#Sisk_Core_Http_ListeningHostRepository_CopyTo_Sisk_Core_Http_ListeningHost___System_Int32_}

Copies all elements from this repository to another compatible repository.

```csharp
public void CopyTo(ListeningHost[] array, int arrayIndex)
```

### Parameters

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

The one-dimensional System.Array that is the destination of the elements copied.

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

The zero-based index in array at which copying begins.
