Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
[Core] Deprecate obsolete methods in SystemAssemblyService
Browse files Browse the repository at this point in the history
The following methods are obsolete:

ContainsReferenceToSystemRuntime
ContainsReferenceToSystemRuntimeAsync

The RequiresFacadeAssemblies methods should be used instead since
these support checking for .NET Standard.
  • Loading branch information
mrward committed Jun 14, 2018
1 parent 6535850 commit 279b084
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ static bool RequiresFacadeAssembliesInternal (string fileName)
}

static object referenceLock = new object ();

[Obsolete ("Use RequiresFacadeAssemblies (string fileName)")]
public static bool ContainsReferenceToSystemRuntime (string fileName)
{
lock (referenceLock) {
Expand All @@ -498,6 +500,8 @@ public static bool ContainsReferenceToSystemRuntime (string fileName)
}

static SemaphoreSlim referenceLockAsync = new SemaphoreSlim (1, 1);

[Obsolete ("Use RequiresFacadeAssembliesAsync (string fileName)")]
public static async System.Threading.Tasks.Task<bool> ContainsReferenceToSystemRuntimeAsync (string filename)
{
try {
Expand Down

0 comments on commit 279b084

Please sign in to comment.