5 references to TransportOptions
Aspire.Hosting (5)
Dashboard\TransportOptionsValidator.cs (2)
10
internal class TransportOptionsValidator(IConfiguration configuration, DistributedApplicationExecutionContext executionContext, DistributedApplicationOptions distributedApplicationOptions) : IValidateOptions<
TransportOptions
>
12
public ValidateOptionsResult Validate(string? name,
TransportOptions
transportOptions)
DistributedApplicationBuilder.cs (3)
269
_innerBuilder.Services.AddOptions<
TransportOptions
>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys);
270
_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<
TransportOptions
>, TransportOptionsValidator>());
365
private void MapTransportOptionsFromCustomKeys(
TransportOptions
options)