Skip to content

Commit

Permalink
Merge pull request #7 from cesmii/main
Browse files Browse the repository at this point in the history
Pick up OPC Foundation: expose currently used endpoint (OPCFoundation#111)
  • Loading branch information
MarkusHorstmann authored May 5, 2022
2 parents da5f569 + 091be2a commit 6d8efba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Opc.Ua.CloudLib.Client/UACloudLibClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ public partial class UACloudLibClient : IDisposable
private string _username = "";
private string _password = "";

private Uri BaseEndpoint { get; set; }

private AuthenticationHeaderValue Authentication
{
set => _client.HttpClient.DefaultRequestHeaders.Authorization = value;
get => _client.HttpClient.DefaultRequestHeaders.Authorization;
}

/// <summary>Gets the Base endpoint used to access the api.</summary>
/// <value>The url of the endpoint</value>
public Uri BaseEndpoint { get; private set; }

/// <summary>Gets or sets the username.</summary>
/// <value>The username.</value>
public string Username { get { return _username; } set { _username = value; UserDataChanged(); } }
Expand Down

0 comments on commit 6d8efba

Please sign in to comment.