21 references to ResourceServiceEndpointUrl
Aspire.Hosting (6)
Dashboard\DashboardServiceHost.cs (2)
135
var uri = configuration.GetUri(KnownConfigNames.
ResourceServiceEndpointUrl
)
208
throw new ArgumentException($"{KnownConfigNames.
ResourceServiceEndpointUrl
} must contain a local loopback address.");
Dashboard\TransportOptionsValidator.cs (3)
53
var resourceServiceEndpointUrl = configuration.GetString(KnownConfigNames.
ResourceServiceEndpointUrl
, KnownConfigNames.Legacy.ResourceServiceEndpointUrl);
58
return ValidateOptionsResult.Fail($"The {KnownConfigNames.
ResourceServiceEndpointUrl
} setting with a value of '{resourceServiceEndpointUrl}' could not be parsed as a URI.");
63
return ValidateOptionsResult.Fail($"The '{KnownConfigNames.
ResourceServiceEndpointUrl
}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/aspire/allowunsecuredtransport for more details.");
src\Shared\DashboardConfigNames.cs (1)
17
public static readonly ConfigName ResourceServiceUrlName = new(KnownConfigNames.
ResourceServiceEndpointUrl
);
Aspire.Hosting.Tests (15)
Dashboard\DashboardResourceTests.cs (1)
141
Assert.Equal(KnownConfigNames.
ResourceServiceEndpointUrl
, e.Key);
Dashboard\TransportOptionsValidatorTests.cs (12)
137
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
168
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
177
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
196
$"The {KnownConfigNames.
ResourceServiceEndpointUrl
} setting with a value of '{invalidUrl}' could not be parsed as a URI.",
216
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
240
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1235";
253
[InlineData(KnownConfigNames.
ResourceServiceEndpointUrl
)]
271
$"The '{KnownConfigNames.
ResourceServiceEndpointUrl
}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/aspire/allowunsecuredtransport for more details.",
309
[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.
ResourceServiceEndpointUrl
)]
310
[InlineData(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.
ResourceServiceEndpointUrl
)]
343
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1237";
367
config[KnownConfigNames.
ResourceServiceEndpointUrl
] = "https://localhost:1237";
DistributedApplicationTests.cs (2)
1444
$"{KnownConfigNames.
ResourceServiceEndpointUrl
}={configuredResourceServiceUrl}"
1474
$"{KnownConfigNames.
ResourceServiceEndpointUrl
}={configuredResourceServiceUrl}"