This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ISomeService someTasks = new MyService(); | |
var result = await Retriable.RetryAsync( | |
async delegate | |
{ | |
var response = await someTasks.FirstTaskAsync(); | |
return await someTasks.SecondTaskAsync(response); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static async Task RunAsync() | |
{ | |
ISomeService someTasks = new MyService(); | |
var result = await Retriable.RetryAsync(() => SomeFuncAsync(someTasks)); | |
} | |
private static async Task<string> SomeFuncAsync(ISomeService someTasks) | |
{ | |
var response = await someTasks.FirstTaskAsync(); | |
return await someTasks.SecondTaskAsync(response); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ISomeService someTasks = new MyService(); | |
var result = await RetryTask<string>.Factory.StartNew( | |
() => someTasks.SecondTask(someTasks.FirstTask()), new Count(10)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Count : RetryStrategy | |
{ | |
private readonly int maxTries; | |
private int tryCount; | |
public Count() | |
: this(5) | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AnyException : IRetryPolicy | |
{ | |
public bool CanRetry(Exception exception) | |
{ | |
return true; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if i in [1,3,5..10,15,19] then ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let add x y = x + y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let answer = 1 + 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 99 Bottles of Beer program in Zilgo Z80 assembly language. | |
; Assembles for ZX Spectrum/Timex - change Spectrum: lines | |
; if porting. Help from Marko! Compiled and tested with SPIN | |
; | |
; Adapted from the Alan deLespinasse's Intel 8086 version | |
; | |
; Author: Damien Guard ; [email protected] ; www.damieng.com | |
org 32768 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Endjin's 2D Charting Tool | |
Summary of features as of 19/11/2012 | |
==================================== | |
Supported platforms: | |
WinRT, WPF, Silverlight 5, Windows Phone 8: Identical XAML, identical features and near-identical rendering. | |
Chart types: |