[This is preliminary documentation and is subject to change.]

Helper methods for creating completed or faulted Tasks.

Inheritance Hierarchy

System.ObjectSystem.ObjectSystem::Object
  Simple.Web.Helpers.TaskHelperSimple.Web.Helpers.TaskHelperSimple::Web::Helpers::TaskHelper

Namespace: Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public class TaskHelper

VB

Public Class TaskHelper

C++

public ref class TaskHelper

The TaskHelperTaskHelperTaskHelper type exposes the following members.

Constructors

Name Description
TaskHelper()New()TaskHelper() Initializes a new instance of the TaskHelperTaskHelperTaskHelper class.
Top

Methods

Name Description
  Completed()Completed()Completed() Creates a completed Task with the specified Result value.
  Completed<T>(T)Completed(Of T)(T)Completed<T>(T) Creates a completed Task with the specified Result value.
Equals(object)Equals(Object)Equals(Object^) Determines whether the specified Object is equal to the current Object. (Inherited from ObjectObjectObject.)
  Exception(Exception)Exception(Exception)Exception(Exception^) Creates a faulted Task.
Finalize()Finalize()Finalize() Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ObjectObjectObject.)
GetHashCode()GetHashCode()GetHashCode() Serves as a hash function for a particular type. (Inherited from ObjectObjectObject.)
GetType()GetType()GetType() Gets the Type of the current instance. (Inherited from ObjectObjectObject.)
MemberwiseClone()MemberwiseClone()MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from ObjectObjectObject.)
ToString()ToString()ToString() Returns a string that represents the current object. (Inherited from ObjectObjectObject.)
Top

See Also

Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers Namespace