コード例 #1
0
 /// <summary>Clone constructor. Generates a new <see cref="ValueSetExpanderSettings"/> instance initialized from the state of the specified instance.</summary>
 /// <exception cref="ArgumentNullException">The specified argument is <c>null</c>.</exception>
 public ValueSetExpanderSettings(ValueSetExpanderSettings other)
 {
     if (other == null)
     {
         throw Error.ArgumentNull(nameof(other));
     }
     other.CopyTo(this);
 }
コード例 #2
0
        /// <summary>Copy all configuration settings to another instance.</summary>
        /// <param name="other">Another <see cref="ValueSetExpanderSettings"/> instance.</param>
        /// <exception cref="ArgumentNullException">The specified argument is <c>null</c>.</exception>
        public void CopyTo(ValueSetExpanderSettings other)
        {
            if (other == null)
            {
                throw Error.ArgumentNull(nameof(other));
            }

            other.MaxExpansionSize = MaxExpansionSize;
            other.ValueSetSource   = ValueSetSource;
        }
コード例 #3
0
        public LocalTerminologyService(IResourceResolver resolver, ValueSetExpanderSettings expanderSettings = null)
        {
            _resolver = resolver ?? throw Error.ArgumentNull(nameof(resolver));

            var settings = expanderSettings ?? ValueSetExpanderSettings.Default;

            if (settings.ValueSetSource == null)
            {
                settings.ValueSetSource = resolver;
            }

            _expander = new ValueSetExpander(settings);
        }
コード例 #4
0
 public ValueSetExpander(ValueSetExpanderSettings settings)
 {
     Settings = settings;
 }
コード例 #5
0
 public ValueSetExpander() : this(ValueSetExpanderSettings.CreateDefault())
 {
     // nothing
 }