public CiDashboardHub(IConnectionsManager connectionsManager, ICommandProcessor commandProcessor, IInformationQuery infoQuery, IRefreshInformation refreshInfo)
 {
     _connectionsManager = connectionsManager;
     _commandProcessor   = commandProcessor;
     _infoQuery          = infoQuery;
     _refreshInfo        = refreshInfo;
 }
コード例 #2
0
        public CspSickLeavesRegistry(
            SickLeavesSyncExecutor sickLeavesSyncExecutor,
            IRefreshInformation refreshInformation)
        {
            this.sickLeavesSyncExecutor = sickLeavesSyncExecutor;
            this.refreshInformation     = refreshInformation;

            this.Self.Tell(RefreshDatabase.Instance);
        }
コード例 #3
0
        public CspVacationsRegistry(
            VacationsSyncExecutor vacationsSyncExecutor,
            IRefreshInformation refreshInformation)
        {
            this.vacationsSyncExecutor          = vacationsSyncExecutor;
            this.refreshInformation             = refreshInformation;
            this.calendarEventsApprovalsChecker = Context.ActorSelection(CalendarEventsApprovalsCheckerActorPath);

            this.Self.Tell(RefreshDatabase.Instance);
        }
コード例 #4
0
        public CspEmployeeSickLeavesRegistry(
            string employeeId,
            IRefreshInformation refreshInformation)
        {
            this.employeeId         = employeeId;
            this.refreshInformation = refreshInformation;

            this.cspSickLeavesRegistryActor = Context.ActorSelection(CspSickLeavesRegistryActorPath);

            this.Self.Tell(Initialize.Instance);
        }
コード例 #5
0
        public OrganizationActor(IRefreshInformation refreshInformation)
        {
            this.employeesActor   = Context.ActorOf(EmployeesActor.GetProps(), "employees");
            this.departmentsActor = Context.ActorOf(DepartmentsActor.GetProps(this.employeesActor), "departments");

            Context.System.Scheduler.ScheduleTellRepeatedly(
                TimeSpan.Zero,
                TimeSpan.FromMinutes(refreshInformation.IntervalInMinutes),
                this.Self,
                RefreshOrganizationInformation.Instance,
                this.Self);
        }
コード例 #6
0
        public ArcadiaVacationCreditRegistry(
            EmployeesQueryExecutor employeesQueryExecutor,
            IRefreshInformation refreshInformation)
        {
            this.employeesQueryExecutor = employeesQueryExecutor;

            Context.System.Scheduler.ScheduleTellRepeatedly(
                TimeSpan.Zero,
                TimeSpan.FromMinutes(refreshInformation.IntervalInMinutes),
                this.Self,
                Refresh.Instance,
                this.Self);

            this.vacationsEmailLoader = Context.ActorOf(VacationsEmailLoader.CreateProps(), "vacations-email-loader");
        }
コード例 #7
0
        public void Setup()
        {
            _fixture = new Fixture()
                       .Customize(new AutoFakeItEasyCustomization());

            _infoQuery          = A.Fake <IInformationQuery>();
            _connectionsManager = A.Fake <IConnectionsManager>();
            _commandProcessor   = A.Fake <ICommandProcessor>();
            _refreshInfo        = A.Fake <IRefreshInformation>();
            _principal          = A.Fake <IPrincipal>();
            _context            = A.Fake <HubCallerContext>();

            _fakeClient  = A.Fake <ICiDashboardHub>();
            _fakeClients = A.Fake <IHubCallerConnectionContext <ICiDashboardHub> >();
        }
コード例 #8
0
        public OrganizationActor(
            IRefreshInformation refreshInformation,
            IEmployeeVacationsRegistryPropsFactory employeeVacationsRegistryPropsFactory,
            IEmployeeSickLeavesRegistryPropsFactory employeeSickLeavesRegistryPropsFactory,
            AppSettings appSettings)
        {
            this.employeesActor = Context.ActorOf(
                EmployeesActor.GetProps(employeeVacationsRegistryPropsFactory, employeeSickLeavesRegistryPropsFactory),
                "employees");
            this.departmentsActor = Context.ActorOf(
                DepartmentsActor.GetProps(this.employeesActor, appSettings.DepartmentFeatures),
                "departments");

            Context.System.Scheduler.ScheduleTellRepeatedly(
                TimeSpan.Zero,
                TimeSpan.FromMinutes(refreshInformation.IntervalInMinutes),
                this.Self,
                RefreshOrganizationInformation.Instance,
                this.Self);
        }
コード例 #9
0
 public CspCalendarEventsApprovalsChecker(MemoryCache memoryCache, IRefreshInformation refreshInformation)
 {
     this.departmentsActor = Context.ActorOf(CachedDepartmentsStorage.CreateProps(memoryCache, TimeSpan.FromMinutes(refreshInformation.IntervalInMinutes), true));
     this.employeesActor   = Context.ActorOf(CachedEmployeesInfoStorage.CreateProps(memoryCache, TimeSpan.FromMinutes(refreshInformation.IntervalInMinutes), true));
 }
コード例 #10
0
 public ArcadiaVacationRegistry(VacationsQueryExecutor vacationsQueryExecutor, IRefreshInformation refreshInformation)
 {
     this.vacationsQueryExecutor = vacationsQueryExecutor;
     Context.System.Scheduler.ScheduleTellRepeatedly(TimeSpan.Zero, TimeSpan.FromMinutes(refreshInformation.IntervalInMinutes), this.Self, new Refresh(), this.Self);
 }
コード例 #11
0
 public CspEmployeeVacationsRegistryPropsFactory(IRefreshInformation refreshInformation)
 {
     this.refreshInformation = refreshInformation;
 }
コード例 #12
0
 public OrganizationModule(IRefreshInformation refreshInformation)
 {
     this.refreshInformation = refreshInformation;
 }
コード例 #13
0
 public CspEmployeeSickLeavesRegistryPropsFactory(IRefreshInformation refreshInformation)
 {
     this.refreshInformation = refreshInformation;
 }