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