Table of Contents

Class MicrosoftStoreInAppUserReviewProvider

Namespace
VpnHood.AppLib.Stores.MicrosoftStore
Assembly
VpnHood.AppLib.Stores.MicrosoftStore.Core.dll

Provides the Microsoft Store's own rating and review dialog, over the app's desktop window.

public class MicrosoftStoreInAppUserReviewProvider : IAppUserReviewProvider
Inheritance
MicrosoftStoreInAppUserReviewProvider
Implements
Inherited Members

Remarks

The Store tells how the dialog closed: a success and the person's cancel complete normally, and any other status throws, as for an app the Store does not associate with its listing (0x803F6107).

Methods

RequestReview(IUiContext, CancellationToken)

Asks the person for a review, as the store shows it; the store may show nothing.

public Task RequestReview(IUiContext uiContext, CancellationToken cancellationToken)

Parameters

uiContext IUiContext

The app's UI context.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task

A task that completes once the store's flow has ended, or, as the App Store's, once the request is handed to the store, which shows its dialog on its own terms.

Remarks

It completes once the dialog has closed.

Exceptions

InvalidOperationException

The store could not show its dialog, as the App Store's where no scene of the app is in front.

NotSupportedException

The store needs a desktop window, which the UI context is not, as the Microsoft Store's.

OperationCanceledException

cancellationToken was canceled.

InvalidOperationException

The window has no native handle, or the Store could not show its dialog.