Skip to content
DocsTry Aspire
DocsTry

RustFsResource Methods

ClassMethods1 member
A resource that represents a RustFs S3-compatible storage container.
GetConnectionStringAsync(CancellationToken)Section titled GetConnectionStringAsync(CancellationToken)ValueTask<string?>
Gets the connection string for the RustFs server.
public sealed class RustFsResource
{
public ValueTask<string?> GetConnectionStringAsync(
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
cancellationTokenCancellationTokenoptionalA Threading.CancellationToken to observe while waiting for the task to complete.
ValueTask<string?>A connection string for the RustFs server in the form "Endpoint=http://host:port;AccessKey=key;SecretKey=secret".