mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
601 B
25 lines
601 B
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.FileProviders;
|
|
|
|
namespace Volo.Abp.TextTemplating.VirtualFiles
|
|
{
|
|
public class FileInfoLocalizedTemplateContentReader : ILocalizedTemplateContentReader
|
|
{
|
|
private string _content;
|
|
|
|
public async Task ReadContentsAsync(IFileInfo fileInfo)
|
|
{
|
|
_content = await fileInfo.ReadAsStringAsync();
|
|
}
|
|
|
|
public string GetContentOrNull(string culture)
|
|
{
|
|
if (culture == null)
|
|
{
|
|
return _content;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|