Exemple #1
0
 private static void SessionClosingMethod(object sender, OpcSessionEventArgs e)
 {
     connectedClients--;
     Console.WriteLine($"A session is closing...");
     Console.WriteLine($"Number of clients: " + connectedClients);
 }
Exemple #2
0
 private static void SessionMethod(object sender, OpcSessionEventArgs e)
 {
     connectedClients++;
     Console.WriteLine($"New session started");
     Console.WriteLine($"Number of clients: " + connectedClients);
 }
Exemple #3
0
 private static void sessionCreatedMethod(object sender, OpcSessionEventArgs eArgs)
 {
     Console.WriteLine("Hello from sessionCreatedMethod!");
 }