private ChatterSoapService getChatterSoapService()
{
ChatterSoapService soap = (ChatterSoapService)HttpRuntime.Cache[url];
if (soap == null)
{
lock (this)
{
WriteLogToFile("Refreshing ChatterSoapService");
soap = new ChatterSoapService(url);
soap.Login(userName, password, token);
WriteLogToFile("Success in logging into ChatterSoapService");
HttpRuntime.Cache.Insert(url, soap);
}
}
return soap;
}