Skip to content

Instantly share code, notes, and snippets.

@GregOnNet
Created August 18, 2015 13:00
Show Gist options
  • Save GregOnNet/1b1e3cd505e79f22c0b4 to your computer and use it in GitHub Desktop.
Save GregOnNet/1b1e3cd505e79f22c0b4 to your computer and use it in GitHub Desktop.
public override void OnBeginRequest(HttpContextBase context, IWindsorContainer container)
{
var parameters = new Arguments(new
{
response = context.Response,
pdfFormatter = container.Resolve<IFormatPdfResponse>()
});
container.Resolve
<IDispatchPdfReponses>(parameters)
.Listen();
}
@GregOnNet
Copy link
Author

Hey, super Einfall. Danke!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment