phlik/Monads.net — pull request #2 by squirrelsama (2012-12-05 20:43:45+00:00)
Title: Do want to push this update

Example use case

public void PushToDisk(string type, byte[] body)
{
string.Format("message_{0}", DateTime.Now.Ticks)
.TryDo(i => File.WriteAllBytes(i, body))
.Handle((i,k) => File.WriteAllBytes(string.Format("{0}_error", i), body));
}