Decorator not calling the decorated instance - alternative design needed
- by Daniel Hilgarth
Assume I have a simple interface for translating text (sample code in C#):
public interface ITranslationService
{
string GetTranslation(string key, CultureInfo targetLanguage);
// some other methods...
}
A first simple implementation of this interface already exists and simply goes to the database for every method call. Assuming a UI…