You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -30,7 +30,7 @@ namespace System.Diagnostics {
|
||||
public static TraceListenerCollection Listeners {
|
||||
[HostProtection(SharedState=true)]
|
||||
get {
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
// Do a full damand
|
||||
new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
|
||||
#endif
|
||||
@@ -113,7 +113,7 @@ namespace System.Diagnostics {
|
||||
/// </devdoc>
|
||||
[System.Diagnostics.Conditional("TRACE")]
|
||||
public static void Close() {
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
// Do a full damand
|
||||
new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
|
||||
#endif
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace System.Diagnostics {
|
||||
get {
|
||||
if (stackTrace == null)
|
||||
stackTrace = Environment.StackTrace;
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
else
|
||||
new EnvironmentPermission(PermissionState.Unrestricted).Demand();
|
||||
#endif
|
||||
@@ -77,7 +77,7 @@ namespace System.Diagnostics {
|
||||
[ResourceExposure(ResourceScope.None)]
|
||||
[ResourceConsumption(ResourceScope.Machine, ResourceScope.Machine)]
|
||||
private static void InitProcessInfo() {
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
// Demand unmanaged code permission
|
||||
new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
|
||||
#endif
|
||||
|
||||
@@ -18,8 +18,10 @@ namespace System.Diagnostics {
|
||||
[ThreadStatic]
|
||||
static int indentLevel;
|
||||
static volatile int indentSize;
|
||||
#if CONFIGURATION_DEP
|
||||
static volatile bool settingsInitialized;
|
||||
static volatile bool defaultInitialized;
|
||||
#endif
|
||||
|
||||
|
||||
// this is internal so TraceSource can use it. We want to lock on the same object because both TraceInternal and
|
||||
@@ -62,7 +64,7 @@ namespace System.Diagnostics {
|
||||
internal static string AppName {
|
||||
get {
|
||||
if (appName == null) {
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Path").Assert();
|
||||
#endif
|
||||
appName = Path.GetFileName(Environment.GetCommandLineArgs()[0]);
|
||||
@@ -303,7 +305,9 @@ namespace System.Diagnostics {
|
||||
// in the System.Diagnostics.Trace class
|
||||
static internal void Refresh() {
|
||||
lock (critSec) {
|
||||
#if CONFIGURATION_DEP
|
||||
settingsInitialized = false;
|
||||
#endif
|
||||
listeners = null;
|
||||
}
|
||||
InitializeSettings();
|
||||
|
||||
Reference in New Issue
Block a user