docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IServiceMessagingClientExtensions

    Helper methods for IServiceMessagingClient.

    Inheritance
    object
    IServiceMessagingClientExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    public static class IServiceMessagingClientExtensions

    Methods

    AddApiSourceVersionFromAssembly(IServiceMessagingClient, Assembly)

    Modifies an instance of IServiceMessagingClient which adds the API source version info to the websocket connection request. The source values are retrieved from the ApiSourceVersionAttribute which must be defined in the calling Assembly.

    Declaration
    public static void AddApiSourceVersionFromAssembly(this IServiceMessagingClient messagingClient, Assembly assembly)
    Parameters
    Type Name Description
    IServiceMessagingClient messagingClient

    The client to modify.

    Assembly assembly

    The target assembly.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if ApiSourceVersionAttribute does not exist or is not initialized in the calling assembly.

    ArgumentNullException

    Thrown if assembly is null or the name or version defined in the retrieved ApiSourceVersionAttribute are null or white space.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)