diff --git a/eng/Build.props b/eng/Build.props index 688b344f3e..36ee1ed383 100644 --- a/eng/Build.props +++ b/eng/Build.props @@ -179,6 +179,15 @@ + + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/Microsoft.Extensions.DependencyInjection.Abstractions.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/Microsoft.Extensions.DependencyInjection.Abstractions.7.0.0.csproj new file mode 100644 index 0000000000..a746db75e6 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/Microsoft.Extensions.DependencyInjection.Abstractions.7.0.0.csproj @@ -0,0 +1,15 @@ + + + + net6.0;net7.0;netstandard2.0;netstandard2.1 + Microsoft.Extensions.DependencyInjection.Abstractions + 2 + MicrosoftAspNetCore + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..3b90dbc621 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,358 @@ +// 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=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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 ActivatorUtilitiesConstructorAttribute() { } + } + + 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; } + } + + 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 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 delegate object 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 ServiceCollection() { } + + 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 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 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 ServiceLifetime Lifetime { 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 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; } + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + 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 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 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/7.0.0/lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..f84dafffb9 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,359 @@ +// 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=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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 ActivatorUtilitiesConstructorAttribute() { } + } + + 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; } + } + + 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 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 delegate object 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 ServiceCollection() { } + + 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 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 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 ServiceLifetime Lifetime { 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 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; } + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + 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 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 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/7.0.0/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..a4873b7426 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,357 @@ +// 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(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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 ActivatorUtilitiesConstructorAttribute() { } + } + + 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; } + } + + 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 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 delegate object 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 ServiceCollection() { } + + 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 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 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 ServiceLifetime Lifetime { 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 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; } + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + 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 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 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/7.0.0/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.cs new file mode 100644 index 0000000000..191bc02b4b --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.cs @@ -0,0 +1,357 @@ +// 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(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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 ActivatorUtilitiesConstructorAttribute() { } + } + + 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; } + } + + 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 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 delegate object 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 ServiceCollection() { } + + 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 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 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 ServiceLifetime Lifetime { 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 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; } + } + + public enum ServiceLifetime + { + Singleton = 0, + Scoped = 1, + Transient = 2 + } + + 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 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 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/7.0.0/microsoft.extensions.dependencyinjection.abstractions.nuspec b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/microsoft.extensions.dependencyinjection.abstractions.nuspec new file mode 100644 index 0000000000..46fe56cf75 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection.abstractions/7.0.0/microsoft.extensions.dependencyinjection.abstractions.nuspec @@ -0,0 +1,28 @@ + + + + Microsoft.Extensions.DependencyInjection.Abstractions + 7.0.0 + 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.dependencyinjection/7.0.0/Microsoft.Extensions.DependencyInjection.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/Microsoft.Extensions.DependencyInjection.7.0.0.csproj new file mode 100644 index 0000000000..fafda003b5 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/Microsoft.Extensions.DependencyInjection.7.0.0.csproj @@ -0,0 +1,28 @@ + + + + net6.0;net7.0;netstandard2.0;netstandard2.1 + Microsoft.Extensions.DependencyInjection + 2 + MicrosoftAspNetCore + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/net6.0/Microsoft.Extensions.DependencyInjection.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/net6.0/Microsoft.Extensions.DependencyInjection.cs new file mode 100644 index 0000000000..2605f5e333 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/net6.0/Microsoft.Extensions.DependencyInjection.cs @@ -0,0 +1,72 @@ +// 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.CompilerServices.InternalsVisibleTo("MicroBenchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001004b86c4cb78549b34bab61a3b1800e23bfeb5b3ec390074041536a7e3cbd97f5f04cf0f857155a8928eaa29ebfd11cfbbad3ba70efea7bda3226c6a8d370a4cd303f714486b6ebc225985a638471e6ef571cc92a4613c00b8fa65d61ccee0cbe5f36330c9a01f4183559f1bef24cc2917c6d913e3a541333a1d05d9bed22b38cb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection")] +[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("Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Extensions.DependencyInjection.ServiceCollection))] +namespace Microsoft.Extensions.DependencyInjection +{ + public partial class DefaultServiceProviderFactory : IServiceProviderFactory + { + public DefaultServiceProviderFactory() { } + + public DefaultServiceProviderFactory(ServiceProviderOptions options) { } + + public IServiceCollection CreateBuilder(IServiceCollection services) { throw null; } + + public System.IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder) { throw null; } + } + + public static partial class ServiceCollectionContainerBuilderExtensions + { + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options) { throw null; } + + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, bool validateScopes) { throw null; } + + public static ServiceProvider BuildServiceProvider(this IServiceCollection services) { throw null; } + } + + public sealed partial class ServiceProvider : System.IServiceProvider, System.IDisposable, System.IAsyncDisposable + { + public void Dispose() { } + + public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public object? GetService(System.Type serviceType) { throw null; } + } + + public partial class ServiceProviderOptions + { + public ServiceProviderOptions() { } + + public bool ValidateOnBuild { get { throw null; } set { } } + + public bool ValidateScopes { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/net7.0/Microsoft.Extensions.DependencyInjection.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/net7.0/Microsoft.Extensions.DependencyInjection.cs new file mode 100644 index 0000000000..238f8412f3 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/net7.0/Microsoft.Extensions.DependencyInjection.cs @@ -0,0 +1,76 @@ +// 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.CompilerServices.InternalsVisibleTo("MicroBenchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001004b86c4cb78549b34bab61a3b1800e23bfeb5b3ec390074041536a7e3cbd97f5f04cf0f857155a8928eaa29ebfd11cfbbad3ba70efea7bda3226c6a8d370a4cd303f714486b6ebc225985a638471e6ef571cc92a4613c00b8fa65d61ccee0cbe5f36330c9a01f4183559f1bef24cc2917c6d913e3a541333a1d05d9bed22b38cb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection")] +[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("Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Extensions.DependencyInjection.ServiceCollection))] +namespace Microsoft.Extensions.DependencyInjection +{ + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Using Microsoft.Extensions.DependencyInjection requires generating code dynamically at runtime. For example, when using enumerable and generic ValueType services.")] + public partial class DefaultServiceProviderFactory : IServiceProviderFactory + { + public DefaultServiceProviderFactory() { } + + public DefaultServiceProviderFactory(ServiceProviderOptions options) { } + + public IServiceCollection CreateBuilder(IServiceCollection services) { throw null; } + + public System.IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder) { throw null; } + } + + public static partial class ServiceCollectionContainerBuilderExtensions + { + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Using Microsoft.Extensions.DependencyInjection requires generating code dynamically at runtime. For example, when using enumerable and generic ValueType services.")] + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options) { throw null; } + + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Using Microsoft.Extensions.DependencyInjection requires generating code dynamically at runtime. For example, when using enumerable and generic ValueType services.")] + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, bool validateScopes) { throw null; } + + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Using Microsoft.Extensions.DependencyInjection requires generating code dynamically at runtime. For example, when using enumerable and generic ValueType services.")] + public static ServiceProvider BuildServiceProvider(this IServiceCollection services) { throw null; } + } + + public sealed partial class ServiceProvider : System.IServiceProvider, System.IDisposable, System.IAsyncDisposable + { + public void Dispose() { } + + public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public object? GetService(System.Type serviceType) { throw null; } + } + + public partial class ServiceProviderOptions + { + public ServiceProviderOptions() { } + + public bool ValidateOnBuild { get { throw null; } set { } } + + public bool ValidateScopes { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.cs new file mode 100644 index 0000000000..9042238b64 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.cs @@ -0,0 +1,72 @@ +// 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.CompilerServices.InternalsVisibleTo("MicroBenchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001004b86c4cb78549b34bab61a3b1800e23bfeb5b3ec390074041536a7e3cbd97f5f04cf0f857155a8928eaa29ebfd11cfbbad3ba70efea7bda3226c6a8d370a4cd303f714486b6ebc225985a638471e6ef571cc92a4613c00b8fa65d61ccee0cbe5f36330c9a01f4183559f1bef24cc2917c6d913e3a541333a1d05d9bed22b38cb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection")] +[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("Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Extensions.DependencyInjection.ServiceCollection))] +namespace Microsoft.Extensions.DependencyInjection +{ + public partial class DefaultServiceProviderFactory : IServiceProviderFactory + { + public DefaultServiceProviderFactory() { } + + public DefaultServiceProviderFactory(ServiceProviderOptions options) { } + + public IServiceCollection CreateBuilder(IServiceCollection services) { throw null; } + + public System.IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder) { throw null; } + } + + public static partial class ServiceCollectionContainerBuilderExtensions + { + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options) { throw null; } + + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, bool validateScopes) { throw null; } + + public static ServiceProvider BuildServiceProvider(this IServiceCollection services) { throw null; } + } + + public sealed partial class ServiceProvider : System.IServiceProvider, System.IDisposable, System.IAsyncDisposable + { + public void Dispose() { } + + public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public object? GetService(System.Type serviceType) { throw null; } + } + + public partial class ServiceProviderOptions + { + public ServiceProviderOptions() { } + + public bool ValidateOnBuild { get { throw null; } set { } } + + public bool ValidateScopes { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.cs b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.cs new file mode 100644 index 0000000000..6daa7107c4 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.cs @@ -0,0 +1,72 @@ +// 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.CompilerServices.InternalsVisibleTo("MicroBenchmarks, PublicKey=00240000048000009400000006020000002400005253413100040000010001004b86c4cb78549b34bab61a3b1800e23bfeb5b3ec390074041536a7e3cbd97f5f04cf0f857155a8928eaa29ebfd11cfbbad3ba70efea7bda3226c6a8d370a4cd303f714486b6ebc225985a638471e6ef571cc92a4613c00b8fa65d61ccee0cbe5f36330c9a01f4183559f1bef24cc2917c6d913e3a541333a1d05d9bed22b38cb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.DependencyInjection")] +[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("Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.DependencyInjection")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Extensions.DependencyInjection.ServiceCollection))] +namespace Microsoft.Extensions.DependencyInjection +{ + public partial class DefaultServiceProviderFactory : IServiceProviderFactory + { + public DefaultServiceProviderFactory() { } + + public DefaultServiceProviderFactory(ServiceProviderOptions options) { } + + public IServiceCollection CreateBuilder(IServiceCollection services) { throw null; } + + public System.IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder) { throw null; } + } + + public static partial class ServiceCollectionContainerBuilderExtensions + { + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options) { throw null; } + + public static ServiceProvider BuildServiceProvider(this IServiceCollection services, bool validateScopes) { throw null; } + + public static ServiceProvider BuildServiceProvider(this IServiceCollection services) { throw null; } + } + + public sealed partial class ServiceProvider : System.IServiceProvider, System.IDisposable, System.IAsyncDisposable + { + public void Dispose() { } + + public System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public object? GetService(System.Type serviceType) { throw null; } + } + + public partial class ServiceProviderOptions + { + public ServiceProviderOptions() { } + + public bool ValidateOnBuild { get { throw null; } set { } } + + public bool ValidateScopes { get { throw null; } set { } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/microsoft.extensions.dependencyinjection.nuspec b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/microsoft.extensions.dependencyinjection.nuspec new file mode 100644 index 0000000000..c083f01f7a --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.dependencyinjection/7.0.0/microsoft.extensions.dependencyinjection.nuspec @@ -0,0 +1,32 @@ + + + + Microsoft.Extensions.DependencyInjection + 7.0.0 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Default implementation of dependency injection for Microsoft.Extensions.DependencyInjection. + 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.filesystemglobbing/7.0.0/Microsoft.Extensions.FileSystemGlobbing.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/Microsoft.Extensions.FileSystemGlobbing.7.0.0.csproj new file mode 100644 index 0000000000..5833fd8251 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/Microsoft.Extensions.FileSystemGlobbing.7.0.0.csproj @@ -0,0 +1,10 @@ + + + + net6.0;net7.0;netstandard2.0 + Microsoft.Extensions.FileSystemGlobbing + 2 + MicrosoftAspNetCore + + + diff --git a/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/net6.0/Microsoft.Extensions.FileSystemGlobbing.cs b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/net6.0/Microsoft.Extensions.FileSystemGlobbing.cs new file mode 100644 index 0000000000..470b949757 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/net6.0/Microsoft.Extensions.FileSystemGlobbing.cs @@ -0,0 +1,416 @@ +// 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.FileSystemGlobbing.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.FileSystemGlobbing")] +[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("File system globbing to find files matching a specified pattern.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.FileSystemGlobbing")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.FileSystemGlobbing +{ + public partial struct FilePatternMatch : System.IEquatable + { + private object _dummy; + private int _dummyPrimitive; + public FilePatternMatch(string path, string? stem) { } + + public string Path { get { throw null; } } + + public string? Stem { get { throw null; } } + + public bool Equals(FilePatternMatch other) { throw null; } + + public override bool Equals(object? obj) { throw null; } + + public override int GetHashCode() { throw null; } + } + + public partial class InMemoryDirectoryInfo : Abstractions.DirectoryInfoBase + { + public InMemoryDirectoryInfo(string rootDir, System.Collections.Generic.IEnumerable? files) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override Abstractions.DirectoryInfoBase? ParentDirectory { get { throw null; } } + + public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() { throw null; } + + public override Abstractions.DirectoryInfoBase GetDirectory(string path) { throw null; } + + public override Abstractions.FileInfoBase? GetFile(string path) { throw null; } + } + + public partial class Matcher + { + public Matcher() { } + + public Matcher(System.StringComparison comparisonType) { } + + public virtual Matcher AddExclude(string pattern) { throw null; } + + public virtual Matcher AddInclude(string pattern) { throw null; } + + public virtual PatternMatchingResult Execute(Abstractions.DirectoryInfoBase directoryInfo) { throw null; } + } + + public static partial class MatcherExtensions + { + public static void AddExcludePatterns(this Matcher matcher, params System.Collections.Generic.IEnumerable[] excludePatternsGroups) { } + + public static void AddIncludePatterns(this Matcher matcher, params System.Collections.Generic.IEnumerable[] includePatternsGroups) { } + + public static System.Collections.Generic.IEnumerable GetResultsInFullPath(this Matcher matcher, string directoryPath) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, System.Collections.Generic.IEnumerable? files) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string rootDir, System.Collections.Generic.IEnumerable? files) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string rootDir, string file) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string file) { throw null; } + } + + public partial class PatternMatchingResult + { + public PatternMatchingResult(System.Collections.Generic.IEnumerable files, bool hasMatches) { } + + public PatternMatchingResult(System.Collections.Generic.IEnumerable files) { } + + public System.Collections.Generic.IEnumerable Files { get { throw null; } set { } } + + public bool HasMatches { get { throw null; } } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions +{ + public abstract partial class DirectoryInfoBase : FileSystemInfoBase + { + protected DirectoryInfoBase() { } + + public abstract System.Collections.Generic.IEnumerable EnumerateFileSystemInfos(); + public abstract DirectoryInfoBase? GetDirectory(string path); + public abstract FileInfoBase? GetFile(string path); + } + + public partial class DirectoryInfoWrapper : DirectoryInfoBase + { + public DirectoryInfoWrapper(System.IO.DirectoryInfo directoryInfo) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override DirectoryInfoBase? ParentDirectory { get { throw null; } } + + public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() { throw null; } + + public override DirectoryInfoBase? GetDirectory(string name) { throw null; } + + public override FileInfoBase GetFile(string name) { throw null; } + } + + public abstract partial class FileInfoBase : FileSystemInfoBase + { + protected FileInfoBase() { } + } + + public partial class FileInfoWrapper : FileInfoBase + { + public FileInfoWrapper(System.IO.FileInfo fileInfo) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override DirectoryInfoBase? ParentDirectory { get { throw null; } } + } + + public abstract partial class FileSystemInfoBase + { + protected FileSystemInfoBase() { } + + public abstract string FullName { get; } + public abstract string Name { get; } + public abstract DirectoryInfoBase? ParentDirectory { get; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal +{ + public partial interface ILinearPattern : IPattern + { + System.Collections.Generic.IList Segments { get; } + } + + public partial interface IPathSegment + { + bool CanProduceStem { get; } + + bool Match(string value); + } + + public partial interface IPattern + { + IPatternContext CreatePatternContextForExclude(); + IPatternContext CreatePatternContextForInclude(); + } + + public partial interface IPatternContext + { + void Declare(System.Action onDeclare); + void PopDirectory(); + void PushDirectory(Abstractions.DirectoryInfoBase directory); + bool Test(Abstractions.DirectoryInfoBase directory); + PatternTestResult Test(Abstractions.FileInfoBase file); + } + + public partial interface IRaggedPattern : IPattern + { + System.Collections.Generic.IList> Contains { get; } + + System.Collections.Generic.IList EndsWith { get; } + + System.Collections.Generic.IList Segments { get; } + + System.Collections.Generic.IList StartsWith { get; } + } + + public partial class MatcherContext + { + public MatcherContext(System.Collections.Generic.IEnumerable includePatterns, System.Collections.Generic.IEnumerable excludePatterns, Abstractions.DirectoryInfoBase directoryInfo, System.StringComparison comparison) { } + + public PatternMatchingResult Execute() { throw null; } + } + + public partial struct PatternTestResult + { + private object _dummy; + private int _dummyPrimitive; + public static readonly PatternTestResult Failed; + public bool IsSuccessful { get { throw null; } } + + public string? Stem { get { throw null; } } + + public static PatternTestResult Success(string? stem) { throw null; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments +{ + public partial class CurrentPathSegment : IPathSegment + { + public CurrentPathSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class LiteralPathSegment : IPathSegment + { + public LiteralPathSegment(string value, System.StringComparison comparisonType) { } + + public bool CanProduceStem { get { throw null; } } + + public string Value { get { throw null; } } + + public override bool Equals(object? obj) { throw null; } + + public override int GetHashCode() { throw null; } + + public bool Match(string value) { throw null; } + } + + public partial class ParentPathSegment : IPathSegment + { + public ParentPathSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class RecursiveWildcardSegment : IPathSegment + { + public RecursiveWildcardSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class WildcardPathSegment : IPathSegment + { + public static readonly WildcardPathSegment MatchAll; + public WildcardPathSegment(string beginsWith, System.Collections.Generic.List contains, string endsWith, System.StringComparison comparisonType) { } + + public string BeginsWith { get { throw null; } } + + public bool CanProduceStem { get { throw null; } } + + public System.Collections.Generic.List Contains { get { throw null; } } + + public string EndsWith { get { throw null; } } + + public bool Match(string value) { throw null; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts +{ + public abstract partial class PatternContextLinear : PatternContext + { + public PatternContextLinear(ILinearPattern pattern) { } + + protected ILinearPattern Pattern { get { throw null; } } + + protected string CalculateStem(Abstractions.FileInfoBase matchedFile) { throw null; } + + protected bool IsLastSegment() { throw null; } + + public override void PushDirectory(Abstractions.DirectoryInfoBase directory) { } + + public override PatternTestResult Test(Abstractions.FileInfoBase file) { throw null; } + + protected bool TestMatchingSegment(string value) { throw null; } + + public partial struct FrameData + { + private object _dummy; + private int _dummyPrimitive; + public bool InStem; + public bool IsNotApplicable; + public int SegmentIndex; + public string? Stem { get { throw null; } } + + public System.Collections.Generic.IList StemItems { get { throw null; } } + } + } + + public partial class PatternContextLinearExclude : PatternContextLinear + { + public PatternContextLinearExclude(ILinearPattern pattern) : base(default!) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public partial class PatternContextLinearInclude : PatternContextLinear + { + public PatternContextLinearInclude(ILinearPattern pattern) : base(default!) { } + + public override void Declare(System.Action onDeclare) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public abstract partial class PatternContextRagged : PatternContext + { + public PatternContextRagged(IRaggedPattern pattern) { } + + protected IRaggedPattern Pattern { get { throw null; } } + + protected string CalculateStem(Abstractions.FileInfoBase matchedFile) { throw null; } + + protected bool IsEndingGroup() { throw null; } + + protected bool IsStartingGroup() { throw null; } + + public override void PopDirectory() { } + + public sealed override void PushDirectory(Abstractions.DirectoryInfoBase directory) { } + + public override PatternTestResult Test(Abstractions.FileInfoBase file) { throw null; } + + protected bool TestMatchingGroup(Abstractions.FileSystemInfoBase value) { throw null; } + + protected bool TestMatchingSegment(string value) { throw null; } + + public partial struct FrameData + { + private object _dummy; + private int _dummyPrimitive; + public int BacktrackAvailable; + public bool InStem; + public bool IsNotApplicable; + public System.Collections.Generic.IList SegmentGroup; + public int SegmentGroupIndex; + public int SegmentIndex; + public string? Stem { get { throw null; } } + + public System.Collections.Generic.IList StemItems { get { throw null; } } + } + } + + public partial class PatternContextRaggedExclude : PatternContextRagged + { + public PatternContextRaggedExclude(IRaggedPattern pattern) : base(default!) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public partial class PatternContextRaggedInclude : PatternContextRagged + { + public PatternContextRaggedInclude(IRaggedPattern pattern) : base(default!) { } + + public override void Declare(System.Action onDeclare) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public abstract partial class PatternContext : IPatternContext where TFrame : struct + { + protected TFrame Frame; + protected PatternContext() { } + + public virtual void Declare(System.Action declare) { } + + protected bool IsStackEmpty() { throw null; } + + public virtual void PopDirectory() { } + + protected void PushDataFrame(TFrame frame) { } + + public abstract void PushDirectory(Abstractions.DirectoryInfoBase directory); + public abstract bool Test(Abstractions.DirectoryInfoBase directory); + public abstract PatternTestResult Test(Abstractions.FileInfoBase file); + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns +{ + public partial class PatternBuilder + { + public PatternBuilder() { } + + public PatternBuilder(System.StringComparison comparisonType) { } + + public System.StringComparison ComparisonType { get { throw null; } } + + public IPattern Build(string pattern) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/net7.0/Microsoft.Extensions.FileSystemGlobbing.cs b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/net7.0/Microsoft.Extensions.FileSystemGlobbing.cs new file mode 100644 index 0000000000..10c86ef4a2 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/net7.0/Microsoft.Extensions.FileSystemGlobbing.cs @@ -0,0 +1,416 @@ +// 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.FileSystemGlobbing.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.FileSystemGlobbing")] +[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("File system globbing to find files matching a specified pattern.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.FileSystemGlobbing")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.FileSystemGlobbing +{ + public partial struct FilePatternMatch : System.IEquatable + { + private object _dummy; + private int _dummyPrimitive; + public FilePatternMatch(string path, string? stem) { } + + public string Path { get { throw null; } } + + public string? Stem { get { throw null; } } + + public bool Equals(FilePatternMatch other) { throw null; } + + public override bool Equals(object? obj) { throw null; } + + public override int GetHashCode() { throw null; } + } + + public partial class InMemoryDirectoryInfo : Abstractions.DirectoryInfoBase + { + public InMemoryDirectoryInfo(string rootDir, System.Collections.Generic.IEnumerable? files) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override Abstractions.DirectoryInfoBase? ParentDirectory { get { throw null; } } + + public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() { throw null; } + + public override Abstractions.DirectoryInfoBase GetDirectory(string path) { throw null; } + + public override Abstractions.FileInfoBase? GetFile(string path) { throw null; } + } + + public partial class Matcher + { + public Matcher() { } + + public Matcher(System.StringComparison comparisonType) { } + + public virtual Matcher AddExclude(string pattern) { throw null; } + + public virtual Matcher AddInclude(string pattern) { throw null; } + + public virtual PatternMatchingResult Execute(Abstractions.DirectoryInfoBase directoryInfo) { throw null; } + } + + public static partial class MatcherExtensions + { + public static void AddExcludePatterns(this Matcher matcher, params System.Collections.Generic.IEnumerable[] excludePatternsGroups) { } + + public static void AddIncludePatterns(this Matcher matcher, params System.Collections.Generic.IEnumerable[] includePatternsGroups) { } + + public static System.Collections.Generic.IEnumerable GetResultsInFullPath(this Matcher matcher, string directoryPath) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, System.Collections.Generic.IEnumerable? files) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string rootDir, System.Collections.Generic.IEnumerable? files) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string rootDir, string file) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string file) { throw null; } + } + + public partial class PatternMatchingResult + { + public PatternMatchingResult(System.Collections.Generic.IEnumerable files, bool hasMatches) { } + + public PatternMatchingResult(System.Collections.Generic.IEnumerable files) { } + + public System.Collections.Generic.IEnumerable Files { get { throw null; } set { } } + + public bool HasMatches { get { throw null; } } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions +{ + public abstract partial class DirectoryInfoBase : FileSystemInfoBase + { + protected DirectoryInfoBase() { } + + public abstract System.Collections.Generic.IEnumerable EnumerateFileSystemInfos(); + public abstract DirectoryInfoBase? GetDirectory(string path); + public abstract FileInfoBase? GetFile(string path); + } + + public partial class DirectoryInfoWrapper : DirectoryInfoBase + { + public DirectoryInfoWrapper(System.IO.DirectoryInfo directoryInfo) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override DirectoryInfoBase? ParentDirectory { get { throw null; } } + + public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() { throw null; } + + public override DirectoryInfoBase? GetDirectory(string name) { throw null; } + + public override FileInfoBase GetFile(string name) { throw null; } + } + + public abstract partial class FileInfoBase : FileSystemInfoBase + { + protected FileInfoBase() { } + } + + public partial class FileInfoWrapper : FileInfoBase + { + public FileInfoWrapper(System.IO.FileInfo fileInfo) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override DirectoryInfoBase? ParentDirectory { get { throw null; } } + } + + public abstract partial class FileSystemInfoBase + { + protected FileSystemInfoBase() { } + + public abstract string FullName { get; } + public abstract string Name { get; } + public abstract DirectoryInfoBase? ParentDirectory { get; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal +{ + public partial interface ILinearPattern : IPattern + { + System.Collections.Generic.IList Segments { get; } + } + + public partial interface IPathSegment + { + bool CanProduceStem { get; } + + bool Match(string value); + } + + public partial interface IPattern + { + IPatternContext CreatePatternContextForExclude(); + IPatternContext CreatePatternContextForInclude(); + } + + public partial interface IPatternContext + { + void Declare(System.Action onDeclare); + void PopDirectory(); + void PushDirectory(Abstractions.DirectoryInfoBase directory); + bool Test(Abstractions.DirectoryInfoBase directory); + PatternTestResult Test(Abstractions.FileInfoBase file); + } + + public partial interface IRaggedPattern : IPattern + { + System.Collections.Generic.IList> Contains { get; } + + System.Collections.Generic.IList EndsWith { get; } + + System.Collections.Generic.IList Segments { get; } + + System.Collections.Generic.IList StartsWith { get; } + } + + public partial class MatcherContext + { + public MatcherContext(System.Collections.Generic.IEnumerable includePatterns, System.Collections.Generic.IEnumerable excludePatterns, Abstractions.DirectoryInfoBase directoryInfo, System.StringComparison comparison) { } + + public PatternMatchingResult Execute() { throw null; } + } + + public partial struct PatternTestResult + { + private object _dummy; + private int _dummyPrimitive; + public static readonly PatternTestResult Failed; + public bool IsSuccessful { get { throw null; } } + + public string? Stem { get { throw null; } } + + public static PatternTestResult Success(string? stem) { throw null; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments +{ + public partial class CurrentPathSegment : IPathSegment + { + public CurrentPathSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class LiteralPathSegment : IPathSegment + { + public LiteralPathSegment(string value, System.StringComparison comparisonType) { } + + public bool CanProduceStem { get { throw null; } } + + public string Value { get { throw null; } } + + public override bool Equals(object? obj) { throw null; } + + public override int GetHashCode() { throw null; } + + public bool Match(string value) { throw null; } + } + + public partial class ParentPathSegment : IPathSegment + { + public ParentPathSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class RecursiveWildcardSegment : IPathSegment + { + public RecursiveWildcardSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class WildcardPathSegment : IPathSegment + { + public static readonly WildcardPathSegment MatchAll; + public WildcardPathSegment(string beginsWith, System.Collections.Generic.List contains, string endsWith, System.StringComparison comparisonType) { } + + public string BeginsWith { get { throw null; } } + + public bool CanProduceStem { get { throw null; } } + + public System.Collections.Generic.List Contains { get { throw null; } } + + public string EndsWith { get { throw null; } } + + public bool Match(string value) { throw null; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts +{ + public abstract partial class PatternContextLinear : PatternContext + { + public PatternContextLinear(ILinearPattern pattern) { } + + protected ILinearPattern Pattern { get { throw null; } } + + protected string CalculateStem(Abstractions.FileInfoBase matchedFile) { throw null; } + + protected bool IsLastSegment() { throw null; } + + public override void PushDirectory(Abstractions.DirectoryInfoBase directory) { } + + public override PatternTestResult Test(Abstractions.FileInfoBase file) { throw null; } + + protected bool TestMatchingSegment(string value) { throw null; } + + public partial struct FrameData + { + private object _dummy; + private int _dummyPrimitive; + public bool InStem; + public bool IsNotApplicable; + public int SegmentIndex; + public string? Stem { get { throw null; } } + + public System.Collections.Generic.IList StemItems { get { throw null; } } + } + } + + public partial class PatternContextLinearExclude : PatternContextLinear + { + public PatternContextLinearExclude(ILinearPattern pattern) : base(default!) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public partial class PatternContextLinearInclude : PatternContextLinear + { + public PatternContextLinearInclude(ILinearPattern pattern) : base(default!) { } + + public override void Declare(System.Action onDeclare) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public abstract partial class PatternContextRagged : PatternContext + { + public PatternContextRagged(IRaggedPattern pattern) { } + + protected IRaggedPattern Pattern { get { throw null; } } + + protected string CalculateStem(Abstractions.FileInfoBase matchedFile) { throw null; } + + protected bool IsEndingGroup() { throw null; } + + protected bool IsStartingGroup() { throw null; } + + public override void PopDirectory() { } + + public sealed override void PushDirectory(Abstractions.DirectoryInfoBase directory) { } + + public override PatternTestResult Test(Abstractions.FileInfoBase file) { throw null; } + + protected bool TestMatchingGroup(Abstractions.FileSystemInfoBase value) { throw null; } + + protected bool TestMatchingSegment(string value) { throw null; } + + public partial struct FrameData + { + private object _dummy; + private int _dummyPrimitive; + public int BacktrackAvailable; + public bool InStem; + public bool IsNotApplicable; + public System.Collections.Generic.IList SegmentGroup; + public int SegmentGroupIndex; + public int SegmentIndex; + public string? Stem { get { throw null; } } + + public System.Collections.Generic.IList StemItems { get { throw null; } } + } + } + + public partial class PatternContextRaggedExclude : PatternContextRagged + { + public PatternContextRaggedExclude(IRaggedPattern pattern) : base(default!) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public partial class PatternContextRaggedInclude : PatternContextRagged + { + public PatternContextRaggedInclude(IRaggedPattern pattern) : base(default!) { } + + public override void Declare(System.Action onDeclare) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public abstract partial class PatternContext : IPatternContext where TFrame : struct + { + protected TFrame Frame; + protected PatternContext() { } + + public virtual void Declare(System.Action declare) { } + + protected bool IsStackEmpty() { throw null; } + + public virtual void PopDirectory() { } + + protected void PushDataFrame(TFrame frame) { } + + public abstract void PushDirectory(Abstractions.DirectoryInfoBase directory); + public abstract bool Test(Abstractions.DirectoryInfoBase directory); + public abstract PatternTestResult Test(Abstractions.FileInfoBase file); + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns +{ + public partial class PatternBuilder + { + public PatternBuilder() { } + + public PatternBuilder(System.StringComparison comparisonType) { } + + public System.StringComparison ComparisonType { get { throw null; } } + + public IPattern Build(string pattern) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.cs b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.cs new file mode 100644 index 0000000000..92b71f19e0 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/lib/netstandard2.0/Microsoft.Extensions.FileSystemGlobbing.cs @@ -0,0 +1,416 @@ +// 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.FileSystemGlobbing.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.FileSystemGlobbing")] +[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("File system globbing to find files matching a specified pattern.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.FileSystemGlobbing")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.FileSystemGlobbing +{ + public partial struct FilePatternMatch : System.IEquatable + { + private object _dummy; + private int _dummyPrimitive; + public FilePatternMatch(string path, string? stem) { } + + public string Path { get { throw null; } } + + public string? Stem { get { throw null; } } + + public bool Equals(FilePatternMatch other) { throw null; } + + public override bool Equals(object? obj) { throw null; } + + public override int GetHashCode() { throw null; } + } + + public partial class InMemoryDirectoryInfo : Abstractions.DirectoryInfoBase + { + public InMemoryDirectoryInfo(string rootDir, System.Collections.Generic.IEnumerable? files) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override Abstractions.DirectoryInfoBase? ParentDirectory { get { throw null; } } + + public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() { throw null; } + + public override Abstractions.DirectoryInfoBase GetDirectory(string path) { throw null; } + + public override Abstractions.FileInfoBase? GetFile(string path) { throw null; } + } + + public partial class Matcher + { + public Matcher() { } + + public Matcher(System.StringComparison comparisonType) { } + + public virtual Matcher AddExclude(string pattern) { throw null; } + + public virtual Matcher AddInclude(string pattern) { throw null; } + + public virtual PatternMatchingResult Execute(Abstractions.DirectoryInfoBase directoryInfo) { throw null; } + } + + public static partial class MatcherExtensions + { + public static void AddExcludePatterns(this Matcher matcher, params System.Collections.Generic.IEnumerable[] excludePatternsGroups) { } + + public static void AddIncludePatterns(this Matcher matcher, params System.Collections.Generic.IEnumerable[] includePatternsGroups) { } + + public static System.Collections.Generic.IEnumerable GetResultsInFullPath(this Matcher matcher, string directoryPath) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, System.Collections.Generic.IEnumerable? files) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string rootDir, System.Collections.Generic.IEnumerable? files) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string rootDir, string file) { throw null; } + + public static PatternMatchingResult Match(this Matcher matcher, string file) { throw null; } + } + + public partial class PatternMatchingResult + { + public PatternMatchingResult(System.Collections.Generic.IEnumerable files, bool hasMatches) { } + + public PatternMatchingResult(System.Collections.Generic.IEnumerable files) { } + + public System.Collections.Generic.IEnumerable Files { get { throw null; } set { } } + + public bool HasMatches { get { throw null; } } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions +{ + public abstract partial class DirectoryInfoBase : FileSystemInfoBase + { + protected DirectoryInfoBase() { } + + public abstract System.Collections.Generic.IEnumerable EnumerateFileSystemInfos(); + public abstract DirectoryInfoBase? GetDirectory(string path); + public abstract FileInfoBase? GetFile(string path); + } + + public partial class DirectoryInfoWrapper : DirectoryInfoBase + { + public DirectoryInfoWrapper(System.IO.DirectoryInfo directoryInfo) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override DirectoryInfoBase? ParentDirectory { get { throw null; } } + + public override System.Collections.Generic.IEnumerable EnumerateFileSystemInfos() { throw null; } + + public override DirectoryInfoBase? GetDirectory(string name) { throw null; } + + public override FileInfoBase GetFile(string name) { throw null; } + } + + public abstract partial class FileInfoBase : FileSystemInfoBase + { + protected FileInfoBase() { } + } + + public partial class FileInfoWrapper : FileInfoBase + { + public FileInfoWrapper(System.IO.FileInfo fileInfo) { } + + public override string FullName { get { throw null; } } + + public override string Name { get { throw null; } } + + public override DirectoryInfoBase? ParentDirectory { get { throw null; } } + } + + public abstract partial class FileSystemInfoBase + { + protected FileSystemInfoBase() { } + + public abstract string FullName { get; } + public abstract string Name { get; } + public abstract DirectoryInfoBase? ParentDirectory { get; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal +{ + public partial interface ILinearPattern : IPattern + { + System.Collections.Generic.IList Segments { get; } + } + + public partial interface IPathSegment + { + bool CanProduceStem { get; } + + bool Match(string value); + } + + public partial interface IPattern + { + IPatternContext CreatePatternContextForExclude(); + IPatternContext CreatePatternContextForInclude(); + } + + public partial interface IPatternContext + { + void Declare(System.Action onDeclare); + void PopDirectory(); + void PushDirectory(Abstractions.DirectoryInfoBase directory); + bool Test(Abstractions.DirectoryInfoBase directory); + PatternTestResult Test(Abstractions.FileInfoBase file); + } + + public partial interface IRaggedPattern : IPattern + { + System.Collections.Generic.IList> Contains { get; } + + System.Collections.Generic.IList EndsWith { get; } + + System.Collections.Generic.IList Segments { get; } + + System.Collections.Generic.IList StartsWith { get; } + } + + public partial class MatcherContext + { + public MatcherContext(System.Collections.Generic.IEnumerable includePatterns, System.Collections.Generic.IEnumerable excludePatterns, Abstractions.DirectoryInfoBase directoryInfo, System.StringComparison comparison) { } + + public PatternMatchingResult Execute() { throw null; } + } + + public partial struct PatternTestResult + { + private object _dummy; + private int _dummyPrimitive; + public static readonly PatternTestResult Failed; + public bool IsSuccessful { get { throw null; } } + + public string? Stem { get { throw null; } } + + public static PatternTestResult Success(string? stem) { throw null; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments +{ + public partial class CurrentPathSegment : IPathSegment + { + public CurrentPathSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class LiteralPathSegment : IPathSegment + { + public LiteralPathSegment(string value, System.StringComparison comparisonType) { } + + public bool CanProduceStem { get { throw null; } } + + public string Value { get { throw null; } } + + public override bool Equals(object? obj) { throw null; } + + public override int GetHashCode() { throw null; } + + public bool Match(string value) { throw null; } + } + + public partial class ParentPathSegment : IPathSegment + { + public ParentPathSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class RecursiveWildcardSegment : IPathSegment + { + public RecursiveWildcardSegment() { } + + public bool CanProduceStem { get { throw null; } } + + public bool Match(string value) { throw null; } + } + + public partial class WildcardPathSegment : IPathSegment + { + public static readonly WildcardPathSegment MatchAll; + public WildcardPathSegment(string beginsWith, System.Collections.Generic.List contains, string endsWith, System.StringComparison comparisonType) { } + + public string BeginsWith { get { throw null; } } + + public bool CanProduceStem { get { throw null; } } + + public System.Collections.Generic.List Contains { get { throw null; } } + + public string EndsWith { get { throw null; } } + + public bool Match(string value) { throw null; } + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts +{ + public abstract partial class PatternContextLinear : PatternContext + { + public PatternContextLinear(ILinearPattern pattern) { } + + protected ILinearPattern Pattern { get { throw null; } } + + protected string CalculateStem(Abstractions.FileInfoBase matchedFile) { throw null; } + + protected bool IsLastSegment() { throw null; } + + public override void PushDirectory(Abstractions.DirectoryInfoBase directory) { } + + public override PatternTestResult Test(Abstractions.FileInfoBase file) { throw null; } + + protected bool TestMatchingSegment(string value) { throw null; } + + public partial struct FrameData + { + private object _dummy; + private int _dummyPrimitive; + public bool InStem; + public bool IsNotApplicable; + public int SegmentIndex; + public string? Stem { get { throw null; } } + + public System.Collections.Generic.IList StemItems { get { throw null; } } + } + } + + public partial class PatternContextLinearExclude : PatternContextLinear + { + public PatternContextLinearExclude(ILinearPattern pattern) : base(default!) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public partial class PatternContextLinearInclude : PatternContextLinear + { + public PatternContextLinearInclude(ILinearPattern pattern) : base(default!) { } + + public override void Declare(System.Action onDeclare) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public abstract partial class PatternContextRagged : PatternContext + { + public PatternContextRagged(IRaggedPattern pattern) { } + + protected IRaggedPattern Pattern { get { throw null; } } + + protected string CalculateStem(Abstractions.FileInfoBase matchedFile) { throw null; } + + protected bool IsEndingGroup() { throw null; } + + protected bool IsStartingGroup() { throw null; } + + public override void PopDirectory() { } + + public sealed override void PushDirectory(Abstractions.DirectoryInfoBase directory) { } + + public override PatternTestResult Test(Abstractions.FileInfoBase file) { throw null; } + + protected bool TestMatchingGroup(Abstractions.FileSystemInfoBase value) { throw null; } + + protected bool TestMatchingSegment(string value) { throw null; } + + public partial struct FrameData + { + private object _dummy; + private int _dummyPrimitive; + public int BacktrackAvailable; + public bool InStem; + public bool IsNotApplicable; + public System.Collections.Generic.IList SegmentGroup; + public int SegmentGroupIndex; + public int SegmentIndex; + public string? Stem { get { throw null; } } + + public System.Collections.Generic.IList StemItems { get { throw null; } } + } + } + + public partial class PatternContextRaggedExclude : PatternContextRagged + { + public PatternContextRaggedExclude(IRaggedPattern pattern) : base(default!) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public partial class PatternContextRaggedInclude : PatternContextRagged + { + public PatternContextRaggedInclude(IRaggedPattern pattern) : base(default!) { } + + public override void Declare(System.Action onDeclare) { } + + public override bool Test(Abstractions.DirectoryInfoBase directory) { throw null; } + } + + public abstract partial class PatternContext : IPatternContext where TFrame : struct + { + protected TFrame Frame; + protected PatternContext() { } + + public virtual void Declare(System.Action declare) { } + + protected bool IsStackEmpty() { throw null; } + + public virtual void PopDirectory() { } + + protected void PushDataFrame(TFrame frame) { } + + public abstract void PushDirectory(Abstractions.DirectoryInfoBase directory); + public abstract bool Test(Abstractions.DirectoryInfoBase directory); + public abstract PatternTestResult Test(Abstractions.FileInfoBase file); + } +} + +namespace Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns +{ + public partial class PatternBuilder + { + public PatternBuilder() { } + + public PatternBuilder(System.StringComparison comparisonType) { } + + public System.StringComparison ComparisonType { get { throw null; } } + + public IPattern Build(string pattern) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/microsoft.extensions.filesystemglobbing.nuspec b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/microsoft.extensions.filesystemglobbing.nuspec new file mode 100644 index 0000000000..9c3d81f81b --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.filesystemglobbing/7.0.0/microsoft.extensions.filesystemglobbing.nuspec @@ -0,0 +1,21 @@ + + + + Microsoft.Extensions.FileSystemGlobbing + 7.0.0 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + File system globbing to find files matching a specified pattern. + 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/7.0.0/Microsoft.Extensions.Logging.Abstractions.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/Microsoft.Extensions.Logging.Abstractions.7.0.0.csproj index 4fd79fe333..ade2869044 100644 --- a/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/Microsoft.Extensions.Logging.Abstractions.7.0.0.csproj +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/Microsoft.Extensions.Logging.Abstractions.7.0.0.csproj @@ -1,27 +1,13 @@ - netstandard2.0 - $(ArtifactsBinDir)microsoft.extensions.logging.abstractions/7.0.0/microsoft.extensions.logging.abstractions.nuspec + net6.0;net7.0;netstandard2.0 + Microsoft.Extensions.Logging.Abstractions + 2 MicrosoftAspNetCore - - $(ArtifactsBinDir)microsoft.extensions.logging.abstractions/7.0.0/ref/ - $(ArtifactsObjDir)microsoft.extensions.logging.abstractions/7.0.0 - - - - $(ArtifactsBinDir)microsoft.extensions.logging.abstractions/7.0.0/lib/ - - - - - - - - - + diff --git a/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/net6.0/Microsoft.Extensions.Logging.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/net6.0/Microsoft.Extensions.Logging.Abstractions.cs new file mode 100644 index 0000000000..2ed1c9ac66 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/net6.0/Microsoft.Extensions.Logging.Abstractions.cs @@ -0,0 +1,327 @@ +// 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=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 ISupportExternalScope + { + void SetScopeProvider(IExternalScopeProvider scopeProvider); + } + + public partial class LogDefineOptions + { + public 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 LoggerExternalScopeProvider() { } + + 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(int eventId, LogLevel level, 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 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 + { + 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 NullLoggerFactory() { } + + public void AddProvider(ILoggerProvider provider) { } + + public ILogger CreateLogger(string name) { throw null; } + + public void Dispose() { } + } + + public partial class NullLoggerProvider : ILoggerProvider, System.IDisposable + { + 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 NullLogger() { } + + 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/7.0.0/lib/net7.0/Microsoft.Extensions.Logging.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/net7.0/Microsoft.Extensions.Logging.Abstractions.cs new file mode 100644 index 0000000000..267bdd0920 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/net7.0/Microsoft.Extensions.Logging.Abstractions.cs @@ -0,0 +1,327 @@ +// 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=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 ISupportExternalScope + { + void SetScopeProvider(IExternalScopeProvider scopeProvider); + } + + public partial class LogDefineOptions + { + public 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 LoggerExternalScopeProvider() { } + + 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(int eventId, LogLevel level, 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 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 + { + 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 NullLoggerFactory() { } + + public void AddProvider(ILoggerProvider provider) { } + + public ILogger CreateLogger(string name) { throw null; } + + public void Dispose() { } + } + + public partial class NullLoggerProvider : ILoggerProvider, System.IDisposable + { + 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 NullLogger() { } + + 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/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs index dee16692b5..95c3414dfa 100644 --- a/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.cs @@ -4,165 +4,248 @@ // ------------------------------------------------------------------------------ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Security; - -[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] -[assembly: AllowPartiallyTrustedCallers] -[assembly: ReferenceAssembly] -[assembly: AssemblyTitle("Microsoft.Extensions.Logging.Abstractions")] -[assembly: AssemblyDescription("Microsoft.Extensions.Logging.Abstractions")] -[assembly: AssemblyDefaultAlias("Microsoft.Extensions.Logging.Abstractions")] -[assembly: AssemblyCompany("Microsoft Corporation")] -[assembly: AssemblyProduct("Microsoft® .NET Framework")] -[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] -[assembly: AssemblyFileVersion("7.0.22.51805")] -[assembly: AssemblyInformationalVersion("7.0.22.51805 built by: SOURCEBUILD")] -[assembly: CLSCompliant(true)] -[assembly: AssemblyMetadata("", "")] -[assembly: AssemblyVersion("7.0.0.0")] - - - - +[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(".NETFrameworkAssembly", "")] +[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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 + public readonly partial struct EventId : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public EventId(int id, string? name = null) { throw null; } + public EventId(int id, string? name = null) { } + public int Id { get { throw null; } } + public string? Name { get { throw null; } } - public bool Equals(Microsoft.Extensions.Logging.EventId other) { throw null; } - public override bool Equals(object? obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Microsoft.Extensions.Logging.EventId left, Microsoft.Extensions.Logging.EventId right) { throw null; } - public static implicit operator Microsoft.Extensions.Logging.EventId (int i) { throw null; } - public static bool operator !=(Microsoft.Extensions.Logging.EventId left, Microsoft.Extensions.Logging.EventId right) { throw null; } - public override string ToString() { 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) where TState : notnull; - bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel); - void Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception? exception, System.Func formatter); + 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(Microsoft.Extensions.Logging.ILoggerProvider provider); - Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName); + void AddProvider(ILoggerProvider provider); + ILogger CreateLogger(string categoryName); } + public partial interface ILoggerProvider : System.IDisposable { - Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName); + ILogger CreateLogger(string categoryName); } - public partial interface ILogger : Microsoft.Extensions.Logging.ILogger + + public partial interface ILogger : ILogger { } + public partial interface ISupportExternalScope { - void SetScopeProvider(Microsoft.Extensions.Logging.IExternalScopeProvider scopeProvider); + void SetScopeProvider(IExternalScopeProvider scopeProvider); } + public partial class LogDefineOptions { public LogDefineOptions() { } + public bool SkipEnabledCheck { get { throw null; } set { } } } + public static partial class LoggerExtensions { - public static System.IDisposable? BeginScope(this Microsoft.Extensions.Logging.ILogger logger, string messageFormat, params object?[] args) { throw null; } - public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, System.Exception? exception, string? message, params object?[] args) { } - public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, string? message, params object?[] args) { } - public static void LogCritical(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void LogCritical(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void LogCritical(this Microsoft.Extensions.Logging.ILogger logger, System.Exception? exception, string? message, params object?[] args) { } - public static void LogCritical(this Microsoft.Extensions.Logging.ILogger logger, string? message, params object?[] args) { } - public static void LogDebug(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void LogDebug(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void LogDebug(this Microsoft.Extensions.Logging.ILogger logger, System.Exception? exception, string? message, params object?[] args) { } - public static void LogDebug(this Microsoft.Extensions.Logging.ILogger logger, string? message, params object?[] args) { } - public static void LogError(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void LogError(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void LogError(this Microsoft.Extensions.Logging.ILogger logger, System.Exception? exception, string? message, params object?[] args) { } - public static void LogError(this Microsoft.Extensions.Logging.ILogger logger, string? message, params object?[] args) { } - public static void LogInformation(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void LogInformation(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void LogInformation(this Microsoft.Extensions.Logging.ILogger logger, System.Exception? exception, string? message, params object?[] args) { } - public static void LogInformation(this Microsoft.Extensions.Logging.ILogger logger, string? message, params object?[] args) { } - public static void LogTrace(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void LogTrace(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void LogTrace(this Microsoft.Extensions.Logging.ILogger logger, System.Exception? exception, string? message, params object?[] args) { } - public static void LogTrace(this Microsoft.Extensions.Logging.ILogger logger, string? message, params object?[] args) { } - public static void LogWarning(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception? exception, string? message, params object?[] args) { } - public static void LogWarning(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string? message, params object?[] args) { } - public static void LogWarning(this Microsoft.Extensions.Logging.ILogger logger, System.Exception? exception, string? message, params object?[] args) { } - public static void LogWarning(this Microsoft.Extensions.Logging.ILogger logger, string? message, params object?[] args) { } - } - public partial class LoggerExternalScopeProvider : Microsoft.Extensions.Logging.IExternalScopeProvider + 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 LoggerExternalScopeProvider() { } + public void ForEachScope(System.Action callback, TState state) { } + public System.IDisposable Push(object? state) { throw null; } } + public static partial class LoggerFactoryExtensions { - public static Microsoft.Extensions.Logging.ILogger CreateLogger(this Microsoft.Extensions.Logging.ILoggerFactory factory, System.Type type) { throw null; } - public static Microsoft.Extensions.Logging.ILogger CreateLogger(this Microsoft.Extensions.Logging.ILoggerFactory factory) { throw null; } + 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(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { 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; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString) { throw null; } - public static System.Action Define(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options) { throw null; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Method)] + 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(int eventId, Microsoft.Extensions.Logging.LogLevel level, string message) { } + + public LoggerMessageAttribute(int eventId, LogLevel level, string message) { } + public int EventId { get { throw null; } set { } } + public string? EventName { get { throw null; } set { } } - public Microsoft.Extensions.Logging.LogLevel Level { 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 : Microsoft.Extensions.Logging.ILogger, Microsoft.Extensions.Logging.ILogger + + public partial class Logger : ILogger, ILogger { - public Logger(Microsoft.Extensions.Logging.ILoggerFactory factory) { } - System.IDisposable Microsoft.Extensions.Logging.ILogger.BeginScope(TState state) { throw null; } - bool Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) { throw null; } - void Microsoft.Extensions.Logging.ILogger.Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception exception, System.Func formatter) { } + 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, @@ -171,53 +254,74 @@ public enum LogLevel Warning = 3, Error = 4, Critical = 5, - None = 6, + None = 6 } } + namespace Microsoft.Extensions.Logging.Abstractions { 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(Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception? exception, System.Func formatter) { throw null; } + public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + public string Category { get { throw null; } } - public Microsoft.Extensions.Logging.EventId EventId { get { throw null; } } + + public EventId EventId { get { throw null; } } + public System.Exception? Exception { get { throw null; } } + public System.Func Formatter { get { throw null; } } - public Microsoft.Extensions.Logging.LogLevel LogLevel { get { throw null; } } + + public LogLevel LogLevel { get { throw null; } } + public TState State { get { throw null; } } } - public partial class NullLogger : Microsoft.Extensions.Logging.ILogger + + public partial class NullLogger : ILogger { - internal NullLogger() { } - public static Microsoft.Extensions.Logging.Abstractions.NullLogger Instance { get { throw null; } } - public System.IDisposable BeginScope(TState state) where TState : notnull { throw null; } - public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) { throw null; } - public void Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + 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 : Microsoft.Extensions.Logging.ILoggerFactory, System.IDisposable + + public partial class NullLoggerFactory : ILoggerFactory, System.IDisposable { - public static readonly Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory Instance; + public static readonly NullLoggerFactory Instance; public NullLoggerFactory() { } - public void AddProvider(Microsoft.Extensions.Logging.ILoggerProvider provider) { } - public Microsoft.Extensions.Logging.ILogger CreateLogger(string name) { throw null; } + + public void AddProvider(ILoggerProvider provider) { } + + public ILogger CreateLogger(string name) { throw null; } + public void Dispose() { } } - public partial class NullLoggerProvider : Microsoft.Extensions.Logging.ILoggerProvider, System.IDisposable + + public partial class NullLoggerProvider : ILoggerProvider, System.IDisposable { - internal NullLoggerProvider() { } - public static Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider Instance { get { throw null; } } - public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) { throw null; } + public static NullLoggerProvider Instance { get { throw null; } } + + public ILogger CreateLogger(string categoryName) { throw null; } + public void Dispose() { } } - public partial class NullLogger : Microsoft.Extensions.Logging.ILogger, Microsoft.Extensions.Logging.ILogger + + public partial class NullLogger : ILogger, ILogger { - public static readonly Microsoft.Extensions.Logging.Abstractions.NullLogger Instance; + public static readonly NullLogger Instance; public NullLogger() { } - public System.IDisposable BeginScope(TState state) where TState : notnull { throw null; } - public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel) { throw null; } - public void Log(Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, System.Exception? exception, System.Func formatter) { } + + 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/7.0.0/microsoft.extensions.logging.abstractions.nuspec b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/microsoft.extensions.logging.abstractions.nuspec index 1ceae8bfbf..e28d18549e 100755 --- a/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/microsoft.extensions.logging.abstractions.nuspec +++ b/src/referencePackages/src/microsoft.extensions.logging.abstractions/7.0.0/microsoft.extensions.logging.abstractions.nuspec @@ -1,4 +1,4 @@ - + Microsoft.Extensions.Logging.Abstractions diff --git a/src/referencePackages/src/microsoft.extensions.logging/7.0.0/Microsoft.Extensions.Logging.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/Microsoft.Extensions.Logging.7.0.0.csproj new file mode 100644 index 0000000000..fa3b7ebe1e --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/Microsoft.Extensions.Logging.7.0.0.csproj @@ -0,0 +1,41 @@ + + + + net6.0;net7.0;netstandard2.0;netstandard2.1 + Microsoft.Extensions.Logging + 2 + MicrosoftAspNetCore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/net6.0/Microsoft.Extensions.Logging.cs b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/net6.0/Microsoft.Extensions.Logging.cs new file mode 100644 index 0000000000..9e8fe031dc --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/net6.0/Microsoft.Extensions.Logging.cs @@ -0,0 +1,183 @@ +// 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=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging")] +[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 infrastructure default implementation for Microsoft.Extensions.Logging.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class LoggingServiceCollectionExtensions + { + public static IServiceCollection AddLogging(this IServiceCollection services, System.Action configure) { throw null; } + + public static IServiceCollection AddLogging(this IServiceCollection services) { throw null; } + } +} + +namespace Microsoft.Extensions.Logging +{ + [System.Flags] + public enum ActivityTrackingOptions + { + None = 0, + SpanId = 1, + TraceId = 2, + ParentId = 4, + TraceState = 8, + TraceFlags = 16, + Tags = 32, + Baggage = 64 + } + + public static partial class FilterLoggingBuilderExtensions + { + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func filter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func filter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial class LoggerFactory : ILoggerFactory, System.IDisposable + { + public LoggerFactory() { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, LoggerFilterOptions filterOptions) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options = null, IExternalScopeProvider? scopeProvider = null) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers) { } + + public void AddProvider(ILoggerProvider provider) { } + + protected virtual bool CheckDisposed() { throw null; } + + public static ILoggerFactory Create(System.Action configure) { throw null; } + + public ILogger CreateLogger(string categoryName) { throw null; } + + public void Dispose() { } + } + + public partial class LoggerFactoryOptions + { + public LoggerFactoryOptions() { } + + public ActivityTrackingOptions ActivityTrackingOptions { get { throw null; } set { } } + } + + public partial class LoggerFilterOptions + { + public LoggerFilterOptions() { } + + public bool CaptureScopes { get { throw null; } set { } } + + public LogLevel MinLevel { get { throw null; } set { } } + + public System.Collections.Generic.IList Rules { get { throw null; } } + } + + public partial class LoggerFilterRule + { + public LoggerFilterRule(string? providerName, string? categoryName, LogLevel? logLevel, System.Func? filter) { } + + public string? CategoryName { get { throw null; } } + + public System.Func? Filter { get { throw null; } } + + public LogLevel? LogLevel { get { throw null; } } + + public string? ProviderName { get { throw null; } } + + public override string ToString() { throw null; } + } + + public static partial class LoggingBuilderExtensions + { + public static ILoggingBuilder AddProvider(this ILoggingBuilder builder, ILoggerProvider provider) { throw null; } + + public static ILoggingBuilder ClearProviders(this ILoggingBuilder builder) { throw null; } + + public static ILoggingBuilder Configure(this ILoggingBuilder builder, System.Action action) { throw null; } + + public static ILoggingBuilder SetMinimumLevel(this ILoggingBuilder builder, LogLevel level) { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)] + public partial class ProviderAliasAttribute : System.Attribute + { + public ProviderAliasAttribute(string alias) { } + + public string Alias { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/net7.0/Microsoft.Extensions.Logging.cs b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/net7.0/Microsoft.Extensions.Logging.cs new file mode 100644 index 0000000000..b827033d19 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/net7.0/Microsoft.Extensions.Logging.cs @@ -0,0 +1,184 @@ +// 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=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging")] +[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 infrastructure default implementation for Microsoft.Extensions.Logging.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class LoggingServiceCollectionExtensions + { + public static IServiceCollection AddLogging(this IServiceCollection services, System.Action configure) { throw null; } + + public static IServiceCollection AddLogging(this IServiceCollection services) { throw null; } + } +} + +namespace Microsoft.Extensions.Logging +{ + [System.Flags] + public enum ActivityTrackingOptions + { + None = 0, + SpanId = 1, + TraceId = 2, + ParentId = 4, + TraceState = 8, + TraceFlags = 16, + Tags = 32, + Baggage = 64 + } + + public static partial class FilterLoggingBuilderExtensions + { + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func filter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func filter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial class LoggerFactory : ILoggerFactory, System.IDisposable + { + public LoggerFactory() { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, LoggerFilterOptions filterOptions) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options = null, IExternalScopeProvider? scopeProvider = null) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers) { } + + public void AddProvider(ILoggerProvider provider) { } + + protected virtual bool CheckDisposed() { throw null; } + + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode("LoggerFactory.Create uses Microsoft.Extensions.DependencyInjection, which may require generating code dynamically at runtime.")] + public static ILoggerFactory Create(System.Action configure) { throw null; } + + public ILogger CreateLogger(string categoryName) { throw null; } + + public void Dispose() { } + } + + public partial class LoggerFactoryOptions + { + public LoggerFactoryOptions() { } + + public ActivityTrackingOptions ActivityTrackingOptions { get { throw null; } set { } } + } + + public partial class LoggerFilterOptions + { + public LoggerFilterOptions() { } + + public bool CaptureScopes { get { throw null; } set { } } + + public LogLevel MinLevel { get { throw null; } set { } } + + public System.Collections.Generic.IList Rules { get { throw null; } } + } + + public partial class LoggerFilterRule + { + public LoggerFilterRule(string? providerName, string? categoryName, LogLevel? logLevel, System.Func? filter) { } + + public string? CategoryName { get { throw null; } } + + public System.Func? Filter { get { throw null; } } + + public LogLevel? LogLevel { get { throw null; } } + + public string? ProviderName { get { throw null; } } + + public override string ToString() { throw null; } + } + + public static partial class LoggingBuilderExtensions + { + public static ILoggingBuilder AddProvider(this ILoggingBuilder builder, ILoggerProvider provider) { throw null; } + + public static ILoggingBuilder ClearProviders(this ILoggingBuilder builder) { throw null; } + + public static ILoggingBuilder Configure(this ILoggingBuilder builder, System.Action action) { throw null; } + + public static ILoggingBuilder SetMinimumLevel(this ILoggingBuilder builder, LogLevel level) { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)] + public partial class ProviderAliasAttribute : System.Attribute + { + public ProviderAliasAttribute(string alias) { } + + public string Alias { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.cs b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.cs new file mode 100644 index 0000000000..6af24e7617 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Logging.cs @@ -0,0 +1,183 @@ +// 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(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging")] +[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 infrastructure default implementation for Microsoft.Extensions.Logging.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class LoggingServiceCollectionExtensions + { + public static IServiceCollection AddLogging(this IServiceCollection services, System.Action configure) { throw null; } + + public static IServiceCollection AddLogging(this IServiceCollection services) { throw null; } + } +} + +namespace Microsoft.Extensions.Logging +{ + [System.Flags] + public enum ActivityTrackingOptions + { + None = 0, + SpanId = 1, + TraceId = 2, + ParentId = 4, + TraceState = 8, + TraceFlags = 16, + Tags = 32, + Baggage = 64 + } + + public static partial class FilterLoggingBuilderExtensions + { + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func filter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func filter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial class LoggerFactory : ILoggerFactory, System.IDisposable + { + public LoggerFactory() { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, LoggerFilterOptions filterOptions) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options = null, IExternalScopeProvider? scopeProvider = null) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers) { } + + public void AddProvider(ILoggerProvider provider) { } + + protected virtual bool CheckDisposed() { throw null; } + + public static ILoggerFactory Create(System.Action configure) { throw null; } + + public ILogger CreateLogger(string categoryName) { throw null; } + + public void Dispose() { } + } + + public partial class LoggerFactoryOptions + { + public LoggerFactoryOptions() { } + + public ActivityTrackingOptions ActivityTrackingOptions { get { throw null; } set { } } + } + + public partial class LoggerFilterOptions + { + public LoggerFilterOptions() { } + + public bool CaptureScopes { get { throw null; } set { } } + + public LogLevel MinLevel { get { throw null; } set { } } + + public System.Collections.Generic.IList Rules { get { throw null; } } + } + + public partial class LoggerFilterRule + { + public LoggerFilterRule(string? providerName, string? categoryName, LogLevel? logLevel, System.Func? filter) { } + + public string? CategoryName { get { throw null; } } + + public System.Func? Filter { get { throw null; } } + + public LogLevel? LogLevel { get { throw null; } } + + public string? ProviderName { get { throw null; } } + + public override string ToString() { throw null; } + } + + public static partial class LoggingBuilderExtensions + { + public static ILoggingBuilder AddProvider(this ILoggingBuilder builder, ILoggerProvider provider) { throw null; } + + public static ILoggingBuilder ClearProviders(this ILoggingBuilder builder) { throw null; } + + public static ILoggingBuilder Configure(this ILoggingBuilder builder, System.Action action) { throw null; } + + public static ILoggingBuilder SetMinimumLevel(this ILoggingBuilder builder, LogLevel level) { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)] + public partial class ProviderAliasAttribute : System.Attribute + { + public ProviderAliasAttribute(string alias) { } + + public string Alias { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/netstandard2.1/Microsoft.Extensions.Logging.cs b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/netstandard2.1/Microsoft.Extensions.Logging.cs new file mode 100644 index 0000000000..00c37f1fd8 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/lib/netstandard2.1/Microsoft.Extensions.Logging.cs @@ -0,0 +1,183 @@ +// 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(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Logging")] +[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 infrastructure default implementation for Microsoft.Extensions.Logging.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Logging")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class LoggingServiceCollectionExtensions + { + public static IServiceCollection AddLogging(this IServiceCollection services, System.Action configure) { throw null; } + + public static IServiceCollection AddLogging(this IServiceCollection services) { throw null; } + } +} + +namespace Microsoft.Extensions.Logging +{ + [System.Flags] + public enum ActivityTrackingOptions + { + None = 0, + SpanId = 1, + TraceId = 2, + ParentId = 4, + TraceState = 8, + TraceFlags = 16, + Tags = 32, + Baggage = 64 + } + + public static partial class FilterLoggingBuilderExtensions + { + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func filter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func filter) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, System.Func categoryLevelFilter) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) + where T : ILoggerProvider { throw null; } + + public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, System.Func levelFilter) + where T : ILoggerProvider { throw null; } + } + + public partial interface ILoggingBuilder + { + DependencyInjection.IServiceCollection Services { get; } + } + + public partial class LoggerFactory : ILoggerFactory, System.IDisposable + { + public LoggerFactory() { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, LoggerFilterOptions filterOptions) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options = null, IExternalScopeProvider? scopeProvider = null) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption, Options.IOptions? options) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers, Options.IOptionsMonitor filterOption) { } + + public LoggerFactory(System.Collections.Generic.IEnumerable providers) { } + + public void AddProvider(ILoggerProvider provider) { } + + protected virtual bool CheckDisposed() { throw null; } + + public static ILoggerFactory Create(System.Action configure) { throw null; } + + public ILogger CreateLogger(string categoryName) { throw null; } + + public void Dispose() { } + } + + public partial class LoggerFactoryOptions + { + public LoggerFactoryOptions() { } + + public ActivityTrackingOptions ActivityTrackingOptions { get { throw null; } set { } } + } + + public partial class LoggerFilterOptions + { + public LoggerFilterOptions() { } + + public bool CaptureScopes { get { throw null; } set { } } + + public LogLevel MinLevel { get { throw null; } set { } } + + public System.Collections.Generic.IList Rules { get { throw null; } } + } + + public partial class LoggerFilterRule + { + public LoggerFilterRule(string? providerName, string? categoryName, LogLevel? logLevel, System.Func? filter) { } + + public string? CategoryName { get { throw null; } } + + public System.Func? Filter { get { throw null; } } + + public LogLevel? LogLevel { get { throw null; } } + + public string? ProviderName { get { throw null; } } + + public override string ToString() { throw null; } + } + + public static partial class LoggingBuilderExtensions + { + public static ILoggingBuilder AddProvider(this ILoggingBuilder builder, ILoggerProvider provider) { throw null; } + + public static ILoggingBuilder ClearProviders(this ILoggingBuilder builder) { throw null; } + + public static ILoggingBuilder Configure(this ILoggingBuilder builder, System.Action action) { throw null; } + + public static ILoggingBuilder SetMinimumLevel(this ILoggingBuilder builder, LogLevel level) { throw null; } + } + + [System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)] + public partial class ProviderAliasAttribute : System.Attribute + { + public ProviderAliasAttribute(string alias) { } + + public string Alias { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.logging/7.0.0/microsoft.extensions.logging.nuspec b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/microsoft.extensions.logging.nuspec new file mode 100644 index 0000000000..cb52225bd9 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.logging/7.0.0/microsoft.extensions.logging.nuspec @@ -0,0 +1,45 @@ + + + + Microsoft.Extensions.Logging + 7.0.0 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Logging infrastructure default implementation for Microsoft.Extensions.Logging. + 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.options/7.0.0/Microsoft.Extensions.Options.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.options/7.0.0/Microsoft.Extensions.Options.7.0.0.csproj new file mode 100644 index 0000000000..9a4935815b --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.options/7.0.0/Microsoft.Extensions.Options.7.0.0.csproj @@ -0,0 +1,31 @@ + + + + net6.0;net7.0;netstandard2.0;netstandard2.1 + Microsoft.Extensions.Options + 2 + MicrosoftAspNetCore + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/net6.0/Microsoft.Extensions.Options.cs b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/net6.0/Microsoft.Extensions.Options.cs new file mode 100644 index 0000000000..eaa0a1b117 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/net6.0/Microsoft.Extensions.Options.cs @@ -0,0 +1,635 @@ +// 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.Options.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Options")] +[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 a strongly typed way of specifying and accessing settings using dependency injection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Options")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class OptionsServiceCollectionExtensions + { + public static IServiceCollection AddOptions(this IServiceCollection services) { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services, string? name) + where TOptions : class { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, object configureInstance) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, System.Type configureType) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services) + where TConfigureOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + } +} + +namespace Microsoft.Extensions.Options +{ + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class + { + public ConfigureNamedOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep : class + { + public ConfigureNamedOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureOptions : IConfigureOptions where TOptions : class + { + public ConfigureOptions(System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public virtual void Configure(TOptions options) { } + } + + public partial interface IConfigureNamedOptions : IConfigureOptions where TOptions : class + { + void Configure(string? name, TOptions options); + } + + public partial interface IConfigureOptions + where TOptions : class + { + void Configure(TOptions options); + } + + public partial interface IOptionsChangeTokenSource + { + string? Name { get; } + + Primitives.IChangeToken GetChangeToken(); + } + + public partial interface IOptionsFactory + where TOptions : class + { + TOptions Create(string name); + } + + public partial interface IOptionsMonitorCache + where TOptions : class + { + void Clear(); + TOptions GetOrAdd(string? name, System.Func createOptions); + bool TryAdd(string? name, TOptions options); + bool TryRemove(string? name); + } + + public partial interface IOptionsMonitor + { + TOptions CurrentValue { get; } + + TOptions Get(string? name); + System.IDisposable? OnChange(System.Action listener); + } + + public partial interface IOptionsSnapshot : IOptions where TOptions : class + { + TOptions Get(string? name); + } + + public partial interface IOptions + where TOptions : class + { + TOptions Value { get; } + } + + public partial interface IPostConfigureOptions + where TOptions : class + { + void PostConfigure(string? name, TOptions options); + } + + public partial interface IValidateOptions + where TOptions : class + { + ValidateOptionsResult Validate(string? name, TOptions options); + } + + public static partial class Options + { + public static readonly string DefaultName; + public static IOptions Create(TOptions options) + where TOptions : class { throw null; } + } + + public partial class OptionsBuilder + where TOptions : class + { + public OptionsBuilder(DependencyInjection.IServiceCollection services, string? name) { } + + public string Name { get { throw null; } } + + public DependencyInjection.IServiceCollection Services { get { throw null; } } + + public virtual OptionsBuilder Configure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + } + + public partial class OptionsCache : IOptionsMonitorCache where TOptions : class + { + public OptionsCache() { } + + public void Clear() { } + + public virtual TOptions GetOrAdd(string? name, System.Func createOptions) { throw null; } + + public virtual bool TryAdd(string? name, TOptions options) { throw null; } + + public virtual bool TryRemove(string? name) { throw null; } + } + + public partial class OptionsFactory : IOptionsFactory where TOptions : class + { + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures, System.Collections.Generic.IEnumerable> validations) { } + + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures) { } + + public TOptions Create(string name) { throw null; } + + protected virtual TOptions CreateInstance(string name) { throw null; } + } + + public partial class OptionsManager : IOptions, IOptionsSnapshot where TOptions : class + { + public OptionsManager(IOptionsFactory factory) { } + + public TOptions Value { get { throw null; } } + + public virtual TOptions Get(string? name) { throw null; } + } + + public static partial class OptionsMonitorExtensions + { + public static System.IDisposable? OnChange(this IOptionsMonitor monitor, System.Action listener) { throw null; } + } + + public partial class OptionsMonitor : IOptionsMonitor, System.IDisposable where TOptions : class + { + public OptionsMonitor(IOptionsFactory factory, System.Collections.Generic.IEnumerable> sources, IOptionsMonitorCache cache) { } + + public TOptions CurrentValue { get { throw null; } } + + public void Dispose() { } + + public virtual TOptions Get(string? name) { throw null; } + + public System.IDisposable OnChange(System.Action listener) { throw null; } + } + + public partial class OptionsValidationException : System.Exception + { + public OptionsValidationException(string optionsName, System.Type optionsType, System.Collections.Generic.IEnumerable? failureMessages) { } + + public System.Collections.Generic.IEnumerable Failures { get { throw null; } } + + public override string Message { get { throw null; } } + + public string OptionsName { get { throw null; } } + + public System.Type OptionsType { get { throw null; } } + } + + public partial class OptionsWrapper : IOptions where TOptions : class + { + public OptionsWrapper(TOptions options) { } + + public TOptions Value { get { throw null; } } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class + { + public PostConfigureOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep : class + { + public PostConfigureOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class ValidateOptionsResult + { + public static readonly ValidateOptionsResult Skip; + public static readonly ValidateOptionsResult Success; + public ValidateOptionsResult() { } + + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "Failures")] + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "FailureMessage")] + public bool Failed { get { throw null; } protected set { } } + + public string? FailureMessage { get { throw null; } protected set { } } + + public System.Collections.Generic.IEnumerable? Failures { get { throw null; } protected set { } } + + public bool Skipped { get { throw null; } protected set { } } + + public bool Succeeded { get { throw null; } protected set { } } + + public static ValidateOptionsResult Fail(System.Collections.Generic.IEnumerable failures) { throw null; } + + public static ValidateOptionsResult Fail(string failureMessage) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, System.Func validation, string failureMessage) { } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep dependency, System.Func validation, string failureMessage) { } + + public TDep Dependency { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/net7.0/Microsoft.Extensions.Options.cs b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/net7.0/Microsoft.Extensions.Options.cs new file mode 100644 index 0000000000..612655f037 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/net7.0/Microsoft.Extensions.Options.cs @@ -0,0 +1,635 @@ +// 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.Options.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Options")] +[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 a strongly typed way of specifying and accessing settings using dependency injection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Options")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class OptionsServiceCollectionExtensions + { + public static IServiceCollection AddOptions(this IServiceCollection services) { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services, string? name) + where TOptions : class { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, object configureInstance) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, System.Type configureType) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services) + where TConfigureOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + } +} + +namespace Microsoft.Extensions.Options +{ + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class + { + public ConfigureNamedOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep : class + { + public ConfigureNamedOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureOptions : IConfigureOptions where TOptions : class + { + public ConfigureOptions(System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public virtual void Configure(TOptions options) { } + } + + public partial interface IConfigureNamedOptions : IConfigureOptions where TOptions : class + { + void Configure(string? name, TOptions options); + } + + public partial interface IConfigureOptions + where TOptions : class + { + void Configure(TOptions options); + } + + public partial interface IOptionsChangeTokenSource + { + string? Name { get; } + + Primitives.IChangeToken GetChangeToken(); + } + + public partial interface IOptionsFactory + where TOptions : class + { + TOptions Create(string name); + } + + public partial interface IOptionsMonitorCache + where TOptions : class + { + void Clear(); + TOptions GetOrAdd(string? name, System.Func createOptions); + bool TryAdd(string? name, TOptions options); + bool TryRemove(string? name); + } + + public partial interface IOptionsMonitor + { + TOptions CurrentValue { get; } + + TOptions Get(string? name); + System.IDisposable? OnChange(System.Action listener); + } + + public partial interface IOptionsSnapshot : IOptions where TOptions : class + { + TOptions Get(string? name); + } + + public partial interface IOptions + where TOptions : class + { + TOptions Value { get; } + } + + public partial interface IPostConfigureOptions + where TOptions : class + { + void PostConfigure(string? name, TOptions options); + } + + public partial interface IValidateOptions + where TOptions : class + { + ValidateOptionsResult Validate(string? name, TOptions options); + } + + public static partial class Options + { + public static readonly string DefaultName; + public static IOptions Create(TOptions options) + where TOptions : class { throw null; } + } + + public partial class OptionsBuilder + where TOptions : class + { + public OptionsBuilder(DependencyInjection.IServiceCollection services, string? name) { } + + public string Name { get { throw null; } } + + public DependencyInjection.IServiceCollection Services { get { throw null; } } + + public virtual OptionsBuilder Configure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + } + + public partial class OptionsCache : IOptionsMonitorCache where TOptions : class + { + public OptionsCache() { } + + public void Clear() { } + + public virtual TOptions GetOrAdd(string? name, System.Func createOptions) { throw null; } + + public virtual bool TryAdd(string? name, TOptions options) { throw null; } + + public virtual bool TryRemove(string? name) { throw null; } + } + + public partial class OptionsFactory : IOptionsFactory where TOptions : class + { + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures, System.Collections.Generic.IEnumerable> validations) { } + + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures) { } + + public TOptions Create(string name) { throw null; } + + protected virtual TOptions CreateInstance(string name) { throw null; } + } + + public partial class OptionsManager : IOptions, IOptionsSnapshot where TOptions : class + { + public OptionsManager(IOptionsFactory factory) { } + + public TOptions Value { get { throw null; } } + + public virtual TOptions Get(string? name) { throw null; } + } + + public static partial class OptionsMonitorExtensions + { + public static System.IDisposable? OnChange(this IOptionsMonitor monitor, System.Action listener) { throw null; } + } + + public partial class OptionsMonitor : IOptionsMonitor, System.IDisposable where TOptions : class + { + public OptionsMonitor(IOptionsFactory factory, System.Collections.Generic.IEnumerable> sources, IOptionsMonitorCache cache) { } + + public TOptions CurrentValue { get { throw null; } } + + public void Dispose() { } + + public virtual TOptions Get(string? name) { throw null; } + + public System.IDisposable OnChange(System.Action listener) { throw null; } + } + + public partial class OptionsValidationException : System.Exception + { + public OptionsValidationException(string optionsName, System.Type optionsType, System.Collections.Generic.IEnumerable? failureMessages) { } + + public System.Collections.Generic.IEnumerable Failures { get { throw null; } } + + public override string Message { get { throw null; } } + + public string OptionsName { get { throw null; } } + + public System.Type OptionsType { get { throw null; } } + } + + public partial class OptionsWrapper : IOptions where TOptions : class + { + public OptionsWrapper(TOptions options) { } + + public TOptions Value { get { throw null; } } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class + { + public PostConfigureOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep : class + { + public PostConfigureOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class ValidateOptionsResult + { + public static readonly ValidateOptionsResult Skip; + public static readonly ValidateOptionsResult Success; + public ValidateOptionsResult() { } + + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "Failures")] + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "FailureMessage")] + public bool Failed { get { throw null; } protected set { } } + + public string? FailureMessage { get { throw null; } protected set { } } + + public System.Collections.Generic.IEnumerable? Failures { get { throw null; } protected set { } } + + public bool Skipped { get { throw null; } protected set { } } + + public bool Succeeded { get { throw null; } protected set { } } + + public static ValidateOptionsResult Fail(System.Collections.Generic.IEnumerable failures) { throw null; } + + public static ValidateOptionsResult Fail(string failureMessage) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, System.Func validation, string failureMessage) { } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep dependency, System.Func validation, string failureMessage) { } + + public TDep Dependency { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Options.cs b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Options.cs new file mode 100644 index 0000000000..5168da6265 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Options.cs @@ -0,0 +1,633 @@ +// 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.Options.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Options")] +[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 a strongly typed way of specifying and accessing settings using dependency injection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Options")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class OptionsServiceCollectionExtensions + { + public static IServiceCollection AddOptions(this IServiceCollection services) { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services, string? name) + where TOptions : class { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, object configureInstance) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, System.Type configureType) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services) + where TConfigureOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + } +} + +namespace Microsoft.Extensions.Options +{ + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class + { + public ConfigureNamedOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep : class + { + public ConfigureNamedOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureOptions : IConfigureOptions where TOptions : class + { + public ConfigureOptions(System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public virtual void Configure(TOptions options) { } + } + + public partial interface IConfigureNamedOptions : IConfigureOptions where TOptions : class + { + void Configure(string? name, TOptions options); + } + + public partial interface IConfigureOptions + where TOptions : class + { + void Configure(TOptions options); + } + + public partial interface IOptionsChangeTokenSource + { + string? Name { get; } + + Primitives.IChangeToken GetChangeToken(); + } + + public partial interface IOptionsFactory + where TOptions : class + { + TOptions Create(string name); + } + + public partial interface IOptionsMonitorCache + where TOptions : class + { + void Clear(); + TOptions GetOrAdd(string? name, System.Func createOptions); + bool TryAdd(string? name, TOptions options); + bool TryRemove(string? name); + } + + public partial interface IOptionsMonitor + { + TOptions CurrentValue { get; } + + TOptions Get(string? name); + System.IDisposable? OnChange(System.Action listener); + } + + public partial interface IOptionsSnapshot : IOptions where TOptions : class + { + TOptions Get(string? name); + } + + public partial interface IOptions + where TOptions : class + { + TOptions Value { get; } + } + + public partial interface IPostConfigureOptions + where TOptions : class + { + void PostConfigure(string? name, TOptions options); + } + + public partial interface IValidateOptions + where TOptions : class + { + ValidateOptionsResult Validate(string? name, TOptions options); + } + + public static partial class Options + { + public static readonly string DefaultName; + public static IOptions Create(TOptions options) + where TOptions : class { throw null; } + } + + public partial class OptionsBuilder + where TOptions : class + { + public OptionsBuilder(DependencyInjection.IServiceCollection services, string? name) { } + + public string Name { get { throw null; } } + + public DependencyInjection.IServiceCollection Services { get { throw null; } } + + public virtual OptionsBuilder Configure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + } + + public partial class OptionsCache : IOptionsMonitorCache where TOptions : class + { + public OptionsCache() { } + + public void Clear() { } + + public virtual TOptions GetOrAdd(string? name, System.Func createOptions) { throw null; } + + public virtual bool TryAdd(string? name, TOptions options) { throw null; } + + public virtual bool TryRemove(string? name) { throw null; } + } + + public partial class OptionsFactory : IOptionsFactory where TOptions : class + { + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures, System.Collections.Generic.IEnumerable> validations) { } + + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures) { } + + public TOptions Create(string name) { throw null; } + + protected virtual TOptions CreateInstance(string name) { throw null; } + } + + public partial class OptionsManager : IOptions, IOptionsSnapshot where TOptions : class + { + public OptionsManager(IOptionsFactory factory) { } + + public TOptions Value { get { throw null; } } + + public virtual TOptions Get(string? name) { throw null; } + } + + public static partial class OptionsMonitorExtensions + { + public static System.IDisposable? OnChange(this IOptionsMonitor monitor, System.Action listener) { throw null; } + } + + public partial class OptionsMonitor : IOptionsMonitor, System.IDisposable where TOptions : class + { + public OptionsMonitor(IOptionsFactory factory, System.Collections.Generic.IEnumerable> sources, IOptionsMonitorCache cache) { } + + public TOptions CurrentValue { get { throw null; } } + + public void Dispose() { } + + public virtual TOptions Get(string? name) { throw null; } + + public System.IDisposable OnChange(System.Action listener) { throw null; } + } + + public partial class OptionsValidationException : System.Exception + { + public OptionsValidationException(string optionsName, System.Type optionsType, System.Collections.Generic.IEnumerable? failureMessages) { } + + public System.Collections.Generic.IEnumerable Failures { get { throw null; } } + + public override string Message { get { throw null; } } + + public string OptionsName { get { throw null; } } + + public System.Type OptionsType { get { throw null; } } + } + + public partial class OptionsWrapper : IOptions where TOptions : class + { + public OptionsWrapper(TOptions options) { } + + public TOptions Value { get { throw null; } } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class + { + public PostConfigureOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep : class + { + public PostConfigureOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class ValidateOptionsResult + { + public static readonly ValidateOptionsResult Skip; + public static readonly ValidateOptionsResult Success; + public ValidateOptionsResult() { } + + public bool Failed { get { throw null; } protected set { } } + + public string? FailureMessage { get { throw null; } protected set { } } + + public System.Collections.Generic.IEnumerable? Failures { get { throw null; } protected set { } } + + public bool Skipped { get { throw null; } protected set { } } + + public bool Succeeded { get { throw null; } protected set { } } + + public static ValidateOptionsResult Fail(System.Collections.Generic.IEnumerable failures) { throw null; } + + public static ValidateOptionsResult Fail(string failureMessage) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, System.Func validation, string failureMessage) { } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep dependency, System.Func validation, string failureMessage) { } + + public TDep Dependency { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/netstandard2.1/Microsoft.Extensions.Options.cs b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/netstandard2.1/Microsoft.Extensions.Options.cs new file mode 100644 index 0000000000..da7e8d6bc3 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.options/7.0.0/lib/netstandard2.1/Microsoft.Extensions.Options.cs @@ -0,0 +1,633 @@ +// 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.Options.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Options")] +[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 a strongly typed way of specifying and accessing settings using dependency injection.")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Options")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.DependencyInjection +{ + public static partial class OptionsServiceCollectionExtensions + { + public static IServiceCollection AddOptions(this IServiceCollection services) { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services, string? name) + where TOptions : class { throw null; } + + public static Options.OptionsBuilder AddOptions(this IServiceCollection services) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection Configure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, object configureInstance) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services, System.Type configureType) { throw null; } + + public static IServiceCollection ConfigureOptions(this IServiceCollection services) + where TConfigureOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigure(this IServiceCollection services, string? name, System.Action configureOptions) + where TOptions : class { throw null; } + + public static IServiceCollection PostConfigureAll(this IServiceCollection services, System.Action configureOptions) + where TOptions : class { throw null; } + } +} + +namespace Microsoft.Extensions.Options +{ + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class + { + public ConfigureNamedOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep : class + { + public ConfigureNamedOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureNamedOptions : IConfigureNamedOptions, IConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public ConfigureNamedOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void Configure(TOptions options) { } + + public virtual void Configure(string? name, TOptions options) { } + } + + public partial class ConfigureOptions : IConfigureOptions where TOptions : class + { + public ConfigureOptions(System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public virtual void Configure(TOptions options) { } + } + + public partial interface IConfigureNamedOptions : IConfigureOptions where TOptions : class + { + void Configure(string? name, TOptions options); + } + + public partial interface IConfigureOptions + where TOptions : class + { + void Configure(TOptions options); + } + + public partial interface IOptionsChangeTokenSource + { + string? Name { get; } + + Primitives.IChangeToken GetChangeToken(); + } + + public partial interface IOptionsFactory + where TOptions : class + { + TOptions Create(string name); + } + + public partial interface IOptionsMonitorCache + where TOptions : class + { + void Clear(); + TOptions GetOrAdd(string? name, System.Func createOptions); + bool TryAdd(string? name, TOptions options); + bool TryRemove(string? name); + } + + public partial interface IOptionsMonitor + { + TOptions CurrentValue { get; } + + TOptions Get(string? name); + System.IDisposable? OnChange(System.Action listener); + } + + public partial interface IOptionsSnapshot : IOptions where TOptions : class + { + TOptions Get(string? name); + } + + public partial interface IOptions + where TOptions : class + { + TOptions Value { get; } + } + + public partial interface IPostConfigureOptions + where TOptions : class + { + void PostConfigure(string? name, TOptions options); + } + + public partial interface IValidateOptions + where TOptions : class + { + ValidateOptionsResult Validate(string? name, TOptions options); + } + + public static partial class Options + { + public static readonly string DefaultName; + public static IOptions Create(TOptions options) + where TOptions : class { throw null; } + } + + public partial class OptionsBuilder + where TOptions : class + { + public OptionsBuilder(DependencyInjection.IServiceCollection services, string? name) { } + + public string Name { get { throw null; } } + + public DependencyInjection.IServiceCollection Services { get { throw null; } } + + public virtual OptionsBuilder Configure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder Configure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class { throw null; } + + public virtual OptionsBuilder PostConfigure(System.Action configureOptions) + where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation, string failureMessage) { throw null; } + + public virtual OptionsBuilder Validate(System.Func validation) { throw null; } + } + + public partial class OptionsCache : IOptionsMonitorCache where TOptions : class + { + public OptionsCache() { } + + public void Clear() { } + + public virtual TOptions GetOrAdd(string? name, System.Func createOptions) { throw null; } + + public virtual bool TryAdd(string? name, TOptions options) { throw null; } + + public virtual bool TryRemove(string? name) { throw null; } + } + + public partial class OptionsFactory : IOptionsFactory where TOptions : class + { + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures, System.Collections.Generic.IEnumerable> validations) { } + + public OptionsFactory(System.Collections.Generic.IEnumerable> setups, System.Collections.Generic.IEnumerable> postConfigures) { } + + public TOptions Create(string name) { throw null; } + + protected virtual TOptions CreateInstance(string name) { throw null; } + } + + public partial class OptionsManager : IOptions, IOptionsSnapshot where TOptions : class + { + public OptionsManager(IOptionsFactory factory) { } + + public TOptions Value { get { throw null; } } + + public virtual TOptions Get(string? name) { throw null; } + } + + public static partial class OptionsMonitorExtensions + { + public static System.IDisposable? OnChange(this IOptionsMonitor monitor, System.Action listener) { throw null; } + } + + public partial class OptionsMonitor : IOptionsMonitor, System.IDisposable where TOptions : class + { + public OptionsMonitor(IOptionsFactory factory, System.Collections.Generic.IEnumerable> sources, IOptionsMonitorCache cache) { } + + public TOptions CurrentValue { get { throw null; } } + + public void Dispose() { } + + public virtual TOptions Get(string? name) { throw null; } + + public System.IDisposable OnChange(System.Action listener) { throw null; } + } + + public partial class OptionsValidationException : System.Exception + { + public OptionsValidationException(string optionsName, System.Type optionsType, System.Collections.Generic.IEnumerable? failureMessages) { } + + public System.Collections.Generic.IEnumerable Failures { get { throw null; } } + + public override string Message { get { throw null; } } + + public string OptionsName { get { throw null; } } + + public System.Type OptionsType { get { throw null; } } + } + + public partial class OptionsWrapper : IOptions where TOptions : class + { + public OptionsWrapper(TOptions options) { } + + public TOptions Value { get { throw null; } } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class + { + public PostConfigureOptions(string? name, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public string? Name { get { throw null; } } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep : class + { + public PostConfigureOptions(string? name, TDep dependency, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep Dependency { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class + { + public PostConfigureOptions(string? name, TDep1 dependency, TDep2 dependency2, TDep3 dependency3, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class PostConfigureOptions : IPostConfigureOptions where TOptions : class where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class + { + public PostConfigureOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Action? action) { } + + public System.Action? Action { get { throw null; } } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string? Name { get { throw null; } } + + public void PostConfigure(TOptions options) { } + + public virtual void PostConfigure(string? name, TOptions options) { } + } + + public partial class ValidateOptionsResult + { + public static readonly ValidateOptionsResult Skip; + public static readonly ValidateOptionsResult Success; + public ValidateOptionsResult() { } + + public bool Failed { get { throw null; } protected set { } } + + public string? FailureMessage { get { throw null; } protected set { } } + + public System.Collections.Generic.IEnumerable? Failures { get { throw null; } protected set { } } + + public bool Skipped { get { throw null; } protected set { } } + + public bool Succeeded { get { throw null; } protected set { } } + + public static ValidateOptionsResult Fail(System.Collections.Generic.IEnumerable failures) { throw null; } + + public static ValidateOptionsResult Fail(string failureMessage) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, System.Func validation, string failureMessage) { } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep dependency, System.Func validation, string failureMessage) { } + + public TDep Dependency { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } + + public partial class ValidateOptions : IValidateOptions where TOptions : class + { + public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, TDep3 dependency3, TDep4 dependency4, TDep5 dependency5, System.Func validation, string failureMessage) { } + + public TDep1 Dependency1 { get { throw null; } } + + public TDep2 Dependency2 { get { throw null; } } + + public TDep3 Dependency3 { get { throw null; } } + + public TDep4 Dependency4 { get { throw null; } } + + public TDep5 Dependency5 { get { throw null; } } + + public string FailureMessage { get { throw null; } } + + public string? Name { get { throw null; } } + + public System.Func Validation { get { throw null; } } + + public ValidateOptionsResult Validate(string? name, TOptions options) { throw null; } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.options/7.0.0/microsoft.extensions.options.nuspec b/src/referencePackages/src/microsoft.extensions.options/7.0.0/microsoft.extensions.options.nuspec new file mode 100644 index 0000000000..b95bf8b3bc --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.options/7.0.0/microsoft.extensions.options.nuspec @@ -0,0 +1,37 @@ + + + + Microsoft.Extensions.Options + 7.0.0 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Provides a strongly typed way of specifying and accessing settings using dependency injection. + 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.primitives/7.0.0/Microsoft.Extensions.Primitives.7.0.0.csproj b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/Microsoft.Extensions.Primitives.7.0.0.csproj new file mode 100644 index 0000000000..bada1f936e --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/Microsoft.Extensions.Primitives.7.0.0.csproj @@ -0,0 +1,19 @@ + + + + net6.0;net7.0;netstandard2.0 + Microsoft.Extensions.Primitives + 2 + MicrosoftAspNetCore + + + + + + + + + + + + diff --git a/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/net6.0/Microsoft.Extensions.Primitives.cs b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/net6.0/Microsoft.Extensions.Primitives.cs new file mode 100644 index 0000000000..4a66742942 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/net6.0/Microsoft.Extensions.Primitives.cs @@ -0,0 +1,342 @@ +// 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=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Primitives")] +[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("Primitives shared by framework extensions. Commonly used types include:\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.Primitives.IChangeToken\r\nMicrosoft.Extensions.Primitives.StringValues\r\nMicrosoft.Extensions.Primitives.StringSegment")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Primitives")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.Primitives +{ + public partial class CancellationChangeToken : IChangeToken + { + public CancellationChangeToken(System.Threading.CancellationToken cancellationToken) { } + + public bool ActiveChangeCallbacks { get { throw null; } } + + public bool HasChanged { get { throw null; } } + + public System.IDisposable RegisterChangeCallback(System.Action callback, object? state) { throw null; } + } + + public static partial class ChangeToken + { + public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer) { throw null; } + + public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer, TState state) { throw null; } + } + + public partial class CompositeChangeToken : IChangeToken + { + public CompositeChangeToken(System.Collections.Generic.IReadOnlyList changeTokens) { } + + public bool ActiveChangeCallbacks { get { throw null; } } + + public System.Collections.Generic.IReadOnlyList ChangeTokens { get { throw null; } } + + public bool HasChanged { get { throw null; } } + + public System.IDisposable RegisterChangeCallback(System.Action callback, object? state) { throw null; } + } + + public static partial class Extensions + { + public static System.Text.StringBuilder Append(this System.Text.StringBuilder builder, StringSegment segment) { throw null; } + } + + public partial interface IChangeToken + { + bool ActiveChangeCallbacks { get; } + + bool HasChanged { get; } + + System.IDisposable RegisterChangeCallback(System.Action callback, object? state); + } + + public readonly partial struct StringSegment : System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static readonly StringSegment Empty; + public StringSegment(string buffer, int offset, int length) { } + + public StringSegment(string? buffer) { } + + public string? Buffer { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "Buffer")] + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "Value")] + public bool HasValue { get { throw null; } } + + public char this[int index] { get { throw null; } } + + public int Length { get { throw null; } } + + public int Offset { get { throw null; } } + + public string? Value { get { throw null; } } + + public readonly System.ReadOnlyMemory AsMemory() { throw null; } + + public readonly System.ReadOnlySpan AsSpan() { throw null; } + + public readonly System.ReadOnlySpan AsSpan(int start, int length) { throw null; } + + public readonly System.ReadOnlySpan AsSpan(int start) { throw null; } + + public static int Compare(StringSegment a, StringSegment b, System.StringComparison comparisonType) { throw null; } + + public readonly bool EndsWith(string text, System.StringComparison comparisonType) { throw null; } + + public static bool Equals(StringSegment a, StringSegment b, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(StringSegment other, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(StringSegment other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(string? text, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(string? text) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly int IndexOf(char c, int start, int count) { throw null; } + + public readonly int IndexOf(char c, int start) { throw null; } + + public readonly int IndexOf(char c) { throw null; } + + public readonly int IndexOfAny(char[] anyOf, int startIndex, int count) { throw null; } + + public readonly int IndexOfAny(char[] anyOf, int startIndex) { throw null; } + + public readonly int IndexOfAny(char[] anyOf) { throw null; } + + public static bool IsNullOrEmpty(StringSegment value) { throw null; } + + public readonly int LastIndexOf(char value) { throw null; } + + public static bool operator ==(StringSegment left, StringSegment right) { throw null; } + + public static implicit operator System.ReadOnlyMemory(StringSegment segment) { throw null; } + + public static implicit operator System.ReadOnlySpan(StringSegment segment) { throw null; } + + public static implicit operator StringSegment(string? value) { throw null; } + + public static bool operator !=(StringSegment left, StringSegment right) { throw null; } + + public readonly StringTokenizer Split(char[] chars) { throw null; } + + public readonly bool StartsWith(string text, System.StringComparison comparisonType) { throw null; } + + public readonly StringSegment Subsegment(int offset, int length) { throw null; } + + public readonly StringSegment Subsegment(int offset) { throw null; } + + public readonly string Substring(int offset, int length) { throw null; } + + public readonly string Substring(int offset) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly StringSegment Trim() { throw null; } + + public readonly StringSegment TrimEnd() { throw null; } + + public readonly StringSegment TrimStart() { throw null; } + } + + public partial class StringSegmentComparer : System.Collections.Generic.IComparer, System.Collections.Generic.IEqualityComparer + { + public static StringSegmentComparer Ordinal { get { throw null; } } + + public static StringSegmentComparer OrdinalIgnoreCase { get { throw null; } } + + public int Compare(StringSegment x, StringSegment y) { throw null; } + + public bool Equals(StringSegment x, StringSegment y) { throw null; } + + public int GetHashCode(StringSegment obj) { throw null; } + } + + public readonly partial struct StringTokenizer : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StringTokenizer(StringSegment value, char[] separators) { } + + public StringTokenizer(string value, char[] separators) { } + + public readonly Enumerator GetEnumerator() { throw null; } + + readonly System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + readonly System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + + public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + private object _dummy; + private int _dummyPrimitive; + public Enumerator(ref StringTokenizer tokenizer) { } + + public StringSegment Current { get { throw null; } } + + object System.Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + public void Reset() { } + } + } + + public readonly partial struct StringValues : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyList, System.Collections.Generic.IReadOnlyCollection, System.IEquatable, System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static readonly StringValues Empty; + public StringValues(string? value) { } + + public StringValues(string?[]? values) { } + + public int Count { get { throw null; } } + + public string? this[int index] { get { throw null; } } + + bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + string System.Collections.Generic.IList.this[int index] { get { throw null; } set { } } + + public static StringValues Concat(StringValues values1, StringValues values2) { throw null; } + + public static StringValues Concat(in StringValues values, string? value) { throw null; } + + public static StringValues Concat(string? value, in StringValues values) { throw null; } + + public static bool Equals(StringValues left, StringValues right) { throw null; } + + public static bool Equals(StringValues left, string? right) { throw null; } + + public static bool Equals(StringValues left, string?[]? right) { throw null; } + + public readonly bool Equals(StringValues other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public static bool Equals(string? left, StringValues right) { throw null; } + + public readonly bool Equals(string? other) { throw null; } + + public static bool Equals(string?[]? left, StringValues right) { throw null; } + + public readonly bool Equals(string?[]? other) { throw null; } + + public readonly Enumerator GetEnumerator() { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool IsNullOrEmpty(StringValues value) { throw null; } + + public static bool operator ==(StringValues left, StringValues right) { throw null; } + + public static bool operator ==(StringValues left, object? right) { throw null; } + + public static bool operator ==(StringValues left, string? right) { throw null; } + + public static bool operator ==(StringValues left, string?[]? right) { throw null; } + + public static bool operator ==(object? left, StringValues right) { throw null; } + + public static bool operator ==(string? left, StringValues right) { throw null; } + + public static bool operator ==(string?[]? left, StringValues right) { throw null; } + + public static implicit operator string?(StringValues values) { throw null; } + + public static implicit operator string?[]?(StringValues value) { throw null; } + + public static implicit operator StringValues(string? value) { throw null; } + + public static implicit operator StringValues(string?[]? values) { throw null; } + + public static bool operator !=(StringValues left, StringValues right) { throw null; } + + public static bool operator !=(StringValues left, object? right) { throw null; } + + public static bool operator !=(StringValues left, string? right) { throw null; } + + public static bool operator !=(StringValues left, string?[]? right) { throw null; } + + public static bool operator !=(object? left, StringValues right) { throw null; } + + public static bool operator !=(string? left, StringValues right) { throw null; } + + public static bool operator !=(string?[]? left, StringValues right) { throw null; } + + readonly void System.Collections.Generic.ICollection.Add(string item) { } + + readonly void System.Collections.Generic.ICollection.Clear() { } + + readonly bool System.Collections.Generic.ICollection.Contains(string item) { throw null; } + + readonly void System.Collections.Generic.ICollection.CopyTo(string[] array, int arrayIndex) { } + + readonly bool System.Collections.Generic.ICollection.Remove(string item) { throw null; } + + readonly System.Collections.Generic.IEnumerator? System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + readonly int System.Collections.Generic.IList.IndexOf(string item) { throw null; } + + readonly void System.Collections.Generic.IList.Insert(int index, string item) { } + + readonly void System.Collections.Generic.IList.RemoveAt(int index) { } + + readonly System.Collections.IEnumerator? System.Collections.IEnumerable.GetEnumerator() { throw null; } + + public readonly string?[] ToArray() { throw null; } + + public override readonly string ToString() { throw null; } + + public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + private object _dummy; + private int _dummyPrimitive; + public Enumerator(ref StringValues values) { } + + public string? Current { get { throw null; } } + + object? System.Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + void System.Collections.IEnumerator.Reset() { } + } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/net7.0/Microsoft.Extensions.Primitives.cs b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/net7.0/Microsoft.Extensions.Primitives.cs new file mode 100644 index 0000000000..83e869ac13 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/net7.0/Microsoft.Extensions.Primitives.cs @@ -0,0 +1,342 @@ +// 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=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Primitives")] +[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("Primitives shared by framework extensions. Commonly used types include:\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.Primitives.IChangeToken\r\nMicrosoft.Extensions.Primitives.StringValues\r\nMicrosoft.Extensions.Primitives.StringSegment")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Primitives")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.Primitives +{ + public partial class CancellationChangeToken : IChangeToken + { + public CancellationChangeToken(System.Threading.CancellationToken cancellationToken) { } + + public bool ActiveChangeCallbacks { get { throw null; } } + + public bool HasChanged { get { throw null; } } + + public System.IDisposable RegisterChangeCallback(System.Action callback, object? state) { throw null; } + } + + public static partial class ChangeToken + { + public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer) { throw null; } + + public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer, TState state) { throw null; } + } + + public partial class CompositeChangeToken : IChangeToken + { + public CompositeChangeToken(System.Collections.Generic.IReadOnlyList changeTokens) { } + + public bool ActiveChangeCallbacks { get { throw null; } } + + public System.Collections.Generic.IReadOnlyList ChangeTokens { get { throw null; } } + + public bool HasChanged { get { throw null; } } + + public System.IDisposable RegisterChangeCallback(System.Action callback, object? state) { throw null; } + } + + public static partial class Extensions + { + public static System.Text.StringBuilder Append(this System.Text.StringBuilder builder, StringSegment segment) { throw null; } + } + + public partial interface IChangeToken + { + bool ActiveChangeCallbacks { get; } + + bool HasChanged { get; } + + System.IDisposable RegisterChangeCallback(System.Action callback, object? state); + } + + public readonly partial struct StringSegment : System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static readonly StringSegment Empty; + public StringSegment(string buffer, int offset, int length) { } + + public StringSegment(string? buffer) { } + + public string? Buffer { get { throw null; } } + + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "Buffer")] + [System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, "Value")] + public bool HasValue { get { throw null; } } + + public char this[int index] { get { throw null; } } + + public int Length { get { throw null; } } + + public int Offset { get { throw null; } } + + public string? Value { get { throw null; } } + + public readonly System.ReadOnlyMemory AsMemory() { throw null; } + + public readonly System.ReadOnlySpan AsSpan() { throw null; } + + public readonly System.ReadOnlySpan AsSpan(int start, int length) { throw null; } + + public readonly System.ReadOnlySpan AsSpan(int start) { throw null; } + + public static int Compare(StringSegment a, StringSegment b, System.StringComparison comparisonType) { throw null; } + + public readonly bool EndsWith(string text, System.StringComparison comparisonType) { throw null; } + + public static bool Equals(StringSegment a, StringSegment b, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(StringSegment other, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(StringSegment other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(string? text, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(string? text) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly int IndexOf(char c, int start, int count) { throw null; } + + public readonly int IndexOf(char c, int start) { throw null; } + + public readonly int IndexOf(char c) { throw null; } + + public readonly int IndexOfAny(char[] anyOf, int startIndex, int count) { throw null; } + + public readonly int IndexOfAny(char[] anyOf, int startIndex) { throw null; } + + public readonly int IndexOfAny(char[] anyOf) { throw null; } + + public static bool IsNullOrEmpty(StringSegment value) { throw null; } + + public readonly int LastIndexOf(char value) { throw null; } + + public static bool operator ==(StringSegment left, StringSegment right) { throw null; } + + public static implicit operator System.ReadOnlyMemory(StringSegment segment) { throw null; } + + public static implicit operator System.ReadOnlySpan(StringSegment segment) { throw null; } + + public static implicit operator StringSegment(string? value) { throw null; } + + public static bool operator !=(StringSegment left, StringSegment right) { throw null; } + + public readonly StringTokenizer Split(char[] chars) { throw null; } + + public readonly bool StartsWith(string text, System.StringComparison comparisonType) { throw null; } + + public readonly StringSegment Subsegment(int offset, int length) { throw null; } + + public readonly StringSegment Subsegment(int offset) { throw null; } + + public readonly string Substring(int offset, int length) { throw null; } + + public readonly string Substring(int offset) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly StringSegment Trim() { throw null; } + + public readonly StringSegment TrimEnd() { throw null; } + + public readonly StringSegment TrimStart() { throw null; } + } + + public partial class StringSegmentComparer : System.Collections.Generic.IComparer, System.Collections.Generic.IEqualityComparer + { + public static StringSegmentComparer Ordinal { get { throw null; } } + + public static StringSegmentComparer OrdinalIgnoreCase { get { throw null; } } + + public int Compare(StringSegment x, StringSegment y) { throw null; } + + public bool Equals(StringSegment x, StringSegment y) { throw null; } + + public int GetHashCode(StringSegment obj) { throw null; } + } + + public readonly partial struct StringTokenizer : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StringTokenizer(StringSegment value, char[] separators) { } + + public StringTokenizer(string value, char[] separators) { } + + public readonly Enumerator GetEnumerator() { throw null; } + + readonly System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + readonly System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + + public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + private object _dummy; + private int _dummyPrimitive; + public Enumerator(ref StringTokenizer tokenizer) { } + + public StringSegment Current { get { throw null; } } + + object System.Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + public void Reset() { } + } + } + + public readonly partial struct StringValues : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyList, System.Collections.Generic.IReadOnlyCollection, System.IEquatable, System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static readonly StringValues Empty; + public StringValues(string? value) { } + + public StringValues(string?[]? values) { } + + public int Count { get { throw null; } } + + public string? this[int index] { get { throw null; } } + + bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + string System.Collections.Generic.IList.this[int index] { get { throw null; } set { } } + + public static StringValues Concat(StringValues values1, StringValues values2) { throw null; } + + public static StringValues Concat(in StringValues values, string? value) { throw null; } + + public static StringValues Concat(string? value, in StringValues values) { throw null; } + + public static bool Equals(StringValues left, StringValues right) { throw null; } + + public static bool Equals(StringValues left, string? right) { throw null; } + + public static bool Equals(StringValues left, string?[]? right) { throw null; } + + public readonly bool Equals(StringValues other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public static bool Equals(string? left, StringValues right) { throw null; } + + public readonly bool Equals(string? other) { throw null; } + + public static bool Equals(string?[]? left, StringValues right) { throw null; } + + public readonly bool Equals(string?[]? other) { throw null; } + + public readonly Enumerator GetEnumerator() { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool IsNullOrEmpty(StringValues value) { throw null; } + + public static bool operator ==(StringValues left, StringValues right) { throw null; } + + public static bool operator ==(StringValues left, object? right) { throw null; } + + public static bool operator ==(StringValues left, string? right) { throw null; } + + public static bool operator ==(StringValues left, string?[]? right) { throw null; } + + public static bool operator ==(object? left, StringValues right) { throw null; } + + public static bool operator ==(string? left, StringValues right) { throw null; } + + public static bool operator ==(string?[]? left, StringValues right) { throw null; } + + public static implicit operator string?(StringValues values) { throw null; } + + public static implicit operator string?[]?(StringValues value) { throw null; } + + public static implicit operator StringValues(string? value) { throw null; } + + public static implicit operator StringValues(string?[]? values) { throw null; } + + public static bool operator !=(StringValues left, StringValues right) { throw null; } + + public static bool operator !=(StringValues left, object? right) { throw null; } + + public static bool operator !=(StringValues left, string? right) { throw null; } + + public static bool operator !=(StringValues left, string?[]? right) { throw null; } + + public static bool operator !=(object? left, StringValues right) { throw null; } + + public static bool operator !=(string? left, StringValues right) { throw null; } + + public static bool operator !=(string?[]? left, StringValues right) { throw null; } + + readonly void System.Collections.Generic.ICollection.Add(string item) { } + + readonly void System.Collections.Generic.ICollection.Clear() { } + + readonly bool System.Collections.Generic.ICollection.Contains(string item) { throw null; } + + readonly void System.Collections.Generic.ICollection.CopyTo(string[] array, int arrayIndex) { } + + readonly bool System.Collections.Generic.ICollection.Remove(string item) { throw null; } + + readonly System.Collections.Generic.IEnumerator? System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + readonly int System.Collections.Generic.IList.IndexOf(string item) { throw null; } + + readonly void System.Collections.Generic.IList.Insert(int index, string item) { } + + readonly void System.Collections.Generic.IList.RemoveAt(int index) { } + + readonly System.Collections.IEnumerator? System.Collections.IEnumerable.GetEnumerator() { throw null; } + + public readonly string?[] ToArray() { throw null; } + + public override readonly string ToString() { throw null; } + + public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + private object _dummy; + private int _dummyPrimitive; + public Enumerator(ref StringValues values) { } + + public string? Current { get { throw null; } } + + object? System.Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + void System.Collections.IEnumerator.Reset() { } + } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Primitives.cs b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Primitives.cs new file mode 100644 index 0000000000..795a3c7a6f --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/lib/netstandard2.0/Microsoft.Extensions.Primitives.cs @@ -0,0 +1,340 @@ +// 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(".NETFrameworkAssembly", "")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("Microsoft.Extensions.Primitives")] +[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("Primitives shared by framework extensions. Commonly used types include:\r\n\r\nCommonly Used Types:\r\nMicrosoft.Extensions.Primitives.IChangeToken\r\nMicrosoft.Extensions.Primitives.StringValues\r\nMicrosoft.Extensions.Primitives.StringSegment")] +[assembly: System.Reflection.AssemblyFileVersion("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("Microsoft.Extensions.Primitives")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("7.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace Microsoft.Extensions.Primitives +{ + public partial class CancellationChangeToken : IChangeToken + { + public CancellationChangeToken(System.Threading.CancellationToken cancellationToken) { } + + public bool ActiveChangeCallbacks { get { throw null; } } + + public bool HasChanged { get { throw null; } } + + public System.IDisposable RegisterChangeCallback(System.Action callback, object? state) { throw null; } + } + + public static partial class ChangeToken + { + public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer) { throw null; } + + public static System.IDisposable OnChange(System.Func changeTokenProducer, System.Action changeTokenConsumer, TState state) { throw null; } + } + + public partial class CompositeChangeToken : IChangeToken + { + public CompositeChangeToken(System.Collections.Generic.IReadOnlyList changeTokens) { } + + public bool ActiveChangeCallbacks { get { throw null; } } + + public System.Collections.Generic.IReadOnlyList ChangeTokens { get { throw null; } } + + public bool HasChanged { get { throw null; } } + + public System.IDisposable RegisterChangeCallback(System.Action callback, object? state) { throw null; } + } + + public static partial class Extensions + { + public static System.Text.StringBuilder Append(this System.Text.StringBuilder builder, StringSegment segment) { throw null; } + } + + public partial interface IChangeToken + { + bool ActiveChangeCallbacks { get; } + + bool HasChanged { get; } + + System.IDisposable RegisterChangeCallback(System.Action callback, object? state); + } + + public readonly partial struct StringSegment : System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static readonly StringSegment Empty; + public StringSegment(string buffer, int offset, int length) { } + + public StringSegment(string? buffer) { } + + public string? Buffer { get { throw null; } } + + public bool HasValue { get { throw null; } } + + public char this[int index] { get { throw null; } } + + public int Length { get { throw null; } } + + public int Offset { get { throw null; } } + + public string? Value { get { throw null; } } + + public readonly System.ReadOnlyMemory AsMemory() { throw null; } + + public readonly System.ReadOnlySpan AsSpan() { throw null; } + + public readonly System.ReadOnlySpan AsSpan(int start, int length) { throw null; } + + public readonly System.ReadOnlySpan AsSpan(int start) { throw null; } + + public static int Compare(StringSegment a, StringSegment b, System.StringComparison comparisonType) { throw null; } + + public readonly bool EndsWith(string text, System.StringComparison comparisonType) { throw null; } + + public static bool Equals(StringSegment a, StringSegment b, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(StringSegment other, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(StringSegment other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(string? text, System.StringComparison comparisonType) { throw null; } + + public readonly bool Equals(string? text) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public readonly int IndexOf(char c, int start, int count) { throw null; } + + public readonly int IndexOf(char c, int start) { throw null; } + + public readonly int IndexOf(char c) { throw null; } + + public readonly int IndexOfAny(char[] anyOf, int startIndex, int count) { throw null; } + + public readonly int IndexOfAny(char[] anyOf, int startIndex) { throw null; } + + public readonly int IndexOfAny(char[] anyOf) { throw null; } + + public static bool IsNullOrEmpty(StringSegment value) { throw null; } + + public readonly int LastIndexOf(char value) { throw null; } + + public static bool operator ==(StringSegment left, StringSegment right) { throw null; } + + public static implicit operator System.ReadOnlyMemory(StringSegment segment) { throw null; } + + public static implicit operator System.ReadOnlySpan(StringSegment segment) { throw null; } + + public static implicit operator StringSegment(string? value) { throw null; } + + public static bool operator !=(StringSegment left, StringSegment right) { throw null; } + + public readonly StringTokenizer Split(char[] chars) { throw null; } + + public readonly bool StartsWith(string text, System.StringComparison comparisonType) { throw null; } + + public readonly StringSegment Subsegment(int offset, int length) { throw null; } + + public readonly StringSegment Subsegment(int offset) { throw null; } + + public readonly string Substring(int offset, int length) { throw null; } + + public readonly string Substring(int offset) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly StringSegment Trim() { throw null; } + + public readonly StringSegment TrimEnd() { throw null; } + + public readonly StringSegment TrimStart() { throw null; } + } + + public partial class StringSegmentComparer : System.Collections.Generic.IComparer, System.Collections.Generic.IEqualityComparer + { + public static StringSegmentComparer Ordinal { get { throw null; } } + + public static StringSegmentComparer OrdinalIgnoreCase { get { throw null; } } + + public int Compare(StringSegment x, StringSegment y) { throw null; } + + public bool Equals(StringSegment x, StringSegment y) { throw null; } + + public int GetHashCode(StringSegment obj) { throw null; } + } + + public readonly partial struct StringTokenizer : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StringTokenizer(StringSegment value, char[] separators) { } + + public StringTokenizer(string value, char[] separators) { } + + public readonly Enumerator GetEnumerator() { throw null; } + + readonly System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + readonly System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + + public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + private object _dummy; + private int _dummyPrimitive; + public Enumerator(ref StringTokenizer tokenizer) { } + + public StringSegment Current { get { throw null; } } + + object System.Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + public void Reset() { } + } + } + + public readonly partial struct StringValues : System.Collections.Generic.IList, System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyList, System.Collections.Generic.IReadOnlyCollection, System.IEquatable, System.IEquatable, System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public static readonly StringValues Empty; + public StringValues(string? value) { } + + public StringValues(string?[]? values) { } + + public int Count { get { throw null; } } + + public string? this[int index] { get { throw null; } } + + bool System.Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + string System.Collections.Generic.IList.this[int index] { get { throw null; } set { } } + + public static StringValues Concat(StringValues values1, StringValues values2) { throw null; } + + public static StringValues Concat(in StringValues values, string? value) { throw null; } + + public static StringValues Concat(string? value, in StringValues values) { throw null; } + + public static bool Equals(StringValues left, StringValues right) { throw null; } + + public static bool Equals(StringValues left, string? right) { throw null; } + + public static bool Equals(StringValues left, string?[]? right) { throw null; } + + public readonly bool Equals(StringValues other) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public static bool Equals(string? left, StringValues right) { throw null; } + + public readonly bool Equals(string? other) { throw null; } + + public static bool Equals(string?[]? left, StringValues right) { throw null; } + + public readonly bool Equals(string?[]? other) { throw null; } + + public readonly Enumerator GetEnumerator() { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public static bool IsNullOrEmpty(StringValues value) { throw null; } + + public static bool operator ==(StringValues left, StringValues right) { throw null; } + + public static bool operator ==(StringValues left, object? right) { throw null; } + + public static bool operator ==(StringValues left, string? right) { throw null; } + + public static bool operator ==(StringValues left, string?[]? right) { throw null; } + + public static bool operator ==(object? left, StringValues right) { throw null; } + + public static bool operator ==(string? left, StringValues right) { throw null; } + + public static bool operator ==(string?[]? left, StringValues right) { throw null; } + + public static implicit operator string?(StringValues values) { throw null; } + + public static implicit operator string?[]?(StringValues value) { throw null; } + + public static implicit operator StringValues(string? value) { throw null; } + + public static implicit operator StringValues(string?[]? values) { throw null; } + + public static bool operator !=(StringValues left, StringValues right) { throw null; } + + public static bool operator !=(StringValues left, object? right) { throw null; } + + public static bool operator !=(StringValues left, string? right) { throw null; } + + public static bool operator !=(StringValues left, string?[]? right) { throw null; } + + public static bool operator !=(object? left, StringValues right) { throw null; } + + public static bool operator !=(string? left, StringValues right) { throw null; } + + public static bool operator !=(string?[]? left, StringValues right) { throw null; } + + readonly void System.Collections.Generic.ICollection.Add(string item) { } + + readonly void System.Collections.Generic.ICollection.Clear() { } + + readonly bool System.Collections.Generic.ICollection.Contains(string item) { throw null; } + + readonly void System.Collections.Generic.ICollection.CopyTo(string[] array, int arrayIndex) { } + + readonly bool System.Collections.Generic.ICollection.Remove(string item) { throw null; } + + readonly System.Collections.Generic.IEnumerator? System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + readonly int System.Collections.Generic.IList.IndexOf(string item) { throw null; } + + readonly void System.Collections.Generic.IList.Insert(int index, string item) { } + + readonly void System.Collections.Generic.IList.RemoveAt(int index) { } + + readonly System.Collections.IEnumerator? System.Collections.IEnumerable.GetEnumerator() { throw null; } + + public readonly string?[] ToArray() { throw null; } + + public override readonly string ToString() { throw null; } + + public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable + { + private object _dummy; + private int _dummyPrimitive; + public Enumerator(ref StringValues values) { } + + public string? Current { get { throw null; } } + + object? System.Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public bool MoveNext() { throw null; } + + void System.Collections.IEnumerator.Reset() { } + } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/microsoft.extensions.primitives.nuspec b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/microsoft.extensions.primitives.nuspec new file mode 100644 index 0000000000..a21e9629c6 --- /dev/null +++ b/src/referencePackages/src/microsoft.extensions.primitives/7.0.0/microsoft.extensions.primitives.nuspec @@ -0,0 +1,31 @@ + + + + Microsoft.Extensions.Primitives + 7.0.0 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Primitives shared by framework extensions. Commonly used types include: + +Commonly Used Types: +Microsoft.Extensions.Primitives.IChangeToken +Microsoft.Extensions.Primitives.StringValues +Microsoft.Extensions.Primitives.StringSegment + 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/7.0.0/System.Diagnostics.DiagnosticSource.7.0.0.csproj b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/System.Diagnostics.DiagnosticSource.7.0.0.csproj new file mode 100644 index 0000000000..e1d73328a0 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/System.Diagnostics.DiagnosticSource.7.0.0.csproj @@ -0,0 +1,19 @@ + + + + net6.0;net7.0;netstandard2.0 + System.Diagnostics.DiagnosticSource + 2 + Open + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/net6.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/net6.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 0000000000..c31332aa8e --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/net6.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,807 @@ +// 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=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[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.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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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; } set { } } + + public Activity? Previous { get { throw null; } set { } } + } + + 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; } set { } } + } + + 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 ActivityListener() { } + + public Action? ActivityStarted { get { throw null; } set { } } + + public Action? ActivityStopped { get { throw null; } set { } } + + public SampleActivity? Sample { get { throw null; } set { } } + + public SampleActivity? SampleUsingParentId { get { throw null; } set { } } + + public Func? ShouldListenTo { get { throw null; } set { } } + + public void Dispose() { } + } + + public enum ActivitySamplingResult + { + None = 0, + PropagationData = 1, + AllData = 2, + AllDataAndRecorded = 3 + } + + public sealed partial class ActivitySource : IDisposable + { + public ActivitySource(string name, string? version = "") { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + + public 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 + { + protected 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("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public void StopActivity(Activity activity, object? args) { } + + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + public abstract void Write(string name, object? value); + } + + public abstract partial class DistributedContextPropagator + { + protected 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 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(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!, 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, ReadOnlySpan> tags) { } + + public void Add(T delta) { } + } + + public sealed partial class Histogram : Instrument where T : struct + { + internal Histogram() : base(default!, default!, 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, ReadOnlySpan> tags) { } + + public void Record(T value) { } + } + + public abstract partial class Instrument + { + protected Instrument(Meter meter, string name, string? unit, string? description) { } + + 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 string? Unit { get { throw null; } } + + protected void Publish() { } + } + + public abstract partial class Instrument : Instrument where T : struct + { + protected Instrument(Meter meter, string name, string? unit, string? description) : base(default!, default!, default, default) { } + + 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, 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(string name, string? version) { } + + public Meter(string name) { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public Counter CreateCounter(string name, string? unit = null, string? description = null) + where T : struct { throw null; } + + public Histogram CreateHistogram(string name, string? unit = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + where T : struct { throw null; } + + public void Dispose() { } + } + + public sealed partial class MeterListener : IDisposable + { + public MeterListener() { } + + 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 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) : base(default!, default!, 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!, 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, ReadOnlySpan> tags) { } + + public void Add(T delta) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/net7.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/net7.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 0000000000..178661ffe8 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/net7.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,811 @@ +// 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=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata(".NETFrameworkAssembly", "")] +[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.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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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; } set { } } + + public Activity? Previous { get { throw null; } set { } } + } + + 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; } set { } } + } + + 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 ActivityListener() { } + + public Action? ActivityStarted { get { throw null; } set { } } + + public Action? ActivityStopped { get { throw null; } set { } } + + public SampleActivity? Sample { get { throw null; } set { } } + + public SampleActivity? SampleUsingParentId { get { throw null; } set { } } + + public Func? ShouldListenTo { get { throw null; } set { } } + + public void Dispose() { } + } + + public enum ActivitySamplingResult + { + None = 0, + PropagationData = 1, + AllData = 2, + AllDataAndRecorded = 3 + } + + public sealed partial class ActivitySource : IDisposable + { + public ActivitySource(string name, string? version = "") { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + + public 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.")] + [CodeAnalysis.RequiresDynamicCode("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")] + public override void Write(string name, object? value) { } + } + + public abstract partial class DiagnosticSource + { + protected 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.")] + [CodeAnalysis.RequiresDynamicCode("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")] + public Activity StartActivity(Activity activity, object? args) { throw null; } + + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + [CodeAnalysis.RequiresDynamicCode("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")] + public void StopActivity(Activity activity, object? args) { } + + [CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")] + [CodeAnalysis.RequiresDynamicCode("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")] + public abstract void Write(string name, object? value); + } + + public abstract partial class DistributedContextPropagator + { + protected 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 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(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!, 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, ReadOnlySpan> tags) { } + + public void Add(T delta) { } + } + + public sealed partial class Histogram : Instrument where T : struct + { + internal Histogram() : base(default!, default!, 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, ReadOnlySpan> tags) { } + + public void Record(T value) { } + } + + public abstract partial class Instrument + { + protected Instrument(Meter meter, string name, string? unit, string? description) { } + + 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 string? Unit { get { throw null; } } + + protected void Publish() { } + } + + public abstract partial class Instrument : Instrument where T : struct + { + protected Instrument(Meter meter, string name, string? unit, string? description) : base(default!, default!, default, default) { } + + 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, 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(string name, string? version) { } + + public Meter(string name) { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public Counter CreateCounter(string name, string? unit = null, string? description = null) + where T : struct { throw null; } + + public Histogram CreateHistogram(string name, string? unit = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + where T : struct { throw null; } + + public void Dispose() { } + } + + public sealed partial class MeterListener : IDisposable + { + public MeterListener() { } + + 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 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) : base(default!, default!, 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!, 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, ReadOnlySpan> tags) { } + + public void Add(T delta) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/netstandard2.0/System.Diagnostics.DiagnosticSource.cs b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/netstandard2.0/System.Diagnostics.DiagnosticSource.cs new file mode 100644 index 0000000000..2b6a35b98b --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/lib/netstandard2.0/System.Diagnostics.DiagnosticSource.cs @@ -0,0 +1,803 @@ +// 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(".NETFrameworkAssembly", "")] +[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.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("7.0.22.51805")] +[assembly: System.Reflection.AssemblyInformationalVersion("7.0.0+d099f075e45d2aa6007a22b71b45a08758559f80")] +[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("7.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 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; } set { } } + + public Activity? Previous { get { throw null; } set { } } + } + + 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; } set { } } + } + + 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 ActivityListener() { } + + public Action? ActivityStarted { get { throw null; } set { } } + + public Action? ActivityStopped { get { throw null; } set { } } + + public SampleActivity? Sample { get { throw null; } set { } } + + public SampleActivity? SampleUsingParentId { get { throw null; } set { } } + + public Func? ShouldListenTo { get { throw null; } set { } } + + public void Dispose() { } + } + + public enum ActivitySamplingResult + { + None = 0, + PropagationData = 1, + AllData = 2, + AllDataAndRecorded = 3 + } + + public sealed partial class ActivitySource : IDisposable + { + public ActivitySource(string name, string? version = "") { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public static void AddActivityListener(ActivityListener listener) { } + + public 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 + { + protected DiagnosticSource() { } + + public virtual bool IsEnabled(string name, object? arg1, object? arg2 = null) { throw null; } + + public abstract bool IsEnabled(string name); + public virtual void OnActivityExport(Activity activity, object? payload) { } + + public virtual void OnActivityImport(Activity activity, object? payload) { } + + public Activity StartActivity(Activity activity, object? args) { throw null; } + + public void StopActivity(Activity activity, object? args) { } + + public abstract void Write(string name, object? value); + } + + public abstract partial class DistributedContextPropagator + { + protected 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 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(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!, 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, ReadOnlySpan> tags) { } + + public void Add(T delta) { } + } + + public sealed partial class Histogram : Instrument where T : struct + { + internal Histogram() : base(default!, default!, 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, ReadOnlySpan> tags) { } + + public void Record(T value) { } + } + + public abstract partial class Instrument + { + protected Instrument(Meter meter, string name, string? unit, string? description) { } + + 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 string? Unit { get { throw null; } } + + protected void Publish() { } + } + + public abstract partial class Instrument : Instrument where T : struct + { + protected Instrument(Meter meter, string name, string? unit, string? description) : base(default!, default!, default, default) { } + + 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, 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(string name, string? version) { } + + public Meter(string name) { } + + public string Name { get { throw null; } } + + public string? Version { get { throw null; } } + + public Counter CreateCounter(string name, string? unit = null, string? description = null) + where T : struct { throw null; } + + public Histogram CreateHistogram(string name, string? unit = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + 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 = null, string? description = null) + where T : struct { throw null; } + + public void Dispose() { } + } + + public sealed partial class MeterListener : IDisposable + { + public MeterListener() { } + + 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 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) : base(default!, default!, 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!, 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, ReadOnlySpan> tags) { } + + public void Add(T delta) { } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/system.diagnostics.diagnosticsource.nuspec b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/system.diagnostics.diagnosticsource.nuspec new file mode 100644 index 0000000000..c0b378c3a9 --- /dev/null +++ b/src/referencePackages/src/system.diagnostics.diagnosticsource/7.0.0/system.diagnostics.diagnosticsource.nuspec @@ -0,0 +1,30 @@ + + + + System.Diagnostics.DiagnosticSource + 7.0.0 + 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