Skip to content

Commit b12c2fc

Browse files
authored
Update play-audio-quickstart-csharp.md
add play started
1 parent 7e9188f commit b12c2fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/communication-services/how-tos/call-automation/includes/play-audio-quickstart-csharp.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,15 @@ if (acsEvent is PlayCompleted playCompleted)
250250
}
251251
```
252252

253+
### Example of how you can deserialize the *PlayStarted* event:
254+
255+
``` csharp
256+
if (acsEvent is PlayStarted playStarted)
257+
{
258+
logger.LogInformation("Play started successfully, context={context}", playStarted.OperationContext);
259+
}
260+
```
261+
253262
### Example of how you can deserialize the *PlayFailed* event:
254263

255264
``` csharp

0 commit comments

Comments
 (0)