Class MediaCommunicationsClientBuilderExtensions
The stateful client builder extension.
Inherited Members
Namespace: Microsoft.Graph.Communications.Calls.Media
Assembly: Microsoft.Graph.Communications.Calls.Media.dll
Syntax
public static class MediaCommunicationsClientBuilderExtensions
Methods
SetMediaPlatformSettings(ICommunicationsClientBuilder, MediaPlatformSettings)
Set the local media platform settings. This function also initializes the local media platform.
Declaration
public static ICommunicationsClientBuilder SetMediaPlatformSettings(this ICommunicationsClientBuilder statefulClientBuilder, MediaPlatformSettings mediaSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommunicationsClientBuilder | statefulClientBuilder | The stateful client builder. |
| MediaPlatformSettings | mediaSettings | The media settings. |
Returns
| Type | Description |
|---|---|
| ICommunicationsClientBuilder |
Exceptions
| Type | Condition |
|---|---|
| ClientException | When something fails while initializing the media platform. |
TerminateAsync(ICommunicationsClient, Boolean, TimeSpan)
Stops the specified stateful client. This would end all the calls and shuts down the media platform. This should only be used during shutdown.
Declaration
public static Task<bool> TerminateAsync(this ICommunicationsClient statefulClient, bool onlyMedia, TimeSpan timeout = default(TimeSpan))
Parameters
| Type | Name | Description |
|---|---|---|
| ICommunicationsClient | statefulClient | The stateful client. |
| Boolean | onlyMedia | if set to |
| TimeSpan | timeout | The timeout. |
Returns
| Type | Description |
|---|---|
| Task<Boolean> | True if all instances were terminated, false otherwise. |