Skip to content

Commit 5ae448e

Browse files
committed
more fixes
1 parent d2f39a5 commit 5ae448e

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

Samples/Client.Net4/UA Sample Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</ItemGroup>
136136
<ItemGroup>
137137
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions">
138-
<Version>9.0.6</Version>
138+
<Version>9.0.8</Version>
139139
</PackageReference>
140140
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
141141
<Version>1.5.377.5-preview</Version>

Samples/ClientControls.Net4/Common/Client/ConnectServerCtrl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private async Task<Session> Connect(
332332
{
333333
UpdateStatus(false, DateTime.Now, "Connected, loading complex type system.");
334334
var typeSystemLoader = new ComplexTypeSystem(m_session);
335-
await typeSystemLoader.Load();
335+
await typeSystemLoader.LoadAsync();
336336
}
337337
catch (Exception e)
338338
{
@@ -400,7 +400,7 @@ private async Task<Session> Connect(
400400
{
401401
UpdateStatus(false, DateTime.Now, "Connected, loading complex type system.");
402402
var typeSystemLoader = new ComplexTypeSystem(m_session);
403-
await typeSystemLoader.Load();
403+
await typeSystemLoader.LoadAsync();
404404
}
405405
catch (Exception e)
406406
{

Samples/ClientControls.Net4/Configuration/CertificateDlg.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ public async Task<bool> ShowDialog(CertificateIdentifier certificateIdentifier)
6565

6666
if (certificateIdentifier != null)
6767
{
68-
X509Certificate2 certificate = await certificateIdentifier.Find();
68+
X509Certificate2 certificate = await certificateIdentifier.FindAsync();
6969

7070
CertificateStoreCTRL.StoreType = certificateIdentifier.StoreType;
7171
CertificateStoreCTRL.StorePath = certificateIdentifier.StorePath;
7272

73-
if (certificate != null && certificateIdentifier.Find(true) != null)
73+
if (certificate != null && await certificateIdentifier.FindAsync(true) != null)
7474
{
7575
PrivateKeyCB.SelectedIndex = 1;
7676
}

Samples/ClientControls.Net4/Configuration/CertificateListCtrl.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ internal async Task Initialize(CertificateStoreIdentifier id, IList<string> thum
228228

229229
foreach (string thumbprint in thumbprints)
230230
{
231-
X509Certificate2Collection certificates = await store.FindByThumbprint(thumbprint);
231+
X509Certificate2Collection certificates = await store.FindByThumbprintAsync(thumbprint);
232232

233233
if (certificates.Count > 0)
234234
{
@@ -242,7 +242,7 @@ internal async Task Initialize(CertificateStoreIdentifier id, IList<string> thum
242242
{
243243
Instructions = "No certificates are in the store.";
244244

245-
X509Certificate2Collection certificates = await store.Enumerate();
245+
X509Certificate2Collection certificates = await store.EnumerateAsync();
246246
foreach (X509Certificate2 certificate in certificates)
247247
{
248248
AddItem(certificate);
@@ -457,7 +457,7 @@ private async void DeleteMI_Click(object sender, EventArgs e)
457457
X509Certificate2 certificate = ItemsLV.SelectedItems[ii].Tag as X509Certificate2;
458458

459459
// check for private key.
460-
X509Certificate2Collection certificate2 = await store.FindByThumbprint(certificate.Thumbprint);
460+
X509Certificate2Collection certificate2 = await store.FindByThumbprintAsync(certificate.Thumbprint);
461461

462462
if (!yesToAll && (certificate2.Count > 0) && certificate2[0].HasPrivateKey)
463463
{
@@ -482,7 +482,7 @@ private async void DeleteMI_Click(object sender, EventArgs e)
482482

483483
if (certificate != null)
484484
{
485-
await store.Delete(certificate.Thumbprint);
485+
await store.DeleteAsync(certificate.Thumbprint);
486486
itemsToDelete.Add(ItemsLV.SelectedItems[ii]);
487487
}
488488
}
@@ -559,7 +559,7 @@ private void PasteMI_Click(object sender, EventArgs e)
559559
{
560560
using (ICertificateStore store = m_storeId.OpenStore())
561561
{
562-
store.Add(id.Certificate);
562+
store.AddAsync(id.Certificate);
563563
}
564564

565565
AddItem(id.Certificate);

Samples/ClientControls.Net4/Configuration/CertificateStoreTreeCtrl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ protected override void NodesTV_DragDrop(object sender, DragEventArgs e)
313313

314314
if (certificate != null)
315315
{
316-
store.Add(certificate);
316+
store.AddAsync(certificate);
317317
}
318318
}
319319
}
@@ -479,7 +479,7 @@ private void PasteMI_Click(object sender, EventArgs e)
479479

480480
using (ICertificateStore store = storeId.OpenStore())
481481
{
482-
store.Add(id.Certificate);
482+
store.AddAsync(id.Certificate);
483483
}
484484
}
485485

Samples/ClientControls.Net4/Configuration/ViewCertificateDlg.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public async Task<bool> ShowDialog(CertificateIdentifier certificate)
8686
SubjectNameTB.Text = certificate.SubjectName;
8787
ThumbprintTB.Text = certificate.Thumbprint;
8888

89-
X509Certificate2 data = await certificate.Find();
89+
X509Certificate2 data = await certificate.FindAsync();
9090

9191
if (data != null)
9292
{
@@ -219,7 +219,7 @@ private async void ExportBTN_Click(object sender, EventArgs e)
219219
m_currentDirectory = Environment.CurrentDirectory;
220220
}
221221

222-
X509Certificate2 certificate = await m_certificate.Find();
222+
X509Certificate2 certificate = await m_certificate.FindAsync();
223223

224224
if (certificate == null)
225225
{

Samples/Opc.Ua.Sample/SampleServer.UserAuthentication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private void CreateUserIdentityValidators(ApplicationConfiguration configuration
6868
/// <summary>
6969
/// Called when a client tries to change its user identity.
7070
/// </summary>
71-
private void SessionManager_ImpersonateUser(Session session, ImpersonateEventArgs args)
71+
private void SessionManager_ImpersonateUser(ISession session, ImpersonateEventArgs args)
7272
{
7373
// check for a WSS token.
7474
IssuedIdentityToken wssToken = args.NewIdentity as IssuedIdentityToken;

Samples/Server.Net4/UA Sample Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
</ItemGroup>
144144
<ItemGroup>
145145
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions">
146-
<Version>9.0.6</Version>
146+
<Version>9.0.8</Version>
147147
</PackageReference>
148148
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
149149
<Version>1.5.377.5-preview</Version>

0 commit comments

Comments
 (0)