18 lines
398 B
C#
18 lines
398 B
C#
namespace PS.IPAM.Cmdlets;
|
|
|
|
using System.Management.Automation;
|
|
using PS.IPAM.Helpers;
|
|
|
|
/// <summary>
|
|
/// Closes the current phpIPAM API session.
|
|
/// </summary>
|
|
[Cmdlet(VerbsCommon.Close, "Session")]
|
|
public class CloseSessionCmdlet : BaseCmdlet
|
|
{
|
|
protected override void ProcessRecord()
|
|
{
|
|
SessionManager.CloseSession();
|
|
WriteVerbose("Session closed successfully.");
|
|
}
|
|
}
|