Debugging SharePoint Apps That Are Hosted In Windows Azure Web Sites

Debugging SharePoint Apps That Are Hosted In Windows Azure Web Sites.

Advertisements

7 Ways to start a task in .NET C#

About Task.Start

Exercises in .NET with Andras Nemes

New threads can be started using the Task Programming Library in .NET in – at last – 5 different ways.

You’ll first need to add the following using statement:

The most direct way

Using Action

…where PrintMessage is a method:

Using a delegate

Lambda and named method

Lambda and anonymous method

Using Task.Run in .NET4.5

Using Task.FromResult in .NET4.5 to return a result from a Task

You cannot start a task that has already completed. If you need to run the same task you’ll need to initialise it again.

View the list of posts on the Task Parallel Library here.

View original post