K3sServiceEndpointResource Methods
ClassMethods1 member
Represents a Kubernetes Service exposed from a k3s cluster as an Aspire endpoint resource.
GetConnectionStringAsync(CancellationToken) Section titled GetConnectionStringAsync(CancellationToken)ValueTask<string?> Returns the host-accessible service URL, or
null if the port-forward is not yet active. public sealed class K3sServiceEndpointResource{ public ValueTask<string?> GetConnectionStringAsync( CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
cancellationToken CancellationToken optionalRemarks
Returns
null until the endpoint transitions to Running. Declare WaitFor(endpoint) on dependent resources so that this value is always populated by the time their environment variables are evaluated.