Show / Hide Table of Contents

    Class Utilities

    Utilities class.

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

    Methods

    CombineHashCodes(Object[])

    Combine several hash codes into a single hash code

    Declaration
    public static int CombineHashCodes(params object[] args)
    Parameters
    Type Name Description
    Object[] args

    Objects to combine into a single hash.

    Returns
    Type Description
    Int32

    Combined hash code.

    DecodeReplacesContextFromBase64(String)

    Decodes the replaces context for consultative call transfer scenario.

    Declaration
    public static Uri DecodeReplacesContextFromBase64(this string replacesContext)
    Parameters
    Type Name Description
    String replacesContext

    The replaces context.

    Returns
    Type Description
    Uri

    The decoded replaces URI.

    Exceptions
    Type Condition
    InvalidOperationException

    Replaces context provided for consultative transfer is invalid.

    EncodeReplacesUriToBase64(Uri)

    Base64 Encodes the replaces URI for consultative call transfer scenario.

    Declaration
    public static string EncodeReplacesUriToBase64(this Uri replacesUri)
    Parameters
    Type Name Description
    Uri replacesUri

    The replaces URI.

    Returns
    Type Description
    String

    The encoded replaces context.

    SafeDispose<T>(ref T, IGraphLogger)

    Safely dispose members.

    Declaration
    public static void SafeDispose<T>(ref T t, IGraphLogger logger = null)
    
        where T : class, IDisposable
    Parameters
    Type Name Description
    T t

    Reference to member.

    IGraphLogger logger

    Logger instance.

    Type Parameters
    Name Description
    T

    Type of the member.

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