Queue.UI.WPF.TemplateManager.DownloadTemplate C# (CSharp) Method

DownloadTemplate() private method

private DownloadTemplate ( string template ) : string
template string
return string
        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);
            }
        }