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
Methods
AddEventHandlerAsync(string, Action)
Adds a handler to an event.
public static Task AddEventHandlerAsync(string @event, Action handler)
Parameters
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
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
Returns
- Task
A task that represents the asynchronous operation.
Type Parameters
TThe 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
Returns
- Task
A task that represents the asynchronous operation.
Type Parameters
TThe type of the handler arguments.
ClearEventHandlers(string)
Clears all handlers for an event.
public static void ClearEventHandlers(string @event)
Parameters
eventstringThe event name.
InvokeAsync(string)
Invokes a command.
public static Task InvokeAsync(string cmd)
Parameters
cmdstringThe 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
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
cmdstringThe command name.
Returns
- Task<T>
A task that represents the asynchronous operation. The task result contains the result of the command.
Type Parameters
TThe type of the result.
InvokeAsync<T>(string, object)
Invokes a command.
public static Task<T> InvokeAsync<T>(string cmd, object args)
Parameters
Returns
- Task<T>
A task that represents the asynchronous operation. The task result contains the result of the command.
Type Parameters
TThe type of the result.
RemoveEventHandler(string, Action)
Removes a handler to an event.
public static void RemoveEventHandler(string @event, Action handler)
Parameters
RemoveEventHandler(string, Func<Task>)
Removes a handler to an event.
public static void RemoveEventHandler(string @event, Func<Task> handler)
Parameters
RemoveEventHandler<T>(string, Action<T>)
Removes a handler to an event.
public static void RemoveEventHandler<T>(string @event, Action<T> handler)
Parameters
Type Parameters
TThe 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
Type Parameters
TThe type of the handler arguments.