Class WorkerResult<T>
Encapsulates the result of a background working process.
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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. |
System.Exception | exception | The occured exception. |
Properties
View SourceException
Gets the Exception.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |
Result
Gets the result.
Declaration
public T Result { get; }
Property Value
Type | Description |
---|---|
T |