Show / Hide Table of Contents

    Class CommunicationsClientExtensions

    Extensions for stateful client.

    Inheritance
    Object
    CommunicationsClientExtensions
    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
    Assembly: Microsoft.Graph.Communications.Calls.dll
    Syntax
    public static class CommunicationsClientExtensions

    Methods

    Calls(ICommunicationsClient, Boolean)

    Gets the call collection. This is the main entry point for the calling SDK. The return value of this function can be cached by the clients as required.

    Declaration
    public static ICallCollection Calls(this ICommunicationsClient client, bool maintainState = true)
    Parameters
    Type Name Description
    ICommunicationsClient client

    The stateful client.

    Boolean maintainState

    If set to true the resulting IResourceCollection will hold all IResource instances it creates unless explicitly deleted (either by the service or by the developer). If set to false no IResource generated by the IResourceCollection or its children will be stored by the ICommunicationsClient, instead it is the developers responsibility to control the lifetime of the generated instances.

    Returns
    Type Description
    ICallCollection

    The root singleton ICallCollection node. Multiple invocations of this method will return the same ICallCollection.

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