27 public Dictionary<string, string>?
QueryTags {
get;
set; } =
null;
43 if (options ==
null && overrides ==
null)
53 if (overrides ==
null)
58 var finalQueryOptions =
new QueryOptions()
67 var properties = typeof(QueryOptions).GetProperties();
69 foreach (var prop
in properties)
76 var propertyOverride = prop.GetValue(overrides);
78 if (propertyOverride !=
null)
80 prop.SetValue(finalQueryOptions, propertyOverride);
86 if (finalQueryOptions.QueryTags ==
null)
88 finalQueryOptions.QueryTags = overrides.
QueryTags;
94 if (finalQueryOptions.QueryTags.ContainsKey(kv.Key))
96 finalQueryOptions.QueryTags[kv.Key] = kv.Value;
100 finalQueryOptions.QueryTags.Add(kv.Key, kv.Value);
106 return finalQueryOptions;