Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 184af39

Browse files
committed
Fighting more PCL fires, stubbing out AppDomain.CurrentDomain
1 parent a47e7bd commit 184af39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceStack.Text/RecyclableMemoryStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ protected override void Dispose(bool disposing)
905905

906906
Events.Write.MemoryStreamFinalized(this.id, this.tag, this.allocationStack);
907907

908+
#if !PCL
908909
if (AppDomain.CurrentDomain.IsFinalizingForUnload())
909910
{
910911
// If we're being finalized because of a shutdown, don't go any further.
@@ -913,6 +914,7 @@ protected override void Dispose(bool disposing)
913914
base.Dispose(disposing);
914915
return;
915916
}
917+
#endif
916918

917919
this.memoryManager.ReportStreamFinalized();
918920
}

0 commit comments

Comments
 (0)