Exemple #1
0
        private void CommonInit(IConfigSource source)
        {
            IConfig gridConfig = source.Configs["PresenceService"];

            if (gridConfig != null)
            {
                string serviceUrl = gridConfig.GetString("PresenceServerURI");
                if (!String.IsNullOrEmpty(serviceUrl))
                {
                    if (!serviceUrl.EndsWith("/") && !serviceUrl.EndsWith("="))
                    {
                        serviceUrl = serviceUrl + '/';
                    }
                    m_serverUrl        = serviceUrl;
                    m_activityDetector = new SimianActivityDetector(this);
                    m_Enabled          = true;
                }
            }

            if (String.IsNullOrEmpty(m_serverUrl))
            {
                m_log.Info("[SIMIAN PRESENCE CONNECTOR]: No PresenceServerURI specified, disabling connector");
            }
        }
        private void CommonInit(IConfigSource source)
        {
            IConfig gridConfig = source.Configs["PresenceService"];
            if (gridConfig != null)
            {
                string serviceUrl = gridConfig.GetString("PresenceServerURI");
                if (!String.IsNullOrEmpty(serviceUrl))
                {
                    if (!serviceUrl.EndsWith("/") && !serviceUrl.EndsWith("="))
                        serviceUrl = serviceUrl + '/';
                    m_serverUrl = serviceUrl;
                    m_activityDetector = new SimianActivityDetector(this); 
                    m_Enabled = true;
                }
            }

            if (String.IsNullOrEmpty(m_serverUrl))
                m_log.Info("[SIMIAN PRESENCE CONNECTOR]: No PresenceServerURI specified, disabling connector");
        }
 public SimianPresenceServiceConnector() { m_activityDetector = new SimianActivityDetector(this); }
Exemple #4
0
 public SimianPresenceServiceConnector()
 {
     m_activityDetector = new SimianActivityDetector(this);
 }