Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module InternalEndpointUsed - converting to private binary command, W…
…rite-TssInternalNote
- Loading branch information
Showing
9 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/Thycotic.SecretServer/cmdlets/private/WriteTssInternalNoteCmdlet.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Management.Automation; | ||
using System.Management.Automation.Runspaces; | ||
|
||
namespace Thycotic.SecretServer.Cmdlets | ||
{ | ||
/// <summary> | ||
/// <para type="synopsis">Outputs verbose statement for commands using internal endpoints</para> | ||
/// <para type="description">Outputs verbose statement for commands using internal endpoints</para> | ||
/// </summary> | ||
[Cmdlet(VerbsCommunications.Write, "TssInternalNote")] | ||
public class WriteInternalNote : PSCmdlet | ||
{ | ||
///<summary> | ||
///<para type="description">MyInvocation object from the calling command</para> | ||
///</summary> | ||
[Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true)] | ||
public InvocationInfo Invocation {get; set;} | ||
|
||
protected override void ProcessRecord() | ||
{ | ||
var cmdName = Invocation.MyCommand; | ||
WriteVerbose("[" + cmdName + "] calling an internal endpoint."); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.