# 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/DistributedApplication.cs#L71-L83)

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.
