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. |
| AsyncThunk<TArg, TPayload> | runner | The async thunk runner. |
| AsyncThunkOptions<TArg> | options | The options for the async thunk. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | 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 |
|---|---|
| FulfilledActionCreator<TPayload> |
pending
The action creator for the pending action.
Declaration
public PendingActionCreator<TPayload> pending { get; }
Property Value
| Type | Description |
|---|---|
| PendingActionCreator<TPayload> |
rejected
The action creator for the rejected action.
Declaration
public RejectedActionCreator<TPayload> rejected { get; }
Property Value
| Type | Description |
|---|---|
| RejectedActionCreator<TPayload> |
type
The type of the action.
Declaration
public string type { get; }
Property Value
| Type | Description |
|---|---|
| string |