Interface ITaskResult
Type erased interface for TaskResult<T>.
Namespace: Snowflake.Installation
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface ITaskResult
Properties
Description
A description for the execution of the task result. Since this can differ depending on the input
Declaration
ValueTask<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask<System.String> |
Error
Enumerating or awaiting AsyncInstallTaskEnumerable<T> or AsyncInstallTask<T> must not throw. Hence, exceptions are wrapped during the resolution of the asynchronous task. If an error occurred, it is set here.
Declaration
Exception Error { get; }
Property Value
| Type | Description |
|---|---|
| System.Exception |
Name
A string identifier for the result.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetAwaiter()
Gets the awaiter for this result. ITaskResult must be context free, so this awaiter is always configured to not continue on captured context.
Declaration
ConfiguredTaskAwaitable<object>.ConfiguredTaskAwaiter GetAwaiter()
Returns
| Type | Description |
|---|---|
| System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter<> | The awaiter for this ITaskResult |