Skip to content

InMemoryLocalizationRegistry

Namespace: Bogoware.Localization

A simple in-memory registry backed by a flat dictionary (FQDN → format pattern). Culture-insensitive — always returns the registered template regardless of the requested culture. Intended for unit testing scenarios where culture fallback is not under test.

public class InMemoryLocalizationRegistry : ILocalizationRegistry

Inheritance ObjectInMemoryLocalizationRegistry
Implements ILocalizationRegistry
Attributes NullableContextAttribute, NullableAttribute

Methods

TryGetTemplate(String, CultureInfo, String&)

public bool TryGetTemplate(string fqdn, CultureInfo culture, String& template)

Parameters

fqdn String

culture CultureInfo

template String&

Returns

Boolean