This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
NewerOlder