This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
public string UsingTemplateFromEmbedded<T>(string path, T model) | |
{ | |
// Generate the template name | |
string templateName = GetTemplateName(path); | |
string template = memoryCache.Get<string>(templateName); | |
if(string.IsNullOrEmpty(template)) | |
{ | |
// Locking this resource is necessary since there are parallel requests to this methnod |