# AddOrleans

- Module: [Aspire.Hosting.Orleans](/reference/api/go/aspire.hosting.orleans.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: `DistributedApplicationBuilder`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Adds an Orleans service to the application.

## Definition

```go
func (DistributedApplicationBuilder) AddOrleans(name string) OrleansService
```

## Parameters

- `name` (`string`) -- The name of the Orleans service.

## Returns

[`OrleansService`](/reference/api/go/aspire.hosting.orleans/orleansservice.md) -- The Orleans service builder.

Returns a handle; failures surface later via `Err()`.

## Applies to

- `DistributedApplicationBuilder`
