diff --git a/RDSService/RDSService.csproj b/RDSService/RDSService.csproj index 7ed6d0a..5aece84 100644 --- a/RDSService/RDSService.csproj +++ b/RDSService/RDSService.csproj @@ -4,8 +4,8 @@ net7.0 enable enable - 1.0.0.1 - 1.0.0.1 + 1.0.0.2 + 1.0.0.2 default diff --git a/RDSServiceClient/RDSServiceClient.csproj b/RDSServiceClient/RDSServiceClient.csproj index 185ad86..21d4816 100644 --- a/RDSServiceClient/RDSServiceClient.csproj +++ b/RDSServiceClient/RDSServiceClient.csproj @@ -5,6 +5,13 @@ enable default net7.0 + RDSServiceClient + Client for RDSService running on a remote RDS connection broker + https://github.com/kyle079/RDSService + https://github.com/kyle079/RDSService + 1.0.2 + 1.0.2 + 1.0.2 diff --git a/RDSServiceClient/RdsServiceClientOptions.cs b/RDSServiceClient/RdsServiceClientOptions.cs index 392fcca..5e3f061 100644 --- a/RDSServiceClient/RdsServiceClientOptions.cs +++ b/RDSServiceClient/RdsServiceClientOptions.cs @@ -1,7 +1,9 @@ -namespace RDSServiceClient; +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. +namespace RDSServiceClient; public class RdsServiceClientOptions { + public RdsServiceClientOptions() { } public RdsServiceClientOptions(string baseUrl, string disconnectUrl = "DisconnectSession", string logoffUrl = "LogOffSession", diff --git a/RDSServiceLibrary/Models/RdsSession.cs b/RDSServiceLibrary/Models/RdsSession.cs index c706173..2f84ec5 100644 --- a/RDSServiceLibrary/Models/RdsSession.cs +++ b/RDSServiceLibrary/Models/RdsSession.cs @@ -1,4 +1,5 @@ using System.Management.Automation; +using System.Text.Json.Serialization; namespace RDSServiceLibrary.Models; @@ -13,9 +14,14 @@ public RdsSession(PSObject psObject) UnifiedSessionId = psObject.Properties["UnifiedSessionId"].Value.ToString() ?? string.Empty; } + [JsonPropertyName("collectionName")] public string CollectionName { get; set; } + [JsonPropertyName("domainName")] public string DomainName { get; set; } + [JsonPropertyName("userName")] public string UserName { get; set; } + [JsonPropertyName("hostServer")] public string HostServer { get; set; } + [JsonPropertyName("unifiedSessionId")] public string UnifiedSessionId { get; set; } } \ No newline at end of file diff --git a/RDSServiceLibrary/RDSServiceLibrary.csproj b/RDSServiceLibrary/RDSServiceLibrary.csproj index c40335b..d3f2b03 100644 --- a/RDSServiceLibrary/RDSServiceLibrary.csproj +++ b/RDSServiceLibrary/RDSServiceLibrary.csproj @@ -5,6 +5,9 @@ enable default net7.0 + 1.0.2 + 1.0.2 + 1.0.2