Skip to content

Commit fad3d42

Browse files
filipnavaradotnet-bot
authored andcommitted
Move Thread to shared CoreLib (dotnet/corefx#35462)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
1 parent bbed8b0 commit fad3d42

18 files changed

+4813
-0
lines changed

src/System.Private.CoreLib/shared/System/AppDomain.cs

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace System
6+
{
7+
public sealed class AppDomainSetup
8+
{
9+
internal AppDomainSetup() { }
10+
public string ApplicationBase => AppContext.BaseDirectory;
11+
public string TargetFrameworkName => AppContext.TargetFrameworkName;
12+
}
13+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Runtime.Serialization;
6+
7+
namespace System
8+
{
9+
[Serializable]
10+
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11+
public class CannotUnloadAppDomainException : SystemException
12+
{
13+
internal const int COR_E_CANNOTUNLOADAPPDOMAIN = unchecked((int)0x80131015); // corresponds to __HResults.COR_E_CANNOTUNLOADAPPDOMAIN in corelib
14+
public CannotUnloadAppDomainException()
15+
: base(SR.Arg_CannotUnloadAppDomainException)
16+
{
17+
HResult = COR_E_CANNOTUNLOADAPPDOMAIN;
18+
}
19+
20+
public CannotUnloadAppDomainException(string message)
21+
: base(message)
22+
{
23+
HResult = COR_E_CANNOTUNLOADAPPDOMAIN;
24+
}
25+
26+
public CannotUnloadAppDomainException(string message, Exception innerException)
27+
: base(message, innerException)
28+
{
29+
HResult = COR_E_CANNOTUNLOADAPPDOMAIN;
30+
}
31+
32+
protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context) : base(info, context)
33+
{
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)