private string DownloadTemplate(string template)
{
try
{
using (var channel = ChannelManager.CreateChannel())
{
var content = channel.Service.GetTemplate(app, theme, template).GetAwaiter().GetResult();
cache.Add(template, content);
return content;
}
}
catch (Exception e)
{
throw new QueueException("Не удалось получить шаблон с сервера: " + e.Message);
}
}