public void ScheduleSearch(string cronExpression)
        {
            var args = new ConstructorArgument[] {
                new ConstructorArgument("userConnection", UserConnection)
            };
            DeduplicationSearch deduplicationSearch = ClassFactory.Get <DeduplicationSearch>(args);

            deduplicationSearch.FindEntityDuplicatesBySchedule(cronExpression);
        }
        public void RemoveScheduledSearch()
        {
            var args = new ConstructorArgument[] {
                new ConstructorArgument("userConnection", UserConnection)
            };
            DeduplicationSearch deduplicationSearch = ClassFactory.Get <DeduplicationSearch>(args);

            deduplicationSearch.RemoveSchedule();
        }
        public DuplicatesSearchResponse FindEntityDuplicatesAsync(string schemaName)
        {
            var args = new ConstructorArgument[] {
                new ConstructorArgument("userConnection", UserConnection)
            };
            DeduplicationSearch      deduplicationSearch = ClassFactory.Get <DeduplicationSearch>(args);
            DuplicatesSearchResponse response            = deduplicationSearch.FindEntityDuplicatesAsync(schemaName);

            return(response);
        }
Example #4
0
        public List <Guid> FindRecordsSimilarLead(string schemaName, Guid leadId)
        {
            var deduplicationSearchArgs = new ConstructorArgument[] {
                new ConstructorArgument("userConnection", UserConnection)
            };
            DeduplicationSearch deduplicationSearch
                = ClassFactory.Get <DeduplicationSearch>(deduplicationSearchArgs);
            var similarLeadSearchHelperArgs = new ConstructorArgument[] {
                new ConstructorArgument("userConnection", UserConnection),
                new ConstructorArgument("deduplicationSearch", deduplicationSearch)
            };
            SimilarLeadSearchHelper similarLeadSearchHelper
                = ClassFactory.Get <SimilarLeadSearchHelper>(similarLeadSearchHelperArgs);
            List <Guid> similarRecords = similarLeadSearchHelper.FindLeadSimilarRecords(schemaName, leadId);

            return(similarRecords);
        }
Example #5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="userConnection">Instance of <see cref="UserConnection"/>.</param>
 /// <param name="deduplicationSearch">Instance of <see cref="DeduplicationSearch"/>.</param>
 public SimilarLeadSearchHelper(UserConnection userConnection, DeduplicationSearch deduplicationSearch)
 {
     _userConnection      = userConnection;
     _deduplicationSearch = deduplicationSearch;
 }