Esempio n. 1
0
        /// <summary>
        /// DI applet BI repository
        /// </summary>
        public AppletBiRepository(IAppletManagerService appletManager, IServiceManager serviceManager, IPolicyEnforcementService policyEnforcementService, IAppletSolutionManagerService solutionManagerService = null, IBiDataSource defaultDataSource = null)
        {
            this.m_appletManager            = appletManager;
            this.m_policyEnforcementService = policyEnforcementService;
            this.m_solutionManagerService   = solutionManagerService;
            this.m_serviceManager           = serviceManager;
            this.m_defaultDataSource        = defaultDataSource;

            // Re-scans the loaded applets for definitions when the collection has changed
            this.m_appletManager.Applets.CollectionChanged += (oa, ea) =>
            {
                this.LoadAllDefinitions();
            };

            if (this.m_solutionManagerService.Solutions is INotifyCollectionChanged notify)
            {
                notify.CollectionChanged += (oa, eo) =>
                {
                    this.LoadAllDefinitions();
                };
            }
            //this.LoadAllDefinitions();
        }
 /// <summary>
 /// Creates a new content child handler
 /// </summary>
 /// <param name="solutionManager">The solution manager</param>
 public AppletSolutionContentChildHandler(IAppletSolutionManagerService solutionManager)
 {
     this.m_solutionManager = solutionManager;
 }
Esempio n. 3
0
 /// <summary>
 /// Dependency injection header for localization service
 /// </summary>
 public AppletLocalizationService(IAppletManagerService appletManager, IAppletSolutionManagerService solutionManagerService = null)
 {
     this.m_appletManager   = appletManager;
     this.m_solutionManager = solutionManagerService;
 }