本文整理汇总了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;未经允许,请勿转载。 |
请发表评论