Configuration for result handler chain
Exemple #1
0
        public override bool Equals(Object obj)
        {
            if (obj is ResultsHandlerConfiguration)
            {
                ResultsHandlerConfiguration other = (ResultsHandlerConfiguration)obj;

                if (EnableNormalizingResultsHandler != other.EnableNormalizingResultsHandler)
                {
                    return(false);
                }
                if (EnableFilteredResultsHandler != other.EnableFilteredResultsHandler)
                {
                    return(false);
                }
                if (FilteredResultsHandlerInValidationMode != other.FilteredResultsHandlerInValidationMode)
                {
                    return(false);
                }
                if (EnableCaseInsensitiveFilter != other.EnableCaseInsensitiveFilter)
                {
                    return(false);
                }
                if (EnableAttributesToGetSearchResultsHandler != other.EnableAttributesToGetSearchResultsHandler)
                {
                    return(false);
                }
                return(true);
            }
            return(false);
        }
Exemple #2
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="source"> configuration that copied to. </param>
 public ResultsHandlerConfiguration(ResultsHandlerConfiguration source)
 {
     this.EnableNormalizingResultsHandler           = source.EnableNormalizingResultsHandler;
     this.EnableFilteredResultsHandler              = source.EnableFilteredResultsHandler;
     this.EnableCaseInsensitiveFilter               = source.EnableCaseInsensitiveFilter;
     this.EnableAttributesToGetSearchResultsHandler = source.EnableAttributesToGetSearchResultsHandler;
 }
        public APIConfigurationImpl(APIConfigurationImpl other)
        {
            if (null != other._connectorPoolConfiguration)
            {
                ConnectorPoolConfiguration = new ObjectPoolConfiguration(other._connectorPoolConfiguration);
            }
            if (null != other._resultsHandlerConfiguration)
            {
                ResultsHandlerConfiguration = new ResultsHandlerConfiguration(other._resultsHandlerConfiguration);
            }
            IsConnectorPoolingSupported = other.IsConnectorPoolingSupported;
            ConfigurationPropertiesImpl prop = new ConfigurationPropertiesImpl();
            prop.Properties = ((ConfigurationPropertiesImpl)other.ConfigurationProperties).Properties;
            ConfigurationProperties = prop;

            ProducerBufferSize = other.ProducerBufferSize;
            TimeoutMap = new Dictionary<SafeType<APIOperation>, int>(other.TimeoutMap);
            SupportedOperations = new HashSet<SafeType<APIOperation>>(other.SupportedOperations);

            ConnectorInfo = other.ConnectorInfo;
            ChangeListener = other.ChangeListener;
        }
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="source"> configuration that copied to. </param>
 public ResultsHandlerConfiguration(ResultsHandlerConfiguration source)
 {
     this.EnableNormalizingResultsHandler = source.EnableNormalizingResultsHandler;
     this.EnableFilteredResultsHandler = source.EnableFilteredResultsHandler;
     this.EnableCaseInsensitiveFilter = source.EnableCaseInsensitiveFilter;
     this.EnableAttributesToGetSearchResultsHandler = source.EnableAttributesToGetSearchResultsHandler;
 }