Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public async Task BeforeStartAsync(DistributedApplicationModel appModel, Cancell
ModelNamedArg("--resources-path", aggregateResourcesPaths),
ModelNamedArg("--run-file", NormalizePath(sidecarOptions?.RunFile)),
ModelNamedArg("--runtime-path", NormalizePath(sidecarOptions?.RuntimePath)),
ModelNamedArg("--scheduler-host-address", sidecarOptions?.SchedulerHostAddress),
ModelNamedArg("--unix-domain-socket", sidecarOptions?.UnixDomainSocket),
PostOptionsArgs(Args(sidecarOptions?.Command)));

Expand Down Expand Up @@ -264,6 +265,7 @@ public async Task BeforeStartAsync(DistributedApplicationModel appModel, Cancell
context.Writer.TryWriteStringArray("resourcesPath", sidecarOptions?.ResourcesPaths.Select(path => context.GetManifestRelativePath(path)));
context.Writer.TryWriteString("runFile", context.GetManifestRelativePath(sidecarOptions?.RunFile));
context.Writer.TryWriteString("runtimePath", context.GetManifestRelativePath(sidecarOptions?.RuntimePath));
context.Writer.TryWriteString("schedulerHostAddress", sidecarOptions?.SchedulerHostAddress);
context.Writer.TryWriteString("unixDomainSocket", sidecarOptions?.UnixDomainSocket);

context.Writer.WriteEndObject();
Expand Down
9 changes: 9 additions & 0 deletions src/Aspire.Hosting.Dapr/DaprSidecarOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ public sealed record DaprSidecarOptions
/// </summary>
public string? RuntimePath { get; init; }

/// <summary>
/// Gets or sets the address of the scheduler service.
/// </summary>
/// <remarks>
/// The format is either "hostname" for the default port or "hostname:port" for a custom port.
/// The default is "localhost".
/// </remarks>
public string? SchedulerHostAddress { get; init; }

/// <summary>
/// Gets or sets the path to a Unix Domain Socket (UDS) directory.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Aspire.Hosting.Dapr/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#nullable enable

Aspire.Hosting.Dapr.DaprSidecarOptions.SchedulerHostAddress.get -> string?
Aspire.Hosting.Dapr.DaprSidecarOptions.SchedulerHostAddress.init -> void