Skip to content

Commit 147b61b

Browse files
author
Vinothini Dharmaraj
committed
missed adding the operation context for the sync stop media streaming
1 parent ffaf50c commit 147b61b

File tree

1 file changed

+2
-2
lines changed
  • sdk/communication/Azure.Communication.CallAutomation/src

1 file changed

+2
-2
lines changed

sdk/communication/Azure.Communication.CallAutomation/src/CallMedia.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ public virtual Response StopMediaStreaming(StopMediaStreamingOptions options = d
15191519
{
15201520
var request = options == default
15211521
? new StopMediaStreamingRequestInternal()
1522-
: new StopMediaStreamingRequestInternal() { OperationCallbackUri = options.OperationCallbackUri?.AbsoluteUri };
1522+
: new StopMediaStreamingRequestInternal() { OperationCallbackUri = options.OperationCallbackUri?.AbsoluteUri, OperationContext = options.OperationContext };
15231523

15241524
return CallMediaRestClient.StopMediaStreaming(CallConnectionId, request, cancellationToken);
15251525
}
@@ -1538,7 +1538,7 @@ public virtual Response StopMediaStreaming(StopMediaStreamingOptions options = d
15381538
/// <returns>Returns an HTTP response with a 202 status code for success, or an HTTP failure error code in case of an error.</returns>
15391539
public virtual async Task<Response> StopMediaStreamingAsync(StopMediaStreamingOptions options = default, CancellationToken cancellationToken = default)
15401540
{
1541-
using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallMedia)}.{nameof(StopMediaStreamingAsync)}");
1541+
using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallMedia)}.{nameof(StopMediaStreaming)}");
15421542
scope.Start();
15431543
try
15441544
{

0 commit comments

Comments
 (0)