# OrleansService

- Kind: `class`
- Package: [Aspire.Hosting.Orleans](/reference/api/csharp/aspire.hosting.orleans.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Orleans`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Orleans/OrleansService.cs)

Describes an Orleans service.

## Definition

```csharp
namespace Aspire.Hosting.Orleans;

public sealed class OrleansService
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Orleans/OrleansService`

## Constructors

- [OrleansService(IDistributedApplicationBuilder, string)](/reference/api/csharp/aspire.hosting.orleans/orleansservice/constructors.md#constructor-idistributedapplicationbuilder-string) -- Initializes a new [OrleansService](/reference/api/csharp/aspire.hosting.orleans/orleansservice.md) instance.

## Properties

- [BroadcastChannel](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#broadcastchannel) : `Dictionary<string, IProviderConfiguration>` `get` -- Gets the broadcast channel providers.
- [Builder](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#builder) : `IDistributedApplicationBuilder` `get` -- Gets the distributed application builder.
- [Clustering](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#clustering) : [IProviderConfiguration?](/reference/api/csharp/aspire.hosting.orleans/iproviderconfiguration.md) `get; set` -- Gets or sets the clustering provider.
- [EnableDistributedTracing](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#enabledistributedtracing) : `bool?` `get; set` -- Gets or sets a value indicating whether to enable tracing of grain calls.
- [GrainDirectory](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#graindirectory) : `Dictionary<string, IProviderConfiguration>` `get` -- Gets the grain directory providers.
- [GrainStorage](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#grainstorage) : `Dictionary<string, IProviderConfiguration>` `get` -- Gets the grain storage providers.
- [Name](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#name) : `string` `get` -- Gets the name of the service.
- [Reminders](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#reminders) : [IProviderConfiguration?](/reference/api/csharp/aspire.hosting.orleans/iproviderconfiguration.md) `get; set` -- Gets or sets the reminder service provider.
- [Streaming](/reference/api/csharp/aspire.hosting.orleans/orleansservice/properties.md#streaming) : `Dictionary<string, IProviderConfiguration>` `get` -- Gets the stream providers.
