public VolunteerApplicationService(IFormSubmissionService formSubmissionService,
     IConfigurationWrapper configurationWrapper, IServeService serveService)
 {
     _formSubmissionService = formSubmissionService;
     _configurationWrapper = configurationWrapper;
     _serveService = serveService;
 }
예제 #2
0
        public ChildcareService(IEventParticipantRepository eventParticipantService,
                                ICommunicationRepository communicationService,
                                IConfigurationWrapper configurationWrapper,
                                IContactRepository contactService,
                                IEventRepository eventService,
                                IParticipantRepository participantService,
                                IServeService serveService,
                                IDateTime dateTimeWrapper,
                                IApiUserRepository apiUserService,
                                IEventService crdsEventService,
                                IChildcareRequestRepository childcareRequestService,
                                IGroupService groupService,
                                IChildcareRepository childcareRepository)
        {
            _childcareRequestService = childcareRequestService;
            _eventParticipantService = eventParticipantService;
            _communicationService    = communicationService;
            _configurationWrapper    = configurationWrapper;
            _contactService          = contactService;
            _crdsEventService        = crdsEventService;
            _eventService            = eventService;
            _participantService      = participantService;
            _serveService            = serveService;
            _dateTimeWrapper         = dateTimeWrapper;
            _apiUserService          = apiUserService;
            _groupService            = groupService;
            _childcareRepository     = childcareRepository;

            _childcareGroupType = _configurationWrapper.GetConfigIntValue("ChildcareGroupType");
        }
예제 #3
0
 public VolunteerApplicationService(IFormSubmissionRepository formSubmissionService,
                                    IConfigurationWrapper configurationWrapper, IServeService serveService)
 {
     _formSubmissionService = formSubmissionService;
     _configurationWrapper  = configurationWrapper;
     _serveService          = serveService;
 }
예제 #4
0
 public TripService(IEventParticipantService eventParticipant,
                    IDonationService donationService,
                    IGroupService groupService,
                    IFormSubmissionService formSubmissionService,
                    MinistryPlatform.Translation.Services.Interfaces.IEventService eventService,
                    IDonorService donorService,
                    IPledgeService pledgeService,
                    ICampaignService campaignService,
                    IPrivateInviteService privateInviteService,
                    ICommunicationService communicationService,
                    IContactService contactService,
                    IContactRelationshipService contactRelationshipService,
                    IConfigurationWrapper configurationWrapper,
                    IPersonService personService,
                    IServeService serveService,
                    IDestinationService destinationService)
 {
     _eventParticipantService = eventParticipant;
     _donationService = donationService;
     _groupService = groupService;
     _formSubmissionService = formSubmissionService;
     _mpEventService = eventService;
     _mpDonorService = donorService;
     _mpPledgeService = pledgeService;
     _campaignService = campaignService;
     _privateInviteService = privateInviteService;
     _communicationService = communicationService;
     _contactService = contactService;
     _contactRelationshipService = contactRelationshipService;
     _configurationWrapper = configurationWrapper;
     _personService = personService;
     _serveService = serveService;
     _destinationService = destinationService;
 }
예제 #5
0
 public SignupToServeProcessor(IServeService serveService, IConfigurationWrapper configurationWrapper, IAuthenticationRepository authenticationService)
     : base(authenticationService, configurationWrapper)
 {
     this._serveService          = serveService;
     this._configurationWrapper  = configurationWrapper;
     this._authenticationService = authenticationService;
 }
예제 #6
0
 public ProfileController(IPersonService personService, IServeService serveService, IUserImpersonationService impersonationService, IDonorService donorService, IAuthenticationService authenticationService)
 {
     _personService = personService;
     _serveService = serveService;
     _impersonationService = impersonationService;
     _donorService = donorService;
     _authenticationService = authenticationService;
 }
예제 #7
0
        public ServeController(IServeService serveService, IConfigurationWrapper configuration, IMessageFactory messageFactory, IMessageQueueFactory messageQueueFactory)
        {
            _serveService = serveService;
            _messageFactory = messageFactory;

            var eventQueueName = configuration.GetConfigValue("SignupToServeEventQueue");
            _eventQueue = messageQueueFactory.CreateQueue(eventQueueName, QueueAccessMode.Send);
            _messageFactory = messageFactory;
        }
예제 #8
0
        public ServeController(IServeService serveService, IConfigurationWrapper configuration, IMessageFactory messageFactory, IMessageQueueFactory messageQueueFactory, IUserImpersonationService userImpersonationService, IAuthenticationRepository authenticationRepository) : base(userImpersonationService, authenticationRepository)
        {
            _serveService   = serveService;
            _messageFactory = messageFactory;

            var eventQueueName = configuration.GetConfigValue("SignupToServeEventQueue");

            _eventQueue     = messageQueueFactory.CreateQueue(eventQueueName, QueueAccessMode.Send);
            _messageFactory = messageFactory;
        }
예제 #9
0
 public ProfileController(IPersonService personService, IServeService serveService, IUserImpersonationService impersonationService, IDonorService donorService, IAuthenticationRepository authenticationService, IUserRepository userService, IContactRelationshipRepository contactRelationshipService, IConfigurationWrapper config, IUserImpersonationService userImpersonationService) : base(userImpersonationService, authenticationService)
 {
     _personService               = personService;
     _serveService                = serveService;
     _impersonationService        = impersonationService;
     _donorService                = donorService;
     _authenticationService       = authenticationService;
     _userService                 = userService;
     _contactRelationshipService  = contactRelationshipService;
     _allowedAdminGetProfileRoles = config.GetConfigValue("AdminGetProfileRoles").Split(',').Select(int.Parse).ToList();
 }
예제 #10
0
        static void Main(string[] args)
        {
            AutoMapperConfig.RegisterMappings();

            var container     = new UnityContainer();
            var unitySections = new[] { "crossroadsCommonUnity", "unity" };

            foreach (var section in unitySections.Select(sectionName => (UnityConfigurationSection)ConfigurationManager.GetSection(sectionName)))
            {
                container.LoadConfiguration(section);
            }

            TlsHelper.AllowTls12();

            var exitCode = 0;

            try
            {
                // Dependency Injection
                _eventService = container.Resolve <EventService>();
                _eventService.SendReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode = 1;
                Log.Error("Event Reminder Process failed.", ex);
            }

            try
            {
                _eventService = container.Resolve <EventService>();
                _eventService.SendPrimaryContactReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode = 1;
                Log.Error("Event Primary Contact Reminder Process failed.", ex);
            }

            try
            {
                _serveService = container.Resolve <ServeService>();
                _serveService.SendReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode += 2;
                Log.Error("Serve Reminder Process failed.", ex);
            }

            Log.Info("all done");
            Environment.Exit(exitCode);
        }
예제 #11
0
 public GroupService(IGroupService mpGroupService,
                     IConfigurationWrapper configurationWrapper,
                     IEventService eventService,
                     IContactRelationshipService contactRelationshipService,
                     IServeService serveService)
 {
     _mpGroupService = mpGroupService;
     _configurationWrapper = configurationWrapper;
     _eventService = eventService;
     _contactRelationshipService = contactRelationshipService;
     _serveService = serveService;
     GroupRoleDefaultId = Convert.ToInt32(_configurationWrapper.GetConfigIntValue("Group_Role_Default_ID"));
 }
예제 #12
0
        static void Main(string[] args)
        {
            AutoMapperConfig.RegisterMappings();
            var section   = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
            var container = new UnityContainer();

            section.Configure(container);

            TlsHelper.AllowTls12();

            var exitCode = 0;

            try
            {
                // Dependency Injection
                _eventService = container.Resolve <EventService>();
                _eventService.SendReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode = 1;
                Log.Error("Event Reminder Process failed.", ex);
            }

            try
            {
                _eventService = container.Resolve <EventService>();
                _eventService.SendPrimaryContactReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode = 1;
                Log.Error("Event Primary Contact Reminder Process failed.", ex);
            }

            try
            {
                _serveService = container.Resolve <ServeService>();
                _serveService.SendReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode += 2;
                Log.Error("Serve Reminder Process failed.", ex);
            }

            Log.Info("all done");
            Environment.Exit(exitCode);
        }
