# DistributedApplication Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DistributedApplication](/reference/api/csharp/aspire.hosting/distributedapplication.md)
- Kind: `Constructors`
- Members: `1`

Represents a distributed application that implements the `Hosting.IHost` and `IAsyncDisposable` interfaces.

## DistributedApplication(IHost)

- Name: `Constructor(IHost)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/DistributedApplication.cs#L68-L80)

Initializes a new instance of the [DistributedApplication](/reference/api/csharp/aspire.hosting/distributedapplication.md) class.

```csharp
public class DistributedApplication
{
    public DistributedApplication(
        IHost host)
    {
        // ...
    }
}
```

## Parameters

- `host` (`IHost`)
  The `Hosting.IHost` instance.
