Skip to content
DocsTry Aspire
DocsTry

MinioContainerResource Methods

ClassMethods1 member
A resource that represents a MinIO storage
GetConnectionStringAsync(CancellationToken)Section titled GetConnectionStringAsync(CancellationToken)ValueTask<string?>
Gets the connection string for the MinIO server.
public sealed class MinioContainerResource
{
public ValueTask<string?> GetConnectionStringAsync(
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
cancellationTokenCancellationTokenoptional A Threading.CancellationToken to observe while waiting for the task to complete.
ValueTask<string?>A connection string for the MinIO server in the form "Host=host;Port=port;Username=postgres;Password=password".