Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created March 4, 2012 04:41
Show Gist options
  • Select an option

  • Save mgroves/1970694 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/1970694 to your computer and use it in GitHub Desktop.
more AOP terminology
public class MyClass
{
[MyAspect]
public void MyMethod()
{
Console.WriteLine("inside of my method");
}
}
[Serializable]
public class MyAspectAttribute : OnMethodBoundaryAspect
{
public override void OnEntry(MethodExecutionArgs args)
{
Logger.Write("some logging message");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment