Esempio n. 1
0
        private WorkflowManager()
        {
            if (m_da == null)
            {
                m_da = new DataAccess.DataAccess();
            }
            if (m_ThreadContext == null)
            {
                m_ThreadContext = new SingleThreadedContext();
                m_ThreadContext.ExceptionEvent += new ExceptionEventHandler(ThreadExceptionHandler);
                m_ThreadContext.Init("Workflow Manager");
            }

            if (m_Instance != null)
            {
                return;
            }
        }
Esempio n. 2
0
        private UserManager()
        {
            if (m_adHelper == null)
            {
                m_adHelper = new ActiveDirectoryHelper();
            }
            m_OU_Filter = m_adHelper.OU;

            if (m_dataAccess == null)
            {
                m_dataAccess = new DataAccess.DataAccess();
            }
            if (m_ThreadContext == null)
            {
                m_ThreadContext = new SingleThreadedContext();
                m_ThreadContext.ExceptionEvent += new ExceptionEventHandler(ThreadExceptionHandler);
                m_ThreadContext.Init("User Manager");
            }

            if (m_Instance != null)
            {
                return;
            }
        }