Esempio n. 1
0
        public FriendsForm()
        {
            _finderRepository = new SqlFinderRepository(
                ConfigurationManager.ConnectionStrings["FriendFinderDB"].ConnectionString);

            InitializeComponent();
        }
Esempio n. 2
0
        public AwsCloudsearchService(IAddressGeocodingService addressGeocodingService,
                                     IFinderRepository finderRepository,
                                     IConfigurationWrapper configurationWrapper)
        {
            _addressGeocodingService = addressGeocodingService;
            _finderRepository        = finderRepository;
            _configurationWrapper    = configurationWrapper;

            AmazonSearchUrl    = _configurationWrapper.GetEnvironmentVarAsString("CRDS_AWS_CONNECT_ENDPOINT");
            AwsAccessKeyId     = _configurationWrapper.GetEnvironmentVarAsString("CRDS_AWS_CONNECT_ACCESSKEYID");
            AwsSecretAccessKey = _configurationWrapper.GetEnvironmentVarAsString("CRDS_AWS_CONNECT_SECRETACCESSKEY");
        }
Esempio n. 3
0
        public GroupToolService(
            IGroupToolRepository groupToolRepository,
            IGroupRepository groupRepository,
            IGroupService groupService,
            IParticipantRepository participantRepository,
            ICommunicationRepository communicationRepository,
            IContentBlockService contentBlockService,
            IConfigurationWrapper configurationWrapper,
            IInvitationRepository invitationRepository,
            IAddressProximityService addressProximityService,
            IContactRepository contactRepository,
            IAddressProximityService addressMatrixService,
            IEmailCommunication emailCommunicationService,
            IAttributeService attributeService,
            IAddressService addressService,
            IAnalyticsService analyticsService,
            IFinderRepository finderRepository
            )
        {
            _groupToolRepository       = groupToolRepository;
            _groupRepository           = groupRepository;
            _groupService              = groupService;
            _participantRepository     = participantRepository;
            _communicationRepository   = communicationRepository;
            _contentBlockService       = contentBlockService;
            _invitationRepository      = invitationRepository;
            _addressProximityService   = addressProximityService;
            _contactRepository         = contactRepository;
            _addressMatrixService      = addressMatrixService;
            _emailCommunicationService = emailCommunicationService;
            _attributeService          = attributeService;
            _addressService            = addressService;
            _analyticsService          = analyticsService;
            _finderRepository          = finderRepository;

            _defaultGroupContactEmailId = configurationWrapper.GetConfigIntValue("DefaultGroupContactEmailId");
            _defaultAuthorUserId        = configurationWrapper.GetConfigIntValue("DefaultAuthorUser");
            _groupRoleLeaderId          = configurationWrapper.GetConfigIntValue("GroupRoleLeader");
            _defaultGroupRoleId         = configurationWrapper.GetConfigIntValue("Group_Role_Default_ID");
            _groupRequestPendingReminderEmailTemplateId = configurationWrapper.GetConfigIntValue("GroupRequestPendingReminderEmailTemplateId");
            _attributeTypeGroupCategory = configurationWrapper.GetConfigIntValue("GroupCategoryAttributeTypeId");

            _genericGroupForCMSMergeEmailTemplateId = configurationWrapper.GetConfigIntValue("GenericGroupForCMSMergeEmailTemplateId");

            _connectCommunicationTypeEmailSmallGroupLeader = configurationWrapper.GetConfigIntValue("ConnectCommunicationTypeEmailSmallGroupLeader");
            _connectCommunicationStatusNA = configurationWrapper.GetConfigIntValue("ConnectCommunicationStatusNA");
            _domainId = configurationWrapper.GetConfigIntValue("DomainId");
            _groupEndedParticipantEmailTemplate      = configurationWrapper.GetConfigIntValue("GroupEndedParticipantEmailTemplate");
            _gatheringHostAcceptTemplate             = configurationWrapper.GetConfigIntValue("GatheringHostAcceptTemplate");
            _gatheringHostDenyTemplate               = configurationWrapper.GetConfigIntValue("GatheringHostDenyTemplate");
            _groupRequestToJoinEmailTemplate         = configurationWrapper.GetConfigIntValue("GroupRequestToJoinEmailTemplate");
            _anywhereGroupRequestToJoinEmailTemplate = configurationWrapper.GetConfigIntValue("AnywhereGroupRequestToJoinEmailTemplate");
            _baseUrl = configurationWrapper.GetConfigValue("BaseURL");
            _addressMatrixSearchDepth = configurationWrapper.GetConfigIntValue("AddressMatrixSearchDepth");

            _smallGroupTypeId              = configurationWrapper.GetConfigIntValue("SmallGroupTypeId");
            _onsiteGroupTypeId             = configurationWrapper.GetConfigIntValue("OnsiteGroupTypeId");
            _anywhereGroupType             = configurationWrapper.GetConfigIntValue("AnywhereGroupTypeId");
            _connectGatheringStatusAccept  = configurationWrapper.GetConfigIntValue("ConnectCommunicationStatusAccepted");
            _connectGatheringStatusDeny    = configurationWrapper.GetConfigIntValue("ConnectCommunicationStatusDeclined");
            _connectGatheringRequestToJoin = configurationWrapper.GetConfigIntValue("ConnectCommunicationTypeRequestToJoinGathering");
            _connectCommunicationTypeRequestToJoinSmallGroup = configurationWrapper.GetConfigIntValue("ConnectCommunicationTypeRequestToJoinSmallGroup");
            _emailAuthorId          = configurationWrapper.GetConfigIntValue("EmailAuthorId");
            _groupRoleTrialMemberId = configurationWrapper.GetConfigIntValue("GroupsTrialMemberRoleId");
        }
Esempio n. 4
0
 /// <summary>
 /// Método constructor de la clase que recibe como dependencia una interfaz de tipo IFinderTemplateRepository
 /// </summary>
 /// <param name="_finderTemplateRepository">Parámetro de tipo IFinderTemplateRepository</param>
 protected FinderService(IFinderRepository <TEntity> finderRepository, IValidatorPaginate <PaginationCatalog> validatorPaginate)
 {
     this._finderRepository   = finderRepository ?? throw new ArgumentNullException(nameof(finderRepository));
     this._validatorPaginates = validatorPaginate ?? throw new ArgumentNullException(nameof(validatorPaginate));
 }
 public ClassFinderService(IFinderRepository <Template> _finderRepository, IValidatorPaginate <PaginationCatalog> validatorPaginate)
     : base(_finderRepository, validatorPaginate)
 {
 }
Esempio n. 6
0
 public FinderManager(IFinderRepository finderRepository)
 {
     _finderRepository = finderRepository;
 }