Table of Contents

Class SignOutGeneration

Namespace
Arc4u.OAuth2.Token
Assembly
Arc4u.OAuth2.dll

Counts the sign-outs of a token provider, so a token requested before a sign-out is not kept after it: take a Snapshot() before requesting the token, and keep the token only when HasChanged(int) is false. The sign-out calls Increment().

public sealed class SignOutGeneration
Inheritance
SignOutGeneration
Inherited Members

Methods

HasChanged(int)

Gets a value indicating whether the user signed out since snapshot was taken.

public bool HasChanged(int snapshot)

Parameters

snapshot int

A value returned by Snapshot().

Returns

bool

true when a sign-out happened since the snapshot.

Increment()

Records a sign-out.

public void Increment()

Snapshot()

Gets the current generation, to compare with HasChanged(int) once the token is received.

public int Snapshot()

Returns

int

The current generation.