private static GetEnclosure ( string content, IPublishable publishable ) : string | ||
content | string | The content. |
publishable | IPublishable | |
return | string |
private static string GetEnclosure(string content, IPublishable publishable)
{
var enclosure = string.Empty;
fileSize = 0;
fileExists = false;
foreach (var media in SupportedMedia)
{
enclosure = GetMediaEnclosure(publishable, content, media.Key, media.Value);
if (enclosure.Length > 0)
{
break;
}
}
return enclosure;
}