private void Construct(IAciEventManager eventManager,
                               IAdaptivityService adaptivityService,
                               IConfigProvider configProvider,
                               IWorkflowService workflowService,
                               ITimeTrackingRepository timeTrackingRepo,
                               IBot bot,
                               IBadgeService badgeService,
                               IAudioService audioService,
                               FeedbackActivityFactory factory,
                               FeedbackActivityLibrary library)
        {
            m_ConfigProvider    = configProvider;
            m_EventManager      = eventManager;
            m_AdaptivityService = adaptivityService;
            m_WorkflowService   = workflowService;
            m_TimeTrackingRepo  = timeTrackingRepo;
            m_BadgeService      = badgeService;
            m_Bot             = bot;
            m_Factory         = factory;
            m_ActivityLibrary = library;
            m_AudioService    = audioService;

            m_ConfigProvider?.RegisterClient(this);
            //write default values to config if no config values were loaded
            if (assetsUrl.IsNullOrEmpty())
            {
                m_ConfigProvider?.ClientDirty(this);
            }

            RegisterForEvents();
        }
Exemple #2
0
 private void Construct(IBadgeService badgeService,
                        IAciEventManager eventManager,
                        IBot bot,
                        IWorkflowService workflowService,
                        ITimeTrackingRepository timeTracker,
                        IAdaptivityService adaptivityService,
                        FeedbackActivityFactory activityFactory,
                        IConfigProvider configProvider)
 {
     m_BadgeService      = badgeService;
     m_EventManager      = eventManager;
     m_Factory           = activityFactory;
     m_Bot               = bot;
     m_TimeTracker       = timeTracker;
     m_WorkflowService   = workflowService;
     m_AdaptivityService = adaptivityService;
     m_ConfigProvider    = configProvider;
 }