當前位置: 首頁>>代碼示例>>C#>>正文


C# WaitAllAny.TaskInfo類代碼示例

本文整理匯總了C#中System.Threading.Tasks.Tests.WaitAllAny.TaskInfo的典型用法代碼示例。如果您正苦於以下問題:C# TaskInfo類的具體用法?C# TaskInfo怎麽用?C# TaskInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TaskInfo類屬於System.Threading.Tasks.Tests.WaitAllAny命名空間,在下文中一共展示了TaskInfo類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: TestParameters_WaitAllAny

 public TestParameters_WaitAllAny(API api, int waitTime, WaitBy waitBy, TaskInfo[] allTasks)
 {
     Api = api;
     WaitBy = waitBy;
     WaitTime = waitTime;
     AllTaskInfos = allTasks;
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:7,代碼來源:TaskWaitAllAnyTest.cs

示例2: TaskWaitAllAny41

 public static void TaskWaitAllAny41()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node2 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo[] allTasks = new[] { node1, node2, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, 0, WaitBy.TimeSpan, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:9,代碼來源:TaskWaitAllAnyTest.cs

示例3: TaskWaitAllAny40

 public static void TaskWaitAllAny40()
 {
     TaskInfo[] allTasks = new TaskInfo[0];
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, 0, WaitBy.TimeSpan, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:7,代碼來源:TaskWaitAllAnyTest.cs

示例4: TaskWaitAllAny39

 public static void TaskWaitAllAny39()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node2 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node3 = new TaskInfo(WorkloadType.Light);
     TaskInfo node4 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node5 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node6 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node7 = new TaskInfo(WorkloadType.Medium);
     TaskInfo[] allTasks = new[] { node1, node2, node3, node4, node5, node6, node7, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, 0, WaitBy.Millisecond, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:14,代碼來源:TaskWaitAllAnyTest.cs

示例5: TaskWaitAllAny38

 public static void TaskWaitAllAny38()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.Medium);
     TaskInfo[] allTasks = new[] { node1, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, 0, WaitBy.Millisecond, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:8,代碼來源:TaskWaitAllAnyTest.cs

示例6: TaskWaitAllAny34

 public static void TaskWaitAllAny34()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node2 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo[] allTasks = new[] { node1, node2, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, -1, WaitBy.None, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:9,代碼來源:TaskWaitAllAnyTest.cs

示例7: TaskWaitAllAny32

 public static void TaskWaitAllAny32()
 {
     TaskInfo[] allTasks = new TaskInfo[0];
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, -1, WaitBy.None, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:7,代碼來源:TaskWaitAllAnyTest.cs

示例8: TaskWaitAllAny31

 public static void TaskWaitAllAny31()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node2 = new TaskInfo(WorkloadType.Light);
     TaskInfo node3 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node4 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node5 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node6 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node7 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node8 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node9 = new TaskInfo(WorkloadType.Light);
     TaskInfo node10 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node11 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node12 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node13 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node14 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node15 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node16 = new TaskInfo(WorkloadType.Light);
     TaskInfo node17 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node18 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node19 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node20 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node21 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node22 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node23 = new TaskInfo(WorkloadType.Light);
     TaskInfo node24 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node25 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node26 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node27 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node28 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node29 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node30 = new TaskInfo(WorkloadType.Light);
     TaskInfo node31 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node32 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node33 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node34 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node35 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node36 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node37 = new TaskInfo(WorkloadType.Light);
     TaskInfo node38 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node39 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node40 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node41 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node42 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node43 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node44 = new TaskInfo(WorkloadType.Light);
     TaskInfo node45 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node46 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node47 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node48 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node49 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node50 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node51 = new TaskInfo(WorkloadType.Light);
     TaskInfo node52 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node53 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node54 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node55 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node56 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node57 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node58 = new TaskInfo(WorkloadType.Light);
     TaskInfo node59 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node60 = new TaskInfo(WorkloadType.Heavy);
     TaskInfo node61 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node62 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo node63 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node64 = new TaskInfo(WorkloadType.Medium);
     TaskInfo node65 = new TaskInfo(WorkloadType.Light);
     TaskInfo node66 = new TaskInfo(WorkloadType.VeryLight);
     TaskInfo[] allTasks = new[] { node1, node2, node3, node4, node5, node6, node7, node8, node9, node10, node11, node12, node13, node14, node15, node16, node17, node18, node19, node20, node21, node22, node23, node24, node25, node26, node27, node28, node29, node30, node31, node32, node33, node34, node35, node36, node37, node38, node39, node40, node41, node42, node43, node44, node45, node46, node47, node48, node49, node50, node51, node52, node53, node54, node55, node56, node57, node58, node59, node60, node61, node62, node63, node64, node65, node66, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAny, -1, WaitBy.Millisecond, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:73,代碼來源:TaskWaitAllAnyTest.cs

示例9: TaskWaitAllAny27

 public static void TaskWaitAllAny27()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.Light);
     TaskInfo[] allTasks = new[] { node1, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAll, 7, WaitBy.TimeSpan, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:8,代碼來源:TaskWaitAllAnyTest.cs

示例10: TaskWaitAllAny26

 public static void TaskWaitAllAny26()
 {
     TaskInfo[] allTasks = new TaskInfo[0];
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAll, 7, WaitBy.Millisecond, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:7,代碼來源:TaskWaitAllAnyTest.cs

示例11: TaskWaitAllAny12

 public static void TaskWaitAllAny12()
 {
     TaskInfo node1 = new TaskInfo(WorkloadType.VeryHeavy);
     TaskInfo node2 = new TaskInfo(WorkloadType.Light);
     TaskInfo[] allTasks = new[] { node1, node2, };
     TestParameters_WaitAllAny parameters = new TestParameters_WaitAllAny(API.WaitAll, 197, WaitBy.Millisecond, allTasks);
     TaskWaitAllAnyTest test = new TaskWaitAllAnyTest(parameters);
     test.RealRun();
 }
開發者ID:ESgarbi,項目名稱:corefx,代碼行數:9,代碼來源:TaskWaitAllAnyTest.cs


注:本文中的System.Threading.Tasks.Tests.WaitAllAny.TaskInfo類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。