Skip to content

Commit 4ffffb5

Browse files
committed
Added ConfigureAwait(false) (#128)
1 parent 462bda4 commit 4ffffb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/MusicStore/MusicStore.Test/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@
1717

1818
// The following GUID is for the ID of the typelib if this project is exposed to COM
1919
[assembly: Guid("0a3a93a1-a79c-4d08-8ace-6e72b30c3ab7")]
20-
21-
[assembly: CollectionBehavior(DisableTestParallelization = true)]

src/MyTested.AspNetCore.Mvc.Core/Internal/AsyncHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public static TResult RunSync<TResult>(Func<Task<TResult>> func)
1717
return taskFactory
1818
.StartNew(func)
1919
.Unwrap()
20+
.ConfigureAwait(false)
2021
.GetAwaiter()
2122
.GetResult();
2223
}
@@ -26,6 +27,7 @@ public static void RunSync(Func<Task> func)
2627
taskFactory
2728
.StartNew(func)
2829
.Unwrap()
30+
.ConfigureAwait(false)
2931
.GetAwaiter()
3032
.GetResult();
3133
}

0 commit comments

Comments
 (0)