# waitForStartWithBehavior

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.2.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Waits for another resource to start with specific behavior

## Definition

```typescript
interface ContainerResource {
  // ... omitted for brevity
  waitForStartWithBehavior(
    dependency: IResource,
    waitBehavior: WaitBehavior): IResourceWithWaitSupport
}
```

## Parameters

- `dependency` ([IResource](/reference/api/typescript/aspire.hosting/iresource.md))
- `waitBehavior` ([WaitBehavior](/reference/api/typescript/aspire.hosting/waitbehavior.md))

## Returns

[IResourceWithWaitSupport](/reference/api/typescript/aspire.hosting/iresourcewithwaitsupport.md) `builder`

## Applies to

- [ContainerResource](/reference/api/typescript/aspire.hosting/containerresource.md)
- [ExecutableResource](/reference/api/typescript/aspire.hosting/executableresource.md)
- [ProjectResource](/reference/api/typescript/aspire.hosting/projectresource.md)
- [ConnectionStringResource](/reference/api/typescript/aspire.hosting/connectionstringresource.md)
- [DotnetToolResource](/reference/api/typescript/aspire.hosting/dotnettoolresource.md)
- [CSharpAppResource](/reference/api/typescript/aspire.hosting/csharpappresource.md)
