Skip to content

Commit

Permalink
Changes to RdsServiceClientOptions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemiller-rum committed Feb 6, 2024
1 parent 9a9fcf4 commit a90211c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RDSService/RDSService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<FileVersion>1.0.0.1</FileVersion>
<AssemblyVersion>1.0.0.2</AssemblyVersion>
<FileVersion>1.0.0.2</FileVersion>
<LangVersion>default</LangVersion>
</PropertyGroup>

Expand Down
7 changes: 7 additions & 0 deletions RDSServiceClient/RDSServiceClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
<Nullable>enable</Nullable>
<LangVersion>default</LangVersion>
<TargetFramework>net7.0</TargetFramework>
<Title>RDSServiceClient</Title>
<Description>Client for RDSService running on a remote RDS connection broker</Description>
<PackageProjectUrl>https://github.com/kyle079/RDSService</PackageProjectUrl>
<RepositoryUrl>https://github.com/kyle079/RDSService</RepositoryUrl>
<Version>1.0.2</Version>
<AssemblyVersion>1.0.2</AssemblyVersion>
<FileVersion>1.0.2</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion RDSServiceClient/RdsServiceClientOptions.cs
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions RDSServiceLibrary/Models/RdsSession.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Management.Automation;
using System.Text.Json.Serialization;

namespace RDSServiceLibrary.Models;

Expand All @@ -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; }
}
3 changes: 3 additions & 0 deletions RDSServiceLibrary/RDSServiceLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<Nullable>enable</Nullable>
<LangVersion>default</LangVersion>
<TargetFramework>net7.0</TargetFramework>
<Version>1.0.2</Version>
<AssemblyVersion>1.0.2</AssemblyVersion>
<FileVersion>1.0.2</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a90211c

Please sign in to comment.