diff --git a/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/Microsoft.Bcl.AsyncInterfaces.9.0.8.csproj b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/Microsoft.Bcl.AsyncInterfaces.9.0.8.csproj new file mode 100644 index 0000000000..bc6e0caeab --- /dev/null +++ b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/Microsoft.Bcl.AsyncInterfaces.9.0.8.csproj @@ -0,0 +1,14 @@ + + + + netstandard2.0;netstandard2.1 + 9.0.8 + Microsoft.Bcl.AsyncInterfaces + Open + + + + + + + diff --git a/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.cs b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.cs new file mode 100644 index 0000000000..77a2856ac3 --- /dev/null +++ b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.cs @@ -0,0 +1,130 @@ +// 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=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Bcl.AsyncInterfaces")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides the IAsyncEnumerable and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0.")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Bcl.AsyncInterfaces")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.8")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System +{ + public partial interface IAsyncDisposable + { + Threading.Tasks.ValueTask DisposeAsync(); + } +} + +namespace System.Collections.Generic +{ + public partial interface IAsyncEnumerable + { + IAsyncEnumerator GetAsyncEnumerator(Threading.CancellationToken cancellationToken = default); + } + + public partial interface IAsyncEnumerator : IAsyncDisposable + { + T Current { get; } + + Threading.Tasks.ValueTask MoveNextAsync(); + } +} + +namespace System.Runtime.CompilerServices +{ + public partial struct AsyncIteratorMethodBuilder + { + private object _dummy; + private int _dummyPrimitive; + public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine { } + public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine { } + public void Complete() { } + public static AsyncIteratorMethodBuilder Create() { throw null; } + public void MoveNext(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine { } + } + + [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] + public sealed partial class AsyncIteratorStateMachineAttribute : StateMachineAttribute + { + public AsyncIteratorStateMachineAttribute(Type stateMachineType) : base(default!) { } + } + + public readonly partial struct ConfiguredAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + } + + public readonly partial struct ConfiguredCancelableAsyncEnumerable + { + private readonly Collections.Generic.IAsyncEnumerable _enumerable; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public readonly ConfiguredCancelableAsyncEnumerable ConfigureAwait(bool continueOnCapturedContext) { throw null; } + public readonly Enumerator GetAsyncEnumerator() { throw null; } + public readonly ConfiguredCancelableAsyncEnumerable WithCancellation(Threading.CancellationToken cancellationToken) { throw null; } + public readonly partial struct Enumerator + { + private readonly Collections.Generic.IAsyncEnumerator _enumerator; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public T Current { get { throw null; } } + + public readonly ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } + public readonly ConfiguredValueTaskAwaitable MoveNextAsync() { throw null; } + } + } + + [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] + public sealed partial class EnumeratorCancellationAttribute : Attribute + { + } +} + +namespace System.Threading.Tasks +{ + public static partial class TaskAsyncEnumerableExtensions + { + public static Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } + public static Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable ConfigureAwait(this Collections.Generic.IAsyncEnumerable source, bool continueOnCapturedContext) { throw null; } + public static Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable WithCancellation(this Collections.Generic.IAsyncEnumerable source, CancellationToken cancellationToken) { throw null; } + } +} + +namespace System.Threading.Tasks.Sources +{ + public partial struct ManualResetValueTaskSourceCore + { + private TResult _result; + private object _dummy; + private int _dummyPrimitive; + public bool RunContinuationsAsynchronously { get { throw null; } set { } } + public short Version { get { throw null; } } + + public TResult GetResult(short token) { throw null; } + public ValueTaskSourceStatus GetStatus(short token) { throw null; } + public void OnCompleted(Action continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) { } + public void Reset() { } + public void SetException(Exception error) { } + public void SetResult(TResult result) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.cs b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.cs new file mode 100644 index 0000000000..4b8b8bad98 --- /dev/null +++ b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.cs @@ -0,0 +1,37 @@ +// 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=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Bcl.AsyncInterfaces")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides the IAsyncEnumerable and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0.")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Bcl.AsyncInterfaces")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.8")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IAsyncEnumerable<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IAsyncEnumerator<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IAsyncDisposable))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.AsyncIteratorMethodBuilder))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.ConfiguredAsyncDisposable))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.EnumeratorCancellationAttribute))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskAsyncEnumerableExtensions))] \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/microsoft.bcl.asyncinterfaces.nuspec b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/microsoft.bcl.asyncinterfaces.nuspec new file mode 100644 index 0000000000..c56f5ad569 --- /dev/null +++ b/src/referencePackages/src/microsoft.bcl.asyncinterfaces/9.0.8/microsoft.bcl.asyncinterfaces.nuspec @@ -0,0 +1,22 @@ + + + + Microsoft.Bcl.AsyncInterfaces + 9.0.8 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0. + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/Microsoft.Extensions.DependencyInjection.Abstractions.9.0.8.csproj b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/Microsoft.Extensions.DependencyInjection.Abstractions.9.0.8.csproj new file mode 100644 index 0000000000..0db3b7a4ca --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/Microsoft.Extensions.DependencyInjection.Abstractions.9.0.8.csproj @@ -0,0 +1,15 @@ + + + + net8.0;net9.0;netstandard2.0;netstandard2.1 + 9.0.8 + Microsoft.Extensions.DependencyInjection.Abstractions + MicrosoftAspNetCore + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..76d951c807 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,332 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.DependencyInjection.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Abstractions for dependency injection.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.DependencyInjection.IServiceCollection")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class ActivatorUtilities + { + public static ObjectFactory CreateFactory(System.Type instanceType, System.Type[] argumentTypes) { throw null; } + public static ObjectFactory CreateFactory(System.Type[] argumentTypes) { throw null; } + public static object CreateInstance(System.IServiceProvider provider, System.Type instanceType, params object[] parameters) { throw null; } + public static T CreateInstance(System.IServiceProvider provider, params object[] parameters) { throw null; } + public static object GetServiceOrCreateInstance(System.IServiceProvider provider, System.Type type) { throw null; } + public static T GetServiceOrCreateInstance(System.IServiceProvider provider) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.All)] + public partial class ActivatorUtilitiesConstructorAttribute : System.Attribute + { + } + + public readonly partial struct AsyncServiceScope : IServiceScope, System.IDisposable, System.IAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AsyncServiceScope(IServiceScope serviceScope) { } + public System.IServiceProvider ServiceProvider { get { throw null; } } + + public readonly void Dispose() { } + public readonly System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class FromKeyedServicesAttribute : System.Attribute + { + public FromKeyedServicesAttribute(object key) { } + public object Key { get { throw null; } } + } + + public partial interface IKeyedServiceProvider : System.IServiceProvider + { + object? GetKeyedService(System.Type serviceType, object? serviceKey); + object GetRequiredKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceCollection : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + } + + public partial interface IServiceProviderFactory + { + TContainerBuilder CreateBuilder(IServiceCollection services); + System.IServiceProvider CreateServiceProvider(TContainerBuilder containerBuilder); + } + + public partial interface IServiceProviderIsKeyedService : IServiceProviderIsService + { + bool IsKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceProviderIsService + { + bool IsService(System.Type serviceType); + } + + public partial interface IServiceScope : System.IDisposable + { + System.IServiceProvider ServiceProvider { get; } + } + + public partial interface IServiceScopeFactory + { + IServiceScope CreateScope(); + } + + public partial interface ISupportRequiredService + { + object GetRequiredService(System.Type serviceType); + } + + public static partial class KeyedService + { + public static object AnyKey { get { throw null; } } + } + public delegate object ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public delegate T ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public partial class ServiceCollection : IServiceCollection, System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public ServiceDescriptor this[int index] { get { throw null; } set { } } + + public void Clear() { } + public bool Contains(ServiceDescriptor item) { throw null; } + public void CopyTo(ServiceDescriptor[] array, int arrayIndex) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(ServiceDescriptor item) { throw null; } + public void Insert(int index, ServiceDescriptor item) { } + public void MakeReadOnly() { } + public bool Remove(ServiceDescriptor item) { throw null; } + public void RemoveAt(int index) { } + void System.Collections.Generic.ICollection.Add(ServiceDescriptor item) { } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public static partial class ServiceCollectionServiceExtensions + { + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, object implementationInstance) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + } + public partial class ServiceDescriptor + { + public ServiceDescriptor(System.Type serviceType, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, object instance) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object instance) { } + public ServiceDescriptor(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { } + public System.Func? ImplementationFactory { get { throw null; } } + public object? ImplementationInstance { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] + public System.Type? ImplementationType { get { throw null; } } + public bool IsKeyedService { get { throw null; } } + public System.Func? KeyedImplementationFactory { get { throw null; } } + public object? KeyedImplementationInstance { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] + public System.Type? KeyedImplementationType { get { throw null; } } + public ServiceLifetime Lifetime { get { throw null; } } + public object? ServiceKey { get { throw null; } } + public System.Type ServiceType { get { throw null; } } + + public static ServiceDescriptor Describe(System.Type serviceType, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor Describe(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Scoped() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, object implementationInstance) { throw null; } + public static ServiceDescriptor Singleton(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Singleton(TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Singleton() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public override string ToString() { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Transient() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class ServiceKeyAttribute : System.Attribute + { + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + public static partial class ServiceProviderKeyedServiceExtensions + { + public static T? GetKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The native code for an IEnumerable might not be available at runtime.")] + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, object? serviceKey) { throw null; } + public static object GetRequiredKeyedService(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static T GetRequiredKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + } + public static partial class ServiceProviderServiceExtensions + { + public static AsyncServiceScope CreateAsyncScope(this IServiceScopeFactory serviceScopeFactory) { throw null; } + public static AsyncServiceScope CreateAsyncScope(this System.IServiceProvider provider) { throw null; } + public static IServiceScope CreateScope(this System.IServiceProvider provider) { throw null; } + public static object GetRequiredService(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static T GetRequiredService(this System.IServiceProvider provider) { throw null; } + public static T? GetService(this System.IServiceProvider provider) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The native code for an IEnumerable might not be available at runtime.")] + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider) { throw null; } + } +} + +namespace Microsoft.Extensions.DependencyInjection.Extensions +{ + public static partial class ServiceCollectionDescriptorExtensions + { + public static IServiceCollection Add(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static IServiceCollection Add(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection, System.Type serviceType) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, object? serviceKey) { throw null; } + public static IServiceCollection Replace(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static void TryAdd(this IServiceCollection collection, ServiceDescriptor descriptor) { } + public static void TryAdd(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddEnumerable(this IServiceCollection services, ServiceDescriptor descriptor) { } + public static void TryAddEnumerable(this IServiceCollection services, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey, TService instance) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service) { } + public static void TryAddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service) { } + public static void TryAddSingleton(this IServiceCollection collection, TService instance) where TService : class { } + public static void TryAddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service) { } + public static void TryAddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/net9.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/net9.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..5445e36c2a --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/net9.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,332 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.DependencyInjection.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Abstractions for dependency injection.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.DependencyInjection.IServiceCollection")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class ActivatorUtilities + { + public static ObjectFactory CreateFactory(System.Type instanceType, System.Type[] argumentTypes) { throw null; } + public static ObjectFactory CreateFactory(System.Type[] argumentTypes) { throw null; } + public static object CreateInstance(System.IServiceProvider provider, System.Type instanceType, params object[] parameters) { throw null; } + public static T CreateInstance(System.IServiceProvider provider, params object[] parameters) { throw null; } + public static object GetServiceOrCreateInstance(System.IServiceProvider provider, System.Type type) { throw null; } + public static T GetServiceOrCreateInstance(System.IServiceProvider provider) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.All)] + public partial class ActivatorUtilitiesConstructorAttribute : System.Attribute + { + } + + public readonly partial struct AsyncServiceScope : IServiceScope, System.IDisposable, System.IAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AsyncServiceScope(IServiceScope serviceScope) { } + public System.IServiceProvider ServiceProvider { get { throw null; } } + + public readonly void Dispose() { } + public readonly System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class FromKeyedServicesAttribute : System.Attribute + { + public FromKeyedServicesAttribute(object key) { } + public object Key { get { throw null; } } + } + + public partial interface IKeyedServiceProvider : System.IServiceProvider + { + object? GetKeyedService(System.Type serviceType, object? serviceKey); + object GetRequiredKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceCollection : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + } + + public partial interface IServiceProviderFactory + { + TContainerBuilder CreateBuilder(IServiceCollection services); + System.IServiceProvider CreateServiceProvider(TContainerBuilder containerBuilder); + } + + public partial interface IServiceProviderIsKeyedService : IServiceProviderIsService + { + bool IsKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceProviderIsService + { + bool IsService(System.Type serviceType); + } + + public partial interface IServiceScope : System.IDisposable + { + System.IServiceProvider ServiceProvider { get; } + } + + public partial interface IServiceScopeFactory + { + IServiceScope CreateScope(); + } + + public partial interface ISupportRequiredService + { + object GetRequiredService(System.Type serviceType); + } + + public static partial class KeyedService + { + public static object AnyKey { get { throw null; } } + } + public delegate object ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public delegate T ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public partial class ServiceCollection : IServiceCollection, System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public ServiceDescriptor this[int index] { get { throw null; } set { } } + + public void Clear() { } + public bool Contains(ServiceDescriptor item) { throw null; } + public void CopyTo(ServiceDescriptor[] array, int arrayIndex) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(ServiceDescriptor item) { throw null; } + public void Insert(int index, ServiceDescriptor item) { } + public void MakeReadOnly() { } + public bool Remove(ServiceDescriptor item) { throw null; } + public void RemoveAt(int index) { } + void System.Collections.Generic.ICollection.Add(ServiceDescriptor item) { } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public static partial class ServiceCollectionServiceExtensions + { + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, object implementationInstance) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + } + public partial class ServiceDescriptor + { + public ServiceDescriptor(System.Type serviceType, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, object instance) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object instance) { } + public ServiceDescriptor(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { } + public System.Func? ImplementationFactory { get { throw null; } } + public object? ImplementationInstance { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] + public System.Type? ImplementationType { get { throw null; } } + public bool IsKeyedService { get { throw null; } } + public System.Func? KeyedImplementationFactory { get { throw null; } } + public object? KeyedImplementationInstance { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] + public System.Type? KeyedImplementationType { get { throw null; } } + public ServiceLifetime Lifetime { get { throw null; } } + public object? ServiceKey { get { throw null; } } + public System.Type ServiceType { get { throw null; } } + + public static ServiceDescriptor Describe(System.Type serviceType, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor Describe(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Scoped() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, object implementationInstance) { throw null; } + public static ServiceDescriptor Singleton(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Singleton(TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Singleton() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public override string ToString() { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Transient() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class ServiceKeyAttribute : System.Attribute + { + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + public static partial class ServiceProviderKeyedServiceExtensions + { + public static T? GetKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The native code for an IEnumerable might not be available at runtime.")] + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, object? serviceKey) { throw null; } + public static object GetRequiredKeyedService(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static T GetRequiredKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + } + public static partial class ServiceProviderServiceExtensions + { + public static AsyncServiceScope CreateAsyncScope(this IServiceScopeFactory serviceScopeFactory) { throw null; } + public static AsyncServiceScope CreateAsyncScope(this System.IServiceProvider provider) { throw null; } + public static IServiceScope CreateScope(this System.IServiceProvider provider) { throw null; } + public static object GetRequiredService(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static T GetRequiredService(this System.IServiceProvider provider) { throw null; } + public static T? GetService(this System.IServiceProvider provider) { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The native code for an IEnumerable might not be available at runtime.")] + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider) { throw null; } + } +} + +namespace Microsoft.Extensions.DependencyInjection.Extensions +{ + public static partial class ServiceCollectionDescriptorExtensions + { + public static IServiceCollection Add(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static IServiceCollection Add(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection, System.Type serviceType) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, object? serviceKey) { throw null; } + public static IServiceCollection Replace(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static void TryAdd(this IServiceCollection collection, ServiceDescriptor descriptor) { } + public static void TryAdd(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddEnumerable(this IServiceCollection services, ServiceDescriptor descriptor) { } + public static void TryAddEnumerable(this IServiceCollection services, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey, TService instance) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service) { } + public static void TryAddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service) { } + public static void TryAddSingleton(this IServiceCollection collection, TService instance) where TService : class { } + public static void TryAddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service) { } + public static void TryAddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..e24798e7c2 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,326 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.DependencyInjection.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Abstractions for dependency injection.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.DependencyInjection.IServiceCollection")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class ActivatorUtilities + { + public static ObjectFactory CreateFactory(System.Type instanceType, System.Type[] argumentTypes) { throw null; } + public static ObjectFactory CreateFactory(System.Type[] argumentTypes) { throw null; } + public static object CreateInstance(System.IServiceProvider provider, System.Type instanceType, params object[] parameters) { throw null; } + public static T CreateInstance(System.IServiceProvider provider, params object[] parameters) { throw null; } + public static object GetServiceOrCreateInstance(System.IServiceProvider provider, System.Type type) { throw null; } + public static T GetServiceOrCreateInstance(System.IServiceProvider provider) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.All)] + public partial class ActivatorUtilitiesConstructorAttribute : System.Attribute + { + } + + public readonly partial struct AsyncServiceScope : IServiceScope, System.IDisposable, System.IAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AsyncServiceScope(IServiceScope serviceScope) { } + public System.IServiceProvider ServiceProvider { get { throw null; } } + + public readonly void Dispose() { } + public readonly System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class FromKeyedServicesAttribute : System.Attribute + { + public FromKeyedServicesAttribute(object key) { } + public object Key { get { throw null; } } + } + + public partial interface IKeyedServiceProvider : System.IServiceProvider + { + object? GetKeyedService(System.Type serviceType, object? serviceKey); + object GetRequiredKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceCollection : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + } + + public partial interface IServiceProviderFactory + { + TContainerBuilder CreateBuilder(IServiceCollection services); + System.IServiceProvider CreateServiceProvider(TContainerBuilder containerBuilder); + } + + public partial interface IServiceProviderIsKeyedService : IServiceProviderIsService + { + bool IsKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceProviderIsService + { + bool IsService(System.Type serviceType); + } + + public partial interface IServiceScope : System.IDisposable + { + System.IServiceProvider ServiceProvider { get; } + } + + public partial interface IServiceScopeFactory + { + IServiceScope CreateScope(); + } + + public partial interface ISupportRequiredService + { + object GetRequiredService(System.Type serviceType); + } + + public static partial class KeyedService + { + public static object AnyKey { get { throw null; } } + } + public delegate object ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public delegate T ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public partial class ServiceCollection : IServiceCollection, System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public ServiceDescriptor this[int index] { get { throw null; } set { } } + + public void Clear() { } + public bool Contains(ServiceDescriptor item) { throw null; } + public void CopyTo(ServiceDescriptor[] array, int arrayIndex) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(ServiceDescriptor item) { throw null; } + public void Insert(int index, ServiceDescriptor item) { } + public void MakeReadOnly() { } + public bool Remove(ServiceDescriptor item) { throw null; } + public void RemoveAt(int index) { } + void System.Collections.Generic.ICollection.Add(ServiceDescriptor item) { } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public static partial class ServiceCollectionServiceExtensions + { + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, object implementationInstance) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + } + public partial class ServiceDescriptor + { + public ServiceDescriptor(System.Type serviceType, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, object instance) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object instance) { } + public ServiceDescriptor(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { } + public System.Func? ImplementationFactory { get { throw null; } } + public object? ImplementationInstance { get { throw null; } } + public System.Type? ImplementationType { get { throw null; } } + public bool IsKeyedService { get { throw null; } } + public System.Func? KeyedImplementationFactory { get { throw null; } } + public object? KeyedImplementationInstance { get { throw null; } } + public System.Type? KeyedImplementationType { get { throw null; } } + public ServiceLifetime Lifetime { get { throw null; } } + public object? ServiceKey { get { throw null; } } + public System.Type ServiceType { get { throw null; } } + + public static ServiceDescriptor Describe(System.Type serviceType, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor Describe(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Scoped() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, object implementationInstance) { throw null; } + public static ServiceDescriptor Singleton(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Singleton(TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Singleton() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public override string ToString() { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Transient() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class ServiceKeyAttribute : System.Attribute + { + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + public static partial class ServiceProviderKeyedServiceExtensions + { + public static T? GetKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, object? serviceKey) { throw null; } + public static object GetRequiredKeyedService(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static T GetRequiredKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + } + public static partial class ServiceProviderServiceExtensions + { + public static AsyncServiceScope CreateAsyncScope(this IServiceScopeFactory serviceScopeFactory) { throw null; } + public static AsyncServiceScope CreateAsyncScope(this System.IServiceProvider provider) { throw null; } + public static IServiceScope CreateScope(this System.IServiceProvider provider) { throw null; } + public static object GetRequiredService(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static T GetRequiredService(this System.IServiceProvider provider) { throw null; } + public static T? GetService(this System.IServiceProvider provider) { throw null; } + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider) { throw null; } + } +} + +namespace Microsoft.Extensions.DependencyInjection.Extensions +{ + public static partial class ServiceCollectionDescriptorExtensions + { + public static IServiceCollection Add(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static IServiceCollection Add(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection, System.Type serviceType) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, object? serviceKey) { throw null; } + public static IServiceCollection Replace(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static void TryAdd(this IServiceCollection collection, ServiceDescriptor descriptor) { } + public static void TryAdd(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddEnumerable(this IServiceCollection services, ServiceDescriptor descriptor) { } + public static void TryAddEnumerable(this IServiceCollection services, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey, TService instance) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service) { } + public static void TryAddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service) { } + public static void TryAddSingleton(this IServiceCollection collection, TService instance) where TService : class { } + public static void TryAddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service) { } + public static void TryAddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..ef06c703b2 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,326 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.DependencyInjection.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Abstractions for dependency injection.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.DependencyInjection.IServiceCollection")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class ActivatorUtilities + { + public static ObjectFactory CreateFactory(System.Type instanceType, System.Type[] argumentTypes) { throw null; } + public static ObjectFactory CreateFactory(System.Type[] argumentTypes) { throw null; } + public static object CreateInstance(System.IServiceProvider provider, System.Type instanceType, params object[] parameters) { throw null; } + public static T CreateInstance(System.IServiceProvider provider, params object[] parameters) { throw null; } + public static object GetServiceOrCreateInstance(System.IServiceProvider provider, System.Type type) { throw null; } + public static T GetServiceOrCreateInstance(System.IServiceProvider provider) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.All)] + public partial class ActivatorUtilitiesConstructorAttribute : System.Attribute + { + } + + public readonly partial struct AsyncServiceScope : IServiceScope, System.IDisposable, System.IAsyncDisposable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AsyncServiceScope(IServiceScope serviceScope) { } + public System.IServiceProvider ServiceProvider { get { throw null; } } + + public readonly void Dispose() { } + public readonly System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class FromKeyedServicesAttribute : System.Attribute + { + public FromKeyedServicesAttribute(object key) { } + public object Key { get { throw null; } } + } + + public partial interface IKeyedServiceProvider : System.IServiceProvider + { + object? GetKeyedService(System.Type serviceType, object? serviceKey); + object GetRequiredKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceCollection : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + } + + public partial interface IServiceProviderFactory + { + TContainerBuilder CreateBuilder(IServiceCollection services); + System.IServiceProvider CreateServiceProvider(TContainerBuilder containerBuilder); + } + + public partial interface IServiceProviderIsKeyedService : IServiceProviderIsService + { + bool IsKeyedService(System.Type serviceType, object? serviceKey); + } + + public partial interface IServiceProviderIsService + { + bool IsService(System.Type serviceType); + } + + public partial interface IServiceScope : System.IDisposable + { + System.IServiceProvider ServiceProvider { get; } + } + + public partial interface IServiceScopeFactory + { + IServiceScope CreateScope(); + } + + public partial interface ISupportRequiredService + { + object GetRequiredService(System.Type serviceType); + } + + public static partial class KeyedService + { + public static object AnyKey { get { throw null; } } + } + public delegate object ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public delegate T ObjectFactory(System.IServiceProvider serviceProvider, object?[]? arguments); + public partial class ServiceCollection : IServiceCollection, System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public ServiceDescriptor this[int index] { get { throw null; } set { } } + + public void Clear() { } + public bool Contains(ServiceDescriptor item) { throw null; } + public void CopyTo(ServiceDescriptor[] array, int arrayIndex) { } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public int IndexOf(ServiceDescriptor item) { throw null; } + public void Insert(int index, ServiceDescriptor item) { } + public void MakeReadOnly() { } + public bool Remove(ServiceDescriptor item) { throw null; } + public void RemoveAt(int index) { } + void System.Collections.Generic.ICollection.Add(ServiceDescriptor item) { } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public static partial class ServiceCollectionServiceExtensions + { + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedScoped(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedSingleton(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey, System.Type implementationType) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddKeyedTransient(this IServiceCollection services, object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddScoped(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, object implementationInstance) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, TService implementationInstance) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddSingleton(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Func implementationFactory) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType, System.Type implementationType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Type serviceType) { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static IServiceCollection AddTransient(this IServiceCollection services) where TService : class where TImplementation : class, TService { throw null; } + } + public partial class ServiceDescriptor + { + public ServiceDescriptor(System.Type serviceType, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Func factory, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, object instance) { } + public ServiceDescriptor(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { } + public ServiceDescriptor(System.Type serviceType, object instance) { } + public ServiceDescriptor(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { } + public System.Func? ImplementationFactory { get { throw null; } } + public object? ImplementationInstance { get { throw null; } } + public System.Type? ImplementationType { get { throw null; } } + public bool IsKeyedService { get { throw null; } } + public System.Func? KeyedImplementationFactory { get { throw null; } } + public object? KeyedImplementationInstance { get { throw null; } } + public System.Type? KeyedImplementationType { get { throw null; } } + public ServiceLifetime Lifetime { get { throw null; } } + public object? ServiceKey { get { throw null; } } + public System.Type ServiceType { get { throw null; } } + + public static ServiceDescriptor Describe(System.Type serviceType, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor Describe(System.Type serviceType, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Func implementationFactory, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor DescribeKeyed(System.Type serviceType, object? serviceKey, System.Type implementationType, ServiceLifetime lifetime) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedScoped(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedScoped(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type serviceType, object? serviceKey, object implementationInstance) { throw null; } + public static ServiceDescriptor KeyedSingleton(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedSingleton(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor KeyedTransient(System.Type service, object? serviceKey, System.Type implementationType) { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey, System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor KeyedTransient(object? serviceKey) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Scoped(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Scoped() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Scoped(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Singleton(System.Type serviceType, object implementationInstance) { throw null; } + public static ServiceDescriptor Singleton(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Singleton(TService implementationInstance) where TService : class { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Singleton() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Singleton(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + public override string ToString() { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Func implementationFactory) { throw null; } + public static ServiceDescriptor Transient(System.Type service, System.Type implementationType) { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class { throw null; } + public static ServiceDescriptor Transient() where TService : class where TImplementation : class, TService { throw null; } + public static ServiceDescriptor Transient(System.Func implementationFactory) where TService : class where TImplementation : class, TService { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Parameter)] + public partial class ServiceKeyAttribute : System.Attribute + { + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + public static partial class ServiceProviderKeyedServiceExtensions + { + public static T? GetKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static System.Collections.Generic.IEnumerable GetKeyedServices(this System.IServiceProvider provider, object? serviceKey) { throw null; } + public static object GetRequiredKeyedService(this System.IServiceProvider provider, System.Type serviceType, object? serviceKey) { throw null; } + public static T GetRequiredKeyedService(this System.IServiceProvider provider, object? serviceKey) { throw null; } + } + public static partial class ServiceProviderServiceExtensions + { + public static AsyncServiceScope CreateAsyncScope(this IServiceScopeFactory serviceScopeFactory) { throw null; } + public static AsyncServiceScope CreateAsyncScope(this System.IServiceProvider provider) { throw null; } + public static IServiceScope CreateScope(this System.IServiceProvider provider) { throw null; } + public static object GetRequiredService(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static T GetRequiredService(this System.IServiceProvider provider) { throw null; } + public static T? GetService(this System.IServiceProvider provider) { throw null; } + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider, System.Type serviceType) { throw null; } + public static System.Collections.Generic.IEnumerable GetServices(this System.IServiceProvider provider) { throw null; } + } +} + +namespace Microsoft.Extensions.DependencyInjection.Extensions +{ + public static partial class ServiceCollectionDescriptorExtensions + { + public static IServiceCollection Add(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static IServiceCollection Add(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection, System.Type serviceType) { throw null; } + public static IServiceCollection RemoveAll(this IServiceCollection collection) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, System.Type serviceType, object? serviceKey) { throw null; } + public static IServiceCollection RemoveAllKeyed(this IServiceCollection collection, object? serviceKey) { throw null; } + public static IServiceCollection Replace(this IServiceCollection collection, ServiceDescriptor descriptor) { throw null; } + public static void TryAdd(this IServiceCollection collection, ServiceDescriptor descriptor) { } + public static void TryAdd(this IServiceCollection collection, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddEnumerable(this IServiceCollection services, ServiceDescriptor descriptor) { } + public static void TryAddEnumerable(this IServiceCollection services, System.Collections.Generic.IEnumerable descriptors) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedScoped(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedScoped(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedScoped(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey, TService instance) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedSingleton(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Func implementationFactory) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey, System.Type implementationType) { } + public static void TryAddKeyedTransient(this IServiceCollection collection, System.Type service, object? serviceKey) { } + public static void TryAddKeyedTransient(this IServiceCollection services, object? serviceKey, System.Func implementationFactory) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class { } + public static void TryAddKeyedTransient(this IServiceCollection collection, object? serviceKey) where TService : class where TImplementation : class, TService { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddScoped(this IServiceCollection collection, System.Type service) { } + public static void TryAddScoped(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class { } + public static void TryAddScoped(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddSingleton(this IServiceCollection collection, System.Type service) { } + public static void TryAddSingleton(this IServiceCollection collection, TService instance) where TService : class { } + public static void TryAddSingleton(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class { } + public static void TryAddSingleton(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Func implementationFactory) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service, System.Type implementationType) { } + public static void TryAddTransient(this IServiceCollection collection, System.Type service) { } + public static void TryAddTransient(this IServiceCollection services, System.Func implementationFactory) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class { } + public static void TryAddTransient(this IServiceCollection collection) where TService : class where TImplementation : class, TService { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/microsoft.extensions.dependencyinjection.abstractions.nuspec b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/microsoft.extensions.dependencyinjection.abstractions.nuspec new file mode 100644 index 0000000000..3ddcd7107f --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/9.0.8/microsoft.extensions.dependencyinjection.abstractions.nuspec @@ -0,0 +1,28 @@ + + + + Microsoft.Extensions.DependencyInjection.Abstractions + 9.0.8 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Abstractions for dependency injection. + +Commonly Used Types: +Microsoft.Extensions.DependencyInjection.IServiceCollection + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + + \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/Microsoft.Extensions.Logging.Abstractions.9.0.8.csproj b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/Microsoft.Extensions.Logging.Abstractions.9.0.8.csproj new file mode 100644 index 0000000000..8cbe98b492 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/Microsoft.Extensions.Logging.Abstractions.9.0.8.csproj @@ -0,0 +1,26 @@ + + + + net8.0;net9.0;netstandard2.0 + 9.0.8 + Microsoft.Extensions.Logging.Abstractions + MicrosoftAspNetCore + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/net8.0/Microsoft.Extensions.Logging.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/net8.0/Microsoft.Extensions.Logging.Abstractions.cs new file mode 100644 index 0000000000..ce94a18e50 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/net8.0/Microsoft.Extensions.Logging.Abstractions.cs @@ -0,0 +1,262 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.Logging.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Logging abstractions for Microsoft.Extensions.Logging.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.Logging.ILogger\r\nMicrosoft.Extensions.Logging.ILoggerFactory\r\nMicrosoft.Extensions.Logging.ILogger\r\nMicrosoft.Extensions.Logging.LogLevel\r\nMicrosoft.Extensions.Logging.Logger\r\nMicrosoft.Extensions.Logging.LoggerMessage\r\nMicrosoft.Extensions.Logging.Abstractions.NullLogger")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.Logging +{ + public readonly partial struct EventId : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventId(int id, string? name = null) { } + public int Id { get { throw null; } } + public string? Name { get { throw null; } } + + public readonly bool Equals(EventId other) { throw null; } + public override readonly bool Equals(object? obj) { throw null; } + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(EventId left, EventId right) { throw null; } + public static implicit operator EventId(int i) { throw null; } + public static bool operator !=(EventId left, EventId right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial interface IExternalScopeProvider + { + void ForEachScope(System.Action callback, TState state); + System.IDisposable Push(object? state); + } + + public partial interface ILogger + { + System.IDisposable? BeginScope(TState state); + bool IsEnabled(LogLevel logLevel); + void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter); + } + + public partial interface ILoggerFactory : System.IDisposable + { + void AddProvider(ILoggerProvider provider); + ILogger CreateLogger(string categoryName); + } + + public partial interface ILoggerProvider : System.IDisposable + { + ILogger CreateLogger(string categoryName); + } + + public partial interface ILogger : ILogger + { + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial interface ISupportExternalScope + { + void SetScopeProvider(IExternalScopeProvider scopeProvider); + } + + public partial class LogDefineOptions + { + public bool SkipEnabledCheck { get { throw null; } set { } } + } + public static partial class LoggerExtensions + { + public static System.IDisposable? BeginScope(this ILogger logger, string messageFormat, params object?[] args) { throw null; } + public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, System.Exception? exception, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, string? message, params object?[] args) { } + } + public partial class LoggerExternalScopeProvider : IExternalScopeProvider + { + public void ForEachScope(System.Action callback, TState state) { } + public System.IDisposable Push(object? state) { throw null; } + } + + public static partial class LoggerFactoryExtensions + { + public static ILogger CreateLogger(this ILoggerFactory factory, System.Type type) { throw null; } + public static ILogger CreateLogger(this ILoggerFactory factory) { throw null; } + } + public static partial class LoggerMessage + { + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Method)] + public sealed partial class LoggerMessageAttribute : System.Attribute + { + public LoggerMessageAttribute() { } + public LoggerMessageAttribute(LogLevel level, string message) { } + public LoggerMessageAttribute(LogLevel level) { } + public LoggerMessageAttribute(int eventId, LogLevel level, string message) { } + public LoggerMessageAttribute(string message) { } + public int EventId { get { throw null; } set { } } + public string? EventName { get { throw null; } set { } } + public LogLevel Level { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + public bool SkipEnabledCheck { get { throw null; } set { } } + } + + public partial class Logger : ILogger, ILogger + { + public Logger(ILoggerFactory factory) { } + System.IDisposable ILogger.BeginScope(TState state) { throw null; } + bool ILogger.IsEnabled(LogLevel logLevel) { throw null; } + void ILogger.Log(LogLevel logLevel, EventId eventId, TState state, System.Exception exception, System.Func formatter) { } + } + + public enum LogLevel + { + Trace = 0, + Debug = 1, + Information = 2, + Warning = 3, + Error = 4, + Critical = 5, + None = 6 + } +} + +namespace Microsoft.Extensions.Logging.Abstractions +{ + public abstract partial class BufferedLogRecord + { + public virtual System.Diagnostics.ActivitySpanId? ActivitySpanId { get { throw null; } } + public virtual System.Diagnostics.ActivityTraceId? ActivityTraceId { get { throw null; } } + public virtual System.Collections.Generic.IReadOnlyList> Attributes { get { throw null; } } + public abstract EventId EventId { get; } + public virtual string? Exception { get { throw null; } } + public virtual string? FormattedMessage { get { throw null; } } + public abstract LogLevel LogLevel { get; } + public virtual int? ManagedThreadId { get { throw null; } } + public virtual string? MessageTemplate { get { throw null; } } + public abstract System.DateTimeOffset Timestamp { get; } + } + public partial interface IBufferedLogger + { + void LogRecords(System.Collections.Generic.IEnumerable records); + } + + public readonly partial struct LogEntry + { + private readonly TState _State_k__BackingField; + private readonly System.Func _Formatter_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + public string Category { get { throw null; } } + public EventId EventId { get { throw null; } } + public System.Exception? Exception { get { throw null; } } + public System.Func Formatter { get { throw null; } } + public LogLevel LogLevel { get { throw null; } } + public TState State { get { throw null; } } + } + + public partial class NullLogger : ILogger + { + internal NullLogger() { } + public static NullLogger Instance { get { throw null; } } + + public System.IDisposable BeginScope(TState state) { throw null; } + public bool IsEnabled(LogLevel logLevel) { throw null; } + public void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + } + + public partial class NullLoggerFactory : ILoggerFactory, System.IDisposable + { + public static readonly NullLoggerFactory Instance; + public void AddProvider(ILoggerProvider provider) { } + public ILogger CreateLogger(string name) { throw null; } + public void Dispose() { } + } + + public partial class NullLoggerProvider : ILoggerProvider, System.IDisposable + { + internal NullLoggerProvider() { } + public static NullLoggerProvider Instance { get { throw null; } } + + public ILogger CreateLogger(string categoryName) { throw null; } + public void Dispose() { } + } + + public partial class NullLogger : ILogger, ILogger + { + public static readonly NullLogger Instance; + public System.IDisposable BeginScope(TState state) { throw null; } + public bool IsEnabled(LogLevel logLevel) { throw null; } + public void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/net9.0/Microsoft.Extensions.Logging.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/net9.0/Microsoft.Extensions.Logging.Abstractions.cs new file mode 100644 index 0000000000..1f69b92bd2 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/net9.0/Microsoft.Extensions.Logging.Abstractions.cs @@ -0,0 +1,262 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.Logging.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Logging abstractions for Microsoft.Extensions.Logging.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.Logging.ILogger\r\nMicrosoft.Extensions.Logging.ILoggerFactory\r\nMicrosoft.Extensions.Logging.ILogger\r\nMicrosoft.Extensions.Logging.LogLevel\r\nMicrosoft.Extensions.Logging.Logger\r\nMicrosoft.Extensions.Logging.LoggerMessage\r\nMicrosoft.Extensions.Logging.Abstractions.NullLogger")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.Logging +{ + public readonly partial struct EventId : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventId(int id, string? name = null) { } + public int Id { get { throw null; } } + public string? Name { get { throw null; } } + + public readonly bool Equals(EventId other) { throw null; } + public override readonly bool Equals(object? obj) { throw null; } + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(EventId left, EventId right) { throw null; } + public static implicit operator EventId(int i) { throw null; } + public static bool operator !=(EventId left, EventId right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial interface IExternalScopeProvider + { + void ForEachScope(System.Action callback, TState state); + System.IDisposable Push(object? state); + } + + public partial interface ILogger + { + System.IDisposable? BeginScope(TState state); + bool IsEnabled(LogLevel logLevel); + void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter); + } + + public partial interface ILoggerFactory : System.IDisposable + { + void AddProvider(ILoggerProvider provider); + ILogger CreateLogger(string categoryName); + } + + public partial interface ILoggerProvider : System.IDisposable + { + ILogger CreateLogger(string categoryName); + } + + public partial interface ILogger : ILogger + { + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial interface ISupportExternalScope + { + void SetScopeProvider(IExternalScopeProvider scopeProvider); + } + + public partial class LogDefineOptions + { + public bool SkipEnabledCheck { get { throw null; } set { } } + } + public static partial class LoggerExtensions + { + public static System.IDisposable? BeginScope(this ILogger logger, string messageFormat, params object?[] args) { throw null; } + public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, System.Exception? exception, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, string? message, params object?[] args) { } + } + public partial class LoggerExternalScopeProvider : IExternalScopeProvider + { + public void ForEachScope(System.Action callback, TState state) { } + public System.IDisposable Push(object? state) { throw null; } + } + + public static partial class LoggerFactoryExtensions + { + public static ILogger CreateLogger(this ILoggerFactory factory, System.Type type) { throw null; } + public static ILogger CreateLogger(this ILoggerFactory factory) { throw null; } + } + public static partial class LoggerMessage + { + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Method)] + public sealed partial class LoggerMessageAttribute : System.Attribute + { + public LoggerMessageAttribute() { } + public LoggerMessageAttribute(LogLevel level, string message) { } + public LoggerMessageAttribute(LogLevel level) { } + public LoggerMessageAttribute(int eventId, LogLevel level, string message) { } + public LoggerMessageAttribute(string message) { } + public int EventId { get { throw null; } set { } } + public string? EventName { get { throw null; } set { } } + public LogLevel Level { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + public bool SkipEnabledCheck { get { throw null; } set { } } + } + + public partial class Logger : ILogger, ILogger + { + public Logger(ILoggerFactory factory) { } + System.IDisposable ILogger.BeginScope(TState state) { throw null; } + bool ILogger.IsEnabled(LogLevel logLevel) { throw null; } + void ILogger.Log(LogLevel logLevel, EventId eventId, TState state, System.Exception exception, System.Func formatter) { } + } + + public enum LogLevel + { + Trace = 0, + Debug = 1, + Information = 2, + Warning = 3, + Error = 4, + Critical = 5, + None = 6 + } +} + +namespace Microsoft.Extensions.Logging.Abstractions +{ + public abstract partial class BufferedLogRecord + { + public virtual System.Diagnostics.ActivitySpanId? ActivitySpanId { get { throw null; } } + public virtual System.Diagnostics.ActivityTraceId? ActivityTraceId { get { throw null; } } + public virtual System.Collections.Generic.IReadOnlyList> Attributes { get { throw null; } } + public abstract EventId EventId { get; } + public virtual string? Exception { get { throw null; } } + public virtual string? FormattedMessage { get { throw null; } } + public abstract LogLevel LogLevel { get; } + public virtual int? ManagedThreadId { get { throw null; } } + public virtual string? MessageTemplate { get { throw null; } } + public abstract System.DateTimeOffset Timestamp { get; } + } + public partial interface IBufferedLogger + { + void LogRecords(System.Collections.Generic.IEnumerable records); + } + + public readonly partial struct LogEntry + { + private readonly TState _State_k__BackingField; + private readonly System.Func _Formatter_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + public string Category { get { throw null; } } + public EventId EventId { get { throw null; } } + public System.Exception? Exception { get { throw null; } } + public System.Func Formatter { get { throw null; } } + public LogLevel LogLevel { get { throw null; } } + public TState State { get { throw null; } } + } + + public partial class NullLogger : ILogger + { + internal NullLogger() { } + public static NullLogger Instance { get { throw null; } } + + public System.IDisposable BeginScope(TState state) { throw null; } + public bool IsEnabled(LogLevel logLevel) { throw null; } + public void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + } + + public partial class NullLoggerFactory : ILoggerFactory, System.IDisposable + { + public static readonly NullLoggerFactory Instance; + public void AddProvider(ILoggerProvider provider) { } + public ILogger CreateLogger(string name) { throw null; } + public void Dispose() { } + } + + public partial class NullLoggerProvider : ILoggerProvider, System.IDisposable + { + internal NullLoggerProvider() { } + public static NullLoggerProvider Instance { get { throw null; } } + + public ILogger CreateLogger(string categoryName) { throw null; } + public void Dispose() { } + } + + public partial class NullLogger : ILogger, ILogger + { + public static readonly NullLogger Instance; + public System.IDisposable BeginScope(TState state) { throw null; } + public bool IsEnabled(LogLevel logLevel) { throw null; } + public void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs new file mode 100644 index 0000000000..02247ab18c --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs @@ -0,0 +1,262 @@ +// 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.CompilerServices.InternalsVisibleTo("Microsoft.Extensions.Logging.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging.Abstractions")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Logging abstractions for Microsoft.Extensions.Logging.\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.Logging.ILogger\r\nMicrosoft.Extensions.Logging.ILoggerFactory\r\nMicrosoft.Extensions.Logging.ILogger\r\nMicrosoft.Extensions.Logging.LogLevel\r\nMicrosoft.Extensions.Logging.Logger\r\nMicrosoft.Extensions.Logging.LoggerMessage\r\nMicrosoft.Extensions.Logging.Abstractions.NullLogger")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging.Abstractions")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.Logging +{ + public readonly partial struct EventId : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public EventId(int id, string? name = null) { } + public int Id { get { throw null; } } + public string? Name { get { throw null; } } + + public readonly bool Equals(EventId other) { throw null; } + public override readonly bool Equals(object? obj) { throw null; } + public override readonly int GetHashCode() { throw null; } + public static bool operator ==(EventId left, EventId right) { throw null; } + public static implicit operator EventId(int i) { throw null; } + public static bool operator !=(EventId left, EventId right) { throw null; } + public override readonly string ToString() { throw null; } + } + + public partial interface IExternalScopeProvider + { + void ForEachScope(System.Action callback, TState state); + System.IDisposable Push(object? state); + } + + public partial interface ILogger + { + System.IDisposable? BeginScope(TState state); + bool IsEnabled(LogLevel logLevel); + void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter); + } + + public partial interface ILoggerFactory : System.IDisposable + { + void AddProvider(ILoggerProvider provider); + ILogger CreateLogger(string categoryName); + } + + public partial interface ILoggerProvider : System.IDisposable + { + ILogger CreateLogger(string categoryName); + } + + public partial interface ILogger : ILogger + { + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial interface ISupportExternalScope + { + void SetScopeProvider(IExternalScopeProvider scopeProvider); + } + + public partial class LogDefineOptions + { + public bool SkipEnabledCheck { get { throw null; } set { } } + } + public static partial class LoggerExtensions + { + public static System.IDisposable? BeginScope(this ILogger logger, string messageFormat, params object?[] args) { throw null; } + public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, System.Exception? exception, string? message, params object?[] args) { } + public static void Log(this ILogger logger, LogLevel logLevel, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogCritical(this ILogger logger, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogDebug(this ILogger logger, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogError(this ILogger logger, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogInformation(this ILogger logger, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogTrace(this ILogger logger, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, EventId eventId, System.Exception? exception, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, EventId eventId, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, System.Exception? exception, string? message, params object?[] args) { } + public static void LogWarning(this ILogger logger, string? message, params object?[] args) { } + } + public partial class LoggerExternalScopeProvider : IExternalScopeProvider + { + public void ForEachScope(System.Action callback, TState state) { } + public System.IDisposable Push(object? state) { throw null; } + } + + public static partial class LoggerFactoryExtensions + { + public static ILogger CreateLogger(this ILoggerFactory factory, System.Type type) { throw null; } + public static ILogger CreateLogger(this ILoggerFactory factory) { throw null; } + } + public static partial class LoggerMessage + { + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) { throw null; } + public static System.Action Define(LogLevel logLevel, EventId eventId, string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + public static System.Func DefineScope(string formatString) { throw null; } + } + [System.AttributeUsage(System.AttributeTargets.Method)] + public sealed partial class LoggerMessageAttribute : System.Attribute + { + public LoggerMessageAttribute() { } + public LoggerMessageAttribute(LogLevel level, string message) { } + public LoggerMessageAttribute(LogLevel level) { } + public LoggerMessageAttribute(int eventId, LogLevel level, string message) { } + public LoggerMessageAttribute(string message) { } + public int EventId { get { throw null; } set { } } + public string? EventName { get { throw null; } set { } } + public LogLevel Level { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + public bool SkipEnabledCheck { get { throw null; } set { } } + } + + public partial class Logger : ILogger, ILogger + { + public Logger(ILoggerFactory factory) { } + System.IDisposable ILogger.BeginScope(TState state) { throw null; } + bool ILogger.IsEnabled(LogLevel logLevel) { throw null; } + void ILogger.Log(LogLevel logLevel, EventId eventId, TState state, System.Exception exception, System.Func formatter) { } + } + + public enum LogLevel + { + Trace = 0, + Debug = 1, + Information = 2, + Warning = 3, + Error = 4, + Critical = 5, + None = 6 + } +} + +namespace Microsoft.Extensions.Logging.Abstractions +{ + public abstract partial class BufferedLogRecord + { + public virtual System.Diagnostics.ActivitySpanId? ActivitySpanId { get { throw null; } } + public virtual System.Diagnostics.ActivityTraceId? ActivityTraceId { get { throw null; } } + public virtual System.Collections.Generic.IReadOnlyList> Attributes { get { throw null; } } + public abstract EventId EventId { get; } + public virtual string? Exception { get { throw null; } } + public virtual string? FormattedMessage { get { throw null; } } + public abstract LogLevel LogLevel { get; } + public virtual int? ManagedThreadId { get { throw null; } } + public virtual string? MessageTemplate { get { throw null; } } + public abstract System.DateTimeOffset Timestamp { get; } + } + public partial interface IBufferedLogger + { + void LogRecords(System.Collections.Generic.IEnumerable records); + } + + public readonly partial struct LogEntry + { + private readonly TState _State_k__BackingField; + private readonly System.Func _Formatter_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + public string Category { get { throw null; } } + public EventId EventId { get { throw null; } } + public System.Exception? Exception { get { throw null; } } + public System.Func Formatter { get { throw null; } } + public LogLevel LogLevel { get { throw null; } } + public TState State { get { throw null; } } + } + + public partial class NullLogger : ILogger + { + internal NullLogger() { } + public static NullLogger Instance { get { throw null; } } + + public System.IDisposable BeginScope(TState state) { throw null; } + public bool IsEnabled(LogLevel logLevel) { throw null; } + public void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + } + + public partial class NullLoggerFactory : ILoggerFactory, System.IDisposable + { + public static readonly NullLoggerFactory Instance; + public void AddProvider(ILoggerProvider provider) { } + public ILogger CreateLogger(string name) { throw null; } + public void Dispose() { } + } + + public partial class NullLoggerProvider : ILoggerProvider, System.IDisposable + { + internal NullLoggerProvider() { } + public static NullLoggerProvider Instance { get { throw null; } } + + public ILogger CreateLogger(string categoryName) { throw null; } + public void Dispose() { } + } + + public partial class NullLogger : ILogger, ILogger + { + public static readonly NullLogger Instance; + public System.IDisposable BeginScope(TState state) { throw null; } + public bool IsEnabled(LogLevel logLevel) { throw null; } + public void Log(LogLevel logLevel, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/microsoft.extensions.logging.abstractions.nuspec b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/microsoft.extensions.logging.abstractions.nuspec new file mode 100644 index 0000000000..6c947779d7 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/9.0.8/microsoft.extensions.logging.abstractions.nuspec @@ -0,0 +1,40 @@ + + + + Microsoft.Extensions.Logging.Abstractions + 9.0.8 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Logging abstractions for Microsoft.Extensions.Logging. + +Commonly Used Types: +Microsoft.Extensions.Logging.ILogger +Microsoft.Extensions.Logging.ILoggerFactory +Microsoft.Extensions.Logging.ILogger<TCategoryName> +Microsoft.Extensions.Logging.LogLevel +Microsoft.Extensions.Logging.Logger<T> +Microsoft.Extensions.Logging.LoggerMessage +Microsoft.Extensions.Logging.Abstractions.NullLogger + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/Customizations.props b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/Customizations.props new file mode 100644 index 0000000000..b2ccebc1e7 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/Customizations.props @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/System.Diagnostics.DiagnosticSource.9.0.8.csproj b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/System.Diagnostics.DiagnosticSource.9.0.8.csproj new file mode 100644 index 0000000000..24909568b2 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/System.Diagnostics.DiagnosticSource.9.0.8.csproj @@ -0,0 +1,15 @@ + + + + net8.0;net9.0;netstandard2.0 + 9.0.8 + System.Diagnostics.DiagnosticSource + Open + + + + + + + + diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/net8.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/net8.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 0000000000..e8ac90a43a --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/net8.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,619 @@ +// 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=v8.0", FrameworkDisplayName = ".NET 8.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Diagnostics.DiagnosticSource")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides Classes that allow you to decouple code logging rich (unserializable) diagnostics/telemetry (e.g. framework) from code that consumes it (e.g. tools)\r\n\r\nCommonly Used Types:\r\nSystem.Diagnostics.DiagnosticListener\r\nSystem.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))] +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 bool HasRemoteParent { get { throw null; } } + public string? Id { get { throw null; } } + public ActivityIdFormat IdFormat { get { throw null; } } + public bool IsAllDataRequested { get { throw null; } set { } } + public bool IsStopped { get { throw null; } } + 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 ActivityStatusCode Status { get { throw null; } } + public string? StatusDescription { 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 static Func? TraceIdGenerator { get { throw null; } set { } } + public string? TraceStateString { get { throw null; } set { } } + + public static event EventHandler? CurrentChanged { + add { } + remove { } + } + + public Activity AddBaggage(string key, string? value) { throw null; } + public Activity AddEvent(ActivityEvent e) { throw null; } + public Activity AddException(Exception exception, in TagList tags = default, DateTimeOffset timestamp = default) { throw null; } + public Activity AddLink(ActivityLink link) { 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 Enumerator EnumerateEvents() { throw null; } + public Enumerator EnumerateLinks() { throw null; } + public Enumerator> EnumerateTagObjects() { throw null; } + public string? GetBaggageItem(string key) { throw null; } + public object? GetCustomProperty(string propertyName) { throw null; } + public object? GetTagItem(string key) { throw null; } + public Activity SetBaggage(string key, string? value) { 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 SetStatus(ActivityStatusCode code, string? description = null) { throw null; } + public Activity SetTag(string key, object? value) { throw null; } + public Activity Start() { throw null; } + public void Stop() { } + public partial struct Enumerator + { + private object _dummy; + private int _dummyPrimitive; + public ref T Current { get { throw null; } } + + public readonly Enumerator GetEnumerator() { throw null; } + public bool MoveNext() { throw null; } + } + } + + public readonly partial struct ActivityChangedEventArgs + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Activity? Current { get { throw null; } init { } } + public Activity? Previous { get { throw null; } init { } } + } + + 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, bool isRemote, out ActivityContext context) { 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 string? TraceState { get { throw null; } init { } } + } + + 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 readonly Activity.Enumerator> EnumerateTagObjects() { 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 Activity.Enumerator> EnumerateTagObjects() { 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 ExceptionRecorder? ExceptionRecorder { 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 = "", Collections.Generic.IEnumerable>? tags = null) { } + public ActivitySource(string name, string? version = "") { } + public ActivitySource(string name) { } + public string Name { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + public Activity? CreateActivity(string name, ActivityKind kind, ActivityContext parentContext, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown) { throw null; } + public Activity? CreateActivity(string name, ActivityKind kind, string? parentId, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown) { throw null; } + public Activity? CreateActivity(string name, ActivityKind kind) { throw null; } + public void Dispose() { } + public bool HasListeners() { throw null; } + public Activity? StartActivity(ActivityKind kind, ActivityContext parentContext = default, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default, string name = "") { 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 enum ActivityStatusCode + { + Unset = 0, + Ok = 1, + Error = 2 + } + + 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; } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + 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) { } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public Activity StartActivity(Activity activity, object? args) { throw null; } + [CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")] + public Activity StartActivity(Activity activity, T args) { throw null; } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public void StopActivity(Activity activity, object? args) { } + [CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")] + public void StopActivity(Activity activity, T args) { } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public abstract void Write(string name, object? value); + [CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")] + public void Write(string name, T value) { } + } + public abstract partial class DistributedContextPropagator + { + public static DistributedContextPropagator Current { get { throw null; } set { } } + public abstract Collections.Generic.IReadOnlyCollection Fields { get; } + + public static DistributedContextPropagator CreateDefaultPropagator() { throw null; } + public static DistributedContextPropagator CreateNoOutputPropagator() { throw null; } + public static DistributedContextPropagator CreatePassThroughPropagator() { throw null; } + public abstract Collections.Generic.IEnumerable>? ExtractBaggage(object? carrier, PropagatorGetterCallback? getter); + public abstract void ExtractTraceIdAndState(object? carrier, PropagatorGetterCallback? getter, out string? traceId, out string? traceState); + public abstract void Inject(Activity? activity, object? carrier, PropagatorSetterCallback? setter); + public delegate void PropagatorGetterCallback(object? carrier, string fieldName, out string? fieldValue, out Collections.Generic.IEnumerable? fieldValues); + public delegate void PropagatorSetterCallback(object? carrier, string fieldName, string fieldValue); + } + public delegate void ExceptionRecorder(Activity activity, Exception exception, ref TagList tags); + public delegate ActivitySamplingResult SampleActivity(ref ActivityCreationOptions options); + public partial struct TagList : Collections.Generic.IList>, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable, Collections.Generic.IReadOnlyList>, Collections.Generic.IReadOnlyCollection> + { + private object _dummy; + private int _dummyPrimitive; + public TagList(params scoped ReadOnlySpan> tagList) { } + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Collections.Generic.KeyValuePair this[int index] { get { throw null; } set { } } + + public void Add(Collections.Generic.KeyValuePair tag) { } + public void Add(string key, object? value) { } + public void Clear() { } + public readonly bool Contains(Collections.Generic.KeyValuePair item) { throw null; } + public readonly void CopyTo(Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + public readonly void CopyTo(Span> tags) { } + public readonly Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + public readonly int IndexOf(Collections.Generic.KeyValuePair item) { throw null; } + public void Insert(int index, Collections.Generic.KeyValuePair item) { } + public bool Remove(Collections.Generic.KeyValuePair item) { throw null; } + public void RemoveAt(int index) { } + readonly Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { 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; } + public void Reset() { } + } + } +} + +namespace System.Diagnostics.Metrics +{ + public sealed partial class Counter : Instrument where T : struct + { + internal Counter() : base(default!, default!) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag) { } + public void Add(T delta, params Collections.Generic.KeyValuePair[] tags) { } + public void Add(T delta, in TagList tagList) { } + public void Add(T delta, params scoped ReadOnlySpan> tags) { } + public void Add(T delta) { } + } + + public sealed partial class Gauge : Instrument where T : struct + { + internal Gauge() : base(default!, default!) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Record(T value, Collections.Generic.KeyValuePair tag) { } + public void Record(T value, params Collections.Generic.KeyValuePair[] tags) { } + public void Record(T value, in TagList tagList) { } + public void Record(T value, params scoped ReadOnlySpan> tags) { } + public void Record(T value) { } + } + + public sealed partial class Histogram : Instrument where T : struct + { + internal Histogram() : base(default!, default!) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Record(T value, Collections.Generic.KeyValuePair tag) { } + public void Record(T value, params Collections.Generic.KeyValuePair[] tags) { } + public void Record(T value, in TagList tagList) { } + public void Record(T value, params scoped ReadOnlySpan> tags) { } + public void Record(T value) { } + } + + public partial interface IMeterFactory : IDisposable + { + Meter Create(MeterOptions options); + } + + public abstract partial class Instrument + { + protected Instrument(Meter meter, string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null) { } + protected Instrument(Meter meter, string name, string? unit, string? description) { } + protected Instrument(Meter meter, string name) { } + public string? Description { get { throw null; } } + public bool Enabled { get { throw null; } } + public virtual bool IsObservable { get { throw null; } } + public Meter Meter { get { throw null; } } + public string Name { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Unit { get { throw null; } } + + protected void Publish() { } + } + public sealed partial class InstrumentAdvice where T : struct + { + public Collections.Generic.IReadOnlyList? HistogramBucketBoundaries { get { throw null; } init { } } + } + public abstract partial class Instrument : Instrument where T : struct + { + protected Instrument(Meter meter, string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null, InstrumentAdvice? advice = null) : base(default!, default!) { } + protected Instrument(Meter meter, string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) : base(default!, default!) { } + protected Instrument(Meter meter, string name, string? unit, string? description) : base(default!, default!) { } + protected Instrument(Meter meter, string name) : base(default!, default!) { } + public InstrumentAdvice? Advice { get { throw null; } } + + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag) { } + protected void RecordMeasurement(T measurement, in TagList tagList) { } + protected void RecordMeasurement(T measurement, ReadOnlySpan> tags) { } + protected void RecordMeasurement(T measurement) { } + } + + public delegate void MeasurementCallback(Instrument instrument, T measurement, ReadOnlySpan> tags, object? state) + where T : struct; + public readonly partial struct Measurement + where T : struct + { + private readonly T _Value_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Measurement(T value, Collections.Generic.IEnumerable>? tags) { } + public Measurement(T value, params Collections.Generic.KeyValuePair[]? tags) { } + public Measurement(T value, in TagList tags) { } + public Measurement(T value, params scoped ReadOnlySpan> tags) { } + public Measurement(T value) { } + public ReadOnlySpan> Tags { get { throw null; } } + public T Value { get { throw null; } } + } + + public partial class Meter : IDisposable + { + public Meter(MeterOptions options) { } + public Meter(string name, string? version, Collections.Generic.IEnumerable>? tags, object? scope = null) { } + public Meter(string name, string? version) { } + public Meter(string name) { } + public string Name { get { throw null; } } + public object? Scope { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Version { get { throw null; } } + + public Counter CreateCounter(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public Counter CreateCounter(string name, string? unit = null, string? description = null) where T : struct { throw null; } + public Gauge CreateGauge(string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null) where T : struct { throw null; } + public Gauge CreateGauge(string name) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null, InstrumentAdvice? advice = null) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit, string? description) where T : struct { throw null; } + public Histogram CreateHistogram(string name) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public UpDownCounter CreateUpDownCounter(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public UpDownCounter CreateUpDownCounter(string name, string? unit = null, string? description = null) where T : struct { throw null; } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + } + + public static partial class MeterFactoryExtensions + { + public static Meter Create(this IMeterFactory meterFactory, string name, string? version = null, Collections.Generic.IEnumerable>? tags = null) { throw null; } + } + public sealed partial class MeterListener : IDisposable + { + public Action? InstrumentPublished { get { throw null; } set { } } + public Action? MeasurementsCompleted { get { throw null; } set { } } + + public object? DisableMeasurementEvents(Instrument instrument) { throw null; } + public void Dispose() { } + public void EnableMeasurementEvents(Instrument instrument, object? state = null) { } + public void RecordObservableInstruments() { } + public void SetMeasurementEventCallback(MeasurementCallback? measurementCallback) where T : struct { } + public void Start() { } + } + + public partial class MeterOptions + { + public MeterOptions(string name) { } + public string Name { get { throw null; } set { } } + public object? Scope { get { throw null; } set { } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } set { } } + public string? Version { get { throw null; } set { } } + } + public sealed partial class ObservableCounter : ObservableInstrument where T : struct + { + internal ObservableCounter() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public sealed partial class ObservableGauge : ObservableInstrument where T : struct + { + internal ObservableGauge() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public abstract partial class ObservableInstrument : Instrument where T : struct + { + protected ObservableInstrument(Meter meter, string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) : base(default!, default!) { } + protected ObservableInstrument(Meter meter, string name, string? unit, string? description) : base(default!, default!) { } + public override bool IsObservable { get { throw null; } } + + protected abstract Collections.Generic.IEnumerable> Observe(); + } + + public sealed partial class ObservableUpDownCounter : ObservableInstrument where T : struct + { + internal ObservableUpDownCounter() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public sealed partial class UpDownCounter : Instrument where T : struct + { + internal UpDownCounter() : base(default!, default!) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag) { } + public void Add(T delta, params Collections.Generic.KeyValuePair[] tags) { } + public void Add(T delta, in TagList tagList) { } + public void Add(T delta, params scoped ReadOnlySpan> tags) { } + public void Add(T delta) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/net9.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/net9.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 0000000000..79f338f5b3 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/net9.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,619 @@ +// 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=v9.0", FrameworkDisplayName = ".NET 9.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Diagnostics.DiagnosticSource")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides Classes that allow you to decouple code logging rich (unserializable) diagnostics/telemetry (e.g. framework) from code that consumes it (e.g. tools)\r\n\r\nCommonly Used Types:\r\nSystem.Diagnostics.DiagnosticListener\r\nSystem.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))] +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 bool HasRemoteParent { get { throw null; } } + public string? Id { get { throw null; } } + public ActivityIdFormat IdFormat { get { throw null; } } + public bool IsAllDataRequested { get { throw null; } set { } } + public bool IsStopped { get { throw null; } } + 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 ActivityStatusCode Status { get { throw null; } } + public string? StatusDescription { 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 static Func? TraceIdGenerator { get { throw null; } set { } } + public string? TraceStateString { get { throw null; } set { } } + + public static event EventHandler? CurrentChanged { + add { } + remove { } + } + + public Activity AddBaggage(string key, string? value) { throw null; } + public Activity AddEvent(ActivityEvent e) { throw null; } + public Activity AddException(Exception exception, in TagList tags = default, DateTimeOffset timestamp = default) { throw null; } + public Activity AddLink(ActivityLink link) { 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 Enumerator EnumerateEvents() { throw null; } + public Enumerator EnumerateLinks() { throw null; } + public Enumerator> EnumerateTagObjects() { throw null; } + public string? GetBaggageItem(string key) { throw null; } + public object? GetCustomProperty(string propertyName) { throw null; } + public object? GetTagItem(string key) { throw null; } + public Activity SetBaggage(string key, string? value) { 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 SetStatus(ActivityStatusCode code, string? description = null) { throw null; } + public Activity SetTag(string key, object? value) { throw null; } + public Activity Start() { throw null; } + public void Stop() { } + public partial struct Enumerator + { + private object _dummy; + private int _dummyPrimitive; + public ref T Current { get { throw null; } } + + public readonly Enumerator GetEnumerator() { throw null; } + public bool MoveNext() { throw null; } + } + } + + public readonly partial struct ActivityChangedEventArgs + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Activity? Current { get { throw null; } init { } } + public Activity? Previous { get { throw null; } init { } } + } + + 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, bool isRemote, out ActivityContext context) { 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 string? TraceState { get { throw null; } init { } } + } + + 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 readonly Activity.Enumerator> EnumerateTagObjects() { 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 Activity.Enumerator> EnumerateTagObjects() { 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 ExceptionRecorder? ExceptionRecorder { 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 = "", Collections.Generic.IEnumerable>? tags = null) { } + public ActivitySource(string name, string? version = "") { } + public ActivitySource(string name) { } + public string Name { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + public Activity? CreateActivity(string name, ActivityKind kind, ActivityContext parentContext, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown) { throw null; } + public Activity? CreateActivity(string name, ActivityKind kind, string? parentId, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown) { throw null; } + public Activity? CreateActivity(string name, ActivityKind kind) { throw null; } + public void Dispose() { } + public bool HasListeners() { throw null; } + public Activity? StartActivity(ActivityKind kind, ActivityContext parentContext = default, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default, string name = "") { 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 enum ActivityStatusCode + { + Unset = 0, + Ok = 1, + Error = 2 + } + + 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; } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + 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) { } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public Activity StartActivity(Activity activity, object? args) { throw null; } + [CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")] + public Activity StartActivity(Activity activity, T args) { throw null; } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public void StopActivity(Activity activity, object? args) { } + [CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")] + public void StopActivity(Activity activity, T args) { } + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public abstract void Write(string name, object? value); + [CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")] + public void Write(string name, T value) { } + } + public abstract partial class DistributedContextPropagator + { + public static DistributedContextPropagator Current { get { throw null; } set { } } + public abstract Collections.Generic.IReadOnlyCollection Fields { get; } + + public static DistributedContextPropagator CreateDefaultPropagator() { throw null; } + public static DistributedContextPropagator CreateNoOutputPropagator() { throw null; } + public static DistributedContextPropagator CreatePassThroughPropagator() { throw null; } + public abstract Collections.Generic.IEnumerable>? ExtractBaggage(object? carrier, PropagatorGetterCallback? getter); + public abstract void ExtractTraceIdAndState(object? carrier, PropagatorGetterCallback? getter, out string? traceId, out string? traceState); + public abstract void Inject(Activity? activity, object? carrier, PropagatorSetterCallback? setter); + public delegate void PropagatorGetterCallback(object? carrier, string fieldName, out string? fieldValue, out Collections.Generic.IEnumerable? fieldValues); + public delegate void PropagatorSetterCallback(object? carrier, string fieldName, string fieldValue); + } + public delegate void ExceptionRecorder(Activity activity, Exception exception, ref TagList tags); + public delegate ActivitySamplingResult SampleActivity(ref ActivityCreationOptions options); + public partial struct TagList : Collections.Generic.IList>, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable, Collections.Generic.IReadOnlyList>, Collections.Generic.IReadOnlyCollection> + { + private object _dummy; + private int _dummyPrimitive; + public TagList(params scoped ReadOnlySpan> tagList) { } + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Collections.Generic.KeyValuePair this[int index] { get { throw null; } set { } } + + public void Add(Collections.Generic.KeyValuePair tag) { } + public void Add(string key, object? value) { } + public void Clear() { } + public readonly bool Contains(Collections.Generic.KeyValuePair item) { throw null; } + public readonly void CopyTo(Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + public readonly void CopyTo(Span> tags) { } + public readonly Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + public readonly int IndexOf(Collections.Generic.KeyValuePair item) { throw null; } + public void Insert(int index, Collections.Generic.KeyValuePair item) { } + public bool Remove(Collections.Generic.KeyValuePair item) { throw null; } + public void RemoveAt(int index) { } + readonly Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { 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; } + public void Reset() { } + } + } +} + +namespace System.Diagnostics.Metrics +{ + public sealed partial class Counter : Instrument where T : struct + { + internal Counter() : base(default!, default!) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag) { } + public void Add(T delta, params Collections.Generic.KeyValuePair[] tags) { } + public void Add(T delta, in TagList tagList) { } + public void Add(T delta, params scoped ReadOnlySpan> tags) { } + public void Add(T delta) { } + } + + public sealed partial class Gauge : Instrument where T : struct + { + internal Gauge() : base(default!, default!) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Record(T value, Collections.Generic.KeyValuePair tag) { } + public void Record(T value, params Collections.Generic.KeyValuePair[] tags) { } + public void Record(T value, in TagList tagList) { } + public void Record(T value, params scoped ReadOnlySpan> tags) { } + public void Record(T value) { } + } + + public sealed partial class Histogram : Instrument where T : struct + { + internal Histogram() : base(default!, default!) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Record(T value, Collections.Generic.KeyValuePair tag) { } + public void Record(T value, params Collections.Generic.KeyValuePair[] tags) { } + public void Record(T value, in TagList tagList) { } + public void Record(T value, params scoped ReadOnlySpan> tags) { } + public void Record(T value) { } + } + + public partial interface IMeterFactory : IDisposable + { + Meter Create(MeterOptions options); + } + + public abstract partial class Instrument + { + protected Instrument(Meter meter, string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null) { } + protected Instrument(Meter meter, string name, string? unit, string? description) { } + protected Instrument(Meter meter, string name) { } + public string? Description { get { throw null; } } + public bool Enabled { get { throw null; } } + public virtual bool IsObservable { get { throw null; } } + public Meter Meter { get { throw null; } } + public string Name { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Unit { get { throw null; } } + + protected void Publish() { } + } + public sealed partial class InstrumentAdvice where T : struct + { + public Collections.Generic.IReadOnlyList? HistogramBucketBoundaries { get { throw null; } init { } } + } + public abstract partial class Instrument : Instrument where T : struct + { + protected Instrument(Meter meter, string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null, InstrumentAdvice? advice = null) : base(default!, default!) { } + protected Instrument(Meter meter, string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) : base(default!, default!) { } + protected Instrument(Meter meter, string name, string? unit, string? description) : base(default!, default!) { } + protected Instrument(Meter meter, string name) : base(default!, default!) { } + public InstrumentAdvice? Advice { get { throw null; } } + + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag) { } + protected void RecordMeasurement(T measurement, in TagList tagList) { } + protected void RecordMeasurement(T measurement, ReadOnlySpan> tags) { } + protected void RecordMeasurement(T measurement) { } + } + + public delegate void MeasurementCallback(Instrument instrument, T measurement, ReadOnlySpan> tags, object? state) + where T : struct; + public readonly partial struct Measurement + where T : struct + { + private readonly T _Value_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Measurement(T value, Collections.Generic.IEnumerable>? tags) { } + public Measurement(T value, params Collections.Generic.KeyValuePair[]? tags) { } + public Measurement(T value, in TagList tags) { } + public Measurement(T value, params scoped ReadOnlySpan> tags) { } + public Measurement(T value) { } + public ReadOnlySpan> Tags { get { throw null; } } + public T Value { get { throw null; } } + } + + public partial class Meter : IDisposable + { + public Meter(MeterOptions options) { } + public Meter(string name, string? version, Collections.Generic.IEnumerable>? tags, object? scope = null) { } + public Meter(string name, string? version) { } + public Meter(string name) { } + public string Name { get { throw null; } } + public object? Scope { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Version { get { throw null; } } + + public Counter CreateCounter(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public Counter CreateCounter(string name, string? unit = null, string? description = null) where T : struct { throw null; } + public Gauge CreateGauge(string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null) where T : struct { throw null; } + public Gauge CreateGauge(string name) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null, InstrumentAdvice? advice = null) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit, string? description) where T : struct { throw null; } + public Histogram CreateHistogram(string name) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public UpDownCounter CreateUpDownCounter(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public UpDownCounter CreateUpDownCounter(string name, string? unit = null, string? description = null) where T : struct { throw null; } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + } + + public static partial class MeterFactoryExtensions + { + public static Meter Create(this IMeterFactory meterFactory, string name, string? version = null, Collections.Generic.IEnumerable>? tags = null) { throw null; } + } + public sealed partial class MeterListener : IDisposable + { + public Action? InstrumentPublished { get { throw null; } set { } } + public Action? MeasurementsCompleted { get { throw null; } set { } } + + public object? DisableMeasurementEvents(Instrument instrument) { throw null; } + public void Dispose() { } + public void EnableMeasurementEvents(Instrument instrument, object? state = null) { } + public void RecordObservableInstruments() { } + public void SetMeasurementEventCallback(MeasurementCallback? measurementCallback) where T : struct { } + public void Start() { } + } + + public partial class MeterOptions + { + public MeterOptions(string name) { } + public string Name { get { throw null; } set { } } + public object? Scope { get { throw null; } set { } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } set { } } + public string? Version { get { throw null; } set { } } + } + public sealed partial class ObservableCounter : ObservableInstrument where T : struct + { + internal ObservableCounter() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public sealed partial class ObservableGauge : ObservableInstrument where T : struct + { + internal ObservableGauge() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public abstract partial class ObservableInstrument : Instrument where T : struct + { + protected ObservableInstrument(Meter meter, string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) : base(default!, default!) { } + protected ObservableInstrument(Meter meter, string name, string? unit, string? description) : base(default!, default!) { } + public override bool IsObservable { get { throw null; } } + + protected abstract Collections.Generic.IEnumerable> Observe(); + } + + public sealed partial class ObservableUpDownCounter : ObservableInstrument where T : struct + { + internal ObservableUpDownCounter() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public sealed partial class UpDownCounter : Instrument where T : struct + { + internal UpDownCounter() : base(default!, default!) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag) { } + public void Add(T delta, params Collections.Generic.KeyValuePair[] tags) { } + public void Add(T delta, in TagList tagList) { } + public void Add(T delta, params scoped ReadOnlySpan> tags) { } + public void Add(T delta) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/netstandard2.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/netstandard2.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 0000000000..4ac52e2eac --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/lib/netstandard2.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,612 @@ +// 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=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Diagnostics.DiagnosticSource")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides Classes that allow you to decouple code logging rich (unserializable) diagnostics/telemetry (e.g. framework) from code that consumes it (e.g. tools)\r\n\r\nCommonly Used Types:\r\nSystem.Diagnostics.DiagnosticListener\r\nSystem.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyFileVersion("9.0.825.36511")] +[assembly: System.Reflection.AssemblyInformationalVersion("9.0.8+aae90fa09086a9be09dac83fa66542232c7269d8")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Diagnostics.DiagnosticSource")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("9.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 bool HasRemoteParent { get { throw null; } } + public string? Id { get { throw null; } } + public ActivityIdFormat IdFormat { get { throw null; } } + public bool IsAllDataRequested { get { throw null; } set { } } + public bool IsStopped { get { throw null; } } + 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 ActivityStatusCode Status { get { throw null; } } + public string? StatusDescription { 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 static Func? TraceIdGenerator { get { throw null; } set { } } + public string? TraceStateString { get { throw null; } set { } } + + public static event EventHandler? CurrentChanged { + add { } + remove { } + } + + public Activity AddBaggage(string key, string? value) { throw null; } + public Activity AddEvent(ActivityEvent e) { throw null; } + public Activity AddException(Exception exception, in TagList tags = default, DateTimeOffset timestamp = default) { throw null; } + public Activity AddLink(ActivityLink link) { 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 Enumerator EnumerateEvents() { throw null; } + public Enumerator EnumerateLinks() { throw null; } + public Enumerator> EnumerateTagObjects() { throw null; } + public string? GetBaggageItem(string key) { throw null; } + public object? GetCustomProperty(string propertyName) { throw null; } + public object? GetTagItem(string key) { throw null; } + public Activity SetBaggage(string key, string? value) { 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 SetStatus(ActivityStatusCode code, string? description = null) { throw null; } + public Activity SetTag(string key, object? value) { throw null; } + public Activity Start() { throw null; } + public void Stop() { } + public partial struct Enumerator + { + private object _dummy; + private int _dummyPrimitive; + public ref T Current { get { throw null; } } + + public readonly Enumerator GetEnumerator() { throw null; } + public bool MoveNext() { throw null; } + } + } + + public readonly partial struct ActivityChangedEventArgs + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Activity? Current { get { throw null; } init { } } + public Activity? Previous { get { throw null; } init { } } + } + + 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, bool isRemote, out ActivityContext context) { 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 string? TraceState { get { throw null; } init { } } + } + + 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 readonly Activity.Enumerator> EnumerateTagObjects() { 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 Activity.Enumerator> EnumerateTagObjects() { 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 ExceptionRecorder? ExceptionRecorder { 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 = "", Collections.Generic.IEnumerable>? tags = null) { } + public ActivitySource(string name, string? version = "") { } + public ActivitySource(string name) { } + public string Name { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + public Activity? CreateActivity(string name, ActivityKind kind, ActivityContext parentContext, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown) { throw null; } + public Activity? CreateActivity(string name, ActivityKind kind, string? parentId, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, ActivityIdFormat idFormat = ActivityIdFormat.Unknown) { throw null; } + public Activity? CreateActivity(string name, ActivityKind kind) { throw null; } + public void Dispose() { } + public bool HasListeners() { throw null; } + public Activity? StartActivity(ActivityKind kind, ActivityContext parentContext = default, Collections.Generic.IEnumerable>? tags = null, Collections.Generic.IEnumerable? links = null, DateTimeOffset startTime = default, string name = "") { 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 enum ActivityStatusCode + { + Unset = 0, + Ok = 1, + Error = 2 + } + + 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 Activity StartActivity(Activity activity, T args) { throw null; } + public void StopActivity(Activity activity, object? args) { } + public void StopActivity(Activity activity, T args) { } + public abstract void Write(string name, object? value); + public void Write(string name, T value) { } + } + public abstract partial class DistributedContextPropagator + { + public static DistributedContextPropagator Current { get { throw null; } set { } } + public abstract Collections.Generic.IReadOnlyCollection Fields { get; } + + public static DistributedContextPropagator CreateDefaultPropagator() { throw null; } + public static DistributedContextPropagator CreateNoOutputPropagator() { throw null; } + public static DistributedContextPropagator CreatePassThroughPropagator() { throw null; } + public abstract Collections.Generic.IEnumerable>? ExtractBaggage(object? carrier, PropagatorGetterCallback? getter); + public abstract void ExtractTraceIdAndState(object? carrier, PropagatorGetterCallback? getter, out string? traceId, out string? traceState); + public abstract void Inject(Activity? activity, object? carrier, PropagatorSetterCallback? setter); + public delegate void PropagatorGetterCallback(object? carrier, string fieldName, out string? fieldValue, out Collections.Generic.IEnumerable? fieldValues); + public delegate void PropagatorSetterCallback(object? carrier, string fieldName, string fieldValue); + } + public delegate void ExceptionRecorder(Activity activity, Exception exception, ref TagList tags); + public delegate ActivitySamplingResult SampleActivity(ref ActivityCreationOptions options); + public partial struct TagList : Collections.Generic.IList>, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable, Collections.Generic.IReadOnlyList>, Collections.Generic.IReadOnlyCollection> + { + private object _dummy; + private int _dummyPrimitive; + public TagList(params scoped ReadOnlySpan> tagList) { } + public int Count { get { throw null; } } + public bool IsReadOnly { get { throw null; } } + + public Collections.Generic.KeyValuePair this[int index] { get { throw null; } set { } } + + public void Add(Collections.Generic.KeyValuePair tag) { } + public void Add(string key, object? value) { } + public void Clear() { } + public readonly bool Contains(Collections.Generic.KeyValuePair item) { throw null; } + public readonly void CopyTo(Collections.Generic.KeyValuePair[] array, int arrayIndex) { } + public readonly void CopyTo(Span> tags) { } + public readonly Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + public readonly int IndexOf(Collections.Generic.KeyValuePair item) { throw null; } + public void Insert(int index, Collections.Generic.KeyValuePair item) { } + public bool Remove(Collections.Generic.KeyValuePair item) { throw null; } + public void RemoveAt(int index) { } + readonly Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { 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; } + public void Reset() { } + } + } +} + +namespace System.Diagnostics.Metrics +{ + public sealed partial class Counter : Instrument where T : struct + { + internal Counter() : base(default!, default!) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag) { } + public void Add(T delta, params Collections.Generic.KeyValuePair[] tags) { } + public void Add(T delta, in TagList tagList) { } + public void Add(T delta, params scoped ReadOnlySpan> tags) { } + public void Add(T delta) { } + } + + public sealed partial class Gauge : Instrument where T : struct + { + internal Gauge() : base(default!, default!) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Record(T value, Collections.Generic.KeyValuePair tag) { } + public void Record(T value, params Collections.Generic.KeyValuePair[] tags) { } + public void Record(T value, in TagList tagList) { } + public void Record(T value, params scoped ReadOnlySpan> tags) { } + public void Record(T value) { } + } + + public sealed partial class Histogram : Instrument where T : struct + { + internal Histogram() : base(default!, default!) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Record(T value, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Record(T value, Collections.Generic.KeyValuePair tag) { } + public void Record(T value, params Collections.Generic.KeyValuePair[] tags) { } + public void Record(T value, in TagList tagList) { } + public void Record(T value, params scoped ReadOnlySpan> tags) { } + public void Record(T value) { } + } + + public partial interface IMeterFactory : IDisposable + { + Meter Create(MeterOptions options); + } + + public abstract partial class Instrument + { + protected Instrument(Meter meter, string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null) { } + protected Instrument(Meter meter, string name, string? unit, string? description) { } + protected Instrument(Meter meter, string name) { } + public string? Description { get { throw null; } } + public bool Enabled { get { throw null; } } + public virtual bool IsObservable { get { throw null; } } + public Meter Meter { get { throw null; } } + public string Name { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Unit { get { throw null; } } + + protected void Publish() { } + } + public sealed partial class InstrumentAdvice where T : struct + { + public Collections.Generic.IReadOnlyList? HistogramBucketBoundaries { get { throw null; } init { } } + } + public abstract partial class Instrument : Instrument where T : struct + { + protected Instrument(Meter meter, string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null, InstrumentAdvice? advice = null) : base(default!, default!) { } + protected Instrument(Meter meter, string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) : base(default!, default!) { } + protected Instrument(Meter meter, string name, string? unit, string? description) : base(default!, default!) { } + protected Instrument(Meter meter, string name) : base(default!, default!) { } + public InstrumentAdvice? Advice { get { throw null; } } + + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + protected void RecordMeasurement(T measurement, Collections.Generic.KeyValuePair tag) { } + protected void RecordMeasurement(T measurement, in TagList tagList) { } + protected void RecordMeasurement(T measurement, ReadOnlySpan> tags) { } + protected void RecordMeasurement(T measurement) { } + } + + public delegate void MeasurementCallback(Instrument instrument, T measurement, ReadOnlySpan> tags, object? state) + where T : struct; + public readonly partial struct Measurement + where T : struct + { + private readonly T _Value_k__BackingField; + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Measurement(T value, Collections.Generic.IEnumerable>? tags) { } + public Measurement(T value, params Collections.Generic.KeyValuePair[]? tags) { } + public Measurement(T value, in TagList tags) { } + public Measurement(T value, params scoped ReadOnlySpan> tags) { } + public Measurement(T value) { } + public ReadOnlySpan> Tags { get { throw null; } } + public T Value { get { throw null; } } + } + + public partial class Meter : IDisposable + { + public Meter(MeterOptions options) { } + public Meter(string name, string? version, Collections.Generic.IEnumerable>? tags, object? scope = null) { } + public Meter(string name, string? version) { } + public Meter(string name) { } + public string Name { get { throw null; } } + public object? Scope { get { throw null; } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } } + public string? Version { get { throw null; } } + + public Counter CreateCounter(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public Counter CreateCounter(string name, string? unit = null, string? description = null) where T : struct { throw null; } + public Gauge CreateGauge(string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null) where T : struct { throw null; } + public Gauge CreateGauge(string name) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit = null, string? description = null, Collections.Generic.IEnumerable>? tags = null, InstrumentAdvice? advice = null) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public Histogram CreateHistogram(string name, string? unit, string? description) where T : struct { throw null; } + public Histogram CreateHistogram(string name) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableCounter CreateObservableCounter(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableGauge CreateObservableGauge(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func>> observeValues, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func>> observeValues, string? unit = null, string? description = null) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func> observeValue, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public ObservableUpDownCounter CreateObservableUpDownCounter(string name, Func> observeValue, string? unit = null, string? description = null) where T : struct { throw null; } + public UpDownCounter CreateUpDownCounter(string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) where T : struct { throw null; } + public UpDownCounter CreateUpDownCounter(string name, string? unit = null, string? description = null) where T : struct { throw null; } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + } + + public static partial class MeterFactoryExtensions + { + public static Meter Create(this IMeterFactory meterFactory, string name, string? version = null, Collections.Generic.IEnumerable>? tags = null) { throw null; } + } + public sealed partial class MeterListener : IDisposable + { + public Action? InstrumentPublished { get { throw null; } set { } } + public Action? MeasurementsCompleted { get { throw null; } set { } } + + public object? DisableMeasurementEvents(Instrument instrument) { throw null; } + public void Dispose() { } + public void EnableMeasurementEvents(Instrument instrument, object? state = null) { } + public void RecordObservableInstruments() { } + public void SetMeasurementEventCallback(MeasurementCallback? measurementCallback) where T : struct { } + public void Start() { } + } + + public partial class MeterOptions + { + public MeterOptions(string name) { } + public string Name { get { throw null; } set { } } + public object? Scope { get { throw null; } set { } } + public Collections.Generic.IEnumerable>? Tags { get { throw null; } set { } } + public string? Version { get { throw null; } set { } } + } + public sealed partial class ObservableCounter : ObservableInstrument where T : struct + { + internal ObservableCounter() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public sealed partial class ObservableGauge : ObservableInstrument where T : struct + { + internal ObservableGauge() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public abstract partial class ObservableInstrument : Instrument where T : struct + { + protected ObservableInstrument(Meter meter, string name, string? unit, string? description, Collections.Generic.IEnumerable>? tags) : base(default!, default!) { } + protected ObservableInstrument(Meter meter, string name, string? unit, string? description) : base(default!, default!) { } + public override bool IsObservable { get { throw null; } } + + protected abstract Collections.Generic.IEnumerable> Observe(); + } + + public sealed partial class ObservableUpDownCounter : ObservableInstrument where T : struct + { + internal ObservableUpDownCounter() : base(default!, default!, default, default) { } + protected override Collections.Generic.IEnumerable> Observe() { throw null; } + } + + public sealed partial class UpDownCounter : Instrument where T : struct + { + internal UpDownCounter() : base(default!, default!) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2, Collections.Generic.KeyValuePair tag3) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag1, Collections.Generic.KeyValuePair tag2) { } + public void Add(T delta, Collections.Generic.KeyValuePair tag) { } + public void Add(T delta, params Collections.Generic.KeyValuePair[] tags) { } + public void Add(T delta, in TagList tagList) { } + public void Add(T delta, params scoped ReadOnlySpan> tags) { } + public void Add(T delta) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/system.diagnostics.diagnosticsource.nuspec b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/system.diagnostics.diagnosticsource.nuspec new file mode 100644 index 0000000000..c22a3fd52c --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/9.0.8/system.diagnostics.diagnosticsource.nuspec @@ -0,0 +1,28 @@ + + + + System.Diagnostics.DiagnosticSource + 9.0.8 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + 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 + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + \ No newline at end of file