Skip to content

Instantly share code, notes, and snippets.

public static IHtmlString Resource(this HtmlHelper htmlHelper, Func<object, dynamic> template, string type)
{
if (htmlHelper.ViewContext.HttpContext.Items[type] != null) ((List<Func<object, dynamic>>)htmlHelper.ViewContext.HttpContext.Items[type]).Add(template);
else htmlHelper.ViewContext.HttpContext.Items[type] = new List<Func<object, dynamic>>() { template };
return new HtmlString(String.Empty);
}
public static IHtmlString RenderResources(this HtmlHelper htmlHelper, string type)
{
using System.Reflection;
using log4net;
namespace BasilBee.Infrastructure.Logging {
public class LoggingService : ILoggingService
{
// ReSharper disable InconsistentNaming
private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
// ReSharper restore InconsistentNaming