Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public DataExchange(TimeSpan[] delays, IMembersQuery membersQuery, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand, ICandidatesWorkflowCommand workflowCommand)
 {
     _delays                  = delays;
     _membersQuery            = membersQuery;
     _emailVerificationsQuery = emailVerificationsQuery;
     _emailsCommand           = emailsCommand;
     _workflowCommand         = workflowCommand;
 }
Exemplo n.º 3
0
        public Service(IDbConnectionFactory connectionFactory, ICandidatesWorkflowCommand workflowCommand, IMembersQuery membersQuery, IEmailVerificationsQuery emailVerificationsQuery, IEmailsCommand emailsCommand)
            : base(connectionFactory)
        {
            _workflowCommand         = workflowCommand;
            _membersQuery            = membersQuery;
            _emailVerificationsQuery = emailVerificationsQuery;
            _emailsCommand           = emailsCommand;

            Delays = DefaultDelays;
        }
Exemplo n.º 4
0
        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
        }
Exemplo n.º 5
0
        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;
        }