LinkChannelSession

class AnchorLinkSharp::LinkChannelSession
  : public LinkSession
  : public ILinkTransport

AnchorLink session that pushes requests over a channel.

Summary

MembersDescriptions

public override AnchorLink AnchorLink

public override string Identifier

public override string PublicKey

public override PermissionLevel Auth

public override Dictionary< string, object > Metadata

public LinkChannelSession( AnchorLinkanchorLink, LinkChannelSessionData data, Dictionary< string, object > metadata)

public void OnSuccess(SigningRequest request, TransactResult result)

public void OnFailure(SigningRequest request, Exception exception)

public async void OnRequest(SigningRequest request, Action< object > cancel)

public async Task< SigningRequest > Prepare(SigningRequest request, LinkSession session)

public void ShowLoading()

public virtual override LinkSignatureProvider MakeSignatureProvider()

public virtual override async Task< TransactResult> Transact( TransactArgsargs, TransactOptions options)

public virtual override SerializedLinkSession Serialize()

public void OnSessionRequest( LinkSession session, SigningRequest request, Action< object > cancel)

private readonly Timer _timeoutTimer= new Timer()

private readonly ChannelInfo _channel

private readonly int _timeout= 2 * 60 * 1000

private readonly Func< SigningRequest, byte[]> _encrypt

private readonly LinkChannelSessionData _data

Members

public override AnchorLink AnchorLink

public override string Identifier

public override string PublicKey

public override PermissionLevel Auth

public override Dictionary< string, object > Metadata

public ILinkStorage Storage

public LinkChannelSession( AnchorLinkanchorLink, LinkChannelSessionData data, Dictionary< string, object > metadata)

public void OnSuccess(SigningRequest request, TransactResult result)

public void OnFailure(SigningRequest request, Exception exception)

public async void OnRequest(SigningRequest request, Action< object > cancel)

public async Task< SigningRequest > Prepare(SigningRequest request, LinkSession session)

public void ShowLoading()

public virtual override LinkSignatureProvider MakeSignatureProvider()

public virtual override async Task< TransactResult> Transact( TransactArgsargs, TransactOptions options)

public virtual override SerializedLinkSession Serialize()

public void OnSessionRequest( LinkSession session, SigningRequest request, Action< object > cancel)

private readonly Timer _timeoutTimer= new Timer()

private readonly ChannelInfo _channel

private readonly int _timeout= 2 * 60 * 1000

private readonly Func< SigningRequest, byte[]> _encrypt

private readonly LinkChannelSessionData _data

Last updated