public TisRolesMngr(ObtainSupportedPermissionsDelegate oSupportedPermissionsDelegate) : this()
        {
            m_oRoles = new DictionaryWithEvents <string, ITisRole>();

            m_oSupportedPermissionsDelegate = oSupportedPermissionsDelegate;

            AddRole(TisRole.BUILTIN_ADMINISTRATORS_ROLE);
        }
        public TisInvokeTypesMngr(
            DictionaryWithEvents <string, ITisInvokeType> invokeTypes,
            TisGetInvokerDelegate oGetInvokerDelegate)
        {
            m_oInvokeTypes        = invokeTypes;
            m_oGetInvokerDelegate = oGetInvokerDelegate;

            foreach (var invokeType in invokeTypes.Values)
            {
                invokeType.OnGetInvoker += m_oGetInvokerDelegate;
            }
        }
        public TisEventsManager(
            ITransactionalStorage oApplicationResources,
            string sApplicationName,
            CustomAssemblyResolver customAssemblyResolver,
            DictionaryWithEvents <string, ITisInvokeType> invokeTypes)
        {
            m_sApplicationName        = sApplicationName;
            m_oApplicationResources   = oApplicationResources;
            m_oCustomAssemblyResolver = customAssemblyResolver;
            m_invokeTypes             = invokeTypes;

            DataContractSerializer eventsDataContractSerializer = new DataContractSerializer(typeof(TisEventBindingsMngr), new Type[] { typeof(EventBindingInfoMngr) });

            m_eventsStorage = new ObjectStorage(
                m_oApplicationResources,
                new ObjectReadDelegate(eventsDataContractSerializer.ReadObject),
                new ObjectWriteDelegate(eventsDataContractSerializer.WriteObject));

            InitTransactionManager(sApplicationName);
        }
示例#4
0
        public TisPermissionsMngr()
        {
            m_oPermissionsSets = new DictionaryWithEvents <string, TisPermissionsSet>();

            m_oPermissionsSets.ItemsCleared += new EventHandler <EventArgs>(OnClearedHandler);
        }