We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8d9ac commit 1fe0fb0Copy full SHA for 1fe0fb0
1 file changed
src/UnityContainer.Resolution.cs
@@ -287,8 +287,11 @@ private static ResolveDelegate<BuilderContext> OptimizingFactory(ref BuilderCont
287
// Check if optimization is required
288
if (0 == Interlocked.Decrement(ref counter))
289
{
290
+#if NET40
291
Task.Factory.StartNew(() => {
-
292
+#else
293
+ Task.Run(() => {
294
+#endif
295
// Compile build plan on worker thread
296
var expressions = new List<Expression>();
297
foreach (var processor in chain)
0 commit comments