本文整理匯總了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);
}