hello,
my adapter was working well at LS version 5.2
but why now gives that Exception
this is the adapter class
class IntraDayAdapterUpdate : LiteralBasedProvider, IDataProvider
{
private IItemEventListener _listener;
public void Init(System.Collections.IDictionary parameters, string configFile)
{
}
public bool IsSnapshotAvailable(string itemName)
{
//throw new NotImplementedException();
return true;
}
public void SetListener(IItemEventListener eventListener)
{
if (Intraday._listener == null)
Intraday._listener = eventListener;
}
Intraday obj;
public void Subscribe(string itemName)
{
}
public void Unsubscribe(string itemName)
{
}
public void NotifyNewSession(string user, string sessionID, IDictionary clientContext)
{
}
public void NotifyNewTables(string user, string sessionID, TableInfo[] tables)
{
}
public void NotifySessionClose(string sessionID)
{
}
public void NotifyTablesClose(string sessionID, TableInfo[] tables)
{
}
public void NotifyUser(string user, string password, IDictionary httpHeaders, string clientPrincipal)
{
}
public void NotifyUser(string user, string password, IDictionary httpHeaders)
{
}
public override string[] GetItems(string user, string sessionID, string itemList)
{
return itemList.Split(' ');
}
public static SqlConnection conn = new SqlConnection(@"Data Source=212.70.49.113\MicroT;Initial Catalog=StockMarket;User ID=sa;Password=McdcT@#935");
bool _valid = false;
public override void NotifyUserMessage(string user, string sessionID, string message)
{
try
{
MyEncryptor enc = new MyEncryptor();
string[] arr = message.Split(';');
string _user = arr[0];
string _pass = arr[1];
string _key = arr[2];
bool _found = false;
for (int i = 0; i < Intraday._userkeys.Count; i++)
{
if (Intraday._userkeys[i] == _key)
{
_found = true;
break;
}
}
if (!_found)
{
Intraday._userkeys.Add(_key);
}
}
}
catch { }
}
public bool WantsTablesNotification(string user)
{
throw new NotImplementedException();
}
}