Skip to content

Instantly share code, notes, and snippets.

@CoreyKaylor
Created October 27, 2012 14:13
Show Gist options
  • Save CoreyKaylor/3964785 to your computer and use it in GitHub Desktop.
Save CoreyKaylor/3964785 to your computer and use it in GitHub Desktop.
Creating a diversion
public class AcceptPrivacyStatementPolicy : IConfigurationAction
{
public void Configure(BehaviorGraph graph)
{
graph.Actions()
.Where(x => x.RequiresAuthentication())
.Each(x => x.WrapWith<AccceptPrivacyPolicyRedirector>());
}
}
//How to wire up the policy in your FubuRegistry
Policies.Add<AcceptPrivacyStatementPolicy>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment