docs.unity3d.com
    Show / Hide Table of Contents

    Interface IChannelTokenProvider

    Must be implemented by the CreateChannel(IChannelTokenProvider) caller. This object responsibility is to provide an async method that returns a ChannelToken structure.

    Namespace: Unity.Services.Wire.Internal
    Syntax
    public interface IChannelTokenProvider

    Methods

    GetTokenAsync()

    This async method should implement whetever network transaction necessary to retrieve a token enabling a Wire subscription. This function can be called by the Wire SDK multiple times during the lifetime of the subscription. For example, whenever the token needs to be refreshed.

    Declaration
    Task<ChannelToken> GetTokenAsync()
    Returns
    Type Description
    Task<ChannelToken>

    A ChannelToken structure to be used at subscription time.

    Back to top
    Terms of use
    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