Skip to content

Instantly share code, notes, and snippets.

Aspect Oriented Programming with Action<> 1
public void MakeRice()
{
try
{
_riceCooker.Cook();
}
catch (Exception exception)
{
// Don't care if this fails,
// there is nothing we can do about it.
Logger.Log(exception.Message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment