DataType refactoring - in progress

This commit is contained in:
Stephan
2018-01-26 17:55:20 +01:00
parent f7f42f893b
commit e60a5a4a83
110 changed files with 662 additions and 1525 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Text.RegularExpressions;
using Umbraco.Core.Composing;
@@ -45,7 +46,7 @@ namespace Umbraco.Core.Cache
}
catch (Exception e)
{
return new ExceptionHolder(e);
return new ExceptionHolder(ExceptionDispatchInfo.Capture(e));
}
});
}
@@ -75,12 +76,12 @@ namespace Umbraco.Core.Cache
internal class ExceptionHolder
{
public ExceptionHolder(Exception e)
public ExceptionHolder(ExceptionDispatchInfo e)
{
Exception = e;
}
public Exception Exception { get; private set; }
public ExceptionDispatchInfo Exception { get; }
}
#region Clear