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)
267
_innerBuilder.Services.AddOptions<
TransportOptions
>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys);
268
_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<
TransportOptions
>, TransportOptionsValidator>());
363
private void MapTransportOptionsFromCustomKeys(
TransportOptions
options)