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


C# ComputeProvider.WaitForServerActive方法代碼示例

本文整理匯總了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);
        }
開發者ID:jmeridth,項目名稱:openstack.net,代碼行數:9,代碼來源:ComputeTests.cs

示例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);
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:9,代碼來源:ComputeTests.cs

示例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);
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:10,代碼來源:ComputeTests.cs

示例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);
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:9,代碼來源:ComputeTests.cs

示例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);
        }
開發者ID:bretmcg,項目名稱:openstack.net,代碼行數:9,代碼來源:ComputeTests.cs


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