当前位置: 首页>>代码示例>>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;未经允许,请勿转载。