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();
        }
Beispiel #2
0
 public BadgeService(IAciEventManager eventManager
                     , IUserManager userManager
                     , IWorkflowService workflowService
                     , ITimeProvider timeProvider
                     , ITimeTrackingRepository timeRepo)
 {
     m_EventManager    = eventManager;
     m_UserManager     = userManager;
     m_WorkflowService = workflowService;
     m_TimeProvider    = timeProvider;
     m_TimeRepo        = timeRepo;
 }
 public void Construct(IAciEventManager broker
                       , ITimeProvider timeProvider
                       , ITimeTrackingRepository timeTrackingRepo
                       , IIdDisposalService disposalService
                       , WorkflowStepTrigger.Factory triggerFactory)
 {
     m_EventBroker        = broker;
     m_TimeProvider       = timeProvider;
     m_TimeTrackingRepo   = timeTrackingRepo;
     m_DisposalService    = disposalService;
     m_StepTriggerFactory = triggerFactory;
     RegisterForEvents();
 }
Beispiel #4
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;
 }
Beispiel #5
0
 public TimeTrackingService(ITimeTrackingRepository repo, HttpResponseService response)
 {
     this._repo     = repo;
     this._response = response;
 }
 public HarvestRepository(ITimeTrackingRepository timeRepository, AccountRepository accountRepository)
 {
     Time = timeRepository;
     Account = accountRepository;
 }
		public Controller(ITimeTrackingRepository timeTrackingRepository,
		                  IWebServicesFactory webServicesFactory,
		                  IControllerEnvironment env)
		{
			_timeTrackingRepository = timeTrackingRepository;
			_webServicesFactory = webServicesFactory;
			_env = env;
			_stopWatch = new StopWatch(_timeTrackingRepository);
			_stopWatch.OnStart += StopWatch_OnStart;
			_stopWatch.OnStop += StopWatch_OnStop;
		}