public CustomerSessionManager(SIPSorceryConfiguration sipSorceryConfig)
 {
     StorageTypes storageType = sipSorceryConfig.PersistenceStorageType;
     string connectionString = sipSorceryConfig.PersistenceConnStr;
     m_customerPersistor = SIPAssetPersistorFactory<Customer>.CreateSIPAssetPersistor(storageType, connectionString, CUSTOMERS_XML_FILENAME);
     m_customerSessionPersistor = SIPAssetPersistorFactory<CustomerSession>.CreateSIPAssetPersistor(storageType, connectionString, CUSTOMER_SESSIONS_XML_FILENAME);
 }
 private void Initialise(SIPSorceryConfiguration sipSorceryConfig)
 {
     string pollPeriodStr = sipSorceryConfig.GetAppSetting(PULL_NOTIFICATION_POLL_PERIOD_APPSETTING_KEY);
     if (!pollPeriodStr.IsNullOrBlank())
     {
         Int32.TryParse(pollPeriodStr, out m_pullNotificationPollPeriod);
         if (m_pullNotificationPollPeriod < MINIMUM_PULL_NOTIFICATION_POLL_PERIOD)
         {
             m_pullNotificationPollPeriod = MINIMUM_PULL_NOTIFICATION_POLL_PERIOD;
         }
     }
 }
 public SIPSorceryAuthorisationService()
 {
     SIPSorceryConfiguration sipSorceryConfig = new SIPSorceryConfiguration();
     CRMSessionManager = new CustomerSessionManager(sipSorceryConfig);
     CRMCustomerPersistor = CRMSessionManager.CustomerPersistor;
 }
 public SIPNotifierService(ISIPMonitorPublisher sipMonitorPublisher, CustomerSessionManager customerSessionManager)
     : base(customerSessionManager)
 {
     SIPSorceryConfiguration sipSorceryConfig = new SIPSorceryConfiguration();
     m_sipMonitorEventPublisher = sipMonitorPublisher;
 }