# Aspire.Hosting.Orleans

- Module: `Aspire.Hosting.Orleans`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `17`
- Types: `2`

## Handles

- [OrleansService](/reference/api/go/aspire.hosting.orleans/orleansservice.md) -- `handle` - 13 members -- Describes an Orleans service.
- [OrleansServiceClient](/reference/api/go/aspire.hosting.orleans/orleansserviceclient.md) -- `handle` - 0 members -- Represents an Orleans client configuration that can be referenced by application resources.

## Functions

- [AddOrleans](/reference/api/go/aspire.hosting.orleans/addorleans.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an Orleans service to the application.
- [AsClient](/reference/api/go/aspire.hosting.orleans/asclient.md) -- `method` - on `OrleansService` -- Returns a model of the clients of an Orleans service.
- [WithBroadcastChannel](/reference/api/go/aspire.hosting.orleans/withbroadcastchannel.md) -- `method` - on `OrleansService` -- Adds a broadcast channel provider to the Orleans service.
- [WithClusterId](/reference/api/go/aspire.hosting.orleans/withclusterid.md) -- `method` - on `OrleansService` -- Sets the ClusterId of the Orleans service.
- [WithClustering](/reference/api/go/aspire.hosting.orleans/withclustering.md) -- `method` - on `OrleansService` -- Configures the Orleans service to use the provided clustering provider.
- [WithDevelopmentClustering](/reference/api/go/aspire.hosting.orleans/withdevelopmentclustering.md) -- `method` - on `OrleansService` -- Configures the Orleans service to use development-only clustering.
- [WithGrainDirectory](/reference/api/go/aspire.hosting.orleans/withgraindirectory.md) -- `method` - on `OrleansService` -- Adds a grain directory provider to the Orleans service.
- [WithGrainStorage](/reference/api/go/aspire.hosting.orleans/withgrainstorage.md) -- `method` - on `OrleansService` -- Adds a grain storage provider to the Orleans service.
- [WithMemoryGrainStorage](/reference/api/go/aspire.hosting.orleans/withmemorygrainstorage.md) -- `method` - on `OrleansService` -- Adds an in-memory grain storage to the Orleans service.
- [WithMemoryReminders](/reference/api/go/aspire.hosting.orleans/withmemoryreminders.md) -- `method` - on `OrleansService` -- Configures in-memory reminder storage for the Orleans service.
- [WithMemoryStreaming](/reference/api/go/aspire.hosting.orleans/withmemorystreaming.md) -- `method` - on `OrleansService` -- Adds an in-memory stream provider to the Orleans service.
- [WithReminders](/reference/api/go/aspire.hosting.orleans/withreminders.md) -- `method` - on `OrleansService` -- Configures reminder storage for the Orleans service.
- [WithServiceId](/reference/api/go/aspire.hosting.orleans/withserviceid.md) -- `method` - on `OrleansService` -- Sets the ServiceId of the Orleans service.
- [WithStreaming](/reference/api/go/aspire.hosting.orleans/withstreaming.md) -- `method` - on `OrleansService` -- Adds a stream provider to the Orleans service.
- [WithOrleansProviderType](/reference/api/go/aspire.hosting.orleans/withorleansprovidertype.md) -- `method` - on `ResourceWithConnectionString` -- Configures a resource to use the specified Orleans provider type.
- [WithOrleansClientReference](/reference/api/go/aspire.hosting.orleans/withorleansclientreference.md) -- `method` - on `ResourceWithEnvironment` -- Adds an Orleans client to the resource.
- [WithOrleansReference](/reference/api/go/aspire.hosting.orleans/withorleansreference.md) -- `method` - on `ResourceWithEnvironment` -- Adds Orleans to the resource.
