File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
sdk/communication/Azure.Communication.CallAutomation/src Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,19 @@ public virtual Response<RecordingStateResult> Start(StartRecordingOptions option
72
72
}
73
73
}
74
74
75
+ if ( options . ChannelAffinity != null && options . ChannelAffinity . Any ( ) )
76
+ {
77
+ foreach ( var c in options . ChannelAffinity )
78
+ {
79
+ ChannelAffinityInternal newChannelAffinity = new ChannelAffinityInternal ( CommunicationIdentifierSerializer . Serialize ( c . Participant ) ) ;
80
+ if ( c . Channel != null )
81
+ {
82
+ newChannelAffinity . Channel = c . Channel ;
83
+ }
84
+ request . ChannelAffinity . Add ( newChannelAffinity ) ;
85
+ }
86
+ }
87
+
75
88
if ( options . ExternalStorage is not null )
76
89
{
77
90
request . ExternalStorage = TranslateExternalStorageToInternal ( options . ExternalStorage ) ;
You can’t perform that action at this time.
0 commit comments