Created
October 27, 2012 14:13
-
-
Save CoreyKaylor/3964785 to your computer and use it in GitHub Desktop.
Creating a diversion
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 class AcceptPrivacyStatementPolicy : IConfigurationAction | |
{ | |
public void Configure(BehaviorGraph graph) | |
{ | |
graph.Actions() | |
.Where(x => x.RequiresAuthentication()) | |
.Each(x => x.WrapWith<AccceptPrivacyPolicyRedirector>()); | |
} | |
} |
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
//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