Table of Contents

Class HybridApplication

Namespace
GroupeIsa.Neos.Designer.UIAbstractions.SystemEnvironment
Assembly
GroupeIsa.Neos.Designer.UIAbstractions.dll

Hybrid application methods.

[ExcludeFromCodeCoverage]
public static class HybridApplication
Inheritance
HybridApplication
Inherited Members

Properties

IsActive

Gets a value indicating whether the application is in a hybrid application.

public static bool IsActive { get; }

Property Value

bool

Methods

AddEventHandlerAsync(string, Action)

Adds a handler to an event.

public static Task AddEventHandlerAsync(string @event, Action handler)

Parameters

event string

The event name.

handler Action

The handler to add.

Returns

Task

A task that represents the asynchronous operation.

AddEventHandlerAsync(string, Func<Task>)

Adds a handler to an event.

public static Task AddEventHandlerAsync(string @event, Func<Task> handler)

Parameters

event string

The event name.

handler Func<Task>

The handler to add.

Returns

Task

A task that represents the asynchronous operation.

AddEventHandlerAsync<T>(string, Action<T>)

Adds a handler to an event.

public static Task AddEventHandlerAsync<T>(string @event, Action<T> handler)

Parameters

event string

The event name.

handler Action<T>

The handler to add.

Returns

Task

A task that represents the asynchronous operation.

Type Parameters

T

The type of the handler arguments.

AddEventHandlerAsync<T>(string, Func<T, Task>)

Adds a handler to an event.

public static Task AddEventHandlerAsync<T>(string @event, Func<T, Task> handler)

Parameters

event string

The event name.

handler Func<T, Task>

The handler to add.

Returns

Task

A task that represents the asynchronous operation.

Type Parameters

T

The type of the handler arguments.

ClearEventHandlers(string)

Clears all handlers for an event.

public static void ClearEventHandlers(string @event)

Parameters

event string

The event name.

InvokeAsync(string)

Invokes a command.

public static Task InvokeAsync(string cmd)

Parameters

cmd string

The command name.

Returns

Task

A task that represents the asynchronous operation. The task result contains the result of the command.

InvokeAsync(string, object)

Invokes a command.

public static Task InvokeAsync(string cmd, object args)

Parameters

cmd string

The command name.

args object

The optional arguments to pass to the command.

Returns

Task

A task that represents the asynchronous operation. The task result contains the result of the command.

InvokeAsync<T>(string)

Invokes a command.

public static Task<T> InvokeAsync<T>(string cmd)

Parameters

cmd string

The command name.

Returns

Task<T>

A task that represents the asynchronous operation. The task result contains the result of the command.

Type Parameters

T

The type of the result.

InvokeAsync<T>(string, object)

Invokes a command.

public static Task<T> InvokeAsync<T>(string cmd, object args)

Parameters

cmd string

The command name.

args object

The optional arguments to pass to the command.

Returns

Task<T>

A task that represents the asynchronous operation. The task result contains the result of the command.

Type Parameters

T

The type of the result.

RemoveEventHandler(string, Action)

Removes a handler to an event.

public static void RemoveEventHandler(string @event, Action handler)

Parameters

event string

The event name.

handler Action

The handler to remove.

RemoveEventHandler(string, Func<Task>)

Removes a handler to an event.

public static void RemoveEventHandler(string @event, Func<Task> handler)

Parameters

event string

The event name.

handler Func<Task>

The handler to remove.

RemoveEventHandler<T>(string, Action<T>)

Removes a handler to an event.

public static void RemoveEventHandler<T>(string @event, Action<T> handler)

Parameters

event string

The event name.

handler Action<T>

The handler to remove.

Type Parameters

T

The type of the handler arguments.

RemoveEventHandler<T>(string, Func<T, Task>)

Removes a handler to an event.

public static void RemoveEventHandler<T>(string @event, Func<T, Task> handler)

Parameters

event string

The event name.

handler Func<T, Task>

The handler to remove.

Type Parameters

T

The type of the handler arguments.