# 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/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

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`
