Welcome to mirror list, hosted at ThFree Co, Russian Federation.

7.0-rc1_System.Diagnostics.md « Microsoft.NETCore.App « rc1 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae5aea0a7d1cd478a9053e805d3039b4f7f5d52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# System.Diagnostics

``` diff
 namespace System.Diagnostics {
     public class DiagnosticListener : DiagnosticSource, IDisposable, IObservable<KeyValuePair<string, object?>> {
-        public override void Write(string name, object? value);
+        [RequiresDynamicCodeAttribute("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
+        public override void Write(string name, object? value);
     }
     public abstract class DiagnosticSource {
-        public Activity StartActivity(Activity activity, object? args);
+        [RequiresDynamicCodeAttribute("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
+        public Activity StartActivity(Activity activity, object? args);
-        public void StopActivity(Activity activity, object? args);
+        [RequiresDynamicCodeAttribute("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
+        public void StopActivity(Activity activity, object? args);
-        public abstract void Write(string name, object? value);
+        [RequiresDynamicCodeAttribute("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
+        public abstract void Write(string name, object? value);
     }
+    public sealed class InitializingSwitchEventArgs : EventArgs {
+        public InitializingSwitchEventArgs(Switch @switch);
+        public Switch Switch { get; }
+    }
+    public sealed class InitializingTraceSourceEventArgs : EventArgs {
+        public InitializingTraceSourceEventArgs(TraceSource traceSource);
+        public TraceSource TraceSource { get; }
+        public bool WasInitialized { get; set; }
+    }
     public class Process : Component, IDisposable {
-        [UnsupportedOSPlatformAttribute("ios")]
-        [UnsupportedOSPlatformAttribute("tvos")]
-        public TimeSpan PrivilegedProcessorTime { get; }
+        [SupportedOSPlatformAttribute("maccatalyst")]
+        [UnsupportedOSPlatformAttribute("ios")]
+        [UnsupportedOSPlatformAttribute("tvos")]
+        public TimeSpan PrivilegedProcessorTime { get; }
     }
     public abstract class Switch {
+        public string DefaultValue { get; }
-        protected string Value { get; set; }
+        public string Value { get; set; }
+        public static event EventHandler<InitializingSwitchEventArgs>? Initializing;
+        public void Refresh();
     }
     public sealed class Trace {
+        public static event EventHandler Refreshing;
     }
     public class TraceSource {
+        public SourceLevels DefaultLevel { get; }
+        public static event EventHandler<InitializingTraceSourceEventArgs>? Initializing;
     }
 }
```