Created
November 21, 2008 22:09
-
-
Save johnbender/27658 to your computer and use it in GitHub Desktop.
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 class SomeController : IController | |
{ | |
public override void Index() | |
{ | |
//Index action | |
} | |
public override void Show() | |
{ | |
//Show action | |
} | |
[Authenticate] | |
public override void Destroy() | |
{ | |
//Destroy | |
} | |
} | |
[Serializable] | |
public class AuthenticateAttribute: OnMethodBoundaryAspect | |
{ | |
public override void OnEntry( MethodExecutionEventArgs eventArgs) | |
{ | |
//Authenticate | |
} | |
public override void OnExit( MethodExecutionEventArgs eventArgs){ } | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment