Show / Hide Table of Contents

    Class MediaCommunicationsClientBuilderExtensions

    The stateful client builder extension.

    Inheritance
    Object
    MediaCommunicationsClientBuilderExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    The 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 true terminate only the media platform.

    TimeSpan timeout

    The timeout.

    Returns
    Type Description
    Task<Boolean>

    True if all instances were terminated, false otherwise.

    Back to top Copyright (c) Microsoft Corporation. All rights reserved.