Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created November 17, 2009 14:40
Show Gist options
  • Save jfromaniello/236938 to your computer and use it in GitHub Desktop.
Save jfromaniello/236938 to your computer and use it in GitHub Desktop.
public class Calculator
{
public bool CanDivide(double left, double right)
{
return right != 0;
}
[Preview("CanDivide")]
[AsyncAction(BlockInteraction = true)]
public double Divide(double left, double right)
{
Thread.Sleep(3000);
return left / right;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment