Table of Contents

Interface IPersistenceProvider

Namespace
HeBianGu.Systems.Upgrade
Assembly
HeBianGu.Systems.Upgrade.dll

Provides a mechanism for storing AutoUpdater state between sessions.

public interface IPersistenceProvider
Extension Methods

Methods

GetRemindLater()

Reads the value containing the date and time at which the user must be given again the possibility to upgrade the application.

DateTime? GetRemindLater()

Returns

DateTime?

Returns a DateTime value at which the user must be given again the possibility to upgrade the application. If remind later value is not present then it will return null.

GetSkippedVersion()

Reads the flag indicating whether a specific version should be skipped or not.

Version GetSkippedVersion()

Returns

Version

Returns a version to skip. If skip value is false or not present then it will return null.

SetRemindLater(DateTime?)

Sets the date and time at which the user must be given again the possibility to upgrade the application.

void SetRemindLater(DateTime? remindLaterAt)

Parameters

remindLaterAt DateTime?

Date and time at which the user must be given again the possibility to upgrade the application.

SetSkippedVersion(Version)

Sets the values indicating the specific version that must be ignored by AutoUpdater.

void SetSkippedVersion(Version version)

Parameters

version Version

Version code for the specific version that must be ignored. Set it to null if you don't want to skip any version.