Class WorkerResult<T>
Encapsulates the result of a background working process.
Namespace: Sartorius.SAF.Threading
Assembly: Sartorius.SAF.dll
Syntax
public class WorkerResult<T>
Type Parameters
| Name | Description |
|---|---|
| T | The result type. |
Constructors
View SourceWorkerResult(T, Exception)
Initializes a new instance of the WorkerResult class.
Declaration
public WorkerResult(T result, Exception exception = null)
Parameters
| Type | Name | Description |
|---|---|---|
| T | result | The result. |
| Exception | exception | The occured exception. |
Properties
View SourceException
Gets the Exception.
Declaration
public Exception Exception { get; }
Property Value
| Type | Description |
|---|---|
| Exception |
Result
Gets the result.
Declaration
public T Result { get; }
Property Value
| Type | Description |
|---|---|
| T |