Configuration for result handler chain
예제 #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);
        }
예제 #2
0
파일: Api.cs 프로젝트: yelloweiffel/openicf
 /// <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;
 }
예제 #3
0
        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;
        }
예제 #4
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;
 }