Entity Tokens

What is the lifetime of the token accessors on the bolt entity?

public IProtocolToken attachToken { get; } public IProtocolToken detachToken { get; } public IProtocolToken controlGainedToken { get; } public IProtocolToken controlLostToken { get; }

Comments

  • In other words, do these fields contain the tokens for the lifetime of the entity? Or are they only trustable for the duration of the relevant callback? (attach, detach, control gained, control lost)