docs.unity3d.com
    Show / Hide Table of Contents

    Class IServiceMessagingClientExtensions

    Inheritance
    Object
    IServiceMessagingClientExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Common
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023