IResourceNamesCache Interface

Represents a cache of string names in resources.

Namespace
Microsoft.Extensions.Localization
Assemblies
  • Microsoft.Extensions.Localization

Syntax

public interface IResourceNamesCache
interface Microsoft.Extensions.Localization.IResourceNamesCache

Methods

GetOrAdd(System.String, System.Func<System.String, System.Collections.Generic.IList<System.String>>)

Adds a set of resource names to the cache by using the specified function, if the name does not already exist.

Arguments:
  • name (System.String) – The resource name to add string names for.
  • valueFactory (System.Func<System.String<System.String>>) – The function used to generate the string names for the resource.
Return type:

System.Collections.Generic.IList<System.String>

Returns:

The string names for the resource.

IList<string> GetOrAdd(string name, Func<string, IList<string>> valueFactory)