All files
[pithos-ms-client] / trunk / Libraries / ParallelExtensionsExtras / TaskSchedulers / OrderedTaskScheduler.cs
1 //--------------------------------------------------------------------------
2 // 
3 //  Copyright (c) Microsoft Corporation.  All rights reserved. 
4 // 
5 //  File: OrderedTaskScheduler.cs
6 //
7 //--------------------------------------------------------------------------
8
9 namespace System.Threading.Tasks.Schedulers
10 {
11     /// <summary>
12     /// Provides a task scheduler that ensures only one task is executing at a time, and that tasks
13     /// execute in the order that they were queued.
14     /// </summary>
15     public sealed class OrderedTaskScheduler : LimitedConcurrencyLevelTaskScheduler
16     {
17         /// <summary>Initializes an instance of the OrderedTaskScheduler class.</summary>
18         public OrderedTaskScheduler() : base(1) { }
19     }
20 }