Esempio n. 1
0
 /// <summary>
 /// Adds the keys that must be ignored and not processed.
 /// </summary>
 /// <param name="ignoreKeys">The keys that must be ignored and not processed.</param>
 /// <returns>The metadata processor.</returns>
 public DefaultMetadataProcessor Ignore(IEnumerable <string> ignoreKeys)
 {
     IgnoreKeys.UnionWith(ignoreKeys);
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Determines if a metadata key must be ignored.
 /// </summary>
 /// <param name="key">The metadata key.</param>
 /// <returns><see langword="true"/> if the key must be ignored, otherwise, <see langword="false"/>.</returns>
 protected bool IsIgnore(string key)
 {
     return(IgnoreKeys.Contains(key) || IgnoreDelegates.Any(x => x(key)));
 }
Esempio n. 3
0
 /// <summary>
 /// Adds the keys that must be ignored and not processed.
 /// </summary>
 /// <param name="ignoreKeys">The keys that must be ignored and not processed.</param>
 /// <returns>The metadata processor.</returns>
 public DefaultMetadataProcessor Ignore(params string[] ignoreKeys)
 {
     IgnoreKeys.UnionWith(ignoreKeys);
     return(this);
 }