public CiDashboardHub(IConnectionsManager connectionsManager, ICommandProcessor commandProcessor, IInformationQuery infoQuery, IRefreshInformation refreshInfo) { _connectionsManager = connectionsManager; _commandProcessor = commandProcessor; _infoQuery = infoQuery; _refreshInfo = refreshInfo; }
public CspSickLeavesRegistry( SickLeavesSyncExecutor sickLeavesSyncExecutor, IRefreshInformation refreshInformation) { this.sickLeavesSyncExecutor = sickLeavesSyncExecutor; this.refreshInformation = refreshInformation; this.Self.Tell(RefreshDatabase.Instance); }
public CspVacationsRegistry( VacationsSyncExecutor vacationsSyncExecutor, IRefreshInformation refreshInformation) { this.vacationsSyncExecutor = vacationsSyncExecutor; this.refreshInformation = refreshInformation; this.calendarEventsApprovalsChecker = Context.ActorSelection(CalendarEventsApprovalsCheckerActorPath); this.Self.Tell(RefreshDatabase.Instance); }
public CspEmployeeSickLeavesRegistry( string employeeId, IRefreshInformation refreshInformation) { this.employeeId = employeeId; this.refreshInformation = refreshInformation; this.cspSickLeavesRegistryActor = Context.ActorSelection(CspSickLeavesRegistryActorPath); this.Self.Tell(Initialize.Instance); }
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); }
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"); }
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> >(); }
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); }
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)); }
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); }
public CspEmployeeVacationsRegistryPropsFactory(IRefreshInformation refreshInformation) { this.refreshInformation = refreshInformation; }
public OrganizationModule(IRefreshInformation refreshInformation) { this.refreshInformation = refreshInformation; }
public CspEmployeeSickLeavesRegistryPropsFactory(IRefreshInformation refreshInformation) { this.refreshInformation = refreshInformation; }