configuration of TFH for SQL Database

Nov 25, 2014 at 4:30 PM
The configuration tool is not in Extensions and Updates that I can find, so attempting configuration in code. Here's my code:

try
        {
            var retryStrategy = new Incremental(5, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(2));
            var _retryPolicy = new RetryPolicy<SqlDatabaseTransientErrorDetectionStrategy>(retryStrategy);
            RetryManager m = new RetryManager(new List<RetryStrategy>() {retryStrategy});
            RetryManager.SetDefault(m);
        }
        catch (Exception ex)
        {
            Trace.TraceError(ex.Message);
        }
The line defining the RetryManager is throwing an ArgumentNullException, saying that 'key' is null.

What's the right way to get TFH configured?

Thanks,
Greg
Nov 25, 2014 at 10:32 PM
Figured it out by leveraging the test code. Would be great if some of the examples in the test code were in the MSDN docs.
Marked as answer by sebastus on 11/25/2014 at 3:32 PM