27 public Dictionary<string, string>?
QueryTags {
get;
set; } =
null;
43 if (defaultQueryOptions ==
null && queryOptionOverrides ==
null)
47 else if (defaultQueryOptions ==
null)
49 return queryOptionOverrides;
51 else if (queryOptionOverrides ==
null)
53 return defaultQueryOptions;
56 var finalQueryOptions =
new QueryOptions()
65 var properties = typeof(QueryOptions).GetProperties();
67 foreach (var prop
in properties)
74 var propertyOverride = prop.GetValue(queryOptionOverrides);
76 if (propertyOverride !=
null)
78 prop.SetValue(finalQueryOptions, propertyOverride);
82 if (queryOptionOverrides.
QueryTags !=
null)
84 if (finalQueryOptions.QueryTags ==
null)
86 finalQueryOptions.QueryTags = queryOptionOverrides.
QueryTags;
90 foreach (var kv
in queryOptionOverrides.
QueryTags)
92 if (finalQueryOptions.QueryTags.ContainsKey(kv.Key))
94 finalQueryOptions.QueryTags[kv.Key] = kv.Value;
98 finalQueryOptions.QueryTags.Add(kv.Key, kv.Value);
104 return finalQueryOptions;