Hi, I'm using Quick OPC 2017.1 in a ASP.NET MVC Application with c#.
The reads are made it by a subscription group to an OPC Server Matrikon OPC Simulation, this is the code. When the subscription is completed the number of clients connected to the OPC server is increased by 1.
EasyDAClient tempSuscrp = new EasyDAClient();
tempSuscrp.ItemChanged += new OpcLabs.EasyOpc.DataAccess.EasyDAItemChangedEventHandler(tempSuscrp_ItemChanged);
var tempArray = new DAItemGroupArguments[4];
tempArray[0] = new DAItemGroupArguments("", "Matrikon.OPC.Simulation.1", "MW450", 1000, true);
tempArray[1] = new DAItemGroupArguments("", "Matrikon.OPC.Simulation.1", "MW452", 1000, true);
tempArray[2] = new DAItemGroupArguments("", "Matrikon.OPC.Simulation.1", "MW454", 1000, true);
tempArray[3] = new DAItemGroupArguments("", "Matrikon.OPC.Simulation.1", "MW456", 1000, true);
tempSuscrp.SubscribeMultipleItems(tempArray);
Everything works fine but my problem happens when the user close the web page, then I execute the command UnsubscribeAllItems() for close the subscription.
tempSuscrp.UnsubscribeAllItems();
The problem is that the clients connections (from this subscription) are not stopped (see attached picture), I would expect that the number of clients connected to the OPC server should be decreased by 1.
Is there any other way to stop the subscription or I'am doing something bad?
Thanks and regards