@@ -149,18 +149,18 @@ private static async Task RunVersionAApplication()
149
149
Log . Information ( "Application started..." ) ;
150
150
151
151
// Handles the application's connected and disconnected events.
152
- application . ConnectedAsync += OnApplicationVersionAConnected ;
153
- application . DisconnectedAsync += OnApplicationVersionADisconnected ;
152
+ application . Connected += OnApplicationVersionAConnected ;
153
+ application . Disconnected += OnApplicationVersionADisconnected ;
154
154
155
155
// Handles the application's device related events.
156
- application . DeviceBirthReceivedAsync += OnApplicationVersionADeviceBirthReceived ;
157
- application . DeviceDataReceivedAsync += OnApplicationVersionADeviceDataReceived ;
158
- application . DeviceDeathReceivedAsync += OnApplicationVersionADeviceDeathReceived ;
156
+ application . DeviceBirthReceived += OnApplicationVersionADeviceBirthReceived ;
157
+ application . DeviceDataReceived += OnApplicationVersionADeviceDataReceived ;
158
+ application . DeviceDeathReceived += OnApplicationVersionADeviceDeathReceived ;
159
159
160
160
// Handles the application's node related events.
161
- application . NodeBirthReceivedAsync += OnApplicationVersionANodeBirthReceived ;
162
- application . NodeDataReceivedAsync += OnApplicationVersionANodeDataReceived ;
163
- application . NodeDeathReceivedAsync += OnApplicationVersionANodeDeathReceived ;
161
+ application . NodeBirthReceived += OnApplicationVersionANodeBirthReceived ;
162
+ application . NodeDataReceived += OnApplicationVersionANodeDataReceived ;
163
+ application . NodeDeathReceived += OnApplicationVersionANodeDeathReceived ;
164
164
165
165
// Publish node commands.
166
166
Log . Information ( "Publishing a node command ..." ) ;
@@ -226,19 +226,19 @@ private static async Task RunVersionANode()
226
226
var isApplicationConnected = node . IsConnected ;
227
227
228
228
// Handles the node's connected and disconnected events.
229
- node . ConnectedAsync += OnVersionANodeConnected ;
230
- node . DisconnectedAsync += OnVersionANodeDisconnected ;
229
+ node . Connected += OnVersionANodeConnected ;
230
+ node . Disconnected += OnVersionANodeDisconnected ;
231
231
232
232
// Handles the node's device related events.
233
- node . DeviceBirthPublishingAsync += OnVersionANodeDeviceBirthPublishing ;
234
- node . DeviceCommandReceivedAsync += OnVersionANodeDeviceCommandReceived ;
235
- node . DeviceDeathPublishingAsync += OnVersionANodeDeviceDeathPublishing ;
233
+ node . DeviceBirthPublishing += OnVersionANodeDeviceBirthPublishing ;
234
+ node . DeviceCommandReceived += OnVersionANodeDeviceCommandReceived ;
235
+ node . DeviceDeathPublishing += OnVersionANodeDeviceDeathPublishing ;
236
236
237
237
// Handles the node's node command received event.
238
- node . NodeCommandReceivedAsync += OnVersionANodeNodeCommandReceived ;
238
+ node . NodeCommandReceived += OnVersionANodeNodeCommandReceived ;
239
239
240
240
// Handles the node's status message received event.
241
- node . StatusMessageReceivedAsync += OnVersionANodeStatusMessageReceived ;
241
+ node . StatusMessageReceived += OnVersionANodeStatusMessageReceived ;
242
242
243
243
// Get the known devices.
244
244
var knownDevices = node . KnownDevices ;
@@ -289,18 +289,18 @@ private static async Task RunVersionBApplication()
289
289
Log . Information ( "Application started..." ) ;
290
290
291
291
// Handles the application's connected and disconnected events.
292
- application . ConnectedAsync += OnApplicationVersionBConnected ;
293
- application . DisconnectedAsync += OnApplicationVersionBDisconnected ;
292
+ application . Connected += OnApplicationVersionBConnected ;
293
+ application . Disconnected += OnApplicationVersionBDisconnected ;
294
294
295
295
// Handles the application's device related events.
296
- application . DeviceBirthReceivedAsync += OnApplicationVersionBDeviceBirthReceived ;
297
- application . DeviceDataReceivedAsync += OnApplicationVersionBDeviceDataReceived ;
298
- application . DeviceDeathReceivedAsync += OnApplicationVersionBDeviceDeathReceived ;
296
+ application . DeviceBirthReceived += OnApplicationVersionBDeviceBirthReceived ;
297
+ application . DeviceDataReceived += OnApplicationVersionBDeviceDataReceived ;
298
+ application . DeviceDeathReceived += OnApplicationVersionBDeviceDeathReceived ;
299
299
300
300
// Handles the application's node related events.
301
- application . NodeBirthReceivedAsync += OnApplicationVersionBNodeBirthReceived ;
302
- application . NodeDataReceivedAsync += OnApplicationVersionBNodeDataReceived ;
303
- application . NodeDeathReceivedAsync += OnApplicationVersionBNodeDeathReceived ;
301
+ application . NodeBirthReceived += OnApplicationVersionBNodeBirthReceived ;
302
+ application . NodeDataReceived += OnApplicationVersionBNodeDataReceived ;
303
+ application . NodeDeathReceived += OnApplicationVersionBNodeDeathReceived ;
304
304
305
305
// Publish node commands.
306
306
Log . Information ( "Publishing a node command ..." ) ;
@@ -366,19 +366,19 @@ private static async Task RunVersionBNode()
366
366
var isApplicationConnected = node . IsConnected ;
367
367
368
368
// Handles the node's connected and disconnected events.
369
- node . ConnectedAsync += OnVersionBNodeConnected ;
370
- node . DisconnectedAsync += OnVersionBNodeDisconnected ;
369
+ node . Connected += OnVersionBNodeConnected ;
370
+ node . Disconnected += OnVersionBNodeDisconnected ;
371
371
372
372
// Handles the node's device related events.
373
- node . DeviceBirthPublishingAsync += OnVersionBNodeDeviceBirthPublishing ;
374
- node . DeviceCommandReceivedAsync += OnVersionBNodeDeviceCommandReceived ;
375
- node . DeviceDeathPublishingAsync += OnVersionBNodeDeviceDeathPublishing ;
373
+ node . DeviceBirthPublishing += OnVersionBNodeDeviceBirthPublishing ;
374
+ node . DeviceCommandReceived += OnVersionBNodeDeviceCommandReceived ;
375
+ node . DeviceDeathPublishing += OnVersionBNodeDeviceDeathPublishing ;
376
376
377
377
// Handles the node's node command received event.
378
- node . NodeCommandReceivedAsync += OnVersionBNodeNodeCommandReceived ;
378
+ node . NodeCommandReceived += OnVersionBNodeNodeCommandReceived ;
379
379
380
380
// Handles the node's status message received event.
381
- node . StatusMessageReceivedAsync += OnVersionBNodeStatusMessageReceived ;
381
+ node . StatusMessageReceived += OnVersionBNodeStatusMessageReceived ;
382
382
383
383
// Get the known devices.
384
384
var knownDevices = node . KnownDevices ;
@@ -404,7 +404,7 @@ private static async Task RunVersionBNode()
404
404
/// <summary>
405
405
/// Handles the connected callback for version A applications.
406
406
/// </summary>
407
- private static Task OnApplicationVersionAConnected ( Core . SparkplugBase < VersionAData . KuraMetric > . SparkplugEventArgs arg )
407
+ private static Task OnApplicationVersionAConnected ( Core . SparkplugBase < VersionAData . KuraMetric > . SparkplugEventArgs args )
408
408
{
409
409
// Do something.
410
410
return Task . CompletedTask ;
@@ -413,7 +413,7 @@ private static Task OnApplicationVersionAConnected(Core.SparkplugBase<VersionADa
413
413
/// <summary>
414
414
/// Handles the disconnected callback for version A applications.
415
415
/// </summary>
416
- private static Task OnApplicationVersionADisconnected ( VersionA . SparkplugApplication . SparkplugEventArgs arg )
416
+ private static Task OnApplicationVersionADisconnected ( VersionA . SparkplugApplication . SparkplugEventArgs args )
417
417
{
418
418
// Do something.
419
419
return Task . CompletedTask ;
@@ -422,7 +422,7 @@ private static Task OnApplicationVersionADisconnected(VersionA.SparkplugApplicat
422
422
/// <summary>
423
423
/// Handles the device birth received callback for version A applications.
424
424
/// </summary>
425
- private static Task OnApplicationVersionADeviceBirthReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . DeviceBirthEventArgs arg )
425
+ private static Task OnApplicationVersionADeviceBirthReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . DeviceBirthEventArgs args )
426
426
{
427
427
// Do something.
428
428
return Task . CompletedTask ;
@@ -440,7 +440,7 @@ private static Task OnApplicationVersionADeviceDataReceived(VersionA.SparkplugAp
440
440
/// <summary>
441
441
/// Handles the device death received callback for version A applications.
442
442
/// </summary>
443
- private static Task OnApplicationVersionADeviceDeathReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . DeviceEventArgs arg )
443
+ private static Task OnApplicationVersionADeviceDeathReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . DeviceEventArgs args )
444
444
{
445
445
// Do something.
446
446
return Task . CompletedTask ;
@@ -449,7 +449,7 @@ private static Task OnApplicationVersionADeviceDeathReceived(Core.SparkplugBase<
449
449
/// <summary>
450
450
/// Handles the node birth received callback for version A applications.
451
451
/// </summary>
452
- private static Task OnApplicationVersionANodeBirthReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . NodeBirthEventArgs arg )
452
+ private static Task OnApplicationVersionANodeBirthReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . NodeBirthEventArgs args )
453
453
{
454
454
// Do something.
455
455
return Task . CompletedTask ;
@@ -467,7 +467,7 @@ private static Task OnApplicationVersionANodeDataReceived(VersionA.SparkplugAppl
467
467
/// <summary>
468
468
/// Handles the node death received callback for version A applications.
469
469
/// </summary>
470
- private static Task OnApplicationVersionANodeDeathReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . NodeEventArgs arg )
470
+ private static Task OnApplicationVersionANodeDeathReceived ( Core . SparkplugBase < VersionAData . KuraMetric > . NodeEventArgs args )
471
471
{
472
472
// Do something.
473
473
return Task . CompletedTask ;
@@ -476,7 +476,7 @@ private static Task OnApplicationVersionANodeDeathReceived(Core.SparkplugBase<Ve
476
476
/// <summary>
477
477
/// Handles the connected callback for version A nodes.
478
478
/// </summary>
479
- private static Task OnVersionANodeConnected ( Core . SparkplugBase < VersionAData . KuraMetric > . SparkplugEventArgs arg )
479
+ private static Task OnVersionANodeConnected ( Core . SparkplugBase < VersionAData . KuraMetric > . SparkplugEventArgs args )
480
480
{
481
481
// Do something.
482
482
return Task . CompletedTask ;
@@ -485,7 +485,7 @@ private static Task OnVersionANodeConnected(Core.SparkplugBase<VersionAData.Kura
485
485
/// <summary>
486
486
/// Handles the disconnected callback for version A nodes.
487
487
/// </summary>
488
- private static Task OnVersionANodeDisconnected ( VersionA . SparkplugNode . SparkplugEventArgs arg )
488
+ private static Task OnVersionANodeDisconnected ( VersionA . SparkplugNode . SparkplugEventArgs args )
489
489
{
490
490
// Do something.
491
491
return Task . CompletedTask ;
@@ -546,7 +546,7 @@ private static Task OnVersionANodeStatusMessageReceived(VersionA.SparkplugNode.S
546
546
/// <summary>
547
547
/// Handles the connected callback for version B applications.
548
548
/// </summary>
549
- private static Task OnApplicationVersionBConnected ( Core . SparkplugBase < VersionBData . Metric > . SparkplugEventArgs arg )
549
+ private static Task OnApplicationVersionBConnected ( Core . SparkplugBase < VersionBData . Metric > . SparkplugEventArgs args )
550
550
{
551
551
// Do something.
552
552
return Task . CompletedTask ;
@@ -555,7 +555,7 @@ private static Task OnApplicationVersionBConnected(Core.SparkplugBase<VersionBDa
555
555
/// <summary>
556
556
/// Handles the disconnected callback for version B applications.
557
557
/// </summary>
558
- private static Task OnApplicationVersionBDisconnected ( VersionB . SparkplugApplication . SparkplugEventArgs arg )
558
+ private static Task OnApplicationVersionBDisconnected ( VersionB . SparkplugApplication . SparkplugEventArgs args )
559
559
{
560
560
// Do something.
561
561
return Task . CompletedTask ;
@@ -564,7 +564,7 @@ private static Task OnApplicationVersionBDisconnected(VersionB.SparkplugApplicat
564
564
/// <summary>
565
565
/// Handles the device birth received callback for version B applications.
566
566
/// </summary>
567
- private static Task OnApplicationVersionBDeviceBirthReceived ( Core . SparkplugBase < VersionBData . Metric > . DeviceBirthEventArgs arg )
567
+ private static Task OnApplicationVersionBDeviceBirthReceived ( Core . SparkplugBase < VersionBData . Metric > . DeviceBirthEventArgs args )
568
568
{
569
569
// Do something.
570
570
return Task . CompletedTask ;
@@ -582,7 +582,7 @@ private static Task OnApplicationVersionBDeviceDataReceived(VersionB.SparkplugAp
582
582
/// <summary>
583
583
/// Handles the device death received callback for version B applications.
584
584
/// </summary>
585
- private static Task OnApplicationVersionBDeviceDeathReceived ( Core . SparkplugBase < VersionBData . Metric > . DeviceEventArgs arg )
585
+ private static Task OnApplicationVersionBDeviceDeathReceived ( Core . SparkplugBase < VersionBData . Metric > . DeviceEventArgs args )
586
586
{
587
587
// Do something.
588
588
return Task . CompletedTask ;
@@ -591,7 +591,7 @@ private static Task OnApplicationVersionBDeviceDeathReceived(Core.SparkplugBase<
591
591
/// <summary>
592
592
/// Handles the node birth received callback for version B applications.
593
593
/// </summary>
594
- private static Task OnApplicationVersionBNodeBirthReceived ( Core . SparkplugBase < VersionBData . Metric > . NodeBirthEventArgs arg )
594
+ private static Task OnApplicationVersionBNodeBirthReceived ( Core . SparkplugBase < VersionBData . Metric > . NodeBirthEventArgs args )
595
595
{
596
596
// Do something.
597
597
return Task . CompletedTask ;
@@ -609,7 +609,7 @@ private static Task OnApplicationVersionBNodeDataReceived(VersionB.SparkplugAppl
609
609
/// <summary>
610
610
/// Handles the node death received callback for version B applications.
611
611
/// </summary>
612
- private static Task OnApplicationVersionBNodeDeathReceived ( Core . SparkplugBase < VersionBData . Metric > . NodeEventArgs arg )
612
+ private static Task OnApplicationVersionBNodeDeathReceived ( Core . SparkplugBase < VersionBData . Metric > . NodeEventArgs args )
613
613
{
614
614
// Do something.
615
615
return Task . CompletedTask ;
@@ -618,7 +618,7 @@ private static Task OnApplicationVersionBNodeDeathReceived(Core.SparkplugBase<Ve
618
618
/// <summary>
619
619
/// Handles the connected callback for version B nodes.
620
620
/// </summary>
621
- private static Task OnVersionBNodeConnected ( Core . SparkplugBase < VersionBData . Metric > . SparkplugEventArgs arg )
621
+ private static Task OnVersionBNodeConnected ( Core . SparkplugBase < VersionBData . Metric > . SparkplugEventArgs args )
622
622
{
623
623
// Do something.
624
624
return Task . CompletedTask ;
@@ -627,7 +627,7 @@ private static Task OnVersionBNodeConnected(Core.SparkplugBase<VersionBData.Metr
627
627
/// <summary>
628
628
/// Handles the disconnected callback for version B nodes.
629
629
/// </summary>
630
- private static Task OnVersionBNodeDisconnected ( VersionB . SparkplugNode . SparkplugEventArgs arg )
630
+ private static Task OnVersionBNodeDisconnected ( VersionB . SparkplugNode . SparkplugEventArgs args )
631
631
{
632
632
// Do something.
633
633
return Task . CompletedTask ;
0 commit comments