Table of Contents

Class ServerTokenExtensions

Namespace
VpnHood.Core.Common.Tokens
Assembly
VpnHood.Core.Common.dll

Provides the comparison of server tokens.

public static class ServerTokenExtensions
Inheritance
ServerTokenExtensions
Inherited Members

Methods

IsTokenUpdated(ServerToken, ServerToken)

Determines whether a server token is an update of another.

public static bool IsTokenUpdated(this ServerToken serverToken, ServerToken newServerToken)

Parameters

serverToken ServerToken

The current token.

newServerToken ServerToken

The token that may replace it.

Returns

bool

true if the new token differs from the current one other than in its creation time, and was made no earlier; otherwise, false.