Add IsExternalInit type, BaseCmdlet class, and SessionStatus enum
All checks were successful
CI/CD Pipeline / Build and Test (push) Successful in 1m3s
CI/CD Pipeline / Package Module (push) Has been skipped
CI/CD Pipeline / Create Release (push) Has been skipped
CI/CD Pipeline / Build and Test (pull_request) Successful in 1m7s
CI/CD Pipeline / Package Module (pull_request) Has been skipped
CI/CD Pipeline / Create Release (pull_request) Has been skipped

Introduce the IsExternalInit type for C# 9 records compatibility in .NET Standard 2.1. Implement BaseCmdlet class to provide common functionality for cmdlets, including methods for writing results and handling async operations. Add SessionStatus enum to represent API session states.
This commit is contained in:
2026-01-19 17:25:41 +03:00
parent f56784f2aa
commit bc86ad2965
3 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
namespace PS.IPAM;
/// <summary>
/// Represents the current status of an API session.
/// </summary>
public enum SessionStatus
{
/// <summary>
/// No session exists or no token is available.
/// </summary>
NoSession,
/// <summary>
/// The session token has expired.
/// </summary>
Expired,
/// <summary>
/// The session is valid and ready for use.
/// </summary>
Valid
}