Class AsyncThunkCreatorBase<TArg, TPayload>
The async thunk action creator.
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public abstract class AsyncThunkCreatorBase<TArg, TPayload>
Type Parameters
Name | Description |
---|---|
TArg | The type of the thunk argument. |
TPayload | The type of the payload. |
Constructors
AsyncThunkCreatorBase(string, AsyncThunk<TArg, TPayload>, AsyncThunkOptions<TArg>)
Creates a new async thunk action creator.
Declaration
protected AsyncThunkCreatorBase(string type, AsyncThunk<TArg, TPayload> runner, AsyncThunkOptions<TArg> options = null)
Parameters
Type | Name | Description |
---|---|---|
string | type | The type of the action. |
Async |
runner | The async thunk runner. |
Async |
options | The options for the async thunk. |
Exceptions
Type | Condition |
---|---|
Argument |
Thrown when the type or runner is null or empty. |
Properties
fulfilled
The action creator for the fulfilled action.
Declaration
public FulfilledActionCreator<TPayload> fulfilled { get; }
Property Value
Type | Description |
---|---|
Fulfilled |
pending
The action creator for the pending action.
Declaration
public PendingActionCreator<TPayload> pending { get; }
Property Value
Type | Description |
---|---|
Pending |
rejected
The action creator for the rejected action.
Declaration
public RejectedActionCreator<TPayload> rejected { get; }
Property Value
Type | Description |
---|---|
Rejected |
type
The type of the action.
Declaration
public string type { get; }
Property Value
Type | Description |
---|---|
string |