From 46174fbca16412ddabc1e881f6281192924e4ed3 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Mon, 9 Sep 2024 09:55:23 -0500 Subject: [PATCH] Add system.diagnostics.diagnosticsource/5.0.0 (#1032) --- ....Diagnostics.DiagnosticSource.5.0.0.csproj | 35 ++ .../System.Diagnostics.DiagnosticSource.cs | 440 +++++++++++++++++ .../System.Diagnostics.DiagnosticSource.cs | 63 +++ .../System.Diagnostics.DiagnosticSource.cs | 441 ++++++++++++++++++ ...system.diagnostics.diagnosticsource.nuspec | 58 +++ 5 files changed, 1037 insertions(+) create mode 100644 src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/System.Diagnostics.DiagnosticSource.5.0.0.csproj create mode 100644 src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/net5.0/System.Diagnostics.DiagnosticSource.cs create mode 100644 src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.1/System.Diagnostics.DiagnosticSource.cs create mode 100644 src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.cs create mode 100644 src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/system.diagnostics.diagnosticsource.nuspec diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/System.Diagnostics.DiagnosticSource.5.0.0.csproj b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/System.Diagnostics.DiagnosticSource.5.0.0.csproj new file mode 100644 index 000000000..9bde99a96 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/System.Diagnostics.DiagnosticSource.5.0.0.csproj @@ -0,0 +1,35 @@ + + + + net5.0;netstandard1.1;netstandard1.3 + System.Diagnostics.DiagnosticSource + Open + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/net5.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/net5.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 000000000..bcc842cdf --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/net5.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,440 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Diagnostics.DiagnosticSource")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyFileVersion("5.0.20.51904")] +[assembly: System.Reflection.AssemblyInformationalVersion("5.0.0+cf258a14b70ad9069470a108f13765e0e5988f51")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "git://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("5.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Diagnostics +{ + public partial class Activity : IDisposable + { + public Activity(string operationName) { } + + public ActivityTraceFlags ActivityTraceFlags { get { throw null; } set { } } + + public Collections.Generic.IEnumerable> Baggage { get { throw null; } } + + public ActivityContext Context { get { throw null; } } + + public static Activity? Current { get { throw null; } set { } } + + public static ActivityIdFormat DefaultIdFormat { get { throw null; } set { } } + + public string DisplayName { get { throw null; } set { } } + + public TimeSpan Duration { get { throw null; } } + + public Collections.Generic.IEnumerable Events { get { throw null; } } + + public static bool ForceDefaultIdFormat { get { throw null; } set { } } + + public string? Id { get { throw null; } } + + public ActivityIdFormat IdFormat { get { throw null; } } + + public bool IsAllDataRequested { get { throw null; } set { } } + + public ActivityKind Kind { get { throw null; } } + + public Collections.Generic.IEnumerable Links { get { throw null; } } + + public string OperationName { get { throw null; } } + + public Activity? Parent { get { throw null; } } + + public string? ParentId { get { throw null; } } + + public ActivitySpanId ParentSpanId { get { throw null; } } + + public bool Recorded { get { throw null; } } + + public string? RootId { get { throw null; } } + + public ActivitySource Source { get { throw null; } } + + public ActivitySpanId SpanId { get { throw null; } } + + public DateTime StartTimeUtc { get { throw null; } } + + public Collections.Generic.IEnumerable> TagObjects { get { throw null; } } + + public Collections.Generic.IEnumerable> Tags { get { throw null; } } + + public ActivityTraceId TraceId { get { throw null; } } + + public string? TraceStateString { get { throw null; } set { } } + + public Activity AddBaggage(string key, string? value) { throw null; } + + public Activity AddEvent(ActivityEvent e) { throw null; } + + public Activity AddTag(string key, object? value) { throw null; } + + public Activity AddTag(string key, string? value) { throw null; } + + public void Dispose() { } + + protected virtual void Dispose(bool disposing) { } + + public string? GetBaggageItem(string key) { throw null; } + + public object? GetCustomProperty(string propertyName) { throw null; } + + public void SetCustomProperty(string propertyName, object? propertyValue) { } + + public Activity SetEndTime(DateTime endTimeUtc) { throw null; } + + public Activity SetIdFormat(ActivityIdFormat format) { throw null; } + + public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags = ActivityTraceFlags.None) { throw null; } + + public Activity SetParentId(string parentId) { throw null; } + + public Activity SetStartTime(DateTime startTimeUtc) { throw null; } + + public Activity SetTag(string key, object? value) { throw null; } + + public Activity Start() { throw null; } + + public void Stop() { } + } + + public readonly partial struct ActivityContext : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string? traceState = null, bool isRemote = false) { } + + public bool IsRemote { get { throw null; } } + + public ActivitySpanId SpanId { get { throw null; } } + + public ActivityTraceFlags TraceFlags { get { throw null; } } + + public ActivityTraceId TraceId { get { throw null; } } + + public string? TraceState { get { throw null; } } + + public readonly bool Equals(ActivityContext value) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivityContext left, ActivityContext right) { throw null; } + + public static bool operator !=(ActivityContext left, ActivityContext right) { throw null; } + + public static ActivityContext Parse(string traceParent, string? traceState) { throw null; } + + public static bool TryParse(string traceParent, string? traceState, out ActivityContext context) { throw null; } + } + + public readonly partial struct ActivityCreationOptions + { + private readonly T _Parent_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityKind Kind { get { throw null; } } + + public Collections.Generic.IEnumerable? Links { get { throw null; } } + + public string Name { get { throw null; } } + + public T Parent { get { throw null; } } + + public ActivityTagsCollection SamplingTags { get { throw null; } } + + public ActivitySource Source { get { throw null; } } + + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + + public ActivityTraceId TraceId { get { throw null; } } + } + + public readonly partial struct ActivityEvent + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityEvent(string name, DateTimeOffset timestamp = default, ActivityTagsCollection? tags = null) { } + + public ActivityEvent(string name) { } + + public string Name { get { throw null; } } + + public Collections.Generic.IEnumerable> Tags { get { throw null; } } + + public DateTimeOffset Timestamp { get { throw null; } } + } + + public enum ActivityIdFormat + { + Unknown = 0, + Hierarchical = 1, + W3C = 2 + } + + public enum ActivityKind + { + Internal = 0, + Server = 1, + Client = 2, + Producer = 3, + Consumer = 4 + } + + public readonly partial struct ActivityLink : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityLink(ActivityContext context, ActivityTagsCollection? tags = null) { } + + public ActivityContext Context { get { throw null; } } + + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + + public readonly bool Equals(ActivityLink value) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivityLink left, ActivityLink right) { throw null; } + + public static bool operator !=(ActivityLink left, ActivityLink right) { throw null; } + } + + public sealed partial class ActivityListener : IDisposable + { + public Action? ActivityStarted { get { throw null; } set { } } + + public Action? ActivityStopped { get { throw null; } set { } } + + public SampleActivity? Sample { get { throw null; } set { } } + + public SampleActivity? SampleUsingParentId { get { throw null; } set { } } + + public Func? ShouldListenTo { get { throw null; } set { } } + + public void Dispose() { } + } + + public enum ActivitySamplingResult + { + None = 0, + PropagationData = 1, + AllData = 2, + AllDataAndRecorded = 3 + } + + public sealed partial class ActivitySource : IDisposable + { + public ActivitySource(string name, string? version = "") { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + + public void Dispose() { } + + public bool HasListeners() { throw null; } + + public Activity? StartActivity(string name, ActivityKind kind, ActivityContext parentContext, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default) { throw null; } + + public Activity? StartActivity(string name, ActivityKind kind, string parentId, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default) { throw null; } + + public Activity? StartActivity(string name, ActivityKind kind = ActivityKind.Internal) { throw null; } + } + + public readonly partial struct ActivitySpanId : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void CopyTo(Span destination) { } + + public static ActivitySpanId CreateFromBytes(ReadOnlySpan idData) { throw null; } + + public static ActivitySpanId CreateFromString(ReadOnlySpan idData) { throw null; } + + public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan idData) { throw null; } + + public static ActivitySpanId CreateRandom() { throw null; } + + public readonly bool Equals(ActivitySpanId spanId) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivitySpanId spanId1, ActivitySpanId spandId2) { throw null; } + + public static bool operator !=(ActivitySpanId spanId1, ActivitySpanId spandId2) { throw null; } + + public readonly string ToHexString() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class ActivityTagsCollection : Collections.Generic.IDictionary, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable + { + public ActivityTagsCollection() { } + + public ActivityTagsCollection(Collections.Generic.IEnumerable> list) { } + + public int Count { get { throw null; } } + + public bool IsReadOnly { get { throw null; } } + + public object? this[string key] { get { throw null; } set { } } + + public Collections.Generic.ICollection Keys { get { throw null; } } + + public Collections.Generic.ICollection Values { get { throw null; } } + + public void Add(Collections.Generic.KeyValuePair item) { } + + public void Add(string key, object? value) { } + + public void Clear() { } + + public bool Contains(Collections.Generic.KeyValuePair item) { throw null; } + + public bool ContainsKey(string key) { throw null; } + + public void CopyTo(Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + + public Enumerator GetEnumerator() { throw null; } + + public bool Remove(Collections.Generic.KeyValuePair item) { throw null; } + + public bool Remove(string key) { throw null; } + + Collections.Generic.IEnumerator> Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + + public bool TryGetValue(string key, out object? value) { throw null; } + + public partial struct Enumerator : Collections.Generic.IEnumerator>, Collections.IEnumerator, IDisposable + { + public Collections.Generic.KeyValuePair Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + void Collections.IEnumerator.Reset() { } + } + } + + [Flags] + public enum ActivityTraceFlags + { + None = 0, + Recorded = 1 + } + + public readonly partial struct ActivityTraceId : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void CopyTo(Span destination) { } + + public static ActivityTraceId CreateFromBytes(ReadOnlySpan idData) { throw null; } + + public static ActivityTraceId CreateFromString(ReadOnlySpan idData) { throw null; } + + public static ActivityTraceId CreateFromUtf8String(ReadOnlySpan idData) { throw null; } + + public static ActivityTraceId CreateRandom() { throw null; } + + public readonly bool Equals(ActivityTraceId traceId) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivityTraceId traceId1, ActivityTraceId traceId2) { throw null; } + + public static bool operator !=(ActivityTraceId traceId1, ActivityTraceId traceId2) { throw null; } + + public readonly string ToHexString() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class DiagnosticListener : DiagnosticSource, IObservable>, IDisposable + { + public DiagnosticListener(string name) { } + + public static IObservable AllListeners { get { throw null; } } + + public string Name { get { throw null; } } + + public virtual void Dispose() { } + + public bool IsEnabled() { throw null; } + + public override bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public override bool IsEnabled(string name) { throw null; } + + public override void OnActivityExport(Activity activity, object? payload) { } + + public override void OnActivityImport(Activity activity, object? payload) { } + + public virtual IDisposable Subscribe(IObserver> observer, Func? isEnabled, Action? onActivityImport = null, Action? onActivityExport = null) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer, Func? isEnabled) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer, Predicate? isEnabled) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer) { throw null; } + + public override string ToString() { throw null; } + + public override void Write(string name, object? value) { } + } + + public abstract partial class DiagnosticSource + { + public virtual bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public abstract bool IsEnabled(string name); + public virtual void OnActivityExport(Activity activity, object? payload) { } + + public virtual void OnActivityImport(Activity activity, object? payload) { } + + public Activity StartActivity(Activity activity, object? args) { throw null; } + + public void StopActivity(Activity activity, object? args) { } + + public abstract void Write(string name, object? value); + } + + public delegate ActivitySamplingResult SampleActivity(ref ActivityCreationOptions options); +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.1/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.1/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 000000000..517109bbc --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.1/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,63 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v1.1", FrameworkDisplayName = "")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Diagnostics.DiagnosticSource")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyFileVersion("5.0.20.51904")] +[assembly: System.Reflection.AssemblyInformationalVersion("5.0.0+cf258a14b70ad9069470a108f13765e0e5988f51")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "git://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("5.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Diagnostics +{ + public partial class DiagnosticListener : DiagnosticSource, IObservable>, IDisposable + { + public DiagnosticListener(string name) { } + + public static IObservable AllListeners { get { throw null; } } + + public string Name { get { throw null; } } + + public virtual void Dispose() { } + + public bool IsEnabled() { throw null; } + + public override bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public override bool IsEnabled(string name) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer, Func? isEnabled) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer, Predicate? isEnabled) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer) { throw null; } + + public override string ToString() { throw null; } + + public override void Write(string name, object? value) { } + } + + public abstract partial class DiagnosticSource + { + public virtual bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public abstract bool IsEnabled(string name); + public abstract void Write(string name, object? value); + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 000000000..272c9f6c4 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,441 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v1.3", FrameworkDisplayName = "")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Diagnostics.DiagnosticSource")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyFileVersion("5.0.20.51904")] +[assembly: System.Reflection.AssemblyInformationalVersion("5.0.0+cf258a14b70ad9069470a108f13765e0e5988f51")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "git://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("5.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Diagnostics +{ + public partial class Activity : IDisposable + { + public Activity(string operationName) { } + + public ActivityTraceFlags ActivityTraceFlags { get { throw null; } set { } } + + public Collections.Generic.IEnumerable> Baggage { get { throw null; } } + + public ActivityContext Context { get { throw null; } } + + public static Activity? Current { get { throw null; } set { } } + + public static ActivityIdFormat DefaultIdFormat { get { throw null; } set { } } + + public string DisplayName { get { throw null; } set { } } + + public TimeSpan Duration { get { throw null; } } + + public Collections.Generic.IEnumerable Events { get { throw null; } } + + public static bool ForceDefaultIdFormat { get { throw null; } set { } } + + public string? Id { get { throw null; } } + + public ActivityIdFormat IdFormat { get { throw null; } } + + public bool IsAllDataRequested { get { throw null; } set { } } + + public ActivityKind Kind { get { throw null; } } + + public Collections.Generic.IEnumerable Links { get { throw null; } } + + public string OperationName { get { throw null; } } + + public Activity? Parent { get { throw null; } } + + public string? ParentId { get { throw null; } } + + public ActivitySpanId ParentSpanId { get { throw null; } } + + public bool Recorded { get { throw null; } } + + public string? RootId { get { throw null; } } + + public ActivitySource Source { get { throw null; } } + + public ActivitySpanId SpanId { get { throw null; } } + + public DateTime StartTimeUtc { get { throw null; } } + + public Collections.Generic.IEnumerable> TagObjects { get { throw null; } } + + public Collections.Generic.IEnumerable> Tags { get { throw null; } } + + public ActivityTraceId TraceId { get { throw null; } } + + public string? TraceStateString { get { throw null; } set { } } + + public Activity AddBaggage(string key, string? value) { throw null; } + + public Activity AddEvent(ActivityEvent e) { throw null; } + + public Activity AddTag(string key, object? value) { throw null; } + + public Activity AddTag(string key, string? value) { throw null; } + + public void Dispose() { } + + protected virtual void Dispose(bool disposing) { } + + public string? GetBaggageItem(string key) { throw null; } + + public object? GetCustomProperty(string propertyName) { throw null; } + + public void SetCustomProperty(string propertyName, object? propertyValue) { } + + public Activity SetEndTime(DateTime endTimeUtc) { throw null; } + + public Activity SetIdFormat(ActivityIdFormat format) { throw null; } + + public Activity SetParentId(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags activityTraceFlags = ActivityTraceFlags.None) { throw null; } + + public Activity SetParentId(string parentId) { throw null; } + + public Activity SetStartTime(DateTime startTimeUtc) { throw null; } + + public Activity SetTag(string key, object? value) { throw null; } + + public Activity Start() { throw null; } + + public void Stop() { } + } + + public readonly partial struct ActivityContext : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityContext(ActivityTraceId traceId, ActivitySpanId spanId, ActivityTraceFlags traceFlags, string? traceState = null, bool isRemote = false) { } + + public bool IsRemote { get { throw null; } } + + public ActivitySpanId SpanId { get { throw null; } } + + public ActivityTraceFlags TraceFlags { get { throw null; } } + + public ActivityTraceId TraceId { get { throw null; } } + + public string? TraceState { get { throw null; } } + + public readonly bool Equals(ActivityContext value) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivityContext left, ActivityContext right) { throw null; } + + public static bool operator !=(ActivityContext left, ActivityContext right) { throw null; } + + public static ActivityContext Parse(string traceParent, string? traceState) { throw null; } + + public static bool TryParse(string traceParent, string? traceState, out ActivityContext context) { throw null; } + } + + public readonly partial struct ActivityCreationOptions + { + private readonly T _Parent_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityKind Kind { get { throw null; } } + + public Collections.Generic.IEnumerable? Links { get { throw null; } } + + public string Name { get { throw null; } } + + public T Parent { get { throw null; } } + + public ActivityTagsCollection SamplingTags { get { throw null; } } + + public ActivitySource Source { get { throw null; } } + + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + + public ActivityTraceId TraceId { get { throw null; } } + } + + public readonly partial struct ActivityEvent + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityEvent(string name, DateTimeOffset timestamp = default, ActivityTagsCollection? tags = null) { } + + public ActivityEvent(string name) { } + + public string Name { get { throw null; } } + + public Collections.Generic.IEnumerable> Tags { get { throw null; } } + + public DateTimeOffset Timestamp { get { throw null; } } + } + + public enum ActivityIdFormat + { + Unknown = 0, + Hierarchical = 1, + W3C = 2 + } + + public enum ActivityKind + { + Internal = 0, + Server = 1, + Client = 2, + Producer = 3, + Consumer = 4 + } + + public readonly partial struct ActivityLink : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ActivityLink(ActivityContext context, ActivityTagsCollection? tags = null) { } + + public ActivityContext Context { get { throw null; } } + + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + + public readonly bool Equals(ActivityLink value) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivityLink left, ActivityLink right) { throw null; } + + public static bool operator !=(ActivityLink left, ActivityLink right) { throw null; } + } + + public sealed partial class ActivityListener : IDisposable + { + public Action? ActivityStarted { get { throw null; } set { } } + + public Action? ActivityStopped { get { throw null; } set { } } + + public SampleActivity? Sample { get { throw null; } set { } } + + public SampleActivity? SampleUsingParentId { get { throw null; } set { } } + + public Func? ShouldListenTo { get { throw null; } set { } } + + public void Dispose() { } + } + + public enum ActivitySamplingResult + { + None = 0, + PropagationData = 1, + AllData = 2, + AllDataAndRecorded = 3 + } + + public sealed partial class ActivitySource : IDisposable + { + public ActivitySource(string name, string? version = "") { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + + public void Dispose() { } + + public bool HasListeners() { throw null; } + + public Activity? StartActivity(string name, ActivityKind kind, ActivityContext parentContext, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default) { throw null; } + + public Activity? StartActivity(string name, ActivityKind kind, string parentId, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default) { throw null; } + + public Activity? StartActivity(string name, ActivityKind kind = ActivityKind.Internal) { throw null; } + } + + public readonly partial struct ActivitySpanId : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void CopyTo(Span destination) { } + + public static ActivitySpanId CreateFromBytes(ReadOnlySpan idData) { throw null; } + + public static ActivitySpanId CreateFromString(ReadOnlySpan idData) { throw null; } + + public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan idData) { throw null; } + + public static ActivitySpanId CreateRandom() { throw null; } + + public readonly bool Equals(ActivitySpanId spanId) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivitySpanId spanId1, ActivitySpanId spandId2) { throw null; } + + public static bool operator !=(ActivitySpanId spanId1, ActivitySpanId spandId2) { throw null; } + + public readonly string ToHexString() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class ActivityTagsCollection : Collections.Generic.IDictionary, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable + { + public ActivityTagsCollection() { } + + public ActivityTagsCollection(Collections.Generic.IEnumerable> list) { } + + public int Count { get { throw null; } } + + public bool IsReadOnly { get { throw null; } } + + public object? this[string key] { get { throw null; } set { } } + + public Collections.Generic.ICollection Keys { get { throw null; } } + + public Collections.Generic.ICollection Values { get { throw null; } } + + public void Add(Collections.Generic.KeyValuePair item) { } + + public void Add(string key, object? value) { } + + public void Clear() { } + + public bool Contains(Collections.Generic.KeyValuePair item) { throw null; } + + public bool ContainsKey(string key) { throw null; } + + public void CopyTo(Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + + public Enumerator GetEnumerator() { throw null; } + + public bool Remove(Collections.Generic.KeyValuePair item) { throw null; } + + public bool Remove(string key) { throw null; } + + Collections.Generic.IEnumerator> Collections.Generic.IEnumerable>.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + + public bool TryGetValue(string key, out object? value) { throw null; } + + public partial struct Enumerator : Collections.Generic.IEnumerator>, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public Collections.Generic.KeyValuePair Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + void Collections.IEnumerator.Reset() { } + } + } + + [Flags] + public enum ActivityTraceFlags + { + None = 0, + Recorded = 1 + } + + public readonly partial struct ActivityTraceId : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly void CopyTo(Span destination) { } + + public static ActivityTraceId CreateFromBytes(ReadOnlySpan idData) { throw null; } + + public static ActivityTraceId CreateFromString(ReadOnlySpan idData) { throw null; } + + public static ActivityTraceId CreateFromUtf8String(ReadOnlySpan idData) { throw null; } + + public static ActivityTraceId CreateRandom() { throw null; } + + public readonly bool Equals(ActivityTraceId traceId) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool operator ==(ActivityTraceId traceId1, ActivityTraceId traceId2) { throw null; } + + public static bool operator !=(ActivityTraceId traceId1, ActivityTraceId traceId2) { throw null; } + + public readonly string ToHexString() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class DiagnosticListener : DiagnosticSource, IObservable>, IDisposable + { + public DiagnosticListener(string name) { } + + public static IObservable AllListeners { get { throw null; } } + + public string Name { get { throw null; } } + + public virtual void Dispose() { } + + public bool IsEnabled() { throw null; } + + public override bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public override bool IsEnabled(string name) { throw null; } + + public override void OnActivityExport(Activity activity, object? payload) { } + + public override void OnActivityImport(Activity activity, object? payload) { } + + public virtual IDisposable Subscribe(IObserver> observer, Func? isEnabled, Action? onActivityImport = null, Action? onActivityExport = null) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer, Func? isEnabled) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer, Predicate? isEnabled) { throw null; } + + public virtual IDisposable Subscribe(IObserver> observer) { throw null; } + + public override string ToString() { throw null; } + + public override void Write(string name, object? value) { } + } + + public abstract partial class DiagnosticSource + { + public virtual bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public abstract bool IsEnabled(string name); + public virtual void OnActivityExport(Activity activity, object? payload) { } + + public virtual void OnActivityImport(Activity activity, object? payload) { } + + public Activity StartActivity(Activity activity, object? args) { throw null; } + + public void StopActivity(Activity activity, object? args) { } + + public abstract void Write(string name, object? value); + } + + public delegate ActivitySamplingResult SampleActivity(ref ActivityCreationOptions options); +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/system.diagnostics.diagnosticsource.nuspec b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/system.diagnostics.diagnosticsource.nuspec new file mode 100644 index 000000000..8bbb1d904 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/5.0.0/system.diagnostics.diagnosticsource.nuspec @@ -0,0 +1,58 @@ + + + + System.Diagnostics.DiagnosticSource + 5.0.0 + System.Diagnostics.DiagnosticSource + Microsoft + microsoft,dotnetframework + false + MIT + https://licenses.nuget.org/MIT + https://github.com/dotnet/runtime + http://go.microsoft.com/fwlink/?LinkID=288859 + Provides Classes that allow you to decouple code logging rich (unserializable) diagnostics/telemetry (e.g. framework) from code that consumes it (e.g. tools) + +Commonly Used Types: +System.Diagnostics.DiagnosticListener +System.Diagnostics.DiagnosticSource + +When using NuGet 3.x this package requires at least version 3.4. + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file