Hello,
I try to use BatchRequests (
http://www.lightstreamer.com/docs/client_dotnet_api/frames.html). But when i called it, program stopped work. It looks like deadlock.
var connectionInfo = new ConnectionInfo
{
PushServerUrl = serverUrl,
Adapter = Adapter,
User = SessionManager.UserName,
Password = SessionManager.SessionId,
ContentLength = 0,
Constraints = { MaxBandwidth = MaxBandWidth },
};
client.OpenConnection(connectionInfo, this);
client.BatchRequests(3); // without these line works correctly.
client.SubscribeTable(adapters[1].CreateTableSimple(), adapters[0].Listener, false); // deadlock here
client.SubscribeTable(adapters[2].CreateTableSimple(), adapters[0].Listener, false);
client.SubscribeTable(adapters[3].CreateTableSimple(), adapters[0].Listener, false);
client.SubscribeTable(adapters[4].CreateTableSimple(), adapters[0].Listener, false);
Can anyone help me?
Thanks.