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


C# PSTestLib.PSCmdletBase類代碼示例

本文整理匯總了C#中PSTestLib.PSCmdletBase的典型用法代碼示例。如果您正苦於以下問題:C# PSCmdletBase類的具體用法?C# PSCmdletBase怎麽用?C# PSCmdletBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PSCmdletBase類屬於PSTestLib命名空間,在下文中一共展示了PSCmdletBase類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: WriteSingleObject

        protected override void WriteSingleObject(PSCmdletBase cmdlet, object outputObject)
        {
            //WriteVerbose(this, " ExampleCustomTestReport");
            try {
                base.WriteObject(outputObject);
                
//                if (Preferences.AutoLog) {
//                    
//                    string reportString =
//                        CmdletSignature(((CommonCmdletBase)cmdlet));
//                    
//                    reportString +=
//                        
//                    
//                    this.WriteLog(LogLevels.Info, reportString);
//                }
            }
            catch {}
        }
開發者ID:MatkoHanus,項目名稱:STUPS,代碼行數:19,代碼來源:CommonCmdletBase.cs

示例2: WriteSingleObject

 protected override void WriteSingleObject(PSCmdletBase cmdlet, object outputObject)
 {
     //WriteVerbose(this, " TAMS");
     try {
         base.WriteObject(outputObject);
         
         if (Preferences.AutoLog) {
             
             string reportString =
                 CmdletSignature(((CommonCmdletBase)cmdlet));
             
             reportString +=
                 outputObject.ToString();
             
             this.WriteLog(LogLevels.Info, reportString);
         }
     }
     catch {}
 }
開發者ID:MatkoHanus,項目名稱:STUPS,代碼行數:19,代碼來源:CommonCmdletBase.cs

示例3: BeforeWriteCollection

 protected override void BeforeWriteCollection(PSCmdletBase cmdlet, IList outputObjectCollection)
 {
 }
開發者ID:uiatester,項目名稱:STUPS,代碼行數:3,代碼來源:CommonCmdletBase.cs

示例4: AfterWriteSingleObject

 protected override void AfterWriteSingleObject(PSCmdletBase cmdlet, object outputObject)
 {
 }
開發者ID:uiatester,項目名稱:STUPS,代碼行數:3,代碼來源:CommonCmdletBase.cs

示例5: AfterWriteCollection

 protected override void AfterWriteCollection(PSCmdletBase cmdlet, ArrayList outputObjectCollection)
 {
 }
開發者ID:uiatester,項目名稱:STUPS,代碼行數:3,代碼來源:CommonCmdletBase.cs

示例6: WriteSingleObject

 protected override void WriteSingleObject(PSCmdletBase cmdlet, object outputObject)
 {
     try {
         base.WriteObject(outputObject);
     }
     catch {}
 }
開發者ID:uiatester,項目名稱:STUPS,代碼行數:7,代碼來源:CommonCmdletBase.cs

示例7: WriteErrorMethod060OutputError

 protected override void WriteErrorMethod060OutputError(PSCmdletBase cmdlet, ErrorRecord errorRecord, bool terminating)
 {
     if (terminating) {
         this.WriteVerbose(this, "terminating error !!!");
         try {
             ThrowTerminatingError(errorRecord);
         }
         catch {}
     } else {
         this.WriteVerbose(this, "regular error !!!");
         try {
             WriteError(errorRecord);
         }
         catch {}
     }
 }
開發者ID:uiatester,項目名稱:STUPS,代碼行數:16,代碼來源:CommonCmdletBase.cs

示例8: WriteErrorMethod045OnErrorScreenshot

 protected override void WriteErrorMethod045OnErrorScreenshot(PSCmdletBase cmdlet)
 {
     WriteVerbose(this, "WriteErrorMethod045OnErrorScreenshot Data");
 }
開發者ID:uiatester,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例9: WriteErrorMethod070Report

 protected override void WriteErrorMethod070Report(PSCmdletBase cmdlet)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例10: WriteErrorMethod060OutputError

 protected override void WriteErrorMethod060OutputError(PSCmdletBase cmdlet, ErrorRecord errorRecord, bool terminating)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例11: WriteErrorMethod050OnErrorDelay

 protected override void WriteErrorMethod050OnErrorDelay(PSCmdletBase cmdlet)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例12: WriteErrorMethod045OnErrorScreenshot

 protected override void WriteErrorMethod045OnErrorScreenshot(PSCmdletBase cmdlet)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例13: WriteErrorMethod040AddErrorToErrorList

 protected override void WriteErrorMethod040AddErrorToErrorList(PSCmdletBase cmdlet, ErrorRecord errorRecord)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例14: WriteErrorMethod030ChangeTimeoutSettings

 protected override void WriteErrorMethod030ChangeTimeoutSettings(PSCmdletBase cmdlet, bool terminating)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs

示例15: WriteErrorMethod020SetTestResult

 protected override void WriteErrorMethod020SetTestResult(PSCmdletBase cmdlet, ErrorRecord errorRecord)
 {
     throw new NotImplementedException();
 }
開發者ID:krukovskiy,項目名稱:STUPS,代碼行數:4,代碼來源:CommonCmdletBase.cs


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