docs.unity3d.com
    Show / Hide Table of Contents

    Interface IWire

    IWire allows the creation of disposable IChannel objects.

    Namespace: Unity.Services.Wire.Internal
    Syntax
    public interface IWire : IServiceComponent

    Methods

    CreateChannel(IChannelTokenProvider)

    CreateChannel is a IChannel factory. It will generate an object enabling the subscription to a Wire channel.

    Declaration
    IChannel CreateChannel(IChannelTokenProvider tokenProvider)
    Parameters
    Type Name Description
    IChannelTokenProvider tokenProvider

    Will be used to obtain a subscription token whenever the user calls SubscribeAsync() or Wire might choose to use it whenever a refreshed token is needed. Make sure that this IChannelTokenProvider can never provide an outdated or bad token.

    Returns
    Type Description
    IChannel

    A IChannel object.

    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