/// <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); }
/// <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; }
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); }
public ValueSetExpander(ValueSetExpanderSettings settings) { Settings = settings; }
public ValueSetExpander() : this(ValueSetExpanderSettings.CreateDefault()) { // nothing }