docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IWire

    IWire allows the creation of disposable IChannel objects.

    Namespace: Unity.Services.Wire.Internal
    Assembly: Unity.Services.Core.Internal.dll
    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.

    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)