This file contains 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
To configure Hangfire | |
//Windsor integration | |
//The activator | |
var jobActivator = new WindsorScopedJobActivator(windsorContainer); | |
GlobalConfiguration.Configuration.UseActivator(jobActivator); | |
//And something to create and dispose of a child container in the activator for each job | |
var windsorJobFilter = new WindsorContainerPerJobFilterAttribute(jobActivator); | |
GlobalJobFilters.Filters.Add(windsorJobFilter); |
This file contains 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
namespace Serilog.Exceptions | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class AggregateExceptionDestructurer : ExceptionDestructurer | |
{ | |
public override Type[] TargetTypes | |
{ |
This file contains 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 class HtmlRenderExtensions { | |
/// <summary> | |
/// Delegate script/resource/etc injection until the end of the page | |
/// <para>@via http://stackoverflow.com/a/14127332/1037948 and http://jadnb.wordpress.com/2011/02/16/rendering-scripts-from-partial-views-at-the-end-in-mvc/ </para> | |
/// </summary> | |
private class DelayedInjectionBlock : IDisposable { | |
/// <summary> | |
/// Unique internal storage key | |
/// </summary> |
This file contains 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; | |
using System.Diagnostics; | |
using System.Globalization; | |
using Castle.Core.Logging; | |
namespace Dox.Server.Web.Utilities.Logging | |
{ | |
/// <summary> | |
/// TraceListener implementation that directs all output to Serilog via the Windsor ILogger | |
/// </summary> |