Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions client-sdk-references/dotnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* **WPF**: Windows desktop applications

**Current Limitations**:
* Blazor (web) platforms are not yet supported.

Check warning on line 50 in client-sdk-references/dotnet.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

client-sdk-references/dotnet.mdx#L50

Did you really mean 'Blazor'?

For more details, please refer to the package [README](https://github.com/powersync-ja/powersync-dotnet/tree/main?tab=readme-ov-file).

Expand Down Expand Up @@ -166,7 +166,7 @@

public class MyConnector : IPowerSyncBackendConnector
{
private readonly HttpClient _httpClient;

Check warning on line 169 in client-sdk-references/dotnet.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

client-sdk-references/dotnet.mdx#L169

Did you really mean 'readonly'?

Check warning on line 169 in client-sdk-references/dotnet.mdx

View check run for this annotation

Mintlify / Mintlify Validation (powersync) - vale-spellcheck

client-sdk-references/dotnet.mdx#L169

Did you really mean '_httpClient'?

// User credentials for the current session
public string UserId { get; private set; }
Expand Down Expand Up @@ -518,6 +518,25 @@
});
```

## Get upload queue statistics

Use `GetUploadQueueStats` to retrieve statistics about pending uploads in the queue. This method returns the count of operations waiting to be uploaded, and optionally the estimated size of the queue.

```cs
using PowerSync.Common.Client;

// Get count only (faster)
var stats = await db.GetUploadQueueStats();
Console.WriteLine($"Pending uploads: {stats.Count}");

// Get count and size estimate
var statsWithSize = await db.GetUploadQueueStats(includeSize: true);
Console.WriteLine($"Pending uploads: {statsWithSize.Count}");
Console.WriteLine($"Estimated size: {statsWithSize.Size} bytes");
```

The `includeSize` parameter is optional and defaults to `false`. When set to `true`, the method calculates an estimated size of the upload queue data, which may be useful for monitoring purposes but adds a small performance overhead.

## Supported Platforms

See [Supported Platforms -> .NET SDK](/resources/supported-platforms#net-sdk).