Class ActionCreator<TPayload>
An action creator with a payload.
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: solution.dll
Syntax
public class ActionCreator<TPayload> : ActionCreator
Type Parameters
Name | Description |
---|---|
TPayload | The type of the payload. |
Constructors
ActionCreator(string)
Creates a new action creator.
Declaration
public ActionCreator(string type)
Parameters
Type | Name | Description |
---|---|---|
string | type | The type of the action. |
Methods
Invoke(TPayload)
Create the action to dispatch.
Declaration
public Action<TPayload> Invoke(TPayload payload)
Parameters
Type | Name | Description |
---|---|---|
TPayload | payload | The payload of the action. |
Returns
Type | Description |
---|---|
Action<TPayload> | The action to dispatch. |