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. |