|
|
@ -32,13 +32,7 @@ |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Diagnostics; |
|
|
|
|
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
using System.Reflection; |
|
|
|
|
|
|
|
using System.Threading; |
|
|
|
|
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Grpc.Core; |
|
|
|
|
|
|
|
using Grpc.Core.Internal; |
|
|
|
|
|
|
|
using Grpc.Core.Utils; |
|
|
|
using Grpc.Core.Utils; |
|
|
|
using NUnit.Framework; |
|
|
|
using NUnit.Framework; |
|
|
|
|
|
|
|
|
|
|
@ -46,6 +40,13 @@ namespace Grpc.Core.Tests |
|
|
|
{ |
|
|
|
{ |
|
|
|
public class AppDomainUnloadTest |
|
|
|
public class AppDomainUnloadTest |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
#if DOTNET5_4 |
|
|
|
|
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore("Not supported for CoreCLR")] |
|
|
|
|
|
|
|
public void AppDomainUnloadHookCanCleanupAbandonedCall() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#else |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
public void AppDomainUnloadHookCanCleanupAbandonedCall() |
|
|
|
public void AppDomainUnloadHookCanCleanupAbandonedCall() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -86,5 +87,6 @@ namespace Grpc.Core.Tests |
|
|
|
readyToShutdown.Task.Wait(); // make sure handler is running |
|
|
|
readyToShutdown.Task.Wait(); // make sure handler is running |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|