ChatterService.Web.ChatterProxyService.getChatterSoapService C# (CSharp) Method

getChatterSoapService() private method

private getChatterSoapService ( ) : ChatterSoapService
return ChatterSoapService
        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;
        }