本文整理汇总了C#中net.openstack.Providers.Rackspace.ComputeProvider.WaitForServerActive方法的典型用法代码示例。如果您正苦于以下问题:C# ComputeProvider.WaitForServerActive方法的具体用法?C# ComputeProvider.WaitForServerActive怎么用?C# ComputeProvider.WaitForServerActive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.openstack.Providers.Rackspace.ComputeProvider
的用法示例。
在下文中一共展示了ComputeProvider.WaitForServerActive方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Test003_Should_Wait_Until_Server_Becomes_Active_Or_A_Maximum_Of_10_Minutes
public void Test003_Should_Wait_Until_Server_Becomes_Active_Or_A_Maximum_Of_10_Minutes()
{
var provider = new net.openstack.Providers.Rackspace.ComputeProvider();
var serverDetails = provider.WaitForServerActive(_testIdentity, _testServer.Id);
Assert.IsNotNull(serverDetails);
Assert.AreEqual("ACTIVE", serverDetails.Status);
}
示例2: Should_Wait_For_Server_To_Go_Into_Active_Status_After_UnRescue
public void Should_Wait_For_Server_To_Go_Into_Active_Status_After_UnRescue()
{
Assert.IsNotNull(_unRescueDetails);
var provider = new ComputeProvider(_testIdentity);
var details = provider.WaitForServerActive(_testServer.Id);
Assert.IsNotNull(details);
}
示例3: Should_Wait_For_Server_To_Go_Into_Active_Status_After_Confirm_Resize
public void Should_Wait_For_Server_To_Go_Into_Active_Status_After_Confirm_Resize()
{
Assert.IsTrue(_confirmResizeSuccess);
var provider = new ComputeProvider(_testIdentity);
var details = provider.WaitForServerActive(_testServer.Id);
Assert.IsNotNull(details);
}
示例4: Should_Wait_For_Server_To_Be_In_Active_State_After_Reverting_Resize
public void Should_Wait_For_Server_To_Be_In_Active_State_After_Reverting_Resize()
{
Assert.IsTrue(_revertResizeSuccess);
var provider = new ComputeProvider(_testIdentity);
var details = provider.WaitForServerActive(_testServer.Id);
Assert.IsNotNull(details);
}
示例5: Should_Wait_Until_Server_Becomes_Active_Or_A_Maximum_Of_10_Minutes_For_Server2
public void Should_Wait_Until_Server_Becomes_Active_Or_A_Maximum_Of_10_Minutes_For_Server2()
{
var provider = new ComputeProvider(_testIdentity);
var serverDetails = provider.WaitForServerActive(_testServer2.Id);
Assert.IsNotNull(serverDetails);
Assert.AreEqual("ACTIVE", serverDetails.Status);
}