Skip to content

Instantly share code, notes, and snippets.

@josephwoodward
Created January 24, 2020 09:58
Show Gist options
  • Save josephwoodward/44a0c8c29ee39355ca72c12dc6782691 to your computer and use it in GitHub Desktop.
Save josephwoodward/44a0c8c29ee39355ca72c12dc6782691 to your computer and use it in GitHub Desktop.
simmy.cs
var fault = new SocketException(errorCode: 10013);
var policy = MonkeyPolicy.InjectFault(
fault,
injectionRate: 0.05,
enabled: () => isEnabled()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment