public MinistryPlatformServiceImpl(PlatformServiceClient platformServiceClient, IConfigurationWrapper configurationWrapper) { _platformServiceClient = platformServiceClient; _configurationWrapper = configurationWrapper; _impersonateCookieName = string.Format("{0}.1", FormsAuthentication.FormsCookieName); }
public VolunteerApplicationService(IFormSubmissionService formSubmissionService, IConfigurationWrapper configurationWrapper, IServeService serveService) { _formSubmissionService = formSubmissionService; _configurationWrapper = configurationWrapper; _serveService = serveService; }
public LookupController(IConfigurationWrapper configurationWrapper, LookupRepository lookupRepository, IUserImpersonationService userImpersonationService, IAuthenticationRepository authenticationRepository, IUserRepository userService) : base(userImpersonationService, authenticationRepository) { _configurationWrapper = configurationWrapper; _lookupRepository = lookupRepository; _authenticationRepository = authenticationRepository; _userService = userService; }
public ResponseService(IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService) : base(authenticationService, configurationWrapper) { _authenticationService = authenticationService; _configurationWrapper = configurationWrapper; _ministryPlatformService = ministryPlatformService; }
public PhoneValidationManager(IConfigurationWrapper configurationWrapper) { this._configurationWrapper = configurationWrapper; _phoneNumberValidationApiKey = this._configurationWrapper.NumverifyApiKey; _restClient = new RestClient(this._configurationWrapper.NumverifyApiRoot); }
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"); }
public PaymentService(IInvoiceRepository invoiceRepository, IPaymentRepository paymentRepository, IConfigurationWrapper configurationWrapper, IContactRepository contactRepository, IPaymentTypeRepository paymentTypeRepository, IEventRepository eventRepository, ICommunicationRepository communicationRepository, IApiUserRepository apiUserRepository, IProductRepository productRepository, IPaymentProcessorService paymentProcessorService) { _invoiceRepository = invoiceRepository; _paymentRepository = paymentRepository; _contactRepository = contactRepository; _paymentTypeRepository = paymentTypeRepository; _communicationRepository = communicationRepository; _configWrapper = configurationWrapper; _eventPRepository = eventRepository; _apiUserRepository = apiUserRepository; _productRepository = productRepository; _paymentProcessorService = paymentProcessorService; _paidinfullStatus = configurationWrapper.GetConfigIntValue("PaidInFull"); _somepaidStatus = configurationWrapper.GetConfigIntValue("SomePaid"); _nonePaidStatus = configurationWrapper.GetConfigIntValue("NonePaid"); _defaultPaymentStatus = configurationWrapper.GetConfigIntValue("DonationStatusPending"); _declinedPaymentStatus = configurationWrapper.GetConfigIntValue("DonationStatusDeclined"); _bankErrorRefundContactId = configurationWrapper.GetConfigIntValue("ContactIdForBankErrorRefund"); }
public DonorService(IMinistryPlatformService ministryPlatformService, IProgramService programService, ICommunicationService communicationService, IAuthenticationService authenticationService, IContactService contactService, IConfigurationWrapper configuration, ICryptoProvider crypto) : base(authenticationService, configuration) { _ministryPlatformService = ministryPlatformService; _programService = programService; _communicationService = communicationService; _contactService = contactService; _crypto = crypto; _donorPageId = configuration.GetConfigIntValue("Donors"); _donationPageId = configuration.GetConfigIntValue("Donations"); _donationDistributionPageId = configuration.GetConfigIntValue("Distributions"); _donorAccountsPageId = configuration.GetConfigIntValue("DonorAccounts"); _findDonorByAccountPageViewId = configuration.GetConfigIntValue("FindDonorByAccountPageView"); _donationStatusesPageId = configuration.GetConfigIntValue("DonationStatus"); _donorLookupByEncryptedAccount = configuration.GetConfigIntValue("DonorLookupByEncryptedAccount"); _myHouseholdDonationDistributions = configuration.GetConfigIntValue("MyHouseholdDonationDistributions"); _recurringGiftBySubscription = configuration.GetConfigIntValue("RecurringGiftBySubscription"); _recurringGiftPageId = configuration.GetConfigIntValue("RecurringGifts"); _myDonorPageId = configuration.GetConfigIntValue("MyDonor"); _myHouseholdDonationRecurringGifts = configuration.GetConfigIntValue("MyHouseholdDonationRecurringGifts"); _myHouseholdRecurringGiftsApiPageView = configuration.GetConfigIntValue("MyHouseholdRecurringGiftsApiPageView"); _myHouseholdPledges = configuration.GetConfigIntValue("MyHouseholdPledges"); _dateTimeFormat = new DateTimeFormatInfo { AMDesignator = "am", PMDesignator = "pm" }; }
public ProgramService(IMinistryPlatformService ministryPlatformService, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _onlineGivingProgramsPageViewId = configurationWrapper.GetConfigIntValue("OnlineGivingProgramsPageViewId"); _programsPageId = configurationWrapper.GetConfigIntValue("Programs"); }
public EventService(TranslationEventService eventService, IGroupRepository groupService, ICommunicationRepository communicationService, IContactRepository contactService, IContentBlockService contentBlockService, IConfigurationWrapper configurationWrapper, IApiUserRepository apiUserService, IContactRelationshipRepository contactRelationshipService, IGroupParticipantRepository groupParticipantService, IParticipantRepository participantService, IRoomRepository roomService, IEquipmentRepository equipmentService, IEventParticipantRepository eventParticipantService) { _eventService = eventService; _groupService = groupService; _communicationService = communicationService; _contactService = contactService; _contentBlockService = contentBlockService; _configurationWrapper = configurationWrapper; _apiUserService = apiUserService; _contactRelationshipService = contactRelationshipService; _groupParticipantService = groupParticipantService; _participantService = participantService; _roomService = roomService; _equipmentService = equipmentService; _eventParticipantService = eventParticipantService; childcareEventTypeID = configurationWrapper.GetConfigIntValue("ChildcareEventType"); childcareGroupTypeID = configurationWrapper.GetConfigIntValue("ChildcareGroupType"); }
public AjaxController(IShippingCostsLookup shippingCostsLookup, IShippingZonesLookup shippingZonesLookup, IConfigurationWrapper configuration) { _shippingCostsLookup = shippingCostsLookup; _shippingZonesLookup = shippingZonesLookup; _configuration = configuration; _calculator = new Calculator(_shippingZonesLookup, _shippingCostsLookup); }
public ServeService(IContactRepository contactService, IContactRelationshipRepository contactRelationshipService, IOpportunityRepository opportunityService, MinistryPlatform.Translation.Repositories.Interfaces.IEventRepository eventService, IParticipantRepository participantService, IGroupParticipantRepository groupParticipantService, IGroupRepository groupService, ICommunicationRepository communicationService, IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IApiUserRepository apiUserService, IResponseRepository responseService) { _contactService = contactService; _contactRelationshipService = contactRelationshipService; _opportunityService = opportunityService; _eventService = eventService; _participantService = participantService; _groupParticipantService = groupParticipantService; _groupService = groupService; _communicationService = communicationService; _authenticationService = authenticationService; _configurationWrapper = configurationWrapper; _apiUserService = apiUserService; _responseService = responseService; _serveGroupType = _configurationWrapper.GetConfigIntValue("ServeGroupType"); _rsvpYes = _configurationWrapper.GetConfigIntValue("RSVPYesId"); }
public void SetUp() { _configurationWrapper = new ConfigurationWrapper(); _platformService = new PlatformServiceClient(); _ministryPlatformService = new MinistryPlatformServiceImpl(_platformService, _configurationWrapper); _fixture = new AuthenticationServiceImpl(_platformService, _ministryPlatformService); }
public ServeService(IContactService contactService, IContactRelationshipService contactRelationshipService, IOpportunityService opportunityService, MinistryPlatform.Translation.Services.Interfaces.IEventService eventService, IParticipantService participantService, IGroupParticipantService groupParticipantService, IGroupService groupService, ICommunicationService communicationService, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper, IApiUserService apiUserService, IResponseService responseService) { _contactService = contactService; _contactRelationshipService = contactRelationshipService; _opportunityService = opportunityService; _eventService = eventService; _participantService = participantService; _groupParticipantService = groupParticipantService; _groupService = groupService; _communicationService = communicationService; _authenticationService = authenticationService; _configurationWrapper = configurationWrapper; _apiUserService = apiUserService; _responseService = responseService; }
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; }
public AccelometerAlgorithmHelperService( ILikkleUoW unitOfWork, IConfigurationWrapper configuration) { _unitOfWork = unitOfWork; _configuration = configuration; }
public TrendModule(IServiceProvider services) { _Logger = services.GetService <ILogger <TrendModule> >(); _TrendHelper = services.GetRequiredService <ITrendHelper>(); _FunctionWrapper = services.GetRequiredService <IFunctionWrapper>(); _Config = services.GetService <IConfigurationWrapper>(); }
public GetRoadInformation(IConfigurationWrapper wrapper) { _configWrapper = wrapper; baseUrl = _configWrapper.GetValue("Url"); app_id = _configWrapper.GetValue("app_Id"); app_key = _configWrapper.GetValue("app_Key"); }
public CheckScannerController(IConfigurationWrapper configuration, ICheckScannerService checkScannerService, IAuthenticationRepository authenticationService, ICommunicationRepository communicationService, ICryptoProvider cryptoProvider, IUserImpersonationService userImpersonationService, IMessageQueueFactory messageQueueFactory = null, IMessageFactory messageFactory = null) : base(userImpersonationService) { _checkScannerService = checkScannerService; _authenticationService = authenticationService; _communicationService = communicationService; _cryptoProvider = cryptoProvider; var b = configuration.GetConfigValue("CheckScannerDonationsAsynchronousProcessingMode"); _asynchronous = b != null && bool.Parse(b); if (_asynchronous) { var donationsQueueName = configuration.GetConfigValue("CheckScannerDonationsQueueName"); // ReSharper disable once PossibleNullReferenceException _donationsQueue = messageQueueFactory.CreateQueue(donationsQueueName, QueueAccessMode.Send); _messageFactory = messageFactory; } }
public InvitationService( IInvitationRepository invitationRepository, ICommunicationRepository communicationService, IConfigurationWrapper configuration, IGroupRepository groupRepository, IParticipantRepository participantRepository, IContactRepository contactRepository) { _invitationRepository = invitationRepository; _communicationService = communicationService; _groupRepository = groupRepository; _participantRepository = participantRepository; _contactRepository = contactRepository; _groupInvitationType = configuration.GetConfigIntValue("GroupInvitationType"); _groupInvitationEmailTemplate = configuration.GetConfigIntValue("GroupInvitationEmailTemplate"); _groupInvitationEmailTemplateCustom = configuration.GetConfigIntValue("GroupInvitationEmailTemplateCustom"); _tripInvitationType = configuration.GetConfigIntValue("TripInvitationType"); _tripInvitationEmailTemplate = configuration.GetConfigIntValue("PrivateInviteTemplate"); _anywhereGatheringInvitationEmailTemplate = configuration.GetConfigIntValue("AnywhereGatheringInvitationEmailTemplate"); _anywhereGatheringInvitationTypeId = configuration.GetConfigIntValue("AnywhereGatheringInvitationType"); _defaultInvitationEmailTemplate = configuration.GetConfigIntValue("DefaultInvitationEmailTemplate"); _domainId = configuration.GetConfigIntValue("DomainId"); _groupRoleLeader = configuration.GetConfigIntValue("GroupRoleLeader"); }
public GoVolunteerService(MPInterfaces.IParticipantRepository participantService, IRegistrationRepository registrationService, MPInterfaces.IContactRepository contactService, IGroupConnectorRepository groupConnectorService, IConfigurationWrapper configurationWrapper, MPInterfaces.IContactRelationshipRepository contactRelationshipService, MPInterfaces.IProjectTypeRepository projectTypeService, IAttributeService attributeService, IGoSkillsService skillsService, MPInterfaces.ICommunicationRepository comunicationService, MPInterfaces.IUserRepository userService) { _participantService = participantService; _registrationService = registrationService; _contactService = contactService; _groupConnectorService = groupConnectorService; _configurationWrapper = configurationWrapper; _contactRelationshipService = contactRelationshipService; _projectTypeService = projectTypeService; _attributeService = attributeService; _otherEquipmentId = _configurationWrapper.GetConfigIntValue("GoCincinnatiOtherEquipmentAttributeId"); _skillsService = skillsService; _communicationService = comunicationService; _userService = userService; }
public ObjectAttributeRepository(IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; }
public SignupToServeProcessor(IServeService serveService, IConfigurationWrapper configurationWrapper, IAuthenticationRepository authenticationService) : base(authenticationService, configurationWrapper) { this._serveService = serveService; this._configurationWrapper = configurationWrapper; this._authenticationService = authenticationService; }
public TopClipsModule(ITopClipsModuleHelper topClipsModuleHelper, IFunctionWrapper functionWrapper, ILogger <TopClipsModule> log, IConfigurationWrapper configWrapper) { _TopClipsModuleHelper = topClipsModuleHelper; _FunctionWrapper = functionWrapper; _Log = log; _ConfigWrapper = configWrapper; }
public AccountService(IConfigurationWrapper configurationWrapper, ICommunicationService communicationService, IAuthenticationService authenticationService, ISubscriptionsService subscriptionService) { this._configurationWrapper = configurationWrapper; this._communicationService = communicationService; this._authenticationService = authenticationService; this._subscriptionsService = subscriptionService; }
public FormBuilderService(IFormBuilderRepository mpFormBuilderService, IConfigurationWrapper configurationWrapper) { _mpFormBuilderService = mpFormBuilderService; _configurationWrapper = configurationWrapper; _undividedGroupsPageViewId = configurationWrapper.GetConfigIntValue("UndividedGroupsPageViewId"); }
public AddressRepository(IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService, IApiUserRepository apiUserService) { _ministryPlatformService = ministryPlatformService; _apiUserService = apiUserService; _addressPageId = configurationWrapper.GetConfigIntValue("Addresses"); _addressApiPageViewId = configurationWrapper.GetConfigIntValue("AddressesApiPageView"); }
public VolunteerApplicationService(IFormSubmissionRepository formSubmissionService, IConfigurationWrapper configurationWrapper, IServeService serveService) { _formSubmissionService = formSubmissionService; _configurationWrapper = configurationWrapper; _serveService = serveService; }
public UserRepository(IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService, IMinistryPlatformRestRepository ministryPlatformRest) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _ministryPlatformRest = ministryPlatformRest; _usersApiLookupPageViewId = _configurationWrapper.GetConfigIntValue("UsersApiLookupPageView"); _usersPageId = _configurationWrapper.GetConfigIntValue("Users"); }
public PrivateInviteService(IMinistryPlatformService ministryPlatformService, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _configurationWrapper = configurationWrapper; _tripPrivateInviteId = _configurationWrapper.GetConfigIntValue("TripPrivateInvite"); _tripInvitationsPageId = _configurationWrapper.GetConfigIntValue("TripInvitations"); }
public InvoiceRepository(IMinistryPlatformRestRepository ministryPlatformRest, IApiUserRepository apiUserRepository, IProductRepository productRepository, IConfigurationWrapper configurationWrapper) { _ministryPlatformRest = ministryPlatformRest; _apiUserRepository = apiUserRepository; _productRepository = productRepository; _configurationWrapper = configurationWrapper; _invoiceCancelled = _configurationWrapper.GetConfigIntValue("InvoiceCancelled"); }
public DonationService(MPServices.IDonationService mpDonationService, MPServices.IDonorService mpDonorService, IPaymentService paymentService, MPServices.IContactService contactService, IConfigurationWrapper config) { _mpDonationService = mpDonationService; _mpDonorService = mpDonorService; _paymentService = paymentService; _contactService = contactService; _statementTypeFamily = config.GetConfigIntValue("DonorStatementTypeFamily"); }
public LoginService(IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper, IContactService contactService, IEmailCommunication emailCommunication, IUserService userService) { _configurationWrapper = configurationWrapper; _contactService = contactService; _emailCommunication = emailCommunication; _userService = userService; _authenticationService = authenticationService; }
public GroupToolController(Services.Interfaces.IGroupToolService groupToolService, IConfigurationWrapper configurationWrapper, IUserImpersonationService userImpersonationService) : base(userImpersonationService) { _groupToolService = groupToolService; _configurationWrapper = configurationWrapper; _defaultGroupTypeId = _configurationWrapper.GetConfigIntValue("SmallGroupTypeId"); }
public PledgeService(IMinistryPlatformService ministryPlatformService, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _pledgePageId = configurationWrapper.GetConfigIntValue("Pledges"); _myHouseholdPledges = configurationWrapper.GetConfigIntValue("MyHouseholdPledges"); }
public ProductRepository(IConfigurationWrapper configurationWrapper, IMinistryPlatformRestRepository ministryPlatformRest, IApiUserRepository apiUserRepository) { _configurationWrapper = configurationWrapper; _ministryPlatformRest = ministryPlatformRest; _apiUserRepository = apiUserRepository; }
public LoginService(IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IContactRepository contactService, IEmailCommunication emailCommunication, IUserRepository userService) { _configurationWrapper = configurationWrapper; _contactService = contactService; _emailCommunication = emailCommunication; _userService = userService; _authenticationService = authenticationService; }
public InvitationRepository(IMinistryPlatformService ministryPlatformService, IConfigurationWrapper configurationWrapper, IAuthenticationRepository authenticationService) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _invitationPageId = _configurationWrapper.GetConfigIntValue("InvitationPageID"); }
public MongoConnection(IConfigurationWrapper configuration) { var connectionString = configuration.MongoConnectionString; var database = configuration.MongoDatabase; var client = new MongoClient(connectionString); this.database = client.GetDatabase(database); }
public PrivateInviteRepository(IMinistryPlatformService ministryPlatformService, IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _configurationWrapper = configurationWrapper; _tripPrivateInviteId = _configurationWrapper.GetConfigIntValue("TripPrivateInvite"); _tripInvitationsPageId = _configurationWrapper.GetConfigIntValue("TripInvitations"); }
public TwilioService(IConfigurationWrapper configurationWrapper) { var accountSid = configurationWrapper.GetConfigValue("TwilioAccountSid"); var authToken = configurationWrapper.GetEnvironmentVarAsString("TWILIO_AUTH_TOKEN"); _fromPhoneNumber = configurationWrapper.GetConfigValue("TwilioFromPhoneNumber"); _twilio = new TwilioRestClient(accountSid, authToken); }
public EventService(IMinistryPlatformService ministryPlatformService, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper, IGroupService groupService) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _groupService = groupService; }
public DefaultShippingZoneLookup(IConfigurationWrapper configSettings) { if (!configSettings.HasKey("ShippingServiceUri")) { throw new KeyNotFoundException("ShippingServiceUri key not found in configuration"); } ServiceUri = configSettings.GetValue("ShippingServiceUri"); _client = new RestClient(ServiceUri); }
public GroupService(IMinistryPlatformService ministryPlatformService, IConfigurationWrapper configurationWrapper, IAuthenticationService authenticationService, ICommunicationService communicationService, IContactService contactService, IContentBlockService contentBlockService) : base(authenticationService, configurationWrapper) { this.ministryPlatformService = ministryPlatformService; this._configurationWrapper = configurationWrapper; this._communicationService = communicationService; this._contactService = contactService; this._contentBlockService = contentBlockService; }
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; }
public ContactAttributeService(IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService, IApiUserService apiUserService) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _apiUserService = apiUserService; }
public TripApplicationController(ITripService tripService, IConfigurationWrapper configuration, IMessageFactory messageFactory, IMessageQueueFactory messageQueueFactory) { _tripService = tripService; _messageFactory = messageFactory; var eventQueueName = configuration.GetConfigValue("TripApplicationEventQueue"); _eventQueue = messageQueueFactory.CreateQueue(eventQueueName, QueueAccessMode.Send); _messageFactory = messageFactory; }
public GroupParticipantService(IDbConnection dbConnection, IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService, IApiUserService apiUserService) { _dbConnection = dbConnection; _configurationWrapper = configurationWrapper; _ministryPlatformService = ministryPlatformService; _apiUserService = apiUserService; }
public OpportunityServiceImpl(IMinistryPlatformService ministryPlatformService, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper, IParticipantService participantService, IApiUserService apiUserService) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _participantService = participantService; _apiUserService = apiUserService; }
public EmailCommunication(ICommunicationService communicationService, IPersonService personService, IContactService contactService, IConfigurationWrapper configurationWrapper) { _communicationService = communicationService; _personService = personService; _contactService = contactService; _configurationWrapper = configurationWrapper; DefaultContactEmailId = _configurationWrapper.GetConfigIntValue("DefaultContactEmailId"); }
public BulkEmailSyncService( MPInterfaces.IBulkEmailRepository bulkEmailRepository, MPInterfaces.IApiUserService apiUserService, IConfigurationWrapper configWrapper) { _bulkEmailRepository = bulkEmailRepository; _apiUserService = apiUserService; _configWrapper = configWrapper; _token = _apiUserService.GetToken(); ConfigureRefreshTokenTimer(); }
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")); }
public ContactService(IMinistryPlatformService ministryPlatformService, IAuthenticationService authenticationService, IConfigurationWrapper configuration) : base(authenticationService, configuration) { _ministryPlatformService = ministryPlatformService; _configurationWrapper = configuration; _householdsPageId = configuration.GetConfigIntValue("Households"); _securityRolesSubPageId = configuration.GetConfigIntValue("SecurityRolesSubPageId"); _congregationDefaultId = configuration.GetConfigIntValue("Congregation_Default_ID"); _householdDefaultSourceId = configuration.GetConfigIntValue("Household_Default_Source_ID"); _householdPositionDefaultId = configuration.GetConfigIntValue("Household_Position_Default_ID"); _addressesPageId = configuration.GetConfigIntValue("Addresses"); _contactsPageId = configuration.GetConfigIntValue("Contacts"); _participantsPageId = configuration.GetConfigIntValue("Participants"); }
public StripeEventController(IConfigurationWrapper configuration, IStripeEventService stripeEventService = null, IMessageQueueFactory messageQueueFactory = null, IMessageFactory messageFactory = null) { var b = configuration.GetConfigValue("StripeWebhookLiveMode"); _liveMode = b != null && bool.Parse(b); b = configuration.GetConfigValue("StripeWebhookAsynchronousProcessingMode"); _asynchronous = b != null && bool.Parse(b); if (_asynchronous) { var eventQueueName = configuration.GetConfigValue("StripeWebhookEventQueueName"); _eventQueue = messageQueueFactory.CreateQueue(eventQueueName, QueueAccessMode.Send); _messageFactory = messageFactory; } else { _stripeEventService = stripeEventService; } }
public DonationService(IMinistryPlatformService ministryPlatformService, IDonorService donorService, ICommunicationService communicationService, IPledgeService pledgeService, IConfigurationWrapper configuration, IAuthenticationService authenticationService, IConfigurationWrapper configurationWrapper) : base(authenticationService, configurationWrapper) { _ministryPlatformService = ministryPlatformService; _donorService = donorService; _communicationService = communicationService; _pledgeService = pledgeService; _donationsPageId = configuration.GetConfigIntValue("Donations"); _donationDistributionPageId = configuration.GetConfigIntValue("Distributions"); _donorMessageTemplateId = configuration.GetConfigIntValue("DonorMessageTemplateId"); _distributionPageId = configuration.GetConfigIntValue("Distributions"); _batchesPageId = configuration.GetConfigIntValue("Batches"); _depositsPageId = configuration.GetConfigIntValue("Deposits"); _paymentProcessorErrorsPageId = configuration.GetConfigIntValue("PaymentProcessorEventErrors"); _tripDistributionsPageView = configuration.GetConfigIntValue("TripDistributionsView"); _gpExportPageView = configuration.GetConfigIntValue("GPExportView"); _processingProgramId = configuration.GetConfigIntValue("ProcessingProgramId"); _scholarshipPaymentTypeId = configuration.GetConfigIntValue("ScholarshipPaymentTypeId"); _tripDonationMessageTemplateId = configuration.GetConfigIntValue("TripDonationMessageTemplateId"); }
/// <summary> /// Initializes a new instance of the <see cref="CacheItemPropertiesFactory" /> class. /// </summary> /// <param name="config">The configuration.</param> public CacheItemPropertiesFactory(IConfigurationWrapper config) { string key; if ((key = config.AppSettings[Constants.DefaultSlidingExpiration]) != null) { if (!int.TryParse(key, out this.slidingExpiration)) { this.slidingExpiration = 1; } } if ((key = config.AppSettings[Constants.DefaultAbsoluteExpiration]) != null) { if (!int.TryParse(key, out this.absoluteExpiration)) { this.absoluteExpiration = 10; } } this.defaultItem = this.Build(); }
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; }
public EventService(TranslationEventService eventService, IGroupService groupService, ICommunicationService communicationService, IContactService contactService, IContentBlockService contentBlockService, IConfigurationWrapper configurationWrapper, IApiUserService apiUserService, IContactRelationshipService contactRelationshipService, IGroupParticipantService groupParticipantService, IParticipantService participantService) { _eventService = eventService; _groupService = groupService; _communicationService = communicationService; _contactService = contactService; _contentBlockService = contentBlockService; _configurationWrapper = configurationWrapper; _apiUserService = apiUserService; _contactRelationshipService = contactRelationshipService; _groupParticipantService = groupParticipantService; _participantService = participantService; }