Skip to content

Commit

Permalink
Cleanup client and client lib: Remove all obsolete methods and fix te…
Browse files Browse the repository at this point in the history
…sts.
  • Loading branch information
barnstee committed Jan 10, 2025
1 parent 0da4d04 commit 5c5d904
Show file tree
Hide file tree
Showing 8 changed files with 188 additions and 1,015 deletions.
59 changes: 0 additions & 59 deletions Opc.Ua.CloudLib.Client/Models/DataResult.cs

This file was deleted.

59 changes: 0 additions & 59 deletions Opc.Ua.CloudLib.Client/Models/ObjectResult.cs

This file was deleted.

59 changes: 0 additions & 59 deletions Opc.Ua.CloudLib.Client/Models/VariableResult.cs

This file was deleted.

16 changes: 1 addition & 15 deletions Opc.Ua.CloudLib.Client/RestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,6 @@ public void Dispose()
client.Dispose();
}

[Obsolete("Use GetBasicNodesetInformationAsync with offset and limit.")]
public async Task<List<UANodesetResult>> GetBasicNodesetInformationAsync(List<string> keywords = null)
{
var nodeSetResults = new List<UANodesetResult>();
int offset = 0;
int limit = 100;
do
{
List<UANodesetResult> results = await GetBasicNodesetInformationAsync(offset, limit, keywords).ConfigureAwait(false);
nodeSetResults.AddRange(results);
offset += limit;
} while (nodeSetResults.Count == limit);
return nodeSetResults;
}

public async Task<List<UANodesetResult>> GetBasicNodesetInformationAsync(int offset, int limit, List<string> keywords = null)
{
if (keywords == null)
Expand All @@ -117,6 +102,7 @@ public Task<UANameSpace> DownloadNodesetAsync(string identifier)
{
return DownloadNodesetAsync(identifier, false);
}

public async Task<UANameSpace> DownloadNodesetAsync(string identifier, bool metadataOnly)
{
string request = $"infomodel/download/{Uri.EscapeDataString(identifier)}";
Expand Down
Loading

0 comments on commit 5c5d904

Please sign in to comment.