本文整理汇总了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 {}
}
示例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 {}
}
示例3: BeforeWriteCollection
protected override void BeforeWriteCollection(PSCmdletBase cmdlet, IList outputObjectCollection)
{
}
示例4: AfterWriteSingleObject
protected override void AfterWriteSingleObject(PSCmdletBase cmdlet, object outputObject)
{
}
示例5: AfterWriteCollection
protected override void AfterWriteCollection(PSCmdletBase cmdlet, ArrayList outputObjectCollection)
{
}
示例6: WriteSingleObject
protected override void WriteSingleObject(PSCmdletBase cmdlet, object outputObject)
{
try {
base.WriteObject(outputObject);
}
catch {}
}
示例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 {}
}
}
示例8: WriteErrorMethod045OnErrorScreenshot
protected override void WriteErrorMethod045OnErrorScreenshot(PSCmdletBase cmdlet)
{
WriteVerbose(this, "WriteErrorMethod045OnErrorScreenshot Data");
}
示例9: WriteErrorMethod070Report
protected override void WriteErrorMethod070Report(PSCmdletBase cmdlet)
{
throw new NotImplementedException();
}
示例10: WriteErrorMethod060OutputError
protected override void WriteErrorMethod060OutputError(PSCmdletBase cmdlet, ErrorRecord errorRecord, bool terminating)
{
throw new NotImplementedException();
}
示例11: WriteErrorMethod050OnErrorDelay
protected override void WriteErrorMethod050OnErrorDelay(PSCmdletBase cmdlet)
{
throw new NotImplementedException();
}
示例12: WriteErrorMethod045OnErrorScreenshot
protected override void WriteErrorMethod045OnErrorScreenshot(PSCmdletBase cmdlet)
{
throw new NotImplementedException();
}
示例13: WriteErrorMethod040AddErrorToErrorList
protected override void WriteErrorMethod040AddErrorToErrorList(PSCmdletBase cmdlet, ErrorRecord errorRecord)
{
throw new NotImplementedException();
}
示例14: WriteErrorMethod030ChangeTimeoutSettings
protected override void WriteErrorMethod030ChangeTimeoutSettings(PSCmdletBase cmdlet, bool terminating)
{
throw new NotImplementedException();
}
示例15: WriteErrorMethod020SetTestResult
protected override void WriteErrorMethod020SetTestResult(PSCmdletBase cmdlet, ErrorRecord errorRecord)
{
throw new NotImplementedException();
}