コード例 #1
0
        private void Load()
        {
            try
            {
                m_oSupportedPermissionsMngr =
                    (TisSupportedPermissionsMngr)m_permissionsStorage.LoadObject(SUPPORTED_PERMISSIONS_BLOB);
            }
            catch (Exception oExc)
            {
                Log.Write(
                    Log.Severity.INFO,
                    System.Reflection.MethodInfo.GetCurrentMethod(),
                    oExc.Message
                    );

                m_oSupportedPermissionsMngr = new TisSupportedPermissionsMngr();
            }

            m_oSupportedPermissionsMngr.OnPermissionsSetRemoved += new PermissionsSetDelegate(OnPermissionsSetRemovedHandler);
            m_oSupportedPermissionsMngr.OnPermissionsSetChanged += new PermissionsSetDelegate(OnPermissionsSetChangedHandler);
            m_oSupportedPermissionsMngr.OnCleared += new EventHandler <EventArgs> (OnSupportedPermissionsClearedHandler);

            try
            {
                m_oRoleMngr = (TisRolesMngr)m_rolesStorage.LoadObject(LOGINS_BLOB);

                OnRolesDeserialization();
            }
            catch (Exception oExc)
            {
                Log.Write(
                    Log.Severity.INFO,
                    System.Reflection.MethodInfo.GetCurrentMethod(),
                    oExc.Message
                    );

                m_oRoleMngr = new TisRolesMngr(new ObtainSupportedPermissionsDelegate(m_oSupportedPermissionsMngr.GetByPersistKey));
            }

            m_bLoaded = true;


            if (OnSecurityDataLoaded != null)
            {
                OnSecurityDataLoaded(new EventArgs());
            }
        }
コード例 #2
0
        public void Load()
        {
            try
            {
                m_oMap = (Dictionary <string, string>)m_oObjectStorage.LoadObject(
                    m_sBLOBName);
            }
            catch (Exception oExc)
            {
                Log.Write(
                    Log.Severity.INFO,
                    System.Reflection.MethodInfo.GetCurrentMethod(),
                    "BLOB [{0}] not loaded, {1}",
                    m_sBLOBName,
                    oExc.Message);

                m_oMap = new Dictionary <string, string>();
            }
        }
コード例 #3
0
        private void Load()
        {
            try
            {
                m_oEventBindingsMngr =
                    (TisEventBindingsMngr)m_eventsStorage.LoadObject(EVENTS_PERSIST_NAME);

                OnBindingsDeserialization();
            }
            catch (Exception oExc)
            {
                Log.Write(
                    Log.Severity.INFO,
                    System.Reflection.MethodInfo.GetCurrentMethod(),
                    oExc.Message
                    );


                m_oEventBindingsMngr =
                    new TisEventBindingsMngr(new TisEventBindingDelegate(OnBindingActionHandler));
            }

            m_bLoaded = true;
        }