# DaprSidecarOptions Properties

- Package: [CommunityToolkit.Aspire.Hosting.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr.md)
- Type: [DaprSidecarOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprsidecaroptions.md)
- Kind: `Properties`
- Members: `32`

Options for configuring a Dapr sidecar.

## AppChannelAddress

- Name: `AppChannelAddress`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the network address at which the application listens.

```csharp
public string? AppChannelAddress { get; init; }
```

## AppEndpoint

- Name: `AppEndpoint`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the endpoint of the application the sidecar is connected to.

```csharp
public string? AppEndpoint { get; init; }
```

## AppHealthCheckPath

- Name: `AppHealthCheckPath`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the path used for health checks (HTTP only).

```csharp
public string? AppHealthCheckPath { get; init; }
```

## AppHealthProbeInterval

- Name: `AppHealthProbeInterval`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the interval, in seconds, to probe for the health of the application.

```csharp
public int? AppHealthProbeInterval { get; init; }
```

## AppHealthProbeTimeout

- Name: `AppHealthProbeTimeout`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the timeout, in milliseconds, for application health probes.

```csharp
public int? AppHealthProbeTimeout { get; init; }
```

## AppHealthThreshold

- Name: `AppHealthThreshold`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the number of consecutive failures for the application to be considered unhealthy.

```csharp
public int? AppHealthThreshold { get; init; }
```

## AppId

- Name: `AppId`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the ID for the application, used for service discovery.

```csharp
public string? AppId { get; init; }
```

## AppMaxConcurrency

- Name: `AppMaxConcurrency`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the concurrency level of the application (unlimited if omitted).

```csharp
public int? AppMaxConcurrency { get; init; }
```

## AppPort

- Name: `AppPort`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the port on which the application is listening.

```csharp
public int? AppPort { get; init; }
```

## AppProtocol

- Name: `AppProtocol`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the protocol (i.e. grpc, grpcs, http, https, h2c) the Dapr sidecar uses to talk to the application.

```csharp
public string? AppProtocol { get; init; }
```

## Command

- Name: `Command`
- Modifiers: `get; init`
- Returns: `IImmutableList<string>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the command run by the Dapr CLI as part of starting the sidecar.

```csharp
public IImmutableList<string> Command { get; init; }
```

## Config

- Name: `Config`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the path to the Dapr sidecar configuration file.

```csharp
public string? Config { get; init; }
```

## DaprGrpcPort

- Name: `DaprGrpcPort`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the gRPC port on which the Dapr sidecar should listen.

```csharp
public int? DaprGrpcPort { get; init; }
```

## DaprHttpMaxRequestSize

> **Obsolete:** Use DaprMaxBodySize

- Name: `DaprHttpMaxRequestSize`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the maximum size, in MB, of a Dapr request body.

```csharp
public int? DaprHttpMaxRequestSize { get; init; }
```

## DaprHttpPort

- Name: `DaprHttpPort`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the HTTP port on which the Dapr sidecard should listen.

```csharp
public int? DaprHttpPort { get; init; }
```

## DaprHttpReadBufferSize

> **Obsolete:** Use DaprMaxBodySize

- Name: `DaprHttpReadBufferSize`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the maximum size, in KB, of the HTTP header read buffer.

```csharp
public int? DaprHttpReadBufferSize { get; init; }
```

## DaprInternalGrpcPort

- Name: `DaprInternalGrpcPort`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the gRPC port on which the Dapr sidecar should listen for sidecar-to-sidecar calls.

```csharp
public int? DaprInternalGrpcPort { get; init; }
```

## DaprListenAddresses

- Name: `DaprListenAddresses`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets a comma (,) delimited list of IP addresses at which the Dapr sidecar will listen.

```csharp
public string? DaprListenAddresses { get; init; }
```

## DaprMaxBodySize

- Name: `DaprMaxBodySize`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the max size of request body Inreasing the request max body size to handle large file uploads using http and grpc protocols. Set the value using size units (e.g., 16Mi for 16MB). The default is 4Mi.

```csharp
public string? DaprMaxBodySize { get; init; }
```

## DaprReadBufferSize

- Name: `DaprReadBufferSize`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the maximum size, read buffer. Increasing max size of http header read buffer in KB to to support larger header values. Set the value using size units, for example 32Ki will support headers up to 32KB . Default is 4Ki for 4KB

```csharp
public string? DaprReadBufferSize { get; init; }
```

## EnableApiLogging

- Name: `EnableApiLogging`
- Modifiers: `nullable` `get; init`
- Returns: `bool?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets whether the Dapr sidecar logs API calls at INFO verbosity.

```csharp
public bool? EnableApiLogging { get; init; }
```

## EnableAppHealthCheck

- Name: `EnableAppHealthCheck`
- Modifiers: `nullable` `get; init`
- Returns: `bool?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets whether health checks are performed for the application.

```csharp
public bool? EnableAppHealthCheck { get; init; }
```

## EnableProfiling

- Name: `EnableProfiling`
- Modifiers: `nullable` `get; init`
- Returns: `bool?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets whether to perform pprof profiling via the application HTTP endpoint.

```csharp
public bool? EnableProfiling { get; init; }
```

## LogLevel

- Name: `LogLevel`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the Dapr sidecar log verbosity (i.e. debug, info, warn, error, fatal, or panic).

```csharp
public string? LogLevel { get; init; }
```

## Remarks

The default log verbosity is "info".

## MetricsPort

- Name: `MetricsPort`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the port on which the Dapr sidecar reports metrics.

```csharp
public int? MetricsPort { get; init; }
```

## PlacementHostAddress

- Name: `PlacementHostAddress`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the address of the placement service.

```csharp
public string? PlacementHostAddress { get; init; }
```

## Remarks

The format is either "hostname" for the default port or "hostname:port" for a custom port. The default is "localhost".

## ProfilePort

- Name: `ProfilePort`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the port on which the Dapr sidecar reports profiling data.

```csharp
public int? ProfilePort { get; init; }
```

## ResourcesPaths

- Name: `ResourcesPaths`
- Modifiers: `get; init`
- Returns: `IImmutableSet<string>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the paths of Dapr sidecar resources (i.e. resources).

```csharp
public IImmutableSet<string> ResourcesPaths { get; init; }
```

## RunFile

- Name: `RunFile`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the path to the Dapr run file to run.

```csharp
public string? RunFile { get; init; }
```

## RuntimePath

- Name: `RuntimePath`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the directory of the Dapr runtime (i.e. daprd).

```csharp
public string? RuntimePath { get; init; }
```

## SchedulerHostAddress

- Name: `SchedulerHostAddress`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the address of the scheduler service.

```csharp
public string? SchedulerHostAddress { get; init; }
```

## Remarks

The format is either "hostname" for the default port or "hostname:port" for a custom port. The default is "localhost".

## UnixDomainSocket

- Name: `UnixDomainSocket`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprSidecarOptions.cs)

Gets or sets the path to a Unix Domain Socket (UDS) directory.

```csharp
public string? UnixDomainSocket { get; init; }
```

## Remarks

If specified, the Dapr sidecar will use Unix Domain Sockets for API calls.
