Table of Contents

Documentation / dialogs/IDialogMediatorHandler

dialogs/IDialogMediatorHandler

Classes

abstract IDialogMediatorHandler

Defines a system that can handle dialog requests and responses.

Extended by

Constructors

new IDialogMediatorHandler()

new IDialogMediatorHandler(): IDialogMediatorHandler

Returns

IDialogMediatorHandler

Methods

getRegistration()

abstract getRegistration<TRequest, TResponse>(requestType): DialogRegistration<TRequest, TResponse>

Get the registration for a given request type.

Type Parameters

TRequest extends object

TResponse

Parameters
requestType

Constructor<TRequest>

Type of request.

Returns

DialogRegistration<TRequest, TResponse>

The registration for the request type.

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogMediatorHandler.ts:38

hasSubscriber()

abstract hasSubscriber<TRequest>(requestType): boolean

Check if there is a subscriber for a given request type.

Type Parameters

TRequest extends object

Parameters
requestType

Constructor<TRequest>

Type of request.

Returns

boolean

True if there is a subscriber, false otherwise.

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogMediatorHandler.ts:25

show()

abstract show<TRequest, TResponse>(request): Promise<TResponse>

Show a dialog based on a request.

Type Parameters

TRequest extends object

TResponse

Parameters
request

TRequest

An instance of the dialog request.

Returns

Promise<TResponse>

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogMediatorHandler.ts:31

subscribe()

abstract subscribe<TRequest, TResponse>(requestType, requester, resolver): void

Subscribes to a request type.

Type Parameters

TRequest extends object

TResponse

Parameters
requestType

Constructor<TRequest>

Type of request.

requester

DialogRequest<TRequest, TResponse>

The delegate that will be called when a request is made.

resolver

DialogResolver<TResponse>

The delegate that will be called when dialog is typically closed and response is resolved.

Returns

void

Defined in

Source/JavaScript/Applications.React.MVVM/dialogs/IDialogMediatorHandler.ts:18