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