# SeaweedFSFilerClient Constructors

- Package: [CommunityToolkit.Aspire.SeaweedFS.Client](/reference/api/csharp/communitytoolkit.aspire.seaweedfs.client.md)
- Type: [SeaweedFSFilerClient](/reference/api/csharp/communitytoolkit.aspire.seaweedfs.client/seaweedfsfilerclient.md)
- Kind: `Constructors`
- Members: `1`

A strongly-typed HTTP client for interacting with the SeaweedFS Native Filer API.

<a id="constructor"></a>
<a id="constructor-httpclient"></a>

## SeaweedFSFilerClient(HttpClient)

- Name: `Constructor(HttpClient)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.SeaweedFS.Client/SeaweedFSFilerClient.cs#L24-L30)

A strongly-typed HTTP client for interacting with the SeaweedFS Native Filer API.

```csharp
public sealed class SeaweedFSFilerClient
{
    public SeaweedFSFilerClient(
        HttpClient httpClient)
    {
        // ...
    }
}
```

## Parameters

- `httpClient` (`HttpClient`)
  The configured [SeaweedFSFilerClient.HttpClient](/reference/api/csharp/communitytoolkit.aspire.seaweedfs.client/seaweedfsfilerclient/properties.md#httpclient) instance, typically managed by `Http.IHttpClientFactory`.

## Remarks

The [SeaweedFSFilerClient](/reference/api/csharp/communitytoolkit.aspire.seaweedfs.client/seaweedfsfilerclient.md) provides a direct interface to the SeaweedFS Filer node, allowing for file system operations such as listing, creating, and managing files/directories.

Usage example:

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