예제 #13
0
        public GroupService(IGroupRepository mpGroupRepository,
                            IConfigurationWrapper configurationWrapper,
                            IEventRepository eventService,
                            IContactRelationshipRepository contactRelationshipService,
                            IServeService serveService,
                            IParticipantRepository participantService,
                            ICommunicationRepository communicationService,
                            IContactRepository contactService,
                            IObjectAttributeService objectAttributeService,
                            IApiUserRepository apiUserService,
                            IAttributeRepository attributeRepository,
                            IEmailCommunication emailCommunicationService,
                            IUserRepository userRepository,
                            IInvitationRepository invitationRepository,
                            IAttributeService attributeService,
                            IDateTime dateTimeWrapper)

        {
            _mpGroupRepository          = mpGroupRepository;
            _configurationWrapper       = configurationWrapper;
            _eventService               = eventService;
            _contactRelationshipService = contactRelationshipService;
            _serveService               = serveService;
            _participantService         = participantService;
            _communicationService       = communicationService;
            _contactService             = contactService;
            _objectAttributeService     = objectAttributeService;
            _apiUserService             = apiUserService;
            _attributeRepository        = attributeRepository;
            _emailCommunicationService  = emailCommunicationService;
            _userRepository             = userRepository;
            _invitationRepository       = invitationRepository;
            _attributeService           = attributeService;
            _domainId = configurationWrapper.GetConfigIntValue("DomainId");

            _groupRoleDefaultId           = _configurationWrapper.GetConfigIntValue("Group_Role_Default_ID");
            _defaultAuthorUserId          = configurationWrapper.GetConfigIntValue("DefaultAuthorUser");
            _defaultContactEmailId        = _configurationWrapper.GetConfigIntValue("DefaultContactEmailId");
            _journeyGroupTypeId           = configurationWrapper.GetConfigIntValue("JourneyGroupTypeId");
            _groupCategoryAttributeTypeId = configurationWrapper.GetConfigIntValue("GroupCategoryAttributeTypeId");
            _groupTypeAttributeTypeId     = configurationWrapper.GetConfigIntValue("GroupTypeAttributeTypeId");
            _groupAgeRangeAttributeTypeId = configurationWrapper.GetConfigIntValue("GroupAgeRangeAttributeTypeId");
            _groupRoleLeader               = configurationWrapper.GetConfigIntValue("GroupRoleLeader");
            _onsiteGroupTypeId             = _configurationWrapper.GetConfigIntValue("OnsiteGroupTypeId");
            _childcareEventTypeId          = _configurationWrapper.GetConfigIntValue("ChildcareEventType");
            _removeSelfFromGroupTemplateId = _configurationWrapper.GetConfigIntValue("RemoveSelfFromGroupTemplateId");
            _dateTimeWrapper               = dateTimeWrapper;
        }
예제 #14
0
 public ChildcareService(IEventParticipantService eventParticipantService,
                         ICommunicationService communicationService,
                         IConfigurationWrapper configurationWrapper,
                         IContactService contactService,
                         MinistryPlatform.Translation.Services.Interfaces.IEventService eventService,
                         IParticipantService participantService,
                         IServeService serveService,
                         IDateTime dateTimeWrapper,
                         IApiUserService apiUserService, Interfaces.IEventService crdsEventService)
 {
     _eventParticipantService = eventParticipantService;
     _communicationService = communicationService;
     _configurationWrapper = configurationWrapper;
     _contactService = contactService;
     _crdsEventService = crdsEventService;
     _eventService = eventService;
     _participantService = participantService;
     _serveService = serveService;
     _dateTimeWrapper = dateTimeWrapper;
     _apiUserService = apiUserService;
 }
예제 #15
0
 public TripService(IEventParticipantRepository eventParticipant,
                    IDonationRepository donationService,
                    IGroupRepository groupService,
                    IFormSubmissionRepository formSubmissionService,
                    IEventRepository eventService,
                    IPledgeRepository pledgeService,
                    ICampaignRepository campaignService,
                    IPrivateInviteRepository privateInviteService,
                    ICommunicationRepository communicationService,
                    IContactRepository contactService,
                    IContactRelationshipRepository contactRelationshipService,
                    IConfigurationWrapper configurationWrapper,
                    IPersonService personService,
                    IServeService serveService,
                    IProgramRepository programRepository,
                    IApiUserRepository apiUserRepository,
                    ITripRepository tripRepository,
                    IDonorRepository mpDonorService)
 {
     _eventParticipantService    = eventParticipant;
     _donationService            = donationService;
     _groupService               = groupService;
     _formSubmissionService      = formSubmissionService;
     _mpEventService             = eventService;
     _mpPledgeService            = pledgeService;
     _campaignService            = campaignService;
     _privateInviteService       = privateInviteService;
     _communicationService       = communicationService;
     _contactService             = contactService;
     _contactRelationshipService = contactRelationshipService;
     _configurationWrapper       = configurationWrapper;
     _personService              = personService;
     _serveService               = serveService;
     _programRepository          = programRepository;
     _apiUserRepository          = apiUserRepository;
     _tripRepository             = tripRepository;
     _mpDonorService             = mpDonorService;
 }
예제 #16
0
        static void Main(string[] args)
        {
            AutoMapperConfig.RegisterMappings();
            var section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
            var container = new UnityContainer();
            section.Configure(container);

            TlsHelper.AllowTls12();

            var exitCode = 0;

            try
            {
                // Dependency Injection
                _eventService = container.Resolve<EventService>();
                _eventService.SendReminderEmails();                                  
            }
            catch (Exception ex)
            {
                exitCode = 1;
                Log.Error("Event Reminder Process failed.", ex);
            }

            try
            {
                _serveService = container.Resolve<ServeService>();
                _serveService.SendReminderEmails();
            }
            catch (Exception ex)
            {
                exitCode += 2;
                Log.Error("Serve Reminder Process failed.", ex);
            }

            Log.Info("all done");
            Environment.Exit(exitCode);
        }