Skip to content
DocsTry Aspire
DocsTry

SeaweedFSFilerClient Constructors

ClassConstructors1 member
A strongly-typed HTTP client for interacting with the SeaweedFS Native Filer API.
A strongly-typed HTTP client for interacting with the SeaweedFS Native Filer API.
public sealed class SeaweedFSFilerClient
{
public SeaweedFSFilerClient(
HttpClient httpClient)
{
// ...
}
}
httpClientHttpClientThe configured SeaweedFSFilerClient.HttpClient instance, typically managed by Http.IHttpClientFactory.
The SeaweedFSFilerClient provides a direct interface to the SeaweedFS Filer node, allowing for file system operations such as listing, creating, and managing files/directories.

Usage example:

public class MyService(SeaweedFSFilerClient filerClient)
{
public async Task ListFilesAsync()
{
var response = await filerClient.HttpClient.GetAsync("/");
// ...
}
}