Skip to content

Commit 4df7a93

Browse files
committed
Add .NET progress notification example
1 parent 59241f4 commit 4df7a93

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/includes/api-details/csharp/sync/manage-sync-sessions-check-upload-and-download-progress-description.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ as a double between 0.0 and 1.0.
2424

2525
Once you no longer wish to receive notifications, unregister the token with
2626
``token.Dispose()``.
27+
28+
In the following example, we subscribe to a progress observable on the
29+
``session`` to listen for upload events. When this callback is triggered, it
30+
prints the upload progress as a percentage.

source/includes/sdk-examples/sync/manage-sync-sessions-check-upload-download-progress.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- id: csharp
1111
content: |
1212

13-
.. literalinclude:: /examples/MissingPlaceholders/example.cs
13+
.. literalinclude:: /examples/generated/dotnet/ProgressNotifications.snippet.upload-download-progress-notification.cs
1414
:language: csharp
1515

1616
- id: dart

0 commit comments

Comments
 (0)