public Service( IDbConnectionFactory connectionFactory, ICandidatesWorkflowCommand candidatesWorkflowCommand, ICandidatesCommand candidatesCommand, IMembersQuery membersQuery, IEmailsCommand emailsCommand) : base(connectionFactory) { for (int i = 0; i < _locks.Length; i++) { _locks[i] = new object(); } _membersQuery = membersQuery; _emailsCommand = emailsCommand; _candidatesWorkflowCommand = candidatesWorkflowCommand; _candidatesCommand = candidatesCommand; ActivelyLookingConfirmationTimeout = TimeSpan.FromDays(30); ActivelyLookingResponseTimeout = TimeSpan.FromDays(7); AvailableNowConfirmationLongTimeout = TimeSpan.FromDays(30); AvailableNowConfirmationShortTimeout = TimeSpan.FromDays(7); AvailableNowResponseLongTimeout = TimeSpan.FromDays(7); AvailableNowResponseShortTimeout = TimeSpan.FromDays(7); }
public DataExchange(TimeSpan[] delays, IMembersQuery membersQuery, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand, ICandidatesWorkflowCommand workflowCommand) { _delays = delays; _membersQuery = membersQuery; _emailVerificationsQuery = emailVerificationsQuery; _emailsCommand = emailsCommand; _workflowCommand = workflowCommand; }
public Service(IDbConnectionFactory connectionFactory, ICandidatesWorkflowCommand workflowCommand, IMembersQuery membersQuery, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand) : base(connectionFactory) { _workflowCommand = workflowCommand; _membersQuery = membersQuery; _emailVerificationsQuery = emailVerificationsQuery; _emailsCommand = emailsCommand; Delays = DefaultDelays; }
public Worker(ICandidatesWorkflowCommand workflowCommand, IExecuteJobAdSearchCommand searchCommand, IJobAdsQuery jobAdsQuery, IEmailsCommand emailsCommand, IMembersQuery membersQuery, IUserAccountsQuery userAccountsQuery) { _workflowCommand = workflowCommand; _jobAdSearchCommand = searchCommand; _jobAdsQuery = jobAdsQuery; _emailsCommand = emailsCommand; _membersQuery = membersQuery; _userAccountsQuery = userAccountsQuery; MaxResults = 10; // default }
public DataExchange( ICandidatesWorkflowCommand candidatesWorkflowCommand, ICandidatesCommand candidatesCommand, IMembersQuery membersQuery, IEmailsCommand emailsCommand, TimeSpan activelyLookingConfirmationTimeout, TimeSpan activelyLookingResponseTimeout, TimeSpan availableNowConfirmationLongTimeout, TimeSpan availableNowConfirmationShortTimeout, TimeSpan availableNowResponseLongTimeout, TimeSpan availableNowResponseShortTimeout) { _candidatesWorkflowCommand = candidatesWorkflowCommand; _candidatesCommand = candidatesCommand; _membersQuery = membersQuery; _emailsCommand = emailsCommand; _activelyLookingConfirmationTimeout = activelyLookingConfirmationTimeout; _activelyLookingResponseTimeout = activelyLookingResponseTimeout; _availableNowConfirmationLongTimeout = availableNowConfirmationLongTimeout; _availableNowConfirmationShortTimeout = availableNowConfirmationShortTimeout; _availableNowResponseLongTimeout = availableNowResponseLongTimeout; _availableNowResponseShortTimeout = availableNowResponseShortTimeout; }