Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pick up OPC Foundation: expose currently used endpoint (#111) #7

Merged
merged 1 commit into from
May 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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