Skip to content

Commit

Permalink
Update Nuget Packages for 375 Release (#657)
Browse files Browse the repository at this point in the history
* fix build

* Update GDS

* Upgrade Aggregation

* Update Quickstart samples

* Update samples
  • Loading branch information
romanett authored Feb 17, 2025
1 parent b9e0ad2 commit 54f0dc8
Show file tree
Hide file tree
Showing 71 changed files with 111 additions and 104 deletions.
2 changes: 1 addition & 1 deletion Samples/Client.Net4/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void Main()
application.LoadApplicationConfiguration(false).Wait();

// check the application certificate.
bool certOK = application.CheckApplicationInstanceCertificate(false, 0).Result;
bool certOK = application.CheckApplicationInstanceCertificates(false).Result;
if (!certOK)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
2 changes: 1 addition & 1 deletion Samples/Client.Net4/UA Sample Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<Version>8.0.2</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="System.Net.Http">
<Version>4.3.4</Version>
Expand Down
8 changes: 4 additions & 4 deletions Samples/ClientControls.Net4/UA Client Controls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1015,16 +1015,16 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client.ComplexTypes">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Samples/Controls.Net4/UA Sample Controls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
4 changes: 2 additions & 2 deletions Samples/GDS/Client/GlobalDiscoveryClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Gds.Client.Common">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Samples/GDS/Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ========================================================================
/* ========================================================================
* Copyright (c) 2005-2019 The OPC Foundation, Inc. All rights reserved.
*
* OPC Foundation MIT License 1.00
Expand Down Expand Up @@ -57,7 +57,7 @@ static void Main()
ApplicationConfiguration config = application.LoadApplicationConfiguration(false).Result;

// check the application certificate.
application.CheckApplicationInstanceCertificate(false, 0).Wait();
application.CheckApplicationInstanceCertificates(false).Wait();

// run the application interactively.
Application.Run(new MainForm(application));
Expand Down
6 changes: 3 additions & 3 deletions Samples/GDS/ClientControls/Controls/SelectGdsDialog.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ========================================================================
/* ========================================================================
* Copyright (c) 2005-2019 The OPC Foundation, Inc. All rights reserved.
*
* OPC Foundation MIT License 1.00
Expand Down Expand Up @@ -92,11 +92,11 @@ private void OkButton_Click(object sender, EventArgs e)
{
Cursor = Cursors.WaitCursor;

var endpoint = CoreClientUtils.SelectEndpoint(url, true, 5000);
var endpoint = CoreClientUtils.SelectEndpoint(m_gds.Configuration, url, true, 5000);

if (UserNameCredentialsRB.Checked)
{
if (endpoint.FindUserTokenPolicy(UserTokenType.UserName, (string)null) == null)
if (endpoint.FindUserTokenPolicy(UserTokenType.UserName, (string)null, null) == null)
{
throw new ArgumentException("Server does not support username/password user identity tokens.");
}
Expand Down
6 changes: 3 additions & 3 deletions Samples/GDS/ClientControls/Controls/SelectPushServerDialog.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ========================================================================
/* ========================================================================
* Copyright (c) 2005-2019 The OPC Foundation, Inc. All rights reserved.
*
* OPC Foundation MIT License 1.00
Expand Down Expand Up @@ -92,11 +92,11 @@ private void OkButton_Click(object sender, EventArgs e)
{
Cursor = Cursors.WaitCursor;

var endpoint = CoreClientUtils.SelectEndpoint(url, false, 5000);
var endpoint = CoreClientUtils.SelectEndpoint(m_pushServer.Configuration, url, false, 5000);

if (UserNameCredentialsRB.Checked)
{
if (endpoint.FindUserTokenPolicy(UserTokenType.UserName, (string)null) == null)
if (endpoint.FindUserTokenPolicy(UserTokenType.UserName, (string)null, null) == null)
{
throw new ArgumentException("Server does not support username/password user identity tokens.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Gds.Client.Common">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Samples/GDS/ConsoleServer/NetCoreGlobalDiscoveryServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.1" />
<PackageReference Include="Mono.Options" Version="6.12.0.148" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Gds.Server.Common" Version="1.5.374.126" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration" Version="1.5.374.126" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Gds.Server.Common" Version="1.5.375.443" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration" Version="1.5.375.443" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Samples/GDS/ConsoleServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private async Task ConsoleGlobalDiscoveryServer()
ApplicationConfiguration config = await application.LoadApplicationConfiguration(false).ConfigureAwait(false);

// check the application certificate.
bool haveAppCertificate = await application.CheckApplicationInstanceCertificate(false, 0).ConfigureAwait(false);
bool haveAppCertificate = await application.CheckApplicationInstanceCertificates(false).ConfigureAwait(false);
if (!haveAppCertificate)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
4 changes: 2 additions & 2 deletions Samples/GDS/Server/GlobalDiscoveryServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@
<Version>6.5.1</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Gds.Server.Common">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Samples/GDS/Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static void Main()
var config = application.LoadApplicationConfiguration(false).Result;

// check the application certificate.
bool haveAppCertificate = application.CheckApplicationInstanceCertificate(false, 0).Result;
bool haveAppCertificate = application.CheckApplicationInstanceCertificates(false).Result;
if (!haveAppCertificate)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
9 changes: 9 additions & 0 deletions Samples/Opc.Ua.Sample/Base/DataChangeMonitoredItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,15 @@ public DataChangeFilter DataChangeFilter
get { return m_filter; }
}

public IUserIdentity EffectiveIdentity
{
get
{
ISubscription subscription = m_subscription;
return subscription?.EffectiveIdentity;
}
}

/// <summary>
/// Increments the sample time to the next interval.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions Samples/Opc.Ua.Sample/Opc.Ua.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core" Version="1.5.375.443" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server" Version="1.5.375.443" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Samples/Opc.Ua.Sample/SampleServer.UserAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ private void CreateUserIdentityValidators(ApplicationConfiguration configuration
if (configuration.SecurityConfiguration.TrustedUserCertificates != null &&
configuration.SecurityConfiguration.UserIssuerCertificates != null)
{
CertificateValidator certificateValidator = new CertificateValidator();
certificateValidator.Update(configuration.SecurityConfiguration).Wait();
var certificateValidator = new CertificateValidator();
certificateValidator.UpdateAsync(configuration.SecurityConfiguration, configuration.ApplicationUri).Wait();
certificateValidator.Update(configuration.SecurityConfiguration.UserIssuerCertificates,
configuration.SecurityConfiguration.TrustedUserCertificates,
configuration.SecurityConfiguration.RejectedCertificateStore);
Expand Down
2 changes: 1 addition & 1 deletion Samples/ReferenceClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static void Main()
application.LoadApplicationConfiguration(false).Wait();

// check the application certificate.
var certOK = application.CheckApplicationInstanceCertificate(false, 0).Result;
var certOK = application.CheckApplicationInstanceCertificates(false).Result;
if (!certOK)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
8 changes: 4 additions & 4 deletions Samples/ReferenceClient/Reference Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Samples/ReferenceServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static void Main()
SerilogTraceLogger.Create(loggerConfiguration, config);

// check the application certificate.
bool certOk = application.CheckApplicationInstanceCertificate(false, 0).Result;
bool certOk = application.CheckApplicationInstanceCertificates(false).Result;
if (!certOk)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
6 changes: 3 additions & 3 deletions Samples/ReferenceServer/Reference Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
<Version>1.5.374.118</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.118</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Quickstarts.Servers">
<Version>1.5.374.118</Version>
</PackageReference>
<PackageReference Include="Serilog">
<Version>4.0.0</Version>
<Version>4.2.0</Version>
</PackageReference>
<PackageReference Include="Serilog.Sinks.Debug">
<Version>3.0.0</Version>
Expand Down
2 changes: 1 addition & 1 deletion Samples/Server.Net4/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void Main()
application.LoadApplicationConfiguration(false).Wait();

// check the application certificate.
bool certOK = application.CheckApplicationInstanceCertificate(false, 0).Result;
bool certOK = application.CheckApplicationInstanceCertificates(false).Result;
if (!certOK)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
2 changes: 1 addition & 1 deletion Samples/Server.Net4/UA Sample Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<Version>8.0.2</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions Samples/ServerControls.Net4/UA Server Controls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Workshop/Aggregation/Client/Aggregation Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration.Debug" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client.Debug" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server.Debug" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration.Debug" Version="1.5.375.443" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client.Debug" Version="1.5.375.443" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server.Debug" Version="1.5.375.443" />
</ItemGroup>
</Otherwise>
</Choose>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Workshop/Aggregation/ConsoleAggregationServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private async Task ConsoleAggregationServer()
ApplicationConfiguration config = await application.LoadApplicationConfiguration(false).ConfigureAwait(false);

// check the application certificate.
bool haveAppCertificate = await application.CheckApplicationInstanceCertificate(false, CertificateFactory.DefaultKeySize).ConfigureAwait(false);
bool haveAppCertificate = await application.CheckApplicationInstanceCertificates(false).ConfigureAwait(false);
if (!haveAppCertificate)
{
throw new Exception("Application instance certificate invalid!");
Expand Down
8 changes: 4 additions & 4 deletions Workshop/Aggregation/Server/Aggregation Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Workshop/Aggregation/Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static async Task MyMain()
await application.LoadApplicationConfiguration(false);

// check the application certificate.
await application.CheckApplicationInstanceCertificate(false, 0);
await application.CheckApplicationInstanceCertificates(false);

// start the server.
await application.Start(new AggregationServer());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server">
<Version>1.5.374.126</Version>
<Version>1.5.375.443</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Workshop/AlarmCondition/Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static void Main()
application.LoadApplicationConfiguration(false).Wait();

// check the application certificate.
application.CheckApplicationInstanceCertificate(false, 0).Wait();
application.CheckApplicationInstanceCertificates(false).Wait();

// run the application interactively.
Application.Run(new MainForm(application.ApplicationConfiguration));
Expand Down
Loading

0 comments on commit 54f0dc8

Please sign in to comment.