added initial trace logging to application startup which works. Changed the application startup handler to use new logging, now the system won't bork if the sql db isn't initialized.
20 lines
365 B
C#
20 lines
365 B
C#
using System;
|
|
|
|
namespace Umbraco.Core
|
|
{
|
|
public static class IntExtensions
|
|
{
|
|
/// <summary>
|
|
/// Does something 'x' amount of times
|
|
/// </summary>
|
|
/// <param name="n"></param>
|
|
/// <param name="action"></param>
|
|
public static void Times(this int n, Action<int> action)
|
|
{
|
|
for (int i = 0; i < n; i++)
|
|
{
|
|
action(i);
|
|
}
|
|
}
|
|
}
|
|
} |