Table of Contents

Class UpdaterComponentExtensions

Namespace
CarinaStudio.AutoUpdate
Assembly
CarinaStudio.AppBase.AutoUpdate.dll

Extensions for IUpdaterComponent.

public static class UpdaterComponentExtensions
Inheritance
UpdaterComponentExtensions
Inherited Members

Methods

IsCompletedOrCancelled(IUpdaterComponent)

Check whether state of IUpdaterComponent represents completed/cancelled or not.

public static bool IsCompletedOrCancelled(this IUpdaterComponent updaterComponent)

Parameters

updaterComponent IUpdaterComponent

IUpdaterComponent.

Returns

bool

True if state of IUpdaterComponent is one of states represent completed or cancelled.

IsInitializing(IUpdaterComponent)

Check whether state of IUpdaterComponent is Initializing or not.

public static bool IsInitializing(this IUpdaterComponent updaterComponent)

Parameters

updaterComponent IUpdaterComponent

IUpdaterComponent.

Returns

bool

True if state of IUpdaterComponent is Initializing.

IsStartedOrCancelling(IUpdaterComponent)

Check whether state of IUpdaterComponent represents started/cancelling or not.

public static bool IsStartedOrCancelling(this IUpdaterComponent updaterComponent)

Parameters

updaterComponent IUpdaterComponent

IUpdaterComponent.

Returns

bool

True if state of IUpdaterComponent is one of states represent started or cancelling.

StartAndWaitAsync(IUpdaterComponent)

Start IUpdaterComponent and wait for completed/cancelled asynchronously.

public static Task StartAndWaitAsync(this IUpdaterComponent updaterComponent)

Parameters

updaterComponent IUpdaterComponent

IUpdaterComponent.

Returns

Task

Task of waiting.

StartAndWaitAsync(IUpdaterComponent, CancellationToken)

Start IUpdaterComponent and wait for completed/cancelled asynchronously.

public static Task StartAndWaitAsync(this IUpdaterComponent updaterComponent, CancellationToken cancellationToken)

Parameters

updaterComponent IUpdaterComponent

IUpdaterComponent.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

Task of waiting.