本文整理汇总了C#中System.Threading.Tasks.Tests.WaitAllAny.TaskWaitAllAnyTest类的典型用法代码示例。如果您正苦于以下问题:C# TaskWaitAllAnyTest类的具体用法?C# TaskWaitAllAnyTest怎么用?C# TaskWaitAllAnyTest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TaskWaitAllAnyTest类属于System.Threading.Tasks.Tests.WaitAllAny命名空间,在下文中一共展示了TaskWaitAllAnyTest类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
示例2: 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();
}
示例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();
}
示例4: 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();
}
示例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();
}
示例6: 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();
}
示例7: 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();
}
示例8: 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();
}
示例9: 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();
}
示例10: 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();
}