# DaprOptions

- Kind: `record`
- Package: [CommunityToolkit.Aspire.Hosting.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr.md)
- Version: `13.0.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.Dapr`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprOptions.cs)
- Implements: `IEquatable<DaprOptions>`

Options for configuring Dapr.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.Dapr;

public sealed record DaprOptions
    : System.IEquatable<CommunityToolkit.Aspire.Hosting.Dapr.DaprOptions>
{
    // ...
}
```

## Constructors

- [DaprOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/constructors.md#constructor)

## Properties

- [DaprPath](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/properties.md#daprpath) : `string?` `get; set` -- Gets or sets the path to the Dapr CLI.
- [EnableTelemetry](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/properties.md#enabletelemetry) : `bool?` `get; set` -- Gets or sets whether Dapr sidecars export telemetry to the Aspire dashboard.
- [PublishingConfigurationAction](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/properties.md#publishingconfigurationaction) : `Action<IResource, DaprSidecarOptions?>` `get; set` -- Gets or sets the action to be executed during the publishing process.

## Methods

- [<Clone>$](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#clone) : [DaprOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions.md)
- [Equals(object?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(DaprOptions?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#equals-daproptions) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(DaprOptions?, DaprOptions?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#op-equality-daproptions-daproptions) : `bool` `static`
- [op_Inequality(DaprOptions?, DaprOptions?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#op-inequality-daproptions-daproptions) : `bool` `static`
- [ToString](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daproptions/methods.md#tostring) : `string` -- Returns a string that represents the current object.